Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001324, allocations: 181.5 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.4 MB / 229.9 MB, free: 3.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 87.88 kB / 280.8 MB, free: 1.316 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.802e-06/6.833e-06, allocations: 0 / 336.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2724, allocations: 50.39 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.586/5.859, allocations: 2.76 GB / 3.138 GB, free: 52.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/5.859, allocations: 84.47 kB / 3.138 GB, free: 52.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.635/9.494, allocations: 0.9721 GB / 4.11 GB, free: 33.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004169/9.494, allocations: 60.31 kB / 4.111 GB, free: 33.49 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.01842/9.513, allocations: 3.432 MB / 4.114 GB, free: 31.94 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/9.513, allocations: 10.5 kB / 4.114 GB, free: 31.94 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01642/9.529, allocations: 1.707 MB / 4.116 GB, free: 31.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004978/9.534, allocations: 1.524 MB / 4.117 GB, free: 31.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/9.534, allocations: 277 kB / 4.117 GB, free: 31.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008413/9.535, allocations: 116.1 kB / 4.117 GB, free: 31.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005376/9.541, allocations: 2.674 MB / 4.12 GB, free: 31.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005461/9.546, allocations: 2.719 MB / 4.123 GB, free: 30.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-05/9.546, allocations: 10.59 kB / 4.123 GB, free: 30.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004523/9.547, allocations: 11.52 kB / 4.123 GB, free: 30.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/9.547, allocations: 106.6 kB / 4.123 GB, free: 30.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02385/9.571, allocations: 14.38 MB / 4.137 GB, free: 23.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002309/9.573, allocations: 1.43 MB / 4.138 GB, free: 23.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/9.575, allocations: 1.224 MB / 4.139 GB, free: 23.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04727/9.622, allocations: 24.17 MB / 4.163 GB, free: 24.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.066e-05/9.622, allocations: 58.84 kB / 4.163 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 5.761e-06/9.622, allocations: 4.5 kB / 4.163 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.03621/9.659, allocations: 10.41 MB / 4.173 GB, free: 23.62 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/9.659, allocations: 149.5 kB / 4.173 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/9.66, allocations: 0.8412 MB / 4.174 GB, free: 23.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004131/9.661, allocations: 25.7 kB / 4.174 GB, free: 23.27 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/9.661, allocations: 0.6197 MB / 4.175 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007744/9.662, allocations: 0.6446 MB / 4.175 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/9.662, allocations: 0 / 4.175 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002336/9.663, allocations: 395.4 kB / 4.176 GB, free: 22.15 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/9.664, allocations: 1.218 MB / 4.177 GB, free: 22.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002328/9.667, allocations: 1.628 MB / 4.179 GB, free: 21.69 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006002/9.673, allocations: 1.988 MB / 4.181 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/9.673, allocations: 3.906 kB / 4.181 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01833/9.691, allocations: 5.337 MB / 4.186 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/9.691, allocations: 5.969 kB / 4.186 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.052e-05/9.691, allocations: 14.88 kB / 4.186 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004248/9.696, allocations: 1.553 MB / 4.187 GB, free: 21.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/9.698, allocations: 487.8 kB / 4.188 GB, free: 21.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/9.708, allocations: 7.627 MB / 4.195 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003272/9.712, allocations: 189.4 kB / 4.195 GB, free: 16.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006427/9.712, allocations: 125.1 kB / 4.196 GB, free: 16.46 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.001213/9.714, allocations: 212.4 kB / 4.196 GB, free: 16.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002678/9.716, allocations: 0.6766 MB / 4.196 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02025/9.736, allocations: 10.21 MB / 4.206 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/9.737, allocations: 91.73 kB / 4.206 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-05/9.737, allocations: 2.219 kB / 4.206 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.588e-05/9.737, allocations: 14.86 kB / 4.206 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0248/9.762, allocations: 13.34 MB / 4.22 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/9.762, allocations: 0 / 4.22 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00219/9.764, allocations: 356.7 kB / 4.22 GB, free: 8.254 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007675/9.772, allocations: 4.221 MB / 4.224 GB, free: 4.602 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005149/9.772, allocations: 45.27 kB / 4.224 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01424/9.786, allocations: 9.867 MB / 4.234 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/9.786, allocations: 0 / 4.234 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02434/9.811, allocations: 11.21 MB / 4.245 GB, free: 1.473 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/9.813, allocations: 0.6767 MB / 4.245 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007835/9.814, allocations: 4 kB / 4.245 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002967/9.817, allocations: 208.2 kB / 4.245 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006665/9.817, allocations: 233.4 kB / 4.246 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003969/9.818, allocations: 98.56 kB / 4.246 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0013/9.819, allocations: 0.6122 MB / 4.246 GB, free: 0 / 0.5105 GB Notification: Performance of remove unused functions: time 0.2286/10.05, allocations: 1.87 MB / 4.248 GB, free: 95.35 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 65 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01162/10.06, allocations: 2.877 MB / 4.251 GB, free: 95.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0102/10.07, allocations: 4.843 MB / 4.256 GB, free: 95.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/10.07, allocations: 4.438 kB / 4.256 GB, free: 95.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006439/10.08, allocations: 3.936 MB / 4.26 GB, free: 95.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004766/10.08, allocations: 0.8577 MB / 4.26 GB, free: 95.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/10.09, allocations: 6.576 MB / 4.267 GB, free: 94.11 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/10.09, allocations: 2.248 MB / 4.269 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/10.09, allocations: 1.641 kB / 4.269 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of Templates: time 0.1237/10.22, allocations: 87.54 MB / 4.355 GB, free: 88.62 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MeasuringTemperature/MeasuringTemperature.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches