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.001043/0.001043, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 103 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002916, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.343/6.612, allocations: 2.798 GB / 3.19 GB, free: 4.113 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/6.612, allocations: 85.19 kB / 3.19 GB, free: 4.031 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.698/9.31, allocations: 0.715 GB / 3.905 GB, free: 5.188 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.395e-06/9.31, allocations: 0 / 3.905 GB, free: 5.188 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001272/9.31, allocations: 42.5 kB / 3.905 GB, free: 5.148 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.0111/9.321, allocations: 2.864 MB / 3.908 GB, free: 2.254 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/9.321, allocations: 8.031 kB / 3.908 GB, free: 2.246 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008592/9.322, allocations: 181.7 kB / 3.908 GB, free: 2.059 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004669/9.327, allocations: 0.5718 MB / 3.909 GB, free: 1.484 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/9.33, allocations: 0.9882 MB / 3.91 GB, free: 460 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/9.33, allocations: 187.4 kB / 3.91 GB, free: 252 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005613/9.331, allocations: 119.9 kB / 3.91 GB, free: 132 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.37/9.701, allocations: 1.997 MB / 3.912 GB, free: 32.51 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.181e-05/9.701, allocations: 10.56 kB / 3.912 GB, free: 32.51 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/9.701, allocations: 53.59 kB / 3.912 GB, free: 32.51 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/9.701, allocations: 74.03 kB / 3.912 GB, free: 32.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005454/9.707, allocations: 1.748 MB / 3.914 GB, free: 32.49 MB / 474.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.0156/9.723, allocations: 9.305 MB / 3.923 GB, free: 27.42 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/9.725, allocations: 1.468 MB / 3.924 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1206/9.846, allocations: 63.4 MB / 3.986 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00299/9.849, allocations: 1.063 MB / 3.987 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=110): time 6.412e-06/9.849, allocations: 0 / 3.987 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=121): time 0.01908/9.868, allocations: 6.475 MB / 3.994 GB, free: 18.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002185/9.869, allocations: 302.9 kB / 3.994 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/9.87, allocations: 0.9262 MB / 3.995 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002526/9.871, allocations: 47.2 kB / 3.995 GB, free: 18.17 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005508/9.871, allocations: 0.5661 MB / 3.995 GB, free: 17.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005724/9.872, allocations: 411.5 kB / 3.996 GB, free: 17.76 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/9.872, allocations: 27.66 kB / 3.996 GB, free: 17.76 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000214/9.872, allocations: 366.1 kB / 3.996 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/9.873, allocations: 0.6267 MB / 3.997 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/9.875, allocations: 1.034 MB / 3.998 GB, free: 16.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/9.876, allocations: 0.7312 MB / 3.999 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/9.876, allocations: 6 kB / 3.999 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004076/9.88, allocations: 2.119 MB / 4.001 GB, free: 16.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001877/9.882, allocations: 4.356 MB / 4.005 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/9.882, allocations: 10.97 kB / 4.005 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006879/9.889, allocations: 0.9956 MB / 4.006 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/9.891, allocations: 297.5 kB / 4.006 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/9.895, allocations: 4.023 MB / 4.01 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/9.897, allocations: 133.3 kB / 4.01 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003691/9.898, allocations: 75.23 kB / 4.01 GB, free: 25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/9.898, allocations: 5.484 kB / 4.01 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003832/9.901, allocations: 1.923 MB / 4.012 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/9.902, allocations: 10.12 kB / 4.012 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006123/9.908, allocations: 0.8634 MB / 4.013 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/9.909, allocations: 304.9 kB / 4.013 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/9.913, allocations: 3.368 MB / 4.017 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/9.915, allocations: 118.5 kB / 4.017 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004287/9.915, allocations: 71.3 kB / 4.017 GB, free: 22.24 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.001692/9.917, allocations: 465.5 kB / 4.017 GB, free: 22.05 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005387/9.918, allocations: 136.6 kB / 4.017 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006701/9.924, allocations: 4.938 MB / 4.022 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.445e-05/9.924, allocations: 53.39 kB / 4.022 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/9.924, allocations: 1.531 kB / 4.022 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/9.924, allocations: 14.09 kB / 4.022 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009399/9.934, allocations: 6.728 MB / 4.029 GB, free: 20.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/9.934, allocations: 3.281 kB / 4.029 GB, free: 20.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00082/9.935, allocations: 178.8 kB / 4.029 GB, free: 20.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/9.939, allocations: 1.369 MB / 4.03 GB, free: 20.86 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/9.939, allocations: 38.89 kB / 4.03 GB, free: 20.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004135/9.943, allocations: 4.461 MB / 4.035 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/9.943, allocations: 6.375 kB / 4.035 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007285/9.951, allocations: 4.919 MB / 4.04 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/9.952, allocations: 0.5562 MB / 4.04 GB, free: 16.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004501/9.953, allocations: 25.5 kB / 4.04 GB, free: 16.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/9.954, allocations: 110 kB / 4.04 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/9.954, allocations: 120.1 kB / 4.04 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/9.955, allocations: 45.91 kB / 4.04 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001593/9.956, allocations: 0.9855 MB / 4.041 GB, free: 16.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.61e-07/9.956, allocations: 2.25 kB / 4.041 GB, free: 16.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009861/9.966, allocations: 2.073 MB / 4.043 GB, free: 16.71 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.02017/9.986, allocations: 7.745 MB / 4.051 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007642/9.994, allocations: 3.105 MB / 4.054 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/9.994, allocations: 2.906 kB / 4.054 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003153/9.997, allocations: 1.509 MB / 4.055 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003636/10, allocations: 0.6445 MB / 4.056 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/10.02, allocations: 14.69 MB / 4.07 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/10.02, allocations: 1.532 MB / 4.072 GB, free: 19.26 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003481/10.03, allocations: 1.388 MB / 4.073 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/10.03, allocations: 0.7524 MB / 4.074 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of SimCode: time 2.154e-06/10.03, allocations: 0 / 4.074 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4473/10.47, allocations: 87.01 MB / 4.159 GB, free: 92.16 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/10.47, allocations: 237.9 kB / 4.159 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.614/16.09, allocations: 0 / 4.159 GB, free: 91.93 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)