Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",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.0007522/0.0007522, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.000788/0.000788, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7313/0.7313, allocations: 132.3 MB / 423.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 8 kB / 0.5035 GB, free: 4.145 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4008, allocations: 81.57 MB / 0.5832 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.155/0.5559, allocations: 146.7 MB / 0.7265 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002727/0.5587, allocations: 1.642 MB / 0.7281 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003193/0.559, allocations: 11.94 kB / 0.7281 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004778/0.5595, allocations: 119.2 kB / 0.7282 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.5606, allocations: 390.1 kB / 0.7286 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000958/0.5616, allocations: 326.2 kB / 0.7289 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002753/0.5644, allocations: 2.989 MB / 0.7318 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009866/0.5654, allocations: 0.6835 MB / 0.7325 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001538/0.5669, allocations: 0.8676 MB / 0.7333 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000869/0.5678, allocations: 0.704 MB / 0.734 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.232e-05/0.5679, allocations: 32 kB / 0.734 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.569, allocations: 0.5613 MB / 0.7346 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002597/0.5692, allocations: 286.9 kB / 0.7349 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002572/0.5695, allocations: 229.1 kB / 0.7351 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.5706, allocations: 1.017 MB / 0.7361 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.5706, allocations: 4 kB / 0.7361 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5706, allocations: 0 / 0.7361 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.5706, allocations: 0 / 0.7361 GB, free: 3.52 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001917/0.5725, allocations: 1.303 MB / 0.7373 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.5726, allocations: 8.031 kB / 0.7373 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.439e-05/0.5727, allocations: 90.52 kB / 0.7374 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006796/0.5734, allocations: 190.5 kB / 0.7376 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.5746, allocations: 0.8 MB / 0.7384 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.5746, allocations: 45 kB / 0.7384 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.972e-05/0.5747, allocations: 59.98 kB / 0.7385 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.5758, allocations: 0.7927 MB / 0.7393 GB, free: 40 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.5759, allocations: 7.938 kB / 0.7393 GB, free: 32 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.897e-05/0.5759, allocations: 24 kB / 0.7393 GB, free: 8 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.576, allocations: 16.05 kB / 0.7393 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008343/0.5768, allocations: 0.5383 MB / 0.7398 GB, free: 15.46 MB / 0.5762 GB 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.003388/0.5802, allocations: 4.606 MB / 0.7443 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006503/0.5809, allocations: 422.3 kB / 0.7447 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.5812, allocations: 258.2 kB / 0.745 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002704/0.5815, allocations: 190.2 kB / 0.7452 GB, free: 9.562 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.582, allocations: 297.1 kB / 0.7455 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.582, allocations: 0 / 0.7455 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of matching and sorting (n=31): time 0.001215/0.5832, allocations: 0.6523 MB / 0.7461 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.5833, allocations: 89 kB / 0.7462 GB, free: 8.492 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.5844, allocations: 1.106 MB / 0.7473 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.5844, allocations: 37.7 kB / 0.7473 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.5848, allocations: 0.4923 MB / 0.7478 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.261e-05/0.5849, allocations: 106.5 kB / 0.7479 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.177e-05/0.5849, allocations: 8 kB / 0.7479 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.585, allocations: 330 kB / 0.7482 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.5853, allocations: 180.7 kB / 0.7484 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004993/0.5858, allocations: 0.4979 MB / 0.7489 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/0.5862, allocations: 301.4 kB / 0.7491 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5863, allocations: 0 / 0.7491 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009755/0.5872, allocations: 0.6782 MB / 0.7498 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001371/0.5874, allocations: 272.1 kB / 0.7501 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.5874, allocations: 8 kB / 0.7501 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.5874, allocations: 8 kB / 0.7501 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.5878, allocations: 115.8 kB / 0.7502 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.5878, allocations: 11.94 kB / 0.7502 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005843/0.5884, allocations: 107.4 kB / 0.7503 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.5885, allocations: 24 kB / 0.7503 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.653e-06/0.5885, allocations: 7.984 kB / 0.7503 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007823/0.5893, allocations: 0.5446 MB / 0.7509 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.5893, allocations: 4.094 kB / 0.7509 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.574e-06/0.5893, allocations: 12 kB / 0.7509 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.5897, allocations: 107.9 kB / 0.751 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.5897, allocations: 15.88 kB / 0.751 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.5902, allocations: 95.56 kB / 0.7511 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.5902, allocations: 24 kB / 0.7511 GB, free: 3.152 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003933/0.5906, allocations: 472.7 kB / 0.7516 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.5908, allocations: 98.78 kB / 0.7517 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007915/0.5916, allocations: 0.4911 MB / 0.7521 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.5916, allocations: 8 kB / 0.7521 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5916, allocations: 3.953 kB / 0.7521 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5916, allocations: 3.984 kB / 0.7522 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.5933, allocations: 1.395 MB / 0.7535 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.5933, allocations: 4 kB / 0.7535 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.5935, allocations: 63.89 kB / 0.7536 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.5935, allocations: 8.219 kB / 0.7536 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.5936, allocations: 8 kB / 0.7536 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.5936, allocations: 7.984 kB / 0.7536 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5936, allocations: 0 / 0.7536 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007068/0.5943, allocations: 0.6082 MB / 0.7542 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.5946, allocations: 227.7 kB / 0.7544 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.5947, allocations: 15.98 kB / 0.7544 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004454/0.5951, allocations: 55.8 kB / 0.7545 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.5952, allocations: 31.95 kB / 0.7545 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.5952, allocations: 12 kB / 0.7545 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008436/0.5961, allocations: 0.7836 MB / 0.7553 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5961, allocations: 0 / 0.7553 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009269/0.597, allocations: 407.4 kB / 0.7557 GB, free: 14.32 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001197/0.5982, allocations: 1.237 MB / 0.7569 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001151/0.5994, allocations: 0.8134 MB / 0.7577 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5994, allocations: 0 / 0.7577 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.5997, allocations: 207.7 kB / 0.7579 GB, free: 12 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.6015, allocations: 455.9 kB / 0.7583 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00927/0.6108, allocations: 6.238 MB / 0.7644 GB, free: 5.035 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005902/0.6114, allocations: 1.177 MB / 0.7656 GB, free: 3.828 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00102/0.6124, allocations: 431.5 kB / 0.766 GB, free: 3.402 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.6128, allocations: 319.3 kB / 0.7663 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/0.6128, allocations: 4 kB / 0.7663 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.6497, allocations: 25.52 MB / 0.7912 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/0.6499, allocations: 238.3 kB / 0.7914 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.21/2.86, allocations: 7.234 kB / 0.7914 GB, free: 9.766 MB / 0.6231 GB (rm -f IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) Environment - environmentSimulation: