Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 178.7 kB / 8.519 MB, free: 1.859 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.363/1.363, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.001058/0.001058, allocations: 81.86 kB / 281.2 MB, free: 5.453 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.2241/0.2241, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.823e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1599, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.111/6.271, allocations: 2.786 GB / 3.28 GB, free: 155 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/6.271, allocations: 85.17 kB / 3.28 GB, free: 155 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.23/7.501, allocations: 440.1 MB / 3.71 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.324e-05/7.501, allocations: 19.72 kB / 3.71 GB, free: 64.95 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.006272/7.507, allocations: 1.761 MB / 3.712 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/7.507, allocations: 11.5 kB / 3.712 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002526/7.51, allocations: 347 kB / 3.712 GB, free: 64.14 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009651/7.511, allocations: 0.5671 MB / 3.713 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/7.511, allocations: 30.92 kB / 3.713 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-05/7.511, allocations: 35.05 kB / 3.713 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008217/7.512, allocations: 0.5376 MB / 3.714 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/7.513, allocations: 0.6631 MB / 3.714 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/7.513, allocations: 5.406 kB / 3.714 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/7.513, allocations: 0 / 3.714 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/7.513, allocations: 23.22 kB / 3.714 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07427/7.587, allocations: 44.41 MB / 3.758 GB, free: 36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/7.588, allocations: 293.9 kB / 3.758 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/7.588, allocations: 194.7 kB / 3.758 GB, free: 35.97 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04137/7.629, allocations: 24.09 MB / 3.782 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/7.629, allocations: 35.73 kB / 3.782 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=39): time 2.766e-06/7.629, allocations: 0 / 3.782 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.00258/7.632, allocations: 0.8027 MB / 3.782 GB, free: 20.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/7.632, allocations: 109.2 kB / 3.782 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004826/7.632, allocations: 415.9 kB / 3.783 GB, free: 19.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/7.632, allocations: 25.7 kB / 3.783 GB, free: 19.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/7.633, allocations: 292.1 kB / 3.783 GB, free: 19.73 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.989e-05/7.633, allocations: 131.2 kB / 3.783 GB, free: 19.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/7.633, allocations: 0 / 3.783 GB, free: 19.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.389e-05/7.633, allocations: 361.3 kB / 3.784 GB, free: 19.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/7.633, allocations: 187.8 kB / 3.784 GB, free: 19.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/7.633, allocations: 366.4 kB / 3.784 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/7.635, allocations: 331.9 kB / 3.784 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/7.635, allocations: 3.906 kB / 3.784 GB, free: 19.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002704/7.637, allocations: 1.023 MB / 3.785 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002993/7.638, allocations: 1.999 MB / 3.787 GB, free: 16.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/7.638, allocations: 5.906 kB / 3.787 GB, free: 16.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000776/7.638, allocations: 191 kB / 3.788 GB, free: 16.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/7.639, allocations: 138.8 kB / 3.788 GB, free: 16.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/7.641, allocations: 0.893 MB / 3.789 GB, free: 32.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008516/7.641, allocations: 130.6 kB / 3.789 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-05/7.642, allocations: 35.8 kB / 3.789 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/7.642, allocations: 3.344 kB / 3.789 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002563/7.644, allocations: 0.7336 MB / 3.79 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/7.644, allocations: 5.562 kB / 3.79 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008554/7.645, allocations: 174.2 kB / 3.79 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/7.646, allocations: 148.3 kB / 3.79 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/7.647, allocations: 0.7963 MB / 3.791 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006623/7.647, allocations: 98.78 kB / 3.791 GB, free: 31.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/7.647, allocations: 34.08 kB / 3.791 GB, free: 31.76 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 (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.0001792/7.648, allocations: 134.4 kB / 3.791 GB, free: 31.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000786/7.648, allocations: 267.3 kB / 3.791 GB, free: 31.61 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003314/7.652, allocations: 2.469 MB / 3.794 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.248e-05/7.652, allocations: 28.86 kB / 3.794 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/7.652, allocations: 0 / 3.794 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/7.652, allocations: 5.062 kB / 3.794 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003639/7.655, allocations: 3.127 MB / 3.797 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/7.655, allocations: 1.094 kB / 3.797 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/7.656, allocations: 65.42 kB / 3.797 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/7.657, allocations: 0.6918 MB / 3.797 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/7.657, allocations: 10.16 kB / 3.797 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/7.659, allocations: 1.262 MB / 3.799 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/7.659, allocations: 1.188 kB / 3.799 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002973/7.662, allocations: 1.956 MB / 3.801 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003719/7.662, allocations: 264.7 kB / 3.801 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/7.662, allocations: 9.906 kB / 3.801 GB, free: 29.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005316/7.663, allocations: 70.28 kB / 3.801 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.475e-05/7.663, allocations: 42.47 kB / 3.801 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/7.663, allocations: 25.03 kB / 3.801 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004478/7.664, allocations: 377.5 kB / 3.801 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005948/7.67, allocations: 1.405 MB / 3.803 GB, free: 29.56 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,$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.007793/7.677, allocations: 1.876 MB / 3.804 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002853/7.68, allocations: 1.331 MB / 3.806 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/7.68, allocations: 3.938 kB / 3.806 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009615/7.681, allocations: 0.8949 MB / 3.807 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/7.683, allocations: 255.4 kB / 3.807 GB, free: 29.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/7.685, allocations: 1.561 MB / 3.808 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000702/7.686, allocations: 1.113 MB / 3.809 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of SimCode: time 5.01e-07/7.686, allocations: 0 / 3.809 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of Templates: time 0.09561/7.782, allocations: 43.67 MB / 3.852 GB, free: 12.99 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefault/TestWaterPumpDefault.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches