Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 104.2 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 197.6 kB / 17.3 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.453/2.453, allocations: 437.1 MB / 0.7112 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 64.89 kB / 0.8707 GB, free: 1.43 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3796, allocations: 151.6 MB / 1.019 GB, free: 9.84 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.004473/0.3842, allocations: 1.483 MB / 1.02 GB, free: 8.34 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3861, allocations: 0.6242 MB / 1.021 GB, free: 7.715 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.853e-05/0.3862, allocations: 4 kB / 1.021 GB, free: 7.711 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.817e-05/0.3862, allocations: 3.938 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.899e-05/0.3864, allocations: 15.84 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.3874, allocations: 159.1 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.3876, allocations: 55.83 kB / 1.021 GB, free: 7.484 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 6.485e-05/0.3877, allocations: 3.906 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.3878, allocations: 27.92 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.617e-05/0.3879, allocations: 31.84 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.3879, allocations: 4 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008925/0.3888, allocations: 343.3 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.25e-05/0.3889, allocations: 15.97 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.339e-05/0.3889, allocations: 19.88 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.3894, allocations: 183.5 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3895, allocations: 0 / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3895, allocations: 0 / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.3895, allocations: 0 / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008115/0.3903, allocations: 403.3 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3904, allocations: 12.88 kB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.3904, allocations: 8.938 kB / 1.022 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.3906, allocations: 172.2 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.3907, allocations: 384 / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.3907, allocations: 12.36 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.3911, allocations: 82.22 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3911, allocations: 4.188 kB / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.3911, allocations: 3.938 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3911, allocations: 0 / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003405/0.3915, allocations: 51.95 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007654/0.3923, allocations: 332.5 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.3927, allocations: 78.53 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.3929, allocations: 32.83 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3929, allocations: 4 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.393, allocations: 30.56 kB / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 3.867e-06/0.393, allocations: 0 / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.002234/0.3952, allocations: 0.6501 MB / 1.023 GB, free: 4.758 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.3953, allocations: 51.41 kB / 1.024 GB, free: 4.695 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.3954, allocations: 109.8 kB / 1.024 GB, free: 4.578 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.3954, allocations: 25.7 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.3955, allocations: 96.05 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.3956, allocations: 35.45 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.3956, allocations: 29.7 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3958, allocations: 318.8 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.396, allocations: 27.97 kB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.3962, allocations: 35.98 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.3965, allocations: 72.83 kB / 1.024 GB, free: 3.922 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.3966, allocations: 0 / 1.024 GB, free: 3.922 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004416/0.397, allocations: 123 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.397, allocations: 4 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.397, allocations: 4 kB / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3971, allocations: 0 / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.3973, allocations: 31.97 kB / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3973, allocations: 0 / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.981e-05/0.3974, allocations: 8.031 kB / 1.024 GB, free: 3.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.3974, allocations: 11.94 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001124/0.3975, allocations: 117.8 kB / 1.025 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.3976, allocations: 0 / 1.025 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000507/0.3981, allocations: 129.5 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3981, allocations: 4 kB / 1.025 GB, free: 3.477 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3982, allocations: 0 / 1.025 GB, free: 3.477 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3982, allocations: 4.125 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.399, allocations: 386.4 kB / 1.025 GB, free: 3.039 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.399, allocations: 3.984 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3992, allocations: 23.98 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3992, allocations: 0 / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.3993, allocations: 11.94 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.3993, allocations: 8 kB / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3993, allocations: 0 / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008146/0.4001, allocations: 243.7 kB / 1.025 GB, free: 2.738 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.4002, allocations: 89.03 kB / 1.025 GB, free: 2.633 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.4002, allocations: 7.938 kB / 1.025 GB, free: 2.625 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.4005, allocations: 4 kB / 1.025 GB, free: 2.621 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.4005, allocations: 12.05 kB / 1.025 GB, free: 2.609 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.4005, allocations: 8 kB / 1.025 GB, free: 2.602 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.106e-05/0.4006, allocations: 75.28 kB / 1.025 GB, free: 2.527 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.41e-07/0.4006, allocations: 3.938 kB / 1.025 GB, free: 2.523 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004976/0.4011, allocations: 43.92 kB / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003369/0.4015, allocations: 135.2 kB / 1.026 GB, free: 2.336 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005544/0.4021, allocations: 87.98 kB / 1.026 GB, free: 2.25 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4021, allocations: 0 / 1.026 GB, free: 2.25 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.4023, allocations: 47.86 kB / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/0.4028, allocations: 11.98 kB / 1.026 GB, free: 2.191 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.4039, allocations: 301.9 kB / 1.026 GB, free: 1.871 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.4043, allocations: 0.704 MB / 1.027 GB, free: 1.141 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001164/0.4044, allocations: 8.672 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.4045, allocations: 15.44 kB / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of SimCode: time 5.01e-07/0.4045, allocations: 3.938 kB / 1.027 GB, free: 1.113 MB / 0.795 GB Notification: Performance of Templates: time 0.005936/0.4105, allocations: 1.135 MB / 1.028 GB, free: 20 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches