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.001037/0.001037, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009774/0.0009774, allocations: 93.45 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.21e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 51.47 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.628/7.749, allocations: 2.798 GB / 3.184 GB, free: 47.19 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/7.749, allocations: 80.72 kB / 3.184 GB, free: 47.11 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.359/11.11, allocations: 0.7063 GB / 3.89 GB, free: 26.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.385e-06/11.11, allocations: 0 / 3.89 GB, free: 26.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002517/11.11, allocations: 33.69 kB / 3.891 GB, free: 26.21 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.01203/11.12, allocations: 2.733 MB / 3.893 GB, free: 24.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/11.12, allocations: 7.625 kB / 3.893 GB, free: 24.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004444/11.13, allocations: 0.5671 MB / 3.894 GB, free: 24.13 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/11.13, allocations: 0.9912 MB / 3.895 GB, free: 23.12 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/11.13, allocations: 139.4 kB / 3.895 GB, free: 22.96 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/11.13, allocations: 76.67 kB / 3.895 GB, free: 22.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002413/11.13, allocations: 1.395 MB / 3.896 GB, free: 21.49 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/11.13, allocations: 1.619 MB / 3.898 GB, free: 19.73 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.551e-05/11.13, allocations: 3.938 kB / 3.898 GB, free: 19.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/11.13, allocations: 7.984 kB / 3.898 GB, free: 19.72 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.569e-05/11.13, allocations: 78.03 kB / 3.898 GB, free: 19.64 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.8355/11.97, allocations: 146.9 MB / 4.041 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00272/11.97, allocations: 1.076 MB / 4.042 GB, free: 23.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/11.97, allocations: 0.5758 MB / 4.043 GB, free: 23.62 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.686/12.66, allocations: 70.59 MB / 4.112 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002998/12.66, allocations: 0.7244 MB / 4.113 GB, free: 129.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=96): time 8.125e-06/12.66, allocations: 0 / 4.113 GB, free: 129.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=107): time 0.02288/12.69, allocations: 5.737 MB / 4.118 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.772e-05/12.69, allocations: 193 kB / 4.118 GB, free: 128.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/12.69, allocations: 0.7062 MB / 4.119 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002505/12.69, allocations: 30.33 kB / 4.119 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009799/12.69, allocations: 0.6269 MB / 4.12 GB, free: 128.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006642/12.69, allocations: 356.6 kB / 4.12 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/12.69, allocations: 0 / 4.12 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001854/12.69, allocations: 366 kB / 4.121 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/12.69, allocations: 0.5797 MB / 4.121 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/12.69, allocations: 0.9775 MB / 4.122 GB, free: 127.2 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00655/12.7, allocations: 1.422 MB / 4.123 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.174e-05/12.7, allocations: 5.109 kB / 4.123 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.009352/12.71, allocations: 2.728 MB / 4.126 GB, free: 127 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001367/12.71, allocations: 4.362 MB / 4.13 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-05/12.71, allocations: 11.5 kB / 4.13 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/12.71, allocations: 0.6893 MB / 4.131 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/12.71, allocations: 285.8 kB / 4.131 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007057/12.72, allocations: 5.894 MB / 4.137 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/12.72, allocations: 98.05 kB / 4.137 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000387/12.72, allocations: 79.52 kB / 4.137 GB, free: 118 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.269e-05/12.72, allocations: 3.75 kB / 4.137 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008728/12.73, allocations: 2.485 MB / 4.14 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.724e-05/12.73, allocations: 16.58 kB / 4.14 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/12.73, allocations: 0.6239 MB / 4.14 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/12.74, allocations: 291.1 kB / 4.141 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006184/12.74, allocations: 5.196 MB / 4.146 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/12.74, allocations: 96.09 kB / 4.146 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/12.74, allocations: 67.08 kB / 4.146 GB, free: 114 MB / 0.5573 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.000781/12.74, allocations: 158.4 kB / 4.146 GB, free: 113.9 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007133/12.75, allocations: 2.09 MB / 4.148 GB, free: 113.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/12.75, allocations: 115 kB / 4.148 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008209/12.76, allocations: 4.116 MB / 4.152 GB, free: 113.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-05/12.76, allocations: 45.16 kB / 4.152 GB, free: 113.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/12.76, allocations: 0 / 4.152 GB, free: 113.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/12.76, allocations: 3.047 kB / 4.152 GB, free: 113.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/12.77, allocations: 5.709 MB / 4.158 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/12.77, allocations: 3.953 kB / 4.158 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000831/12.77, allocations: 152.4 kB / 4.158 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/12.78, allocations: 1.159 MB / 4.159 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003105/12.78, allocations: 20.08 kB / 4.159 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006407/12.78, allocations: 4.886 MB / 4.164 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/12.78, allocations: 0 / 4.164 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/12.8, allocations: 4.617 MB / 4.168 GB, free: 109.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/12.8, allocations: 391 kB / 4.169 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000551/12.8, allocations: 9.344 kB / 4.169 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/12.8, allocations: 82.75 kB / 4.169 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/12.8, allocations: 108.1 kB / 4.169 GB, free: 109 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/12.8, allocations: 43.14 kB / 4.169 GB, free: 109 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001315/12.8, allocations: 0.5104 MB / 4.169 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.91e-07/12.8, allocations: 0 / 4.169 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01157/12.81, allocations: 1.951 MB / 4.171 GB, free: 108.8 MB / 0.5573 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.02545/12.84, allocations: 7.324 MB / 4.178 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008285/12.85, allocations: 3.035 MB / 4.181 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/12.85, allocations: 4.406 kB / 4.181 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002973/12.85, allocations: 1.293 MB / 4.183 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/12.85, allocations: 463 kB / 4.183 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/12.87, allocations: 3.842 MB / 4.187 GB, free: 106.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/12.87, allocations: 1.412 MB / 4.188 GB, free: 106 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004392/12.88, allocations: 1.574 MB / 4.19 GB, free: 106 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/12.88, allocations: 0.62 MB / 4.19 GB, free: 106 MB / 0.5573 GB Notification: Performance of SimCode: time 2.134e-06/12.88, allocations: 0 / 4.19 GB, free: 106 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1611/13.04, allocations: 73.04 MB / 4.262 GB, free: 95.78 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/13.04, allocations: 160.8 kB / 4.262 GB, free: 95.58 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.084/18.12, allocations: 0 / 4.262 GB, free: 95.58 MB / 0.5573 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)