Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.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) 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(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem") translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem") [: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.0009736/0.0009736, allocations: 181.6 kB / 8.132 MB, free: 2.215 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.238/1.238, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0009623/0.0009623, allocations: 100 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.376e-06/8.406e-06, allocations: 4 kB / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3039, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.277/6.581, allocations: 2.797 GB / 3.175 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/6.582, allocations: 80.5 kB / 3.175 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.048/9.63, allocations: 0.7093 GB / 3.884 GB, free: 41.4 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001126/9.63, allocations: 35.83 kB / 3.884 GB, free: 41.4 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01198/9.642, allocations: 2.74 MB / 3.887 GB, free: 40.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/9.642, allocations: 9.625 kB / 3.887 GB, free: 40.34 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004981/9.647, allocations: 0.602 MB / 3.888 GB, free: 40.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/9.65, allocations: 1.001 MB / 3.889 GB, free: 39.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/9.651, allocations: 147 kB / 3.889 GB, free: 39.84 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/9.651, allocations: 65.19 kB / 3.889 GB, free: 39.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002418/9.653, allocations: 1.429 MB / 3.89 GB, free: 39.84 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/9.656, allocations: 1.637 MB / 3.892 GB, free: 39.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/9.656, allocations: 3.969 kB / 3.892 GB, free: 39.48 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/9.656, allocations: 5.594 kB / 3.892 GB, free: 39.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.038e-05/9.656, allocations: 82.06 kB / 3.892 GB, free: 39.47 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2927/9.949, allocations: 133.5 MB / 4.022 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/9.951, allocations: 0.7491 MB / 4.023 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/9.953, allocations: 0.5936 MB / 4.024 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4176/10.37, allocations: 63.5 MB / 4.086 GB, free: 137.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/10.37, allocations: 0.7353 MB / 4.086 GB, free: 137.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 3.247e-06/10.37, allocations: 3.906 kB / 4.086 GB, free: 137.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=107): time 0.01727/10.39, allocations: 5.469 MB / 4.092 GB, free: 136.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/10.39, allocations: 203.6 kB / 4.092 GB, free: 136.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/10.39, allocations: 0.7345 MB / 4.093 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001263/10.39, allocations: 25.7 kB / 4.093 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/10.39, allocations: 0.5095 MB / 4.093 GB, free: 136.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000366/10.39, allocations: 355.6 kB / 4.094 GB, free: 136 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.415e-05/10.39, allocations: 0 / 4.094 GB, free: 136 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001149/10.39, allocations: 361.7 kB / 4.094 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009458/10.39, allocations: 0.646 MB / 4.095 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/10.39, allocations: 1.038 MB / 4.096 GB, free: 135.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004131/10.4, allocations: 1.308 MB / 4.097 GB, free: 135.2 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/10.4, allocations: 0 / 4.097 GB, free: 135.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007935/10.41, allocations: 3.107 MB / 4.1 GB, free: 135 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009371/10.41, allocations: 4.355 MB / 4.104 GB, free: 130.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/10.41, allocations: 14.12 kB / 4.104 GB, free: 130.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/10.41, allocations: 0.7051 MB / 4.105 GB, free: 130.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/10.41, allocations: 297 kB / 4.105 GB, free: 130.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005566/10.42, allocations: 5.822 MB / 4.111 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/10.42, allocations: 98.2 kB / 4.111 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/10.42, allocations: 76.53 kB / 4.111 GB, free: 126 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/10.42, allocations: 8.625 kB / 4.111 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006388/10.42, allocations: 2.45 MB / 4.113 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/10.42, allocations: 14.95 kB / 4.113 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/10.43, allocations: 0.6277 MB / 4.114 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/10.43, allocations: 294 kB / 4.114 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004662/10.43, allocations: 5.059 MB / 4.119 GB, free: 122 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/10.43, allocations: 99.44 kB / 4.119 GB, free: 122 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/10.43, allocations: 71.84 kB / 4.119 GB, free: 122 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005893/10.43, allocations: 157.6 kB / 4.12 GB, free: 121.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/10.44, allocations: 408.8 kB / 4.12 GB, free: 121.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008316/10.44, allocations: 4.655 MB / 4.124 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.481e-05/10.44, allocations: 43.25 kB / 4.124 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/10.44, allocations: 6.906 kB / 4.124 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/10.44, allocations: 3.891 kB / 4.124 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/10.45, allocations: 6.328 MB / 4.131 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/10.45, allocations: 7.188 kB / 4.131 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/10.46, allocations: 158.8 kB / 4.131 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/10.46, allocations: 1.06 MB / 4.132 GB, free: 121 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/10.46, allocations: 22.81 kB / 4.132 GB, free: 121 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004979/10.46, allocations: 4.879 MB / 4.137 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/10.46, allocations: 3.906 kB / 4.137 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009947/10.47, allocations: 5.44 MB / 4.142 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/10.47, allocations: 409.6 kB / 4.142 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006671/10.47, allocations: 11 kB / 4.142 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/10.48, allocations: 79.94 kB / 4.142 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003789/10.48, allocations: 101.5 kB / 4.143 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002093/10.48, allocations: 44.25 kB / 4.143 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001412/10.48, allocations: 0.5283 MB / 4.143 GB, free: 117.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01205/10.49, allocations: 1.973 MB / 4.145 GB, free: 117.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 9,1 1,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01405/10.5, allocations: 2.553 MB / 4.148 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008084/10.51, allocations: 3.649 MB / 4.151 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/10.51, allocations: 0 / 4.151 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003063/10.52, allocations: 1.847 MB / 4.153 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/10.52, allocations: 443 kB / 4.153 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008521/10.53, allocations: 3.417 MB / 4.157 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001956/10.53, allocations: 1.554 MB / 4.158 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.282e-06/10.53, allocations: 2.078 kB / 4.158 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.1045/10.63, allocations: 68.07 MB / 4.225 GB, free: 107.4 MB / 0.5417 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/PumpingSystem/PumpingSystem.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches