Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.Machines.TestWaterPumpDefaultCV,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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") [: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.00159/0.00159, allocations: 170.6 kB / 8.513 MB, free: 1.844 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.301/1.301, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.0009822/0.0009821, allocations: 89.91 kB / 281.2 MB, free: 5.449 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.2006/0.2006, allocations: 44.16 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.863e-06/6.903e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1428, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.072/6.215, allocations: 2.787 GB / 3.281 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/6.215, allocations: 85.06 kB / 3.281 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.429/7.644, allocations: 441.2 MB / 3.712 GB, free: 64.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.036e-05/7.644, allocations: 22.78 kB / 3.712 GB, free: 64.4 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007049/7.651, allocations: 1.79 MB / 3.714 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/7.651, allocations: 15.41 kB / 3.714 GB, free: 63.63 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002601/7.654, allocations: 348.5 kB / 3.714 GB, free: 63.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/7.655, allocations: 0.5832 MB / 3.715 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/7.655, allocations: 25.28 kB / 3.715 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/7.655, allocations: 35.19 kB / 3.715 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009/7.656, allocations: 0.56 MB / 3.715 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008982/7.657, allocations: 0.6816 MB / 3.716 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/7.657, allocations: 9.25 kB / 3.716 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.4e-05/7.657, allocations: 6.031 kB / 3.716 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/7.657, allocations: 20.66 kB / 3.716 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07427/7.731, allocations: 44.39 MB / 3.759 GB, free: 35.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007935/7.732, allocations: 415 kB / 3.76 GB, free: 35.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/7.732, allocations: 208.3 kB / 3.76 GB, free: 35.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04198/7.774, allocations: 24.1 MB / 3.783 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/7.774, allocations: 37.53 kB / 3.783 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=43): time 2.475e-06/7.774, allocations: 0 / 3.783 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=43): time 0.002708/7.777, allocations: 0.8502 MB / 3.784 GB, free: 19.74 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/7.777, allocations: 110.5 kB / 3.784 GB, free: 19.61 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005888/7.778, allocations: 426.4 kB / 3.785 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/7.778, allocations: 25.7 kB / 3.785 GB, free: 19.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/7.778, allocations: 296.9 kB / 3.785 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000101/7.778, allocations: 147.8 kB / 3.785 GB, free: 19.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-05/7.778, allocations: 0 / 3.785 GB, free: 19.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.239e-05/7.778, allocations: 365.2 kB / 3.786 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/7.779, allocations: 208.5 kB / 3.786 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003878/7.779, allocations: 382.7 kB / 3.786 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/7.78, allocations: 357.2 kB / 3.786 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/7.78, allocations: 2.031 kB / 3.786 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002953/7.783, allocations: 1.105 MB / 3.788 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005346/7.784, allocations: 2.008 MB / 3.789 GB, free: 32.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/7.784, allocations: 5.562 kB / 3.789 GB, free: 32.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/7.785, allocations: 294.4 kB / 3.79 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/7.786, allocations: 152.4 kB / 3.79 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/7.787, allocations: 0.9605 MB / 3.791 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008864/7.788, allocations: 134.2 kB / 3.791 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.567e-05/7.788, allocations: 37.23 kB / 3.791 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/7.788, allocations: 3.312 kB / 3.791 GB, free: 31.85 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002727/7.791, allocations: 0.7808 MB / 3.792 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/7.791, allocations: 5.844 kB / 3.792 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008668/7.792, allocations: 174.3 kB / 3.792 GB, free: 31.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006119/7.793, allocations: 171.4 kB / 3.792 GB, free: 31.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/7.794, allocations: 0.7893 MB / 3.793 GB, free: 31.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007141/7.795, allocations: 115.5 kB / 3.793 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/7.795, allocations: 36.02 kB / 3.793 GB, free: 31.24 MB / 0.5261 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 (59): * Single equations (assignments): 58 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001955/7.795, allocations: 121.3 kB / 3.793 GB, free: 31.13 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007672/7.796, allocations: 270.7 kB / 3.793 GB, free: 31.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003484/7.799, allocations: 2.531 MB / 3.796 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/7.799, allocations: 28.64 kB / 3.796 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/7.799, allocations: 3.656 kB / 3.796 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/7.799, allocations: 8.875 kB / 3.796 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004367/7.804, allocations: 3.289 MB / 3.799 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/7.804, allocations: 5.094 kB / 3.799 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/7.804, allocations: 66.64 kB / 3.799 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/7.805, allocations: 0.7592 MB / 3.8 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/7.805, allocations: 12.69 kB / 3.8 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/7.807, allocations: 1.325 MB / 3.801 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/7.807, allocations: 1.531 kB / 3.801 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003408/7.811, allocations: 2.084 MB / 3.803 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004132/7.811, allocations: 274.9 kB / 3.804 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/7.811, allocations: 9.062 kB / 3.804 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/7.812, allocations: 65.98 kB / 3.804 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/7.812, allocations: 48.53 kB / 3.804 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/7.812, allocations: 25.91 kB / 3.804 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005388/7.812, allocations: 391.1 kB / 3.804 GB, free: 29.28 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006594/7.819, allocations: 1.412 MB / 3.805 GB, free: 29.05 MB / 0.5261 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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.006232/7.825, allocations: 1.879 MB / 3.807 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00268/7.828, allocations: 1.403 MB / 3.809 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/7.828, allocations: 0 / 3.809 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/7.829, allocations: 0.9126 MB / 3.81 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/7.83, allocations: 266.3 kB / 3.81 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/7.833, allocations: 1.592 MB / 3.811 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006908/7.834, allocations: 1.13 MB / 3.812 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of SimCode: time 2.81e-07/7.834, allocations: 0 / 3.812 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of Templates: time 0.06394/7.898, allocations: 44.59 MB / 3.856 GB, free: 10.35 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefaultCV/TestWaterPumpDefaultCV.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches