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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009007/0.0009007, allocations: 94.72 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009258/0.0009259, allocations: 183.1 kB / 17.2 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 241.1 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002451, allocations: 16.62 kB / 300.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.0905, allocations: 50.4 MB / 351.1 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.2065/0.297, allocations: 54.88 MB / 406 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02687/0.3239, allocations: 23.95 MB / 430 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.3258, allocations: 43.62 kB / 430 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.3277, allocations: 0.6181 MB / 430.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01461/0.3423, allocations: 5.184 MB / 435.8 MB, free: 260 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01002/0.3523, allocations: 3.312 MB / 439.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004196/0.3566, allocations: 2.156 MB / 441.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001672/0.3583, allocations: 0.8691 MB / 442.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01536/0.3736, allocations: 9.547 MB / 451.7 MB, free: 368 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02156/0.3952, allocations: 15.13 MB / 466.8 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003698/0.3956, allocations: 76 kB / 466.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01615/0.4118, allocations: 8.596 MB / 475.5 MB, free: 8.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000659/0.4125, allocations: 382.9 kB / 475.9 MB, free: 8.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005893/0.4131, allocations: 317 kB / 476.2 MB, free: 7.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008572/0.4217, allocations: 4.775 MB / 480.9 MB, free: 3.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.4217, allocations: 0 / 480.9 MB, free: 3.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4217, allocations: 0 / 480.9 MB, free: 3.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.4217, allocations: 0 / 480.9 MB, free: 3.062 MB / 382.1 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.006156/0.4279, allocations: 2.375 MB / 483.3 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.4279, allocations: 8.031 kB / 483.3 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003146/0.4311, allocations: 485.7 kB / 483.8 MB, free: 148 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.4327, allocations: 0.8636 MB / 484.7 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.4329, allocations: 191.3 kB / 484.9 MB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.4331, allocations: 116 kB / 485 MB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003603/0.4367, allocations: 1.985 MB / 487 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.4367, allocations: 11.92 kB / 487 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.4369, allocations: 55.98 kB / 487 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.131e-05/0.437, allocations: 82.03 kB / 487.1 MB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003512/0.4405, allocations: 1.776 MB / 488.9 MB, free: 10.88 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01164/0.4521, allocations: 9.274 MB / 498.1 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003004/0.4552, allocations: 1.503 MB / 499.7 MB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2974/0.7526, allocations: 64.31 MB / 0.5507 GB, free: 142.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002667/0.7553, allocations: 1.059 MB / 0.5518 GB, free: 142.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=110): time 3.276e-06/0.7553, allocations: 0 / 0.5518 GB, free: 142.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=121): time 0.01622/0.7716, allocations: 6.548 MB / 0.5582 GB, free: 139.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/0.7717, allocations: 295.5 kB / 0.5584 GB, free: 139.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.7728, allocations: 1.039 MB / 0.5595 GB, free: 138.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.7729, allocations: 53.42 kB / 0.5595 GB, free: 138.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.7732, allocations: 0.5697 MB / 0.5601 GB, free: 138.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002695/0.7735, allocations: 419.7 kB / 0.5605 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.117e-05/0.7736, allocations: 27.88 kB / 0.5605 GB, free: 137.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.608e-05/0.7737, allocations: 361.7 kB / 0.5608 GB, free: 137.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000949/0.7746, allocations: 0.6325 MB / 0.5615 GB, free: 137.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.7757, allocations: 1.046 MB / 0.5625 GB, free: 136.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.7767, allocations: 0.7432 MB / 0.5632 GB, free: 135.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.7767, allocations: 2.312 kB / 0.5632 GB, free: 135.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003341/0.7801, allocations: 2.167 MB / 0.5653 GB, free: 134.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006422/0.7807, allocations: 4.451 MB / 0.5697 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.7808, allocations: 12.31 kB / 0.5697 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006064/0.7868, allocations: 1.012 MB / 0.5707 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.788, allocations: 304.6 kB / 0.571 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/0.7905, allocations: 4.03 MB / 0.5749 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.7918, allocations: 119.8 kB / 0.575 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.7919, allocations: 71.98 kB / 0.5751 GB, free: 125 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/0.7919, allocations: 4 kB / 0.5751 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003019/0.7949, allocations: 1.963 MB / 0.577 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.7949, allocations: 12 kB / 0.577 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005392/0.8003, allocations: 0.8988 MB / 0.5779 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.8014, allocations: 303.5 kB / 0.5782 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.8034, allocations: 3.368 MB / 0.5815 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.8047, allocations: 127.9 kB / 0.5816 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.8049, allocations: 69.52 kB / 0.5817 GB, free: 118.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * 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: 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 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007338/0.8056, allocations: 466.6 kB / 0.5821 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.8058, allocations: 142.4 kB / 0.5822 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005151/0.811, allocations: 4.931 MB / 0.5871 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/0.811, allocations: 47.94 kB / 0.5871 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.811, allocations: 0 / 0.5871 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.8111, allocations: 11.97 kB / 0.5871 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007029/0.8181, allocations: 6.746 MB / 0.5937 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.8181, allocations: 0 / 0.5937 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007133/0.8188, allocations: 179.7 kB / 0.5939 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003852/0.8227, allocations: 1.364 MB / 0.5952 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.8228, allocations: 39.97 kB / 0.5952 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.8254, allocations: 4.469 MB / 0.5996 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.8255, allocations: 4.031 kB / 0.5996 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005261/0.8307, allocations: 4.932 MB / 0.6044 GB, free: 94.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008974/0.8316, allocations: 0.5444 MB / 0.605 GB, free: 93.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.8319, allocations: 31.94 kB / 0.605 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.8329, allocations: 103.8 kB / 0.6051 GB, free: 93.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.8332, allocations: 121.1 kB / 0.6052 GB, free: 93.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.8334, allocations: 51.97 kB / 0.6053 GB, free: 93.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.8345, allocations: 0.9807 MB / 0.6062 GB, free: 92.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8346, allocations: 0 / 0.6062 GB, free: 92.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005433/0.84, allocations: 1.94 MB / 0.6081 GB, free: 90.81 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.level,reservoir.medium.T,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005121/0.8451, allocations: 1.683 MB / 0.6097 GB, free: 89.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.8507, allocations: 3.126 MB / 0.6128 GB, free: 86.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.8507, allocations: 0 / 0.6128 GB, free: 86.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.8529, allocations: 1.519 MB / 0.6143 GB, free: 84.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002854/0.8558, allocations: 0.6324 MB / 0.6149 GB, free: 84.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005733/0.8615, allocations: 5.209 MB / 0.62 GB, free: 78.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006944/0.8622, allocations: 1.537 MB / 0.6215 GB, free: 77.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001897/0.8641, allocations: 1.307 MB / 0.6228 GB, free: 76.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.8644, allocations: 115.4 kB / 0.6229 GB, free: 75.93 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.8644, allocations: 0 / 0.6229 GB, free: 75.93 MB / 446.1 MB Notification: Performance of Templates: time 0.07574/0.9401, allocations: 69.44 MB / 0.6907 GB, free: 6.758 MB / 446.1 MB 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