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.001372/0.001372, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7604/0.7604, allocations: 132.2 MB / 422.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 54.41 kB / 0.5019 GB, free: 3.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.4396, allocations: 80.2 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.193/0.6326, allocations: 161.6 MB / 0.738 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003382/0.6361, allocations: 1.757 MB / 0.7397 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004728/0.6366, allocations: 11.94 kB / 0.7397 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007104/0.6373, allocations: 162.9 kB / 0.7399 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001536/0.6389, allocations: 0.525 MB / 0.7404 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.6401, allocations: 400.9 kB / 0.7408 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002639/0.6427, allocations: 2.524 MB / 0.7433 GB, free: 9.977 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001418/0.6442, allocations: 0.9255 MB / 0.7442 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001946/0.6461, allocations: 1.024 MB / 0.7452 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.6473, allocations: 0.7001 MB / 0.7458 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002211/0.6476, allocations: 56 kB / 0.7459 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.6496, allocations: 0.7445 MB / 0.7466 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005307/0.6501, allocations: 310.9 kB / 0.7469 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.6513, allocations: 0.5324 MB / 0.7474 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.6535, allocations: 1.394 MB / 0.7488 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.6535, allocations: 0 / 0.7488 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6535, allocations: 3.938 kB / 0.7488 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.255e-05/0.6536, allocations: 0 / 0.7488 GB, free: 4.266 MB / 0.5762 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.002859/0.6564, allocations: 1.443 MB / 0.7502 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.6565, allocations: 12.03 kB / 0.7502 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.6566, allocations: 98.5 kB / 0.7503 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009145/0.6576, allocations: 186.4 kB / 0.7505 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.6591, allocations: 0.7983 MB / 0.7513 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.804e-05/0.6591, allocations: 45 kB / 0.7513 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.421e-05/0.6592, allocations: 64 kB / 0.7514 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.6604, allocations: 0.7926 MB / 0.7522 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.6605, allocations: 7.922 kB / 0.7522 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.078e-05/0.6605, allocations: 20 kB / 0.7522 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.6605, allocations: 12 kB / 0.7522 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009261/0.6615, allocations: 0.5383 MB / 0.7527 GB, free: 52 kB / 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.004344/0.6658, allocations: 4.602 MB / 0.7572 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007289/0.6666, allocations: 410.3 kB / 0.7576 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/0.667, allocations: 249 kB / 0.7578 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003171/0.6673, allocations: 198.1 kB / 0.758 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.6678, allocations: 294.4 kB / 0.7583 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=31): time 2.615e-06/0.6678, allocations: 0 / 0.7583 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of matching and sorting (n=31): time 0.001508/0.6693, allocations: 0.6317 MB / 0.7589 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.6694, allocations: 85.09 kB / 0.759 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.6708, allocations: 1.118 MB / 0.7601 GB, free: 8.004 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.6708, allocations: 37.7 kB / 0.7601 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003788/0.6712, allocations: 488.1 kB / 0.7606 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.6713, allocations: 118.5 kB / 0.7607 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.6715, allocations: 109.9 kB / 0.7608 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6716, allocations: 326.2 kB / 0.7611 GB, free: 6.926 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.672, allocations: 214.4 kB / 0.7613 GB, free: 6.715 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.6727, allocations: 0.5174 MB / 0.7618 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009055/0.6736, allocations: 0.6408 MB / 0.7625 GB, free: 5.34 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.6736, allocations: 3.938 kB / 0.7625 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001199/0.6748, allocations: 0.7223 MB / 0.7632 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.6749, allocations: 37.69 kB / 0.7632 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.6749, allocations: 8 kB / 0.7632 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.6749, allocations: 8 kB / 0.7632 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004127/0.6753, allocations: 107.8 kB / 0.7633 GB, free: 4.438 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.6753, allocations: 15.92 kB / 0.7633 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.676, allocations: 79.44 kB / 0.7634 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.552e-05/0.676, allocations: 23.98 kB / 0.7634 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006335/0.6767, allocations: 0.4928 MB / 0.7639 GB, free: 3.824 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005291/0.6772, allocations: 489.9 kB / 0.7644 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000746/0.678, allocations: 0.5584 MB / 0.7649 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.94e-06/0.678, allocations: 0 / 0.7649 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001052/0.679, allocations: 0.6498 MB / 0.7656 GB, free: 1.914 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.6791, allocations: 34.36 kB / 0.7656 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.6791, allocations: 8 kB / 0.7656 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.6791, allocations: 12 kB / 0.7656 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.6795, allocations: 103.8 kB / 0.7657 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.6795, allocations: 8 kB / 0.7657 GB, free: 1.746 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.6801, allocations: 67.95 kB / 0.7658 GB, free: 1.68 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.6801, allocations: 24 kB / 0.7658 GB, free: 1.656 MB / 0.5919 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 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.6803, allocations: 220.7 kB / 0.766 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.6804, allocations: 98.78 kB / 0.7661 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008274/0.6813, allocations: 495 kB / 0.7666 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.6813, allocations: 4 kB / 0.7666 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.6813, allocations: 3.938 kB / 0.7666 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.6813, allocations: 4.188 kB / 0.7666 GB, free: 0.832 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.6832, allocations: 1.383 MB / 0.768 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.6832, allocations: 0 / 0.768 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.6834, allocations: 67.88 kB / 0.768 GB, free: 15.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.6835, allocations: 4 kB / 0.768 GB, free: 15.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.6835, allocations: 8 kB / 0.768 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.6835, allocations: 7.984 kB / 0.768 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.6835, allocations: 0 / 0.768 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.6843, allocations: 0.6062 MB / 0.7686 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.6846, allocations: 219.8 kB / 0.7688 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.6847, allocations: 8 kB / 0.7689 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.6851, allocations: 19.97 kB / 0.7689 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/0.6852, allocations: 35.84 kB / 0.7689 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.6852, allocations: 12 kB / 0.7689 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0009266/0.6862, allocations: 0.7875 MB / 0.7697 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6862, allocations: 0 / 0.7697 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00102/0.6872, allocations: 411.4 kB / 0.7701 GB, free: 13.13 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001333/0.6885, allocations: 1.215 MB / 0.7713 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001352/0.6899, allocations: 0.8556 MB / 0.7721 GB, free: 11 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.6899, allocations: 0 / 0.7721 GB, free: 11 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.6903, allocations: 220.1 kB / 0.7723 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/0.6921, allocations: 448.4 kB / 0.7727 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/0.703, allocations: 8.546 MB / 0.7811 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.7037, allocations: 1.176 MB / 0.7822 GB, free: 196 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001101/0.7048, allocations: 403.7 kB / 0.7826 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/0.7053, allocations: 323.3 kB / 0.7829 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of SimCode: time 1.273e-06/0.7053, allocations: 0 / 0.7829 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05143/0.7567, allocations: 25.89 MB / 0.8082 GB, free: 5.98 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.992/8.749, allocations: 6.578 kB / 0.8082 GB, free: 5.98 MB / 0.6387 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > IDEAS_IDEAS.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)