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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 174.9 kB / 8.348 MB, free: 0.7266 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.38/1.38, allocations: 221.5 MB / 230.3 MB, free: 7.547 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.0008745/0.0008745, allocations: 88.3 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.812e-05, allocations: 7.984 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1197, allocations: 50.42 MB / 387.4 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.242/8.362, allocations: 2.797 GB / 3.176 GB, free: 116.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/8.362, allocations: 81.05 kB / 3.176 GB, free: 116.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.27/11.63, allocations: 0.7066 GB / 3.882 GB, free: 37.2 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.082e-06/11.63, allocations: 3.656 kB / 3.882 GB, free: 37.2 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.534e-05/11.63, allocations: 28.34 kB / 3.882 GB, free: 37.2 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.01236/11.64, allocations: 2.724 MB / 3.885 GB, free: 35.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/11.65, allocations: 7.406 kB / 3.885 GB, free: 35.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004624/11.65, allocations: 0.5634 MB / 3.886 GB, free: 35.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003356/11.65, allocations: 0.9912 MB / 3.887 GB, free: 35.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/11.65, allocations: 144.8 kB / 3.887 GB, free: 35.42 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/11.65, allocations: 71.75 kB / 3.887 GB, free: 35.42 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002901/11.66, allocations: 1.394 MB / 3.888 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/11.66, allocations: 1.615 MB / 3.89 GB, free: 35.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/11.66, allocations: 2.531 kB / 3.89 GB, free: 35.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/11.66, allocations: 7.641 kB / 3.89 GB, free: 35.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.997e-05/11.66, allocations: 81.34 kB / 3.89 GB, free: 35.05 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.6747/12.33, allocations: 133.8 MB / 4.02 GB, free: 73.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/12.34, allocations: 1.074 MB / 4.022 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/12.34, allocations: 0.5758 MB / 4.022 GB, free: 73.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.117/12.45, allocations: 63.62 MB / 4.084 GB, free: 33.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001572/12.46, allocations: 0.7242 MB / 4.085 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=96): time 3.267e-06/12.46, allocations: 0 / 4.085 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=107): time 0.01954/12.48, allocations: 5.737 MB / 4.091 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/12.48, allocations: 198 kB / 4.091 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/12.48, allocations: 0.7089 MB / 4.091 GB, free: 32.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001515/12.48, allocations: 29.67 kB / 4.091 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005451/12.48, allocations: 0.6264 MB / 4.092 GB, free: 32.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003439/12.48, allocations: 352.2 kB / 4.092 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.483e-05/12.48, allocations: 0 / 4.092 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000104/12.48, allocations: 365.7 kB / 4.093 GB, free: 32.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008188/12.48, allocations: 0.5837 MB / 4.093 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/12.48, allocations: 0.972 MB / 4.094 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004752/12.49, allocations: 1.374 MB / 4.096 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/12.49, allocations: 2.625 kB / 4.096 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007591/12.49, allocations: 2.671 MB / 4.098 GB, free: 31.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001074/12.49, allocations: 4.361 MB / 4.102 GB, free: 26.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.747e-05/12.49, allocations: 15.2 kB / 4.102 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/12.5, allocations: 0.7021 MB / 4.103 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/12.5, allocations: 284.7 kB / 4.103 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006525/12.5, allocations: 5.89 MB / 4.109 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/12.51, allocations: 102.7 kB / 4.109 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000439/12.51, allocations: 75.17 kB / 4.109 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/12.51, allocations: 11.17 kB / 4.109 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008066/12.51, allocations: 2.425 MB / 4.112 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.316e-05/12.51, allocations: 14.78 kB / 4.112 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/12.52, allocations: 0.6252 MB / 4.112 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/12.52, allocations: 294.1 kB / 4.113 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005671/12.52, allocations: 5.185 MB / 4.118 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/12.52, allocations: 92.67 kB / 4.118 GB, free: 18.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004231/12.52, allocations: 69.44 kB / 4.118 GB, free: 18.28 MB / 0.5105 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.000836/12.53, allocations: 162.6 kB / 4.118 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/12.53, allocations: 116.6 kB / 4.118 GB, free: 18.12 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008326/12.53, allocations: 4.117 MB / 4.122 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.477e-05/12.53, allocations: 38.5 kB / 4.122 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/12.53, allocations: 4.531 kB / 4.122 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-05/12.53, allocations: 6.375 kB / 4.122 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/12.55, allocations: 5.716 MB / 4.128 GB, free: 17.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/12.55, allocations: 4.719 kB / 4.128 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007289/12.55, allocations: 155.2 kB / 4.128 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002147/12.55, allocations: 1.158 MB / 4.129 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/12.55, allocations: 22.66 kB / 4.129 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004909/12.55, allocations: 4.876 MB / 4.134 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/12.55, allocations: 0 / 4.134 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008496/12.56, allocations: 4.624 MB / 4.138 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/12.56, allocations: 387.5 kB / 4.139 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005119/12.56, allocations: 9.906 kB / 4.139 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/12.57, allocations: 76.84 kB / 4.139 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/12.57, allocations: 113.5 kB / 4.139 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/12.57, allocations: 44.2 kB / 4.139 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009938/12.57, allocations: 0.5032 MB / 4.139 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.193e-06/12.57, allocations: 0.6562 kB / 4.139 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01192/12.58, allocations: 1.937 MB / 4.141 GB, free: 13.21 MB / 0.5105 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,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.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 (97): * Single equations (assignments): 79 * 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 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01336/12.59, allocations: 2.477 MB / 4.144 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007774/12.6, allocations: 3.044 MB / 4.147 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/12.6, allocations: 0 / 4.147 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002846/12.6, allocations: 1.293 MB / 4.148 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003232/12.61, allocations: 469.4 kB / 4.148 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00724/12.61, allocations: 2.983 MB / 4.151 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/12.62, allocations: 1.412 MB / 4.153 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003494/12.62, allocations: 1.579 MB / 4.154 GB, free: 11.01 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/12.62, allocations: 100 kB / 4.154 GB, free: 11 MB / 0.5105 GB Notification: Performance of SimCode: time 9.22e-07/12.62, allocations: 0 / 4.154 GB, free: 11 MB / 0.5105 GB Notification: Performance of Templates: time 0.4623/13.08, allocations: 57.07 MB / 4.21 GB, free: 82.84 MB / 0.5105 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