Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1_1.T|Tmix1_2.T|Tmix2.T|Tdiff|volume1_1.medium.h|volume1_2.medium.h|volume2_1.medium.h|volume2_2.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1_1.T|Tmix1_2.T|Tmix2.T|Tdiff|volume1_1.medium.h|volume1_2.medium.h|volume2_1.medium.h|volume2_2.medium.h",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2") [: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.001113/0.001113, allocations: 191.3 kB / 8.529 MB, free: 1.836 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.254/1.254, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0008425/0.0008425, allocations: 84.73 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.166/0.166, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.253e-06/7.284e-06, allocations: 4.219 kB / 444.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1231, allocations: 61.89 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.388/5.511, allocations: 2.77 GB / 3.264 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/5.512, allocations: 79.58 kB / 3.264 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.94/8.452, allocations: 0.8115 GB / 4.076 GB, free: 41.21 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001708/8.452, allocations: 47.66 kB / 4.076 GB, free: 41.21 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 441 * Number of variables: 441 Notification: Performance of Generate backend data structure: time 0.01316/8.465, allocations: 3.002 MB / 4.079 GB, free: 40.38 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/8.465, allocations: 18.91 kB / 4.079 GB, free: 40.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007324/8.472, allocations: 0.9089 MB / 4.08 GB, free: 40.28 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/8.476, allocations: 1.107 MB / 4.081 GB, free: 39.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002712/8.476, allocations: 400.3 kB / 4.081 GB, free: 39.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/8.476, allocations: 105.2 kB / 4.081 GB, free: 39.64 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003478/8.48, allocations: 1.904 MB / 4.083 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004054/8.484, allocations: 2.415 MB / 4.085 GB, free: 38.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-05/8.484, allocations: 21.05 kB / 4.085 GB, free: 38.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/8.484, allocations: 12.5 kB / 4.085 GB, free: 38.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.74e-05/8.484, allocations: 84.52 kB / 4.085 GB, free: 38.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/8.502, allocations: 16.73 MB / 4.102 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008274/8.503, allocations: 490.6 kB / 4.102 GB, free: 26.99 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/8.504, allocations: 386.5 kB / 4.103 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/8.505, allocations: 0.6828 MB / 4.103 GB, free: 26.42 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/8.505, allocations: 55.73 kB / 4.103 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=95): time 2.746e-06/8.505, allocations: 0 / 4.103 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=111): time 0.009877/8.515, allocations: 3.392 MB / 4.107 GB, free: 25.71 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/8.515, allocations: 165.6 kB / 4.107 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/8.517, allocations: 1.003 MB / 4.108 GB, free: 25.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001435/8.517, allocations: 31.7 kB / 4.108 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/8.517, allocations: 0.8581 MB / 4.109 GB, free: 24.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/8.518, allocations: 389.9 kB / 4.109 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/8.518, allocations: 0 / 4.109 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001697/8.518, allocations: 448.7 kB / 4.109 GB, free: 24.17 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008377/8.519, allocations: 0.5565 MB / 4.11 GB, free: 24.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/8.52, allocations: 1.77 MB / 4.112 GB, free: 22.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/8.522, allocations: 0.9072 MB / 4.113 GB, free: 22.58 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/8.522, allocations: 15.31 kB / 4.113 GB, free: 22.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=293) (initialization): time 0.006379/8.529, allocations: 2.85 MB / 4.115 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/8.529, allocations: 7.844 kB / 4.115 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.317e-05/8.529, allocations: 43.81 kB / 4.115 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/8.53, allocations: 441.4 kB / 4.116 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/8.532, allocations: 0.5364 MB / 4.116 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/8.534, allocations: 2.844 MB / 4.119 GB, free: 20.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/8.536, allocations: 207.6 kB / 4.119 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/8.536, allocations: 143 kB / 4.119 GB, free: 20.29 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume2_1.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume2_2.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume1_1.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume1_2.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 28 (source2.medium.phase,source1.medium.phase,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,volume1_1.regularFlow[1],volume1_1.regularFlow[2],volume1_1.regularFlow[3],volume1_2.regularFlow[1],volume1_2.regularFlow[2],volume1_2.regularFlow[3],volume2_1.regularFlow[1],volume2_1.regularFlow[2],volume2_2.regularFlow[1],volume2_2.regularFlow[2],sink2.medium.phase,volume2_2.inFlow[2],volume2_2.inFlow[1],volume2_1.inFlow[2],volume2_1.inFlow[1],sink1.medium.phase,volume1_2.inFlow[3],volume1_2.inFlow[2],volume1_2.inFlow[1],volume1_1.inFlow[3],volume1_1.inFlow[2],volume1_1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 261 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004312/8.537, allocations: 233.7 kB / 4.12 GB, free: 20.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001617/8.538, allocations: 0.5679 MB / 4.12 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005176/8.543, allocations: 4.479 MB / 4.125 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.869e-05/8.543, allocations: 44.14 kB / 4.125 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/8.543, allocations: 2.625 kB / 4.125 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/8.544, allocations: 11.47 kB / 4.125 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007625/8.551, allocations: 6.217 MB / 4.131 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/8.551, allocations: 6.5 kB / 4.131 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000727/8.552, allocations: 196.9 kB / 4.131 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/8.553, allocations: 421 kB / 4.131 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-05/8.553, allocations: 26.81 kB / 4.131 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/8.555, allocations: 2.937 MB / 4.134 GB, free: 16.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/8.555, allocations: 4.625 kB / 4.134 GB, free: 16.8 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006207/8.561, allocations: 4.753 MB / 4.139 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009952/8.562, allocations: 491.3 kB / 4.139 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/8.563, allocations: 7.375 kB / 4.139 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/8.564, allocations: 131.9 kB / 4.139 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/8.564, allocations: 113 kB / 4.14 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/8.564, allocations: 61.09 kB / 4.14 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001165/8.565, allocations: 0.863 MB / 4.14 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007462/8.573, allocations: 1.408 MB / 4.142 GB, free: 15.44 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (volume1_1.medium.h,volume1_2.medium.h,volume2_1.medium.h,volume2_2.medium.h) * Number of discrete variables: 26 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,source1.medium.phase,source2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 5,2 5,2 5,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.009855/8.583, allocations: 2.294 MB / 4.144 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004327/8.587, allocations: 2.463 MB / 4.147 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/8.587, allocations: 0.625 kB / 4.147 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002408/8.589, allocations: 1.858 MB / 4.148 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/8.593, allocations: 0.538 MB / 4.149 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00616/8.599, allocations: 3.817 MB / 4.153 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/8.6, allocations: 1.784 MB / 4.154 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of SimCode: time 1.673e-06/8.6, allocations: 0 / 4.154 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of Templates: time 0.0807/8.681, allocations: 56.3 MB / 4.209 GB, free: 10.77 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTemperature2/TestTemperature2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches