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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001227, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 241.1 MB, free: 5.223 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003243, allocations: 6.406 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09367, allocations: 50.42 MB / 351.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.05327/0.147, allocations: 54.87 MB / 406.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.2367/0.3837, allocations: 23.95 MB / 430 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.3856, allocations: 42.66 kB / 430.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.3877, allocations: 0.6175 MB / 430.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01788/0.4056, allocations: 5.183 MB / 435.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01095/0.4166, allocations: 3.316 MB / 439.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004676/0.4213, allocations: 2.155 MB / 441.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.4232, allocations: 0.877 MB / 442.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01717/0.4404, allocations: 9.533 MB / 451.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02241/0.4629, allocations: 15.14 MB / 466.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000528/0.4635, allocations: 80 kB / 467 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02113/0.4846, allocations: 8.583 MB / 475.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.4859, allocations: 390.2 kB / 475.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.4869, allocations: 316.2 kB / 476.3 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.4984, allocations: 4.776 MB / 481 MB, free: 2.613 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4984, allocations: 0 / 481 MB, free: 2.613 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.656e-06/0.4985, allocations: 0 / 481 MB, free: 2.613 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.778e-05/0.4985, allocations: 0 / 481 MB, free: 2.613 MB / 366.1 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.008005/0.5065, allocations: 2.373 MB / 483.4 MB, free: 364 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.5066, allocations: 11.78 kB / 483.4 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000529/0.5071, allocations: 189.9 kB / 483.6 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003546/0.5107, allocations: 489.3 kB / 484.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.5127, allocations: 0.86 MB / 484.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.5129, allocations: 193.5 kB / 485.1 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.5131, allocations: 117.5 kB / 485.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004083/0.5172, allocations: 1.996 MB / 487.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.5172, allocations: 3 kB / 487.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.5174, allocations: 53.64 kB / 487.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.5175, allocations: 80.59 kB / 487.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003914/0.5215, allocations: 1.783 MB / 489.2 MB, free: 11.95 MB / 382.1 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.01506/0.5366, allocations: 9.273 MB / 498.4 MB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003263/0.5398, allocations: 1.503 MB / 499.9 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1504/0.6903, allocations: 64.32 MB / 0.551 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00308/0.6934, allocations: 1.058 MB / 0.5521 GB, free: 11.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=110): time 4.178e-06/0.6935, allocations: 0 / 0.5521 GB, free: 11.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=121): time 0.01696/0.7104, allocations: 6.537 MB / 0.5584 GB, free: 5.902 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.7107, allocations: 310.2 kB / 0.5587 GB, free: 5.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.7119, allocations: 1.034 MB / 0.5598 GB, free: 4.746 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.712, allocations: 50.45 kB / 0.5598 GB, free: 4.707 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004094/0.7125, allocations: 0.5685 MB / 0.5604 GB, free: 4.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003567/0.7128, allocations: 416.4 kB / 0.5608 GB, free: 3.992 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.779e-05/0.7129, allocations: 30.12 kB / 0.5608 GB, free: 3.984 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.7131, allocations: 368.5 kB / 0.5611 GB, free: 3.645 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.7142, allocations: 0.6295 MB / 0.5617 GB, free: 3.242 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.7155, allocations: 1.044 MB / 0.5628 GB, free: 2.301 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.7167, allocations: 0.7398 MB / 0.5635 GB, free: 1.867 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.7167, allocations: 7.984 kB / 0.5635 GB, free: 1.859 MB / 462.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003844/0.7206, allocations: 2.163 MB / 0.5656 GB, free: 396 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002062/0.7226, allocations: 4.454 MB / 0.57 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.7227, allocations: 15.84 kB / 0.57 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006228/0.7289, allocations: 1.01 MB / 0.571 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.7303, allocations: 305.1 kB / 0.5713 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/0.734, allocations: 4.028 MB / 0.5752 GB, free: 6.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.7357, allocations: 120.3 kB / 0.5753 GB, free: 6.637 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.7359, allocations: 73.16 kB / 0.5754 GB, free: 6.578 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.7359, allocations: 8 kB / 0.5754 GB, free: 6.57 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003882/0.7398, allocations: 1.964 MB / 0.5773 GB, free: 5.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.295e-05/0.7398, allocations: 12 kB / 0.5773 GB, free: 5.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005736/0.7456, allocations: 0.8958 MB / 0.5782 GB, free: 4.512 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.747, allocations: 303.6 kB / 0.5785 GB, free: 4.246 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/0.7501, allocations: 3.361 MB / 0.5818 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.7517, allocations: 129.9 kB / 0.5819 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.7519, allocations: 78.05 kB / 0.582 GB, free: 0.8984 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.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 (160): * Single equations (assignments): 154 * 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.0008815/0.7527, allocations: 455.8 kB / 0.5824 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.753, allocations: 138.4 kB / 0.5825 GB, free: 448 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007233/0.7603, allocations: 4.926 MB / 0.5873 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.925e-05/0.7604, allocations: 56.16 kB / 0.5874 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.7604, allocations: 0 / 0.5874 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.7604, allocations: 7.984 kB / 0.5874 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009035/0.7694, allocations: 6.735 MB / 0.594 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.7695, allocations: 0 / 0.594 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007655/0.7703, allocations: 176.8 kB / 0.5941 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004341/0.7746, allocations: 1.379 MB / 0.5955 GB, free: 6.125 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.7748, allocations: 39.92 kB / 0.5955 GB, free: 6.086 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003955/0.7788, allocations: 4.463 MB / 0.5999 GB, free: 1.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.7788, allocations: 3.984 kB / 0.5999 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1932/0.972, allocations: 4.933 MB / 0.6047 GB, free: 200.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.9732, allocations: 0.5421 MB / 0.6052 GB, free: 200 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003037/0.9735, allocations: 30.77 kB / 0.6053 GB, free: 200 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.9746, allocations: 100.5 kB / 0.6054 GB, free: 200 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.9749, allocations: 123.3 kB / 0.6055 GB, free: 200 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.975, allocations: 48.98 kB / 0.6055 GB, free: 200 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.9765, allocations: 0.99 MB / 0.6065 GB, free: 199.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.9766, allocations: 1.969 kB / 0.6065 GB, free: 199.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006769/0.9833, allocations: 1.939 MB / 0.6084 GB, free: 199.9 MB / 494.1 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.level,reservoir.medium.T,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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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.01353/0.9969, allocations: 7.086 MB / 0.6153 GB, free: 198.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006362/1.003, allocations: 3.127 MB / 0.6184 GB, free: 198.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.003, allocations: 0 / 0.6184 GB, free: 198.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002609/1.006, allocations: 1.517 MB / 0.6198 GB, free: 197.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/1.01, allocations: 0.6377 MB / 0.6205 GB, free: 197.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/1.024, allocations: 14.75 MB / 0.6349 GB, free: 185.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009821/1.025, allocations: 1.528 MB / 0.6364 GB, free: 184.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002645/1.028, allocations: 1.291 MB / 0.6376 GB, free: 184.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007831/1.029, allocations: 0.766 MB / 0.6384 GB, free: 183.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/1.029, allocations: 0 / 0.6384 GB, free: 183.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1132/1.142, allocations: 86.56 MB / 0.7229 GB, free: 97.46 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/1.142, allocations: 232.8 kB / 0.7231 GB, free: 97.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.937/7.079, allocations: 0 / 0.7231 GB, free: 97.23 MB / 494.1 MB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem_res.mat does not exist to compare? outputFormat=mat