Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_PlugFlowPipe",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.001092/0.001092, allocations: 108 kB / 15.61 MB, free: 152 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.001117/0.001117, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.298/1.298, 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-master/package.mo): time 0.8942/0.8942, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.67 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1252, allocations: 80.92 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.3037/0.4289, allocations: 115.1 MB / 0.6969 GB, free: 12 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03269/0.4617, allocations: 26.51 MB / 0.7228 GB, free: 8.922 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003871/0.4656, allocations: 114.9 kB / 0.7229 GB, free: 8.883 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002812/0.4684, allocations: 1.155 MB / 0.724 GB, free: 8.145 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008639/0.4771, allocations: 3.419 MB / 0.7274 GB, free: 6.012 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005657/0.4827, allocations: 2.324 MB / 0.7296 GB, free: 4.211 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.007117/0.4899, allocations: 6.188 MB / 0.7357 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002273/0.4922, allocations: 1.921 MB / 0.7376 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004708/0.4969, allocations: 2.645 MB / 0.7401 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001793/0.4987, allocations: 1.781 MB / 0.7419 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.499, allocations: 222.2 kB / 0.7421 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.5034, allocations: 2.328 MB / 0.7444 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004298/0.5038, allocations: 0.5331 MB / 0.7449 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.505, allocations: 1.283 MB / 0.7461 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004278/0.5093, allocations: 4.067 MB / 0.7501 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5093, allocations: 0 / 0.7501 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5093, allocations: 7.938 kB / 0.7501 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.945e-05/0.5093, allocations: 0 / 0.7501 GB, free: 4.543 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: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.004689/0.514, allocations: 2.83 MB / 0.7529 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.5141, allocations: 12.03 kB / 0.7529 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002133/0.5143, allocations: 198.6 kB / 0.7531 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000554/0.5148, allocations: 261.1 kB / 0.7533 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003657/0.5185, allocations: 2.056 MB / 0.7553 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.47e-05/0.5186, allocations: 102.7 kB / 0.7554 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.5188, allocations: 143.9 kB / 0.7556 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.5211, allocations: 1.454 MB / 0.757 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/0.5211, allocations: 4 kB / 0.757 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.5213, allocations: 63.92 kB / 0.7571 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.461e-05/0.5213, allocations: 43.94 kB / 0.7571 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.5232, allocations: 1.021 MB / 0.7581 GB, free: 12.16 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.007639/0.5308, allocations: 8.178 MB / 0.7661 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.5323, allocations: 0.8316 MB / 0.7669 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.5329, allocations: 381 kB / 0.7673 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00195/0.5348, allocations: 2.799 MB / 0.77 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.5349, allocations: 43.22 kB / 0.77 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=85): time 2.425e-06/0.5349, allocations: 7.938 kB / 0.77 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85): time 0.002162/0.5371, allocations: 1.128 MB / 0.7711 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.5371, allocations: 64 kB / 0.7712 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/0.539, allocations: 1.621 MB / 0.7728 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.5391, allocations: 41.7 kB / 0.7728 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006549/0.5398, allocations: 0.9315 MB / 0.7737 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.54, allocations: 311.5 kB / 0.774 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.5403, allocations: 234.6 kB / 0.7743 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5404, allocations: 345.9 kB / 0.7746 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006098/0.541, allocations: 325.9 kB / 0.7749 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008534/0.5419, allocations: 0.7072 MB / 0.7756 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.5434, allocations: 1.093 MB / 0.7767 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.5435, allocations: 4 kB / 0.7767 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002117/0.5456, allocations: 1.249 MB / 0.7779 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.5456, allocations: 8 kB / 0.7779 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/0.5456, allocations: 16 kB / 0.7779 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.5457, allocations: 20 kB / 0.7779 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008108/0.5465, allocations: 264.2 kB / 0.7782 GB, free: 5.812 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/0.5465, allocations: 27.86 kB / 0.7782 GB, free: 5.785 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008982/0.5474, allocations: 134.6 kB / 0.7783 GB, free: 5.652 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.5475, allocations: 66.55 kB / 0.7784 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009874/0.5485, allocations: 0.6197 MB / 0.779 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008207/0.5494, allocations: 0.7072 MB / 0.7797 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001462/0.5508, allocations: 1.077 MB / 0.7807 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.64e-06/0.5508, allocations: 4 kB / 0.7807 GB, free: 2.855 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002068/0.5529, allocations: 1.245 MB / 0.782 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.5529, allocations: 8.906 kB / 0.782 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.553, allocations: 16 kB / 0.782 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.553, allocations: 27.98 kB / 0.782 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000789/0.5538, allocations: 255.6 kB / 0.7823 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.5538, allocations: 27.81 kB / 0.7823 GB, free: 1.273 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008541/0.5547, allocations: 99.17 kB / 0.7824 GB, free: 1.176 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.765e-05/0.5548, allocations: 63.97 kB / 0.7824 GB, free: 1.113 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000196/0.555, allocations: 259.8 kB / 0.7827 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.5553, allocations: 189.7 kB / 0.7829 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.5582, allocations: 1.742 MB / 0.7846 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.5583, allocations: 27.92 kB / 0.7846 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5583, allocations: 0 / 0.7846 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001674/0.56, allocations: 1.142 MB / 0.7857 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/0.5646, allocations: 3.483 MB / 0.7891 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-05/0.5647, allocations: 11.98 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.5654, allocations: 207.6 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.5654, allocations: 8 kB / 0.7893 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/0.5655, allocations: 43.97 kB / 0.7894 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.198e-05/0.5655, allocations: 12 kB / 0.7894 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.5655, allocations: 15.88 kB / 0.7894 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002995/0.5685, allocations: 2.23 MB / 0.7916 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005282/0.569, allocations: 434.1 kB / 0.792 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.5693, allocations: 35.98 kB / 0.792 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008111/0.5701, allocations: 40.11 kB / 0.7921 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.5703, allocations: 124.7 kB / 0.7922 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.731e-05/0.5704, allocations: 63.95 kB / 0.7922 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001345/0.5717, allocations: 1.087 MB / 0.7933 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5717, allocations: 0 / 0.7933 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002449/0.5742, allocations: 1.131 MB / 0.7944 GB, free: 4.508 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * When equations: 0 * 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.004472/0.5787, allocations: 3.476 MB / 0.7978 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003402/0.5821, allocations: 1.902 MB / 0.7997 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5821, allocations: 0 / 0.7997 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.5832, allocations: 0.8229 MB / 0.8005 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003856/0.5871, allocations: 0.9834 MB / 0.8014 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.6048, allocations: 13.82 MB / 0.8149 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009808/0.6058, allocations: 1.44 MB / 0.8163 GB, free: 12.64 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001835/0.6077, allocations: 0.531 MB / 0.8168 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/0.6087, allocations: 0.8467 MB / 0.8177 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of SimCode: time 5e-07/0.6087, allocations: 0 / 0.8177 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.293/0.9017, allocations: 58.39 MB / 0.8747 GB, free: 215.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.875/9.776, allocations: 8.594 kB / 0.8747 GB, free: 215.2 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 IDEAS_dev_IDEAS_Fluid_FixedResistances_Examples_PlugFlowPipe.fmu > IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1)