Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001826/0.001826, allocations: 203.1 kB / 8.541 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 86.61 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.843e-06/6.853e-06, allocations: 4 kB / 452.6 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1417, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.859/7.001, allocations: 2.788 GB / 3.292 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/7.001, allocations: 85.03 kB / 3.292 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.552/8.553, allocations: 441.3 MB / 3.723 GB, free: 57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.016e-05/8.553, allocations: 14.91 kB / 3.723 GB, free: 56.99 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007116/8.56, allocations: 1.797 MB / 3.724 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/8.561, allocations: 8.938 kB / 3.724 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002862/8.563, allocations: 356.4 kB / 3.725 GB, free: 55.85 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/8.565, allocations: 0.5782 MB / 3.725 GB, free: 55.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.837e-05/8.565, allocations: 27 kB / 3.725 GB, free: 55.46 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/8.565, allocations: 34.88 kB / 3.725 GB, free: 55.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001436/8.566, allocations: 0.5702 MB / 3.726 GB, free: 55.26 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/8.568, allocations: 0.6759 MB / 3.727 GB, free: 54.89 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/8.568, allocations: 7.875 kB / 3.727 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.678e-05/8.568, allocations: 3.656 kB / 3.727 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/8.568, allocations: 24.91 kB / 3.727 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08716/8.655, allocations: 49.88 MB / 3.775 GB, free: 17.35 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/8.656, allocations: 420.2 kB / 3.776 GB, free: 16.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/8.656, allocations: 206.7 kB / 3.776 GB, free: 16.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05084/8.707, allocations: 27.18 MB / 3.803 GB, free: 5.195 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.173e-05/8.707, allocations: 39.22 kB / 3.803 GB, free: 5.148 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=43): time 3.096e-06/8.707, allocations: 0 / 3.803 GB, free: 5.148 MB / 0.5417 GB Notification: Performance of matching and sorting (n=43): time 0.003728/8.711, allocations: 0.8507 MB / 3.803 GB, free: 4.438 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/8.711, allocations: 111.7 kB / 3.804 GB, free: 4.305 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008037/8.712, allocations: 422.9 kB / 3.804 GB, free: 3.898 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.336e-05/8.712, allocations: 25.7 kB / 3.804 GB, free: 3.867 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/8.712, allocations: 299.5 kB / 3.804 GB, free: 3.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/8.712, allocations: 145.9 kB / 3.804 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/8.712, allocations: 0 / 3.804 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000166/8.712, allocations: 370.7 kB / 3.805 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/8.713, allocations: 205.3 kB / 3.805 GB, free: 2.852 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/8.713, allocations: 395 kB / 3.805 GB, free: 2.391 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/8.715, allocations: 349.5 kB / 3.806 GB, free: 2.047 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/8.715, allocations: 0 / 3.806 GB, free: 2.047 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003127/8.718, allocations: 1.104 MB / 3.807 GB, free: 0.9336 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.2529/8.971, allocations: 2.011 MB / 3.809 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/8.971, allocations: 3.562 kB / 3.809 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/8.973, allocations: 288.7 kB / 3.809 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/8.974, allocations: 159.5 kB / 3.809 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/8.976, allocations: 0.9622 MB / 3.81 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/8.978, allocations: 129 kB / 3.81 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/8.978, allocations: 38.58 kB / 3.81 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/8.978, allocations: 3.719 kB / 3.81 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004236/8.982, allocations: 0.781 MB / 3.811 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/8.983, allocations: 3.969 kB / 3.811 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/8.984, allocations: 184 kB / 3.811 GB, free: 126.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008993/8.985, allocations: 161.2 kB / 3.811 GB, free: 126.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/8.986, allocations: 0.7958 MB / 3.812 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/8.988, allocations: 110.8 kB / 3.812 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.439e-05/8.988, allocations: 32.03 kB / 3.812 GB, free: 125.7 MB / 0.5417 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.0002902/8.988, allocations: 129.4 kB / 3.812 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/8.989, allocations: 268.8 kB / 3.813 GB, free: 125.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004778/8.994, allocations: 2.531 MB / 3.815 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.412e-05/8.994, allocations: 29.59 kB / 3.815 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/8.994, allocations: 0 / 3.815 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/8.994, allocations: 3.844 kB / 3.815 GB, free: 125.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005888/9, allocations: 3.303 MB / 3.818 GB, free: 125.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/9, allocations: 3 kB / 3.818 GB, free: 125.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/9, allocations: 68.95 kB / 3.818 GB, free: 125.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/9.003, allocations: 0.7583 MB / 3.819 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/9.003, allocations: 16.28 kB / 3.819 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/9.004, allocations: 1.325 MB / 3.82 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/9.005, allocations: 3.312 kB / 3.82 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004811/9.009, allocations: 2.08 MB / 3.822 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005912/9.01, allocations: 277.2 kB / 3.823 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/9.01, allocations: 2.906 kB / 3.823 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008711/9.011, allocations: 60.61 kB / 3.823 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/9.011, allocations: 54.42 kB / 3.823 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/9.011, allocations: 26.66 kB / 3.823 GB, free: 124 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0006349/9.012, allocations: 384.2 kB / 3.823 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006493/9.018, allocations: 1.428 MB / 3.825 GB, free: 123.9 MB / 0.5417 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.008515/9.027, allocations: 1.88 MB / 3.826 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00275/9.03, allocations: 1.406 MB / 3.828 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/9.03, allocations: 3.938 kB / 3.828 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009037/9.031, allocations: 0.9171 MB / 3.829 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/9.032, allocations: 264.6 kB / 3.829 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/9.035, allocations: 1.59 MB / 3.831 GB, free: 123.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006394/9.035, allocations: 1.132 MB / 3.832 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/9.035, allocations: 3.656 kB / 3.832 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.0577/9.093, allocations: 44.62 MB / 3.875 GB, free: 121.5 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches