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: "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 174.6 kB / 8.347 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.384/1.384, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009488/0.0009488, allocations: 94.12 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.327e-05/1.329e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 50.4 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.422/7.531, allocations: 2.797 GB / 3.176 GB, free: 107.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003815/7.532, allocations: 80.14 kB / 3.176 GB, free: 107.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.101/10.63, allocations: 0.7066 GB / 3.882 GB, free: 40.26 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.805e-06/10.63, allocations: 2.719 kB / 3.882 GB, free: 40.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001211/10.63, allocations: 30.77 kB / 3.882 GB, free: 40.25 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.01447/10.65, allocations: 2.722 MB / 3.885 GB, free: 38.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/10.65, allocations: 7.062 kB / 3.885 GB, free: 38.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005071/10.65, allocations: 0.5678 MB / 3.886 GB, free: 38.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003438/10.66, allocations: 0.9858 MB / 3.887 GB, free: 38.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/10.66, allocations: 147.8 kB / 3.887 GB, free: 38.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002544/10.66, allocations: 72.41 kB / 3.887 GB, free: 38.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002713/10.66, allocations: 1.401 MB / 3.888 GB, free: 38.39 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/10.66, allocations: 1.611 MB / 3.89 GB, free: 38.03 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.335e-05/10.66, allocations: 3.844 kB / 3.89 GB, free: 38.03 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/10.66, allocations: 6.625 kB / 3.89 GB, free: 38.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/10.66, allocations: 75.03 kB / 3.89 GB, free: 38.03 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.7551/11.42, allocations: 133.8 MB / 4.021 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/11.42, allocations: 1.071 MB / 4.022 GB, free: 48.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008887/11.42, allocations: 0.5819 MB / 4.022 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1216/11.54, allocations: 63.61 MB / 4.084 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002347/11.54, allocations: 0.735 MB / 4.085 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=96): time 7.925e-06/11.55, allocations: 0 / 4.085 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=107): time 0.02299/11.57, allocations: 5.73 MB / 4.091 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/11.57, allocations: 192.2 kB / 4.091 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/11.57, allocations: 0.7168 MB / 4.091 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002038/11.57, allocations: 27.39 kB / 4.091 GB, free: 23.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007724/11.57, allocations: 0.6316 MB / 4.092 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004916/11.57, allocations: 354.9 kB / 4.092 GB, free: 23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/11.57, allocations: 0 / 4.092 GB, free: 23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002115/11.57, allocations: 363.1 kB / 4.093 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/11.57, allocations: 0.5817 MB / 4.093 GB, free: 22.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/11.57, allocations: 0.9724 MB / 4.094 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005104/11.58, allocations: 1.373 MB / 4.096 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/11.58, allocations: 6.094 kB / 4.096 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.008372/11.59, allocations: 2.676 MB / 4.098 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002686/11.59, allocations: 4.356 MB / 4.103 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.875e-05/11.59, allocations: 15.42 kB / 4.103 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/11.59, allocations: 0.694 MB / 4.103 GB, free: 17.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/11.59, allocations: 287.7 kB / 4.103 GB, free: 17.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008386/11.6, allocations: 5.89 MB / 4.109 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/11.6, allocations: 103.5 kB / 4.109 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004135/11.61, allocations: 68.98 kB / 4.109 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/11.61, allocations: 4.469 kB / 4.109 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00819/11.61, allocations: 2.432 MB / 4.112 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.777e-05/11.61, allocations: 12.41 kB / 4.112 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/11.61, allocations: 0.6254 MB / 4.112 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/11.62, allocations: 295.3 kB / 4.113 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007539/11.62, allocations: 5.188 MB / 4.118 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/11.63, allocations: 96.14 kB / 4.118 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003882/11.63, allocations: 70.72 kB / 4.118 GB, free: 24.85 MB / 0.5261 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.000879/11.63, allocations: 160 kB / 4.118 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006957/11.63, allocations: 2.09 MB / 4.12 GB, free: 24.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005021/11.63, allocations: 115.8 kB / 4.12 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008115/11.64, allocations: 4.112 MB / 4.124 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.243e-05/11.64, allocations: 42.48 kB / 4.124 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/11.64, allocations: 0 / 4.124 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/11.64, allocations: 6.844 kB / 4.124 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/11.66, allocations: 5.72 MB / 4.13 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/11.66, allocations: 1.031 kB / 4.13 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/11.66, allocations: 158.3 kB / 4.13 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/11.66, allocations: 1.164 MB / 4.131 GB, free: 23.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001784/11.66, allocations: 18.27 kB / 4.131 GB, free: 23.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005951/11.66, allocations: 4.878 MB / 4.136 GB, free: 20.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/11.66, allocations: 4.219 kB / 4.136 GB, free: 20.41 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00886/11.67, allocations: 4.62 MB / 4.14 GB, free: 19.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/11.68, allocations: 387.7 kB / 4.141 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005261/11.68, allocations: 7.25 kB / 4.141 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/11.68, allocations: 75.5 kB / 4.141 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/11.68, allocations: 115 kB / 4.141 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/11.68, allocations: 46.77 kB / 4.141 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001104/11.68, allocations: 0.5115 MB / 4.142 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/11.68, allocations: 0 / 4.142 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01131/11.69, allocations: 1.923 MB / 4.143 GB, free: 19.6 MB / 0.5261 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.0233/11.71, allocations: 7.317 MB / 4.151 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008589/11.72, allocations: 3.032 MB / 4.154 GB, free: 18.13 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/11.72, allocations: 2.062 kB / 4.154 GB, free: 18.13 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003503/11.73, allocations: 1.288 MB / 4.155 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/11.73, allocations: 480.5 kB / 4.155 GB, free: 18.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/11.74, allocations: 3.83 MB / 4.159 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/11.75, allocations: 1.418 MB / 4.16 GB, free: 16.42 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003774/11.75, allocations: 1.569 MB / 4.162 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/11.75, allocations: 0.6171 MB / 4.163 GB, free: 16.03 MB / 0.5261 GB Notification: Performance of SimCode: time 4.128e-06/11.75, allocations: 8 kB / 4.163 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.621/12.37, allocations: 73.81 MB / 4.235 GB, free: 91.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/12.37, allocations: 161.1 kB / 4.235 GB, free: 91.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.912/17.29, allocations: 0 / 4.235 GB, free: 91.41 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1)