Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.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.TestTemperature1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Tmix1.T|Tmix2.T|Tdiff|volume1.medium.h|volume2.medium.h",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 180 kB / 8.519 MB, free: 1.848 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.197/1.197, allocations: 221.4 MB / 230.3 MB, free: 7.738 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.000907/0.0009069, allocations: 84.73 kB / 281.2 MB, free: 5.504 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.1667/0.1667, allocations: 44.16 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.384e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 61.9 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.732/5.845, allocations: 2.775 GB / 3.269 GB, free: 150 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/5.846, allocations: 86.66 kB / 3.269 GB, free: 150 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.415/8.261, allocations: 0.7446 GB / 4.013 GB, free: 40.43 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001104/8.261, allocations: 42.34 kB / 4.013 GB, free: 40.42 MB / 0.5261 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.01082/8.271, allocations: 2.702 MB / 4.016 GB, free: 38.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/8.272, allocations: 12.38 kB / 4.016 GB, free: 38.92 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006622/8.278, allocations: 0.8304 MB / 4.017 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/8.281, allocations: 0.9578 MB / 4.018 GB, free: 38.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/8.281, allocations: 191 kB / 4.018 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/8.281, allocations: 71.19 kB / 4.018 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002116/8.283, allocations: 1.324 MB / 4.019 GB, free: 37.67 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/8.285, allocations: 1.658 MB / 4.021 GB, free: 36.72 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.03e-05/8.285, allocations: 7.188 kB / 4.021 GB, free: 36.72 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/8.285, allocations: 10.53 kB / 4.021 GB, free: 36.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.775e-05/8.285, allocations: 55.64 kB / 4.021 GB, free: 36.71 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3662/8.652, allocations: 75.55 MB / 4.095 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/8.653, allocations: 432.7 kB / 4.095 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000595/8.653, allocations: 351.5 kB / 4.096 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009893/8.654, allocations: 0.6815 MB / 4.096 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/8.654, allocations: 50.52 kB / 4.096 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=78): time 4.078e-06/8.654, allocations: 0 / 4.096 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=86): time 0.01273/8.667, allocations: 3.329 MB / 4.099 GB, free: 108.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.154e-05/8.667, allocations: 161.7 kB / 4.1 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001537/8.669, allocations: 0.7385 MB / 4.1 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001428/8.669, allocations: 25.7 kB / 4.1 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004806/8.669, allocations: 0.6015 MB / 4.101 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/8.67, allocations: 303.7 kB / 4.101 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/8.67, allocations: 0 / 4.101 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002081/8.67, allocations: 413.8 kB / 4.102 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007461/8.671, allocations: 422.2 kB / 4.102 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/8.672, allocations: 1.034 MB / 4.103 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/8.675, allocations: 0.8428 MB / 4.104 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-05/8.675, allocations: 7.281 kB / 4.104 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.006193/8.681, allocations: 2.268 MB / 4.106 GB, free: 106.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001774/8.683, allocations: 8.076 MB / 4.114 GB, free: 97.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.836e-05/8.683, allocations: 30.55 kB / 4.114 GB, free: 97.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/8.683, allocations: 124 kB / 4.114 GB, free: 97.74 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/8.685, allocations: 421.1 kB / 4.115 GB, free: 97.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008278/8.686, allocations: 1.224 MB / 4.116 GB, free: 96.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/8.688, allocations: 187.6 kB / 4.116 GB, free: 96.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/8.688, allocations: 95.67 kB / 4.116 GB, free: 96.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/8.688, allocations: 3.625 kB / 4.116 GB, free: 96.7 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003718/8.692, allocations: 1.465 MB / 4.117 GB, free: 96.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.591e-05/8.692, allocations: 23.25 kB / 4.117 GB, free: 96.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/8.692, allocations: 117.7 kB / 4.118 GB, free: 96.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/8.694, allocations: 421.1 kB / 4.118 GB, free: 96.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008622/8.695, allocations: 1.227 MB / 4.119 GB, free: 95.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/8.697, allocations: 170.4 kB / 4.119 GB, free: 95.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/8.697, allocations: 85.2 kB / 4.119 GB, free: 95.61 MB / 0.5573 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.0004959/8.697, allocations: 173.1 kB / 4.12 GB, free: 95.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001897/8.699, allocations: 0.5166 MB / 4.12 GB, free: 95.44 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005989/8.705, allocations: 4.138 MB / 4.124 GB, free: 95.13 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.232e-05/8.705, allocations: 56.86 kB / 4.124 GB, free: 95.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/8.705, allocations: 0 / 4.124 GB, free: 95.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/8.705, allocations: 7.172 kB / 4.124 GB, free: 95.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00802/8.713, allocations: 5.751 MB / 4.13 GB, free: 94.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/8.713, allocations: 4.719 kB / 4.13 GB, free: 94.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008344/8.714, allocations: 217.7 kB / 4.13 GB, free: 94.47 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004581/8.715, allocations: 163.8 kB / 4.13 GB, free: 94.45 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-05/8.715, allocations: 18.39 kB / 4.13 GB, free: 94.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007017/8.715, allocations: 1.301 MB / 4.131 GB, free: 93.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/8.715, allocations: 5.438 kB / 4.131 GB, free: 93.41 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006618/8.722, allocations: 4.465 MB / 4.136 GB, free: 92.94 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009157/8.723, allocations: 376.1 kB / 4.136 GB, free: 92.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003975/8.723, allocations: 11.66 kB / 4.136 GB, free: 92.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/8.725, allocations: 107.9 kB / 4.136 GB, free: 92.75 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/8.725, allocations: 92.61 kB / 4.136 GB, free: 92.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/8.725, allocations: 39.11 kB / 4.136 GB, free: 92.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.000797/8.726, allocations: 0.5229 MB / 4.137 GB, free: 92.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008514/8.734, allocations: 1.524 MB / 4.138 GB, free: 92.64 MB / 0.5573 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.01034/8.745, allocations: 2.177 MB / 4.141 GB, free: 92.43 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005079/8.75, allocations: 2.923 MB / 4.143 GB, free: 92.39 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/8.75, allocations: 0 / 4.143 GB, free: 92.39 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00208/8.752, allocations: 1.769 MB / 4.145 GB, free: 92.38 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002868/8.755, allocations: 459.3 kB / 4.146 GB, free: 92.38 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006913/8.762, allocations: 3.31 MB / 4.149 GB, free: 91.79 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/8.764, allocations: 1.582 MB / 4.15 GB, free: 91.06 MB / 0.5573 GB Notification: Performance of SimCode: time 1.322e-06/8.764, allocations: 2.938 kB / 4.15 GB, free: 91.06 MB / 0.5573 GB Notification: Performance of Templates: time 0.07603/8.84, allocations: 56.7 MB / 4.206 GB, free: 88.68 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches