Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.2 MB / 245 MB, free: 7.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008184/0.0008184, allocations: 108 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002355, allocations: 4 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2309, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.718/5.949, allocations: 2.799 GB / 3.199 GB, free: 22.57 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/5.949, allocations: 85.53 kB / 3.199 GB, free: 22.53 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.382/8.331, allocations: 0.7147 GB / 3.914 GB, free: 5.262 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/8.331, allocations: 0 / 3.914 GB, free: 5.262 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001544/8.331, allocations: 31.94 kB / 3.914 GB, free: 5.23 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.01169/8.343, allocations: 2.869 MB / 3.916 GB, free: 2.305 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/8.343, allocations: 8.031 kB / 3.916 GB, free: 2.297 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008153/8.344, allocations: 193.7 kB / 3.917 GB, free: 2.098 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004535/8.348, allocations: 0.5602 MB / 3.917 GB, free: 1.535 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/8.351, allocations: 0.9882 MB / 3.918 GB, free: 0.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/8.351, allocations: 188 kB / 3.918 GB, free: 304 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004816/8.352, allocations: 126.9 kB / 3.918 GB, free: 180 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005258/8.357, allocations: 2.002 MB / 3.92 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.152e-05/8.357, allocations: 3.938 kB / 3.92 GB, free: 14.03 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003001/8.358, allocations: 51.98 kB / 3.92 GB, free: 13.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/8.358, allocations: 82.09 kB / 3.92 GB, free: 13.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004036/8.362, allocations: 1.741 MB / 3.922 GB, free: 12.15 MB / 490.7 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.01504/8.377, allocations: 9.36 MB / 3.931 GB, free: 2.164 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003304/8.38, allocations: 1.471 MB / 3.933 GB, free: 0.6484 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3961/8.776, allocations: 70.36 MB / 4.001 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003425/8.78, allocations: 1.066 MB / 4.002 GB, free: 16.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=110): time 6.822e-06/8.78, allocations: 0 / 4.002 GB, free: 16.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=121): time 0.02021/8.8, allocations: 6.503 MB / 4.009 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008785/8.801, allocations: 300.3 kB / 4.009 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/8.803, allocations: 0.9188 MB / 4.01 GB, free: 30.28 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002142/8.803, allocations: 49.23 kB / 4.01 GB, free: 30.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004825/8.803, allocations: 0.5687 MB / 4.011 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000438/8.804, allocations: 406.7 kB / 4.011 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/8.804, allocations: 34.19 kB / 4.011 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001641/8.804, allocations: 366.3 kB / 4.011 GB, free: 29.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/8.805, allocations: 0.6239 MB / 4.012 GB, free: 29.53 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/8.806, allocations: 1.03 MB / 4.013 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/8.808, allocations: 0.7284 MB / 4.014 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/8.808, allocations: 3.781 kB / 4.014 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003543/8.811, allocations: 2.135 MB / 4.016 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001482/8.813, allocations: 4.353 MB / 4.02 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/8.813, allocations: 9.562 kB / 4.02 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006825/8.819, allocations: 0.9913 MB / 4.021 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/8.821, allocations: 293.4 kB / 4.021 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/8.824, allocations: 4.027 MB / 4.025 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/8.826, allocations: 134.4 kB / 4.025 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/8.826, allocations: 69.67 kB / 4.025 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/8.826, allocations: 5.688 kB / 4.025 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003346/8.829, allocations: 1.925 MB / 4.027 GB, free: 20.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/8.83, allocations: 10.47 kB / 4.027 GB, free: 20.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006092/8.836, allocations: 0.8649 MB / 4.028 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/8.837, allocations: 303.6 kB / 4.028 GB, free: 20.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/8.84, allocations: 3.363 MB / 4.032 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/8.841, allocations: 121.9 kB / 4.032 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/8.842, allocations: 74.53 kB / 4.032 GB, free: 18.32 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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.001245/8.843, allocations: 463.9 kB / 4.032 GB, free: 18.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004431/8.843, allocations: 139.1 kB / 4.032 GB, free: 18.06 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0058/8.849, allocations: 4.944 MB / 4.037 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.043e-05/8.849, allocations: 54.56 kB / 4.037 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/8.849, allocations: 0 / 4.037 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/8.849, allocations: 9.5 kB / 4.037 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008054/8.857, allocations: 6.73 MB / 4.044 GB, free: 17.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/8.857, allocations: 3.844 kB / 4.044 GB, free: 17.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007403/8.858, allocations: 173.6 kB / 4.044 GB, free: 17.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004128/8.862, allocations: 1.371 MB / 4.045 GB, free: 16.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/8.862, allocations: 35.67 kB / 4.045 GB, free: 16.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003496/8.866, allocations: 4.461 MB / 4.05 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/8.866, allocations: 4.641 kB / 4.05 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005975/8.872, allocations: 4.921 MB / 4.055 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/8.873, allocations: 0.5476 MB / 4.055 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004659/8.874, allocations: 28.31 kB / 4.055 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/8.875, allocations: 109 kB / 4.055 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/8.875, allocations: 122.2 kB / 4.055 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/8.875, allocations: 52.08 kB / 4.055 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001509/8.877, allocations: 0.9876 MB / 4.056 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/8.877, allocations: 0 / 4.056 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008125/8.885, allocations: 2.089 MB / 4.058 GB, free: 12.83 MB / 0.5105 GB 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.medium.T,reservoir.level,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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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.01818/8.903, allocations: 7.753 MB / 4.066 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007255/8.911, allocations: 3.105 MB / 4.069 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/8.911, allocations: 3.969 kB / 4.069 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002824/8.914, allocations: 1.512 MB / 4.071 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003456/8.917, allocations: 0.6481 MB / 4.071 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/8.935, allocations: 14.7 MB / 4.086 GB, free: 16.13 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/8.936, allocations: 1.542 MB / 4.087 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00276/8.939, allocations: 1.381 MB / 4.088 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/8.94, allocations: 0.7607 MB / 4.089 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of SimCode: time 1.051e-06/8.94, allocations: 0 / 4.089 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3946/9.335, allocations: 87.13 MB / 4.174 GB, free: 92.17 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/9.335, allocations: 243 kB / 4.174 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.773/14.11, allocations: 3.938 kB / 4.174 GB, free: 91.93 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1)