Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.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.TestTemperature1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1.T|Tmix2.T|Tdiff|volume1.medium.h|volume2.medium.h",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1.T|Tmix2.T|Tdiff|volume1.medium.h|volume2.medium.h",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1") [: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.001409/0.001409, allocations: 204 kB / 8.539 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009728/0.0009728, allocations: 92.39 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1975/0.1975, allocations: 45.15 MB / 383.4 MB, free: 0.625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.268e-06/9.418e-06, allocations: 4 kB / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 63.24 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.515/6.628, allocations: 2.776 GB / 3.279 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/6.628, allocations: 79.3 kB / 3.279 GB, free: 119.6 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 2.657/9.285, allocations: 0.7448 GB / 4.024 GB, free: 1.301 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0001655/9.285, allocations: 43.91 kB / 4.024 GB, free: 1.262 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 321 * Number of variables: 321 Notification: Performance of Generate backend data structure: time 0.3074/9.593, allocations: 2.695 MB / 4.027 GB, free: 94.43 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/9.593, allocations: 7.812 kB / 4.027 GB, free: 94.43 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006647/9.599, allocations: 0.8278 MB / 4.028 GB, free: 94.36 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/9.602, allocations: 0.959 MB / 4.029 GB, free: 94.1 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/9.602, allocations: 190.7 kB / 4.029 GB, free: 93.97 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/9.602, allocations: 73.97 kB / 4.029 GB, free: 93.97 MB / 0.5574 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002275/9.604, allocations: 1.33 MB / 4.03 GB, free: 93.96 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/9.607, allocations: 1.647 MB / 4.032 GB, free: 93.44 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/9.607, allocations: 7.125 kB / 4.032 GB, free: 93.44 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/9.607, allocations: 6.844 kB / 4.032 GB, free: 93.44 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.884e-05/9.607, allocations: 65.72 kB / 4.032 GB, free: 93.43 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1374/9.744, allocations: 85.09 MB / 4.115 GB, free: 38.38 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/9.745, allocations: 425.5 kB / 4.115 GB, free: 38.36 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/9.746, allocations: 346.1 kB / 4.116 GB, free: 38.34 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009446/9.747, allocations: 0.6798 MB / 4.116 GB, free: 37.77 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/9.747, allocations: 45.81 kB / 4.116 GB, free: 37.73 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=78): time 2.305e-06/9.747, allocations: 4 kB / 4.116 GB, free: 37.73 MB / 0.5574 GB Notification: Performance of matching and sorting (n=86): time 0.01139/9.758, allocations: 3.326 MB / 4.12 GB, free: 37.21 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/9.758, allocations: 168.4 kB / 4.12 GB, free: 37.02 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008524/9.759, allocations: 0.7406 MB / 4.121 GB, free: 36.86 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 6.671e-05/9.759, allocations: 25.7 kB / 4.121 GB, free: 36.83 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/9.759, allocations: 0.6022 MB / 4.121 GB, free: 36.49 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/9.76, allocations: 298.8 kB / 4.121 GB, free: 36.31 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/9.76, allocations: 4 kB / 4.121 GB, free: 36.3 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.000113/9.76, allocations: 410.5 kB / 4.122 GB, free: 35.99 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005894/9.76, allocations: 423.7 kB / 4.122 GB, free: 35.99 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008485/9.761, allocations: 1.039 MB / 4.123 GB, free: 35.19 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/9.764, allocations: 0.8314 MB / 4.124 GB, free: 35.16 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/9.764, allocations: 10.59 kB / 4.124 GB, free: 35.15 MB / 0.5574 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.005708/9.77, allocations: 2.277 MB / 4.126 GB, free: 35.01 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.00262/9.772, allocations: 8.077 MB / 4.134 GB, free: 42.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/9.772, allocations: 24.8 kB / 4.134 GB, free: 42.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/9.773, allocations: 123.6 kB / 4.134 GB, free: 42.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/9.774, allocations: 422.3 kB / 4.135 GB, free: 42.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009041/9.775, allocations: 1.23 MB / 4.136 GB, free: 41.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/9.776, allocations: 186.2 kB / 4.136 GB, free: 41.43 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/9.777, allocations: 93.7 kB / 4.136 GB, free: 41.43 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/9.777, allocations: 2.406 kB / 4.136 GB, free: 41.43 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003181/9.78, allocations: 1.459 MB / 4.138 GB, free: 41.38 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/9.78, allocations: 24.25 kB / 4.138 GB, free: 41.38 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/9.78, allocations: 120.5 kB / 4.138 GB, free: 41.36 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/9.781, allocations: 421 kB / 4.138 GB, free: 41.36 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000821/9.782, allocations: 1.229 MB / 4.139 GB, free: 40.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/9.784, allocations: 163.5 kB / 4.14 GB, free: 40.29 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/9.784, allocations: 96.05 kB / 4.14 GB, free: 40.29 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 18 (volume1.regularFlow[1],volume1.regularFlow[2],volume2.regularFlow[1],volume2.regularFlow[2],volume1.heatTransfer.states[1].phase,source1.medium.phase,volume2.heatTransfer.states[1].phase,source2.medium.phase,sink2.medium.phase,volume2.inFlow[2],volume2.inFlow[1],sink1.medium.phase,volume1.inFlow[2],volume1.inFlow[1],orifice2.state_b.phase,orifice2.state_a.phase,orifice1.state_b.phase,orifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 188 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004112/9.784, allocations: 175 kB / 4.14 GB, free: 40.16 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/9.786, allocations: 0.5154 MB / 4.14 GB, free: 40.11 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/9.791, allocations: 4.133 MB / 4.144 GB, free: 39.77 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/9.791, allocations: 46.44 kB / 4.144 GB, free: 39.77 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/9.791, allocations: 4 kB / 4.144 GB, free: 39.77 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/9.791, allocations: 11.19 kB / 4.144 GB, free: 39.77 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006545/9.798, allocations: 5.756 MB / 4.15 GB, free: 39.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/9.798, allocations: 4.781 kB / 4.15 GB, free: 39.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008407/9.798, allocations: 211.1 kB / 4.15 GB, free: 39.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004492/9.799, allocations: 165.8 kB / 4.15 GB, free: 39.07 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-05/9.799, allocations: 20.03 kB / 4.15 GB, free: 39.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008284/9.8, allocations: 1.292 MB / 4.152 GB, free: 38.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/9.8, allocations: 1.781 kB / 4.152 GB, free: 38.02 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00565/9.805, allocations: 4.478 MB / 4.156 GB, free: 37.55 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006933/9.806, allocations: 373.3 kB / 4.156 GB, free: 37.36 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/9.806, allocations: 7.875 kB / 4.156 GB, free: 37.36 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009432/9.807, allocations: 115.3 kB / 4.157 GB, free: 37.34 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/9.807, allocations: 89.27 kB / 4.157 GB, free: 37.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.31e-05/9.808, allocations: 42.94 kB / 4.157 GB, free: 37.34 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.000673/9.808, allocations: 0.5164 MB / 4.157 GB, free: 37.23 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00672/9.815, allocations: 1.537 MB / 4.159 GB, free: 37.18 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (volume1.medium.p,volume1.medium.h,volume2.medium.p,volume2.medium.h) * Number of discrete variables: 30 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,volume1.heatTransfer.states[1].phase,source1.medium.phase,volume2.heatTransfer.states[1].phase,source2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 89 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008356/9.823, allocations: 2.188 MB / 4.161 GB, free: 36.82 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004824/9.828, allocations: 2.926 MB / 4.164 GB, free: 36.77 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/9.828, allocations: 0 / 4.164 GB, free: 36.77 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001775/9.83, allocations: 1.771 MB / 4.165 GB, free: 36.77 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/9.833, allocations: 451.5 kB / 4.166 GB, free: 36.73 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005014/9.838, allocations: 3.306 MB / 4.169 GB, free: 36.01 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/9.839, allocations: 1.579 MB / 4.171 GB, free: 35.26 MB / 0.573 GB Notification: Performance of SimCode: time 9.22e-07/9.839, allocations: 0 / 4.171 GB, free: 35.26 MB / 0.573 GB Notification: Performance of Templates: time 0.07988/9.919, allocations: 56.74 MB / 4.226 GB, free: 31.67 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTemperature1/TestTemperature1.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches