Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001106/0.001106, allocations: 203 kB / 8.543 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009625/0.0009625, allocations: 94.22 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1971/0.1971, allocations: 45.14 MB / 383.3 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.184e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1169, allocations: 63.25 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.347/6.464, allocations: 2.771 GB / 3.275 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/6.464, allocations: 87.28 kB / 3.275 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.053/9.517, allocations: 0.8118 GB / 4.087 GB, free: 46.83 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001265/9.517, allocations: 48.83 kB / 4.087 GB, free: 46.82 MB / 0.5573 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.0125/9.53, allocations: 3.009 MB / 4.09 GB, free: 45.52 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/9.53, allocations: 10.16 kB / 4.09 GB, free: 45.52 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007951/9.538, allocations: 0.9108 MB / 4.091 GB, free: 45.42 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003536/9.541, allocations: 1.115 MB / 4.092 GB, free: 45.09 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/9.542, allocations: 400.7 kB / 4.092 GB, free: 44.77 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003558/9.542, allocations: 101.1 kB / 4.092 GB, free: 44.77 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003461/9.545, allocations: 1.905 MB / 4.094 GB, free: 44.76 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003502/9.549, allocations: 2.414 MB / 4.096 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.775e-05/9.549, allocations: 14.5 kB / 4.096 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002233/9.549, allocations: 10.16 kB / 4.096 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-05/9.549, allocations: 89.94 kB / 4.096 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/9.566, allocations: 16.75 MB / 4.113 GB, free: 32.1 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009/9.567, allocations: 497.6 kB / 4.113 GB, free: 32.08 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006103/9.568, allocations: 390.8 kB / 4.114 GB, free: 32.07 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00103/9.569, allocations: 0.6876 MB / 4.114 GB, free: 31.51 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/9.569, allocations: 48.28 kB / 4.114 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=95): time 3.737e-06/9.569, allocations: 0 / 4.114 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=111): time 0.0109/9.58, allocations: 3.382 MB / 4.118 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/9.58, allocations: 173.2 kB / 4.118 GB, free: 30.61 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/9.582, allocations: 1.004 MB / 4.119 GB, free: 30.41 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000163/9.582, allocations: 25.7 kB / 4.119 GB, free: 30.38 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006251/9.583, allocations: 0.86 MB / 4.12 GB, free: 29.81 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003634/9.583, allocations: 391 kB / 4.12 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/9.583, allocations: 2.344 kB / 4.12 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002355/9.583, allocations: 455.1 kB / 4.12 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009384/9.584, allocations: 0.5529 MB / 4.121 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/9.586, allocations: 1.77 MB / 4.123 GB, free: 27.68 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/9.588, allocations: 0.9164 MB / 4.124 GB, free: 27.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-05/9.588, allocations: 11.75 kB / 4.124 GB, free: 27.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=293) (initialization): time 0.00687/9.595, allocations: 2.847 MB / 4.126 GB, free: 27.51 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/9.595, allocations: 3.406 kB / 4.126 GB, free: 27.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/9.595, allocations: 42.53 kB / 4.126 GB, free: 27.51 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/9.597, allocations: 436.4 kB / 4.127 GB, free: 27.48 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/9.598, allocations: 0.5363 MB / 4.127 GB, free: 27.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/9.601, allocations: 2.843 MB / 4.13 GB, free: 25.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/9.603, allocations: 205.7 kB / 4.13 GB, free: 25.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003235/9.604, allocations: 147.1 kB / 4.131 GB, free: 25.38 MB / 0.5573 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.0007148/9.604, allocations: 230.1 kB / 4.131 GB, free: 25.25 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/9.606, allocations: 0.5699 MB / 4.131 GB, free: 25.17 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006592/9.613, allocations: 4.491 MB / 4.136 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.929e-05/9.613, allocations: 47.83 kB / 4.136 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/9.613, allocations: 0 / 4.136 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/9.613, allocations: 3 kB / 4.136 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/9.623, allocations: 6.222 MB / 4.142 GB, free: 24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/9.623, allocations: 4.875 kB / 4.142 GB, free: 24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/9.624, allocations: 192.4 kB / 4.142 GB, free: 24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/9.625, allocations: 433.6 kB / 4.142 GB, free: 23.97 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/9.625, allocations: 24.3 kB / 4.142 GB, free: 23.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/9.628, allocations: 2.939 MB / 4.145 GB, free: 21.87 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.425e-06/9.628, allocations: 9.594 kB / 4.145 GB, free: 21.87 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006596/9.634, allocations: 4.745 MB / 4.15 GB, free: 21.02 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/9.635, allocations: 484.9 kB / 4.15 GB, free: 20.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005372/9.636, allocations: 13.27 kB / 4.15 GB, free: 20.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/9.638, allocations: 129.7 kB / 4.151 GB, free: 20.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/9.638, allocations: 115.4 kB / 4.151 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/9.638, allocations: 51.64 kB / 4.151 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001621/9.64, allocations: 0.8668 MB / 4.152 GB, free: 20.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007896/9.648, allocations: 1.415 MB / 4.153 GB, free: 20.51 MB / 0.5573 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.01089/9.659, allocations: 2.318 MB / 4.155 GB, free: 20.11 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004695/9.663, allocations: 2.46 MB / 4.158 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/9.663, allocations: 0.625 kB / 4.158 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002709/9.666, allocations: 1.855 MB / 4.159 GB, free: 20.06 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003761/9.67, allocations: 0.5323 MB / 4.16 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008071/9.678, allocations: 3.808 MB / 4.164 GB, free: 19.24 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/9.68, allocations: 1.777 MB / 4.165 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.703e-06/9.68, allocations: 3.938 kB / 4.165 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of Templates: time 0.09068/9.771, allocations: 56.3 MB / 4.22 GB, free: 11.76 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches