Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002492/0.002491, allocations: 171.8 kB / 8.149 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.752/1.752, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001386/0.001385, allocations: 93.28 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3067/0.3067, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.616e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3128, allocations: 58.85 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.95/6.263, allocations: 2.781 GB / 3.246 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/6.264, allocations: 93.7 kB / 3.246 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.093/8.356, allocations: 435.5 MB / 3.672 GB, free: 57.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.885e-05/8.356, allocations: 19.91 kB / 3.672 GB, free: 57.2 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.007952/8.364, allocations: 1.757 MB / 3.673 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/8.364, allocations: 7.438 kB / 3.673 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004304/8.369, allocations: 353.7 kB / 3.674 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/8.371, allocations: 0.5667 MB / 3.674 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.867e-05/8.371, allocations: 28.25 kB / 3.674 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/8.371, allocations: 34.91 kB / 3.674 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001569/8.373, allocations: 0.5388 MB / 3.675 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/8.374, allocations: 0.6643 MB / 3.675 GB, free: 56.05 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/8.374, allocations: 0 / 3.675 GB, free: 56.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.941e-05/8.374, allocations: 3.969 kB / 3.675 GB, free: 56.05 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.834e-05/8.374, allocations: 23.73 kB / 3.675 GB, free: 56.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1452/8.519, allocations: 44.4 MB / 3.719 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007505/8.52, allocations: 303.3 kB / 3.719 GB, free: 28.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/8.521, allocations: 201.1 kB / 3.719 GB, free: 28.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08355/8.604, allocations: 24.08 MB / 3.743 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/8.604, allocations: 37.78 kB / 3.743 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=39): time 3.266e-06/8.604, allocations: 0 / 3.743 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.004024/8.608, allocations: 0.8019 MB / 3.744 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/8.609, allocations: 106.8 kB / 3.744 GB, free: 28.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007816/8.609, allocations: 415.7 kB / 3.744 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001075/8.609, allocations: 25.7 kB / 3.744 GB, free: 28.67 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/8.61, allocations: 331.2 kB / 3.744 GB, free: 28.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/8.61, allocations: 128.8 kB / 3.745 GB, free: 28.33 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/8.61, allocations: 3.719 kB / 3.745 GB, free: 28.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001458/8.61, allocations: 331.4 kB / 3.745 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005535/8.611, allocations: 193.4 kB / 3.745 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/8.611, allocations: 362.7 kB / 3.745 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001992/8.613, allocations: 336 kB / 3.746 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/8.613, allocations: 0 / 3.746 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.004582/8.618, allocations: 0.9947 MB / 3.747 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008425/8.619, allocations: 2 MB / 3.749 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/8.619, allocations: 5.906 kB / 3.749 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/8.62, allocations: 178.2 kB / 3.749 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/8.621, allocations: 144 kB / 3.749 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002781/8.624, allocations: 0.8857 MB / 3.75 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/8.625, allocations: 104.7 kB / 3.75 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/8.625, allocations: 36.59 kB / 3.75 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/8.625, allocations: 3.938 kB / 3.75 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004428/8.63, allocations: 0.7264 MB / 3.751 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/8.63, allocations: 3.969 kB / 3.751 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/8.631, allocations: 160.6 kB / 3.751 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/8.632, allocations: 150.5 kB / 3.751 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/8.634, allocations: 0.7781 MB / 3.752 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/8.636, allocations: 107.2 kB / 3.752 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.904e-05/8.636, allocations: 34.38 kB / 3.752 GB, free: 24.46 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002587/8.636, allocations: 53.88 kB / 3.752 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/8.637, allocations: 268.4 kB / 3.752 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005582/8.643, allocations: 2.466 MB / 3.755 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.538e-05/8.643, allocations: 26.5 kB / 3.755 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/8.643, allocations: 0 / 3.755 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/8.643, allocations: 7.781 kB / 3.755 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00548/8.648, allocations: 3.142 MB / 3.758 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/8.648, allocations: 3.75 kB / 3.758 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000521/8.649, allocations: 67.78 kB / 3.758 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/8.651, allocations: 0.6849 MB / 3.758 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.999e-05/8.651, allocations: 13.19 kB / 3.758 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/8.653, allocations: 1.268 MB / 3.76 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/8.653, allocations: 2.719 kB / 3.76 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004259/8.657, allocations: 1.949 MB / 3.762 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/8.658, allocations: 265 kB / 3.762 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/8.658, allocations: 3.688 kB / 3.762 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/8.659, allocations: 74.28 kB / 3.762 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/8.659, allocations: 41.19 kB / 3.762 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/8.66, allocations: 21.78 kB / 3.762 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006796/8.66, allocations: 377.2 kB / 3.762 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006651/8.667, allocations: 1.412 MB / 3.764 GB, free: 22.38 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01115/8.678, allocations: 1.855 MB / 3.766 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004003/8.682, allocations: 1.323 MB / 3.767 GB, free: 21.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.896e-06/8.682, allocations: 4.281 kB / 3.767 GB, free: 21.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001405/8.684, allocations: 0.8985 MB / 3.768 GB, free: 21.94 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/8.686, allocations: 247.2 kB / 3.768 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/8.69, allocations: 1.589 MB / 3.769 GB, free: 21.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/8.691, allocations: 1.118 MB / 3.771 GB, free: 20.83 MB / 0.5105 GB Notification: Performance of SimCode: time 1.022e-06/8.691, allocations: 0 / 3.771 GB, free: 20.83 MB / 0.5105 GB Notification: Performance of Templates: time 0.0768/8.768, allocations: 35.98 MB / 3.806 GB, free: 16.07 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefault/TestWaterPumpDefault.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches