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.001216/0.001216, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 225.4 MB / 240.1 MB, free: 15.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.00118, allocations: 89.73 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.533e-05, allocations: 7.984 kB / 350.6 MB, free: 2.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1412, allocations: 51.48 MB / 402.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.782/7.924, allocations: 2.799 GB / 3.191 GB, free: 11.33 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/7.924, allocations: 82.05 kB / 3.191 GB, free: 11.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.422/11.35, allocations: 0.7128 GB / 3.904 GB, free: 6.75 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.023e-06/11.35, allocations: 4 kB / 3.904 GB, free: 6.746 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001822/11.35, allocations: 30.19 kB / 3.904 GB, free: 6.719 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.01352/11.36, allocations: 2.73 MB / 3.907 GB, free: 3.969 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/11.36, allocations: 16.59 kB / 3.907 GB, free: 3.953 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009011/11.36, allocations: 176.6 kB / 3.907 GB, free: 3.773 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004796/11.37, allocations: 0.5709 MB / 3.908 GB, free: 3.207 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/11.37, allocations: 0.9809 MB / 3.909 GB, free: 2.203 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/11.37, allocations: 187.2 kB / 3.909 GB, free: 2.004 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006111/11.37, allocations: 127 kB / 3.909 GB, free: 1.883 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005354/11.38, allocations: 2.037 MB / 3.911 GB, free: 15.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.766e-05/11.38, allocations: 0 / 3.911 GB, free: 15.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/11.38, allocations: 55.12 kB / 3.911 GB, free: 15.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/11.38, allocations: 78.08 kB / 3.911 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004489/11.38, allocations: 1.757 MB / 3.913 GB, free: 13.82 MB / 490.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.01579/11.4, allocations: 9.362 MB / 3.922 GB, free: 3.887 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00344/11.4, allocations: 1.508 MB / 3.923 GB, free: 2.336 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/11.4, allocations: 0.6712 MB / 3.924 GB, free: 1.645 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6386/12.04, allocations: 70.58 MB / 3.993 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004432/12.04, allocations: 1.107 MB / 3.994 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=110): time 1.06e-05/12.04, allocations: 0 / 3.994 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=121): time 0.01947/12.06, allocations: 5.511 MB / 3.999 GB, free: 29.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/12.06, allocations: 298.1 kB / 4 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/12.07, allocations: 0.9067 MB / 4.001 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001829/12.07, allocations: 50.83 kB / 4.001 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/12.07, allocations: 0.5598 MB / 4.001 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000507/12.07, allocations: 421 kB / 4.002 GB, free: 28.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-05/12.07, allocations: 28.22 kB / 4.002 GB, free: 28.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002221/12.07, allocations: 364.6 kB / 4.002 GB, free: 28.35 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/12.07, allocations: 0.6053 MB / 4.003 GB, free: 28.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/12.07, allocations: 1.008 MB / 4.004 GB, free: 27.89 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/12.07, allocations: 0.7109 MB / 4.004 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/12.07, allocations: 2.281 kB / 4.004 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004173/12.08, allocations: 2.12 MB / 4.006 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002062/12.08, allocations: 4.36 MB / 4.011 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/12.08, allocations: 9.156 kB / 4.011 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006618/12.09, allocations: 1.027 MB / 4.012 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/12.09, allocations: 289.8 kB / 4.012 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00463/12.09, allocations: 5.445 MB / 4.017 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/12.09, allocations: 132 kB / 4.017 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/12.09, allocations: 72.45 kB / 4.017 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/12.09, allocations: 3.375 kB / 4.017 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003302/12.1, allocations: 1.915 MB / 4.019 GB, free: 18.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/12.1, allocations: 14.23 kB / 4.019 GB, free: 18.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005927/12.1, allocations: 0.9053 MB / 4.02 GB, free: 18.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/12.1, allocations: 291.7 kB / 4.02 GB, free: 18.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/12.11, allocations: 4.782 MB / 4.025 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/12.11, allocations: 125.2 kB / 4.025 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/12.11, allocations: 68.56 kB / 4.025 GB, free: 14.45 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.0005514/12.11, allocations: 210 kB / 4.025 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005059/12.11, allocations: 142.5 kB / 4.026 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007038/12.12, allocations: 4.885 MB / 4.03 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.852e-05/12.12, allocations: 50.77 kB / 4.03 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/12.12, allocations: 3.438 kB / 4.03 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/12.12, allocations: 14.88 kB / 4.03 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009925/12.13, allocations: 6.673 MB / 4.037 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/12.13, allocations: 0 / 4.037 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007523/12.13, allocations: 179.1 kB / 4.037 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/12.13, allocations: 1.477 MB / 4.039 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/12.13, allocations: 37.67 kB / 4.039 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004474/12.14, allocations: 4.451 MB / 4.043 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/12.14, allocations: 4.875 kB / 4.043 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006974/12.14, allocations: 4.841 MB / 4.048 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/12.15, allocations: 0.5514 MB / 4.048 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006838/12.15, allocations: 27.84 kB / 4.048 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/12.15, allocations: 113 kB / 4.048 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/12.15, allocations: 119.4 kB / 4.048 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/12.15, allocations: 46.78 kB / 4.049 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001811/12.15, allocations: 0.972 MB / 4.049 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/12.15, allocations: 1.75 kB / 4.049 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01134/12.16, allocations: 2.089 MB / 4.052 GB, free: 25.03 MB / 0.5261 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) * 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.02045/12.18, allocations: 7.679 MB / 4.059 GB, free: 23.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008033/12.19, allocations: 3.278 MB / 4.062 GB, free: 23.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/12.19, allocations: 6.594 kB / 4.062 GB, free: 23.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00302/12.19, allocations: 1.482 MB / 4.064 GB, free: 23.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004289/12.2, allocations: 0.6458 MB / 4.064 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/12.22, allocations: 4.446 MB / 4.069 GB, free: 22.08 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001967/12.22, allocations: 1.538 MB / 4.07 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004397/12.22, allocations: 1.475 MB / 4.072 GB, free: 21.26 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/12.22, allocations: 0.7463 MB / 4.072 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of SimCode: time 2.114e-06/12.22, allocations: 0 / 4.072 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6386/12.86, allocations: 93.11 MB / 4.163 GB, free: 85.88 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000274/12.86, allocations: 204.4 kB / 4.163 GB, free: 85.65 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.462/18.32, allocations: 1.219 kB / 4.163 GB, free: 85.65 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)