Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 179.3 kB / 8.478 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205.2 MB / 214.1 MB, free: 5.164 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 97.91 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.682e-06/6.702e-06, allocations: 0 / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.117, allocations: 47.58 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.478/5.595, allocations: 2.755 GB / 3.109 GB, free: 125.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/5.596, allocations: 82.92 kB / 3.109 GB, free: 125.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.27/8.865, allocations: 0.9619 GB / 4.071 GB, free: 5.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002197/8.866, allocations: 59.23 kB / 4.071 GB, free: 5.266 MB / 458.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.01392/8.88, allocations: 3.437 MB / 4.075 GB, free: 1.789 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/8.88, allocations: 12.03 kB / 4.075 GB, free: 1.777 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01676/8.896, allocations: 1.699 MB / 4.076 GB, free: 76 kB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006248/8.903, allocations: 1.515 MB / 4.078 GB, free: 14.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005426/8.903, allocations: 281.8 kB / 4.078 GB, free: 14.21 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/8.905, allocations: 115.9 kB / 4.078 GB, free: 14.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007004/8.912, allocations: 2.674 MB / 4.081 GB, free: 11.42 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007566/8.919, allocations: 2.726 MB / 4.083 GB, free: 8.555 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.146e-05/8.92, allocations: 11.84 kB / 4.083 GB, free: 8.543 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007132/8.92, allocations: 4 kB / 4.083 GB, free: 8.539 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/8.92, allocations: 111.3 kB / 4.084 GB, free: 8.43 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2669/9.187, allocations: 14.38 MB / 4.098 GB, free: 56.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001973/9.189, allocations: 1.427 MB / 4.099 GB, free: 56.47 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/9.191, allocations: 1.232 MB / 4.1 GB, free: 56.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04612/9.237, allocations: 24.16 MB / 4.124 GB, free: 41.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.594e-05/9.237, allocations: 57.44 kB / 4.124 GB, free: 41.76 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 3.878e-06/9.237, allocations: 5.641 kB / 4.124 GB, free: 41.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.03095/9.268, allocations: 10.4 MB / 4.134 GB, free: 41.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/9.268, allocations: 158.4 kB / 4.134 GB, free: 40.94 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/9.269, allocations: 0.8268 MB / 4.135 GB, free: 40.79 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002889/9.27, allocations: 25.7 kB / 4.135 GB, free: 40.76 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/9.27, allocations: 0.6234 MB / 4.136 GB, free: 40.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005939/9.271, allocations: 0.6461 MB / 4.136 GB, free: 40.12 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/9.271, allocations: 3.031 kB / 4.136 GB, free: 40.12 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/9.271, allocations: 395 kB / 4.137 GB, free: 39.81 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/9.273, allocations: 1.213 MB / 4.138 GB, free: 39.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/9.274, allocations: 1.631 MB / 4.139 GB, free: 39.36 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005463/9.28, allocations: 1.986 MB / 4.141 GB, free: 39.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/9.28, allocations: 7.453 kB / 4.141 GB, free: 39.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01712/9.297, allocations: 5.346 MB / 4.147 GB, free: 39.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/9.297, allocations: 3.406 kB / 4.147 GB, free: 39.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.567e-05/9.297, allocations: 16.5 kB / 4.147 GB, free: 39.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004196/9.301, allocations: 1.551 MB / 4.148 GB, free: 39.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/9.304, allocations: 489.2 kB / 4.149 GB, free: 39.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009155/9.313, allocations: 7.62 MB / 4.156 GB, free: 34.33 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003595/9.317, allocations: 183.7 kB / 4.156 GB, free: 34.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003762/9.317, allocations: 128.8 kB / 4.156 GB, free: 34.32 MB / 474.7 MB 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.0007814/9.318, allocations: 218.4 kB / 4.157 GB, free: 34.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002214/9.32, allocations: 0.6823 MB / 4.157 GB, free: 34.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/9.336, allocations: 10.21 MB / 4.167 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.46e-05/9.336, allocations: 89.17 kB / 4.167 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/9.336, allocations: 0 / 4.167 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.62e-05/9.336, allocations: 14.27 kB / 4.167 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01898/9.355, allocations: 13.34 MB / 4.18 GB, free: 32.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/9.355, allocations: 0 / 4.18 GB, free: 32.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/9.357, allocations: 362 kB / 4.181 GB, free: 32.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006119/9.363, allocations: 4.22 MB / 4.185 GB, free: 32.54 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003371/9.364, allocations: 49.89 kB / 4.185 GB, free: 32.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/9.375, allocations: 9.794 MB / 4.194 GB, free: 43.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/9.375, allocations: 0 / 4.194 GB, free: 43.76 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01892/9.394, allocations: 11.21 MB / 4.205 GB, free: 43.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002189/9.396, allocations: 0.667 MB / 4.206 GB, free: 42.81 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005525/9.396, allocations: 3.875 kB / 4.206 GB, free: 42.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002527/9.399, allocations: 215.1 kB / 4.206 GB, free: 42.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005318/9.4, allocations: 235.4 kB / 4.206 GB, free: 42.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002658/9.4, allocations: 99.5 kB / 4.206 GB, free: 42.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0007847/9.401, allocations: 0.6046 MB / 4.207 GB, free: 42.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007655/9.408, allocations: 1.796 MB / 4.209 GB, free: 42.62 MB / 490.7 MB 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.01238/9.421, allocations: 2.863 MB / 4.212 GB, free: 42.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008515/9.429, allocations: 4.846 MB / 4.216 GB, free: 42.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/9.429, allocations: 3.438 kB / 4.216 GB, free: 42.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00639/9.436, allocations: 3.938 MB / 4.22 GB, free: 42.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005228/9.441, allocations: 0.8581 MB / 4.221 GB, free: 42.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/9.454, allocations: 6.582 MB / 4.227 GB, free: 40.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/9.456, allocations: 2.247 MB / 4.23 GB, free: 39.95 MB / 490.7 MB Notification: Performance of SimCode: time 8.92e-07/9.456, allocations: 0 / 4.23 GB, free: 39.95 MB / 490.7 MB Notification: Performance of Templates: time 0.3994/9.856, allocations: 87.52 MB / 4.315 GB, free: 74.86 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Explanatory/MeasuringTemperature/MeasuringTemperature.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches