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.00173/0.00173, allocations: 175.2 kB / 13.63 MB, free: 1.684 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.538/1.538, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.001104/0.001104, allocations: 87.73 kB / 286.5 MB, free: 256 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.786e-05/3.814e-05, allocations: 4 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1219, allocations: 50.4 MB / 394.3 MB, free: 1.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.822/7.943, allocations: 2.798 GB / 3.183 GB, free: 49.99 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/7.944, allocations: 75.59 kB / 3.183 GB, free: 49.96 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.339/11.28, allocations: 0.713 GB / 3.896 GB, free: 38.56 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.144e-06/11.28, allocations: 0 / 3.896 GB, free: 38.56 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001935/11.28, allocations: 36.5 kB / 3.896 GB, free: 38.55 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.01423/11.3, allocations: 2.723 MB / 3.899 GB, free: 37.01 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.067e-05/11.3, allocations: 11.31 kB / 3.899 GB, free: 37.01 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001238/11.3, allocations: 188.4 kB / 3.899 GB, free: 36.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00536/11.3, allocations: 0.568 MB / 3.9 GB, free: 36.78 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004438/11.31, allocations: 0.9901 MB / 3.901 GB, free: 36.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003681/11.31, allocations: 185.8 kB / 3.901 GB, free: 36.09 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008426/11.31, allocations: 116.3 kB / 3.901 GB, free: 36.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006462/11.32, allocations: 2.038 MB / 3.903 GB, free: 35.12 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-05/11.32, allocations: 3.938 kB / 3.903 GB, free: 35.12 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000439/11.32, allocations: 56.08 kB / 3.903 GB, free: 35.08 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/11.32, allocations: 79.72 kB / 3.903 GB, free: 35.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/11.32, allocations: 1.762 MB / 3.905 GB, free: 34.5 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.01468/11.34, allocations: 9.305 MB / 3.914 GB, free: 27.8 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003167/11.34, allocations: 1.513 MB / 3.915 GB, free: 27.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/11.34, allocations: 0.6656 MB / 3.916 GB, free: 26.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6153/11.96, allocations: 63.6 MB / 3.978 GB, free: 50.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003447/11.96, allocations: 1.105 MB / 3.979 GB, free: 50.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=110): time 5.17e-06/11.96, allocations: 1.031 kB / 3.979 GB, free: 50.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=121): time 0.01713/11.98, allocations: 5.499 MB / 3.984 GB, free: 49.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/11.98, allocations: 302.6 kB / 3.985 GB, free: 48.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002058/11.98, allocations: 0.9125 MB / 3.986 GB, free: 48.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001561/11.98, allocations: 50.23 kB / 3.986 GB, free: 48.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006166/11.98, allocations: 0.5604 MB / 3.986 GB, free: 48.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004615/11.98, allocations: 411.6 kB / 3.987 GB, free: 48.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.948e-05/11.98, allocations: 30.25 kB / 3.987 GB, free: 48.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/11.98, allocations: 362.1 kB / 3.987 GB, free: 47.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/11.98, allocations: 0.6071 MB / 3.988 GB, free: 47.95 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/11.98, allocations: 1.009 MB / 3.989 GB, free: 47.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/11.98, allocations: 0.713 MB / 3.989 GB, free: 47.49 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/11.98, allocations: 5.781 kB / 3.989 GB, free: 47.49 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004389/11.99, allocations: 2.124 MB / 3.991 GB, free: 47.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00154/11.99, allocations: 4.353 MB / 3.996 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/11.99, allocations: 14.41 kB / 3.996 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00692/12, allocations: 1.027 MB / 3.997 GB, free: 42.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/12, allocations: 286.5 kB / 3.997 GB, free: 42.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004462/12, allocations: 5.438 MB / 4.002 GB, free: 38.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/12.01, allocations: 130.8 kB / 4.002 GB, free: 38.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/12.01, allocations: 71.06 kB / 4.002 GB, free: 38.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/12.01, allocations: 5.156 kB / 4.002 GB, free: 38.27 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003568/12.01, allocations: 1.91 MB / 4.004 GB, free: 38.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/12.01, allocations: 13.5 kB / 4.004 GB, free: 38.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006103/12.02, allocations: 0.9081 MB / 4.005 GB, free: 38.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/12.02, allocations: 288.5 kB / 4.005 GB, free: 38.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/12.02, allocations: 4.784 MB / 4.01 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/12.02, allocations: 128 kB / 4.01 GB, free: 34.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/12.02, allocations: 74.81 kB / 4.01 GB, free: 34.2 MB / 490.7 MB 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.000668/12.02, allocations: 207.4 kB / 4.01 GB, free: 34.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004093/12.02, allocations: 138.7 kB / 4.011 GB, free: 34.03 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006635/12.03, allocations: 4.885 MB / 4.015 GB, free: 33.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-05/12.03, allocations: 54.53 kB / 4.015 GB, free: 33.59 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/12.03, allocations: 1.531 kB / 4.015 GB, free: 33.59 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/12.03, allocations: 8.734 kB / 4.015 GB, free: 33.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009909/12.04, allocations: 6.691 MB / 4.022 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/12.04, allocations: 4.938 kB / 4.022 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007986/12.04, allocations: 176.3 kB / 4.022 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/12.05, allocations: 1.469 MB / 4.024 GB, free: 32.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/12.05, allocations: 35.19 kB / 4.024 GB, free: 32.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/12.05, allocations: 4.457 MB / 4.028 GB, free: 29.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/12.05, allocations: 6.219 kB / 4.028 GB, free: 29.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006734/12.06, allocations: 4.841 MB / 4.033 GB, free: 29.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/12.06, allocations: 0.5429 MB / 4.033 GB, free: 29.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006398/12.06, allocations: 31.22 kB / 4.033 GB, free: 29.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/12.06, allocations: 109.5 kB / 4.033 GB, free: 29.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003912/12.06, allocations: 121.2 kB / 4.033 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/12.06, allocations: 45.52 kB / 4.034 GB, free: 29.04 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002001/12.06, allocations: 0.9708 MB / 4.034 GB, free: 28.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/12.06, allocations: 1.5 kB / 4.034 GB, free: 28.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0118/12.07, allocations: 2.078 MB / 4.037 GB, free: 28.84 MB / 490.7 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.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) * 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.02423/12.1, allocations: 7.672 MB / 4.044 GB, free: 27.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009274/12.11, allocations: 3.28 MB / 4.047 GB, free: 27.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/12.11, allocations: 0 / 4.047 GB, free: 27.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003075/12.11, allocations: 1.485 MB / 4.049 GB, free: 27.06 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/12.12, allocations: 0.6401 MB / 4.049 GB, free: 27.05 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/12.13, allocations: 4.428 MB / 4.054 GB, free: 26.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/12.13, allocations: 1.539 MB / 4.055 GB, free: 25.45 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00406/12.14, allocations: 1.481 MB / 4.057 GB, free: 25.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/12.14, allocations: 0.7519 MB / 4.057 GB, free: 25.42 MB / 490.7 MB Notification: Performance of SimCode: time 1.423e-06/12.14, allocations: 0.8125 kB / 4.057 GB, free: 25.42 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6254/12.76, allocations: 92.98 MB / 4.148 GB, free: 68.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/12.76, allocations: 212 kB / 4.148 GB, free: 68.16 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.034/18.8, allocations: 2.156 kB / 4.148 GB, free: 68.16 MB / 0.4948 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)