Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.008278/0.008279, allocations: 96.16 kB / 15.73 MB, free: 6.043 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.001495/0.001495, allocations: 203.8 kB / 16.68 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.752/0.752, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 63.91 kB / 0.5809 GB, free: 8.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4832/0.4847, allocations: 80.21 MB / 0.6592 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04254/0.5273, allocations: 41.57 MB / 0.6998 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01893/0.5463, allocations: 10.38 MB / 0.7099 GB, free: 432 kB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002946/0.5493, allocations: 56.56 kB / 0.71 GB, free: 412 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.5514, allocations: 0.6581 MB / 0.7106 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005991/0.5574, allocations: 1.973 MB / 0.7126 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003323/0.5607, allocations: 1.195 MB / 0.7137 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00542/0.5661, allocations: 3.391 MB / 0.717 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.5678, allocations: 1.053 MB / 0.7181 GB, free: 9.738 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003489/0.5713, allocations: 1.277 MB / 0.7193 GB, free: 8.461 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001804/0.5731, allocations: 0.8828 MB / 0.7202 GB, free: 7.574 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000365/0.5735, allocations: 100 kB / 0.7203 GB, free: 7.477 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002711/0.5762, allocations: 0.8617 MB / 0.7211 GB, free: 6.613 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.5766, allocations: 279 kB / 0.7214 GB, free: 6.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009801/0.5776, allocations: 0.6299 MB / 0.722 GB, free: 5.707 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003172/0.5807, allocations: 1.946 MB / 0.7239 GB, free: 3.758 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.5808, allocations: 0 / 0.7239 GB, free: 3.758 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.944e-06/0.5808, allocations: 3.938 kB / 0.7239 GB, free: 3.754 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.766e-05/0.5808, allocations: 0 / 0.7239 GB, free: 3.754 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002583/0.5834, allocations: 1.544 MB / 0.7254 GB, free: 2.156 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5835, allocations: 15.97 kB / 0.7254 GB, free: 2.141 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.5836, allocations: 122.7 kB / 0.7255 GB, free: 2.012 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.584, allocations: 136.1 kB / 0.7257 GB, free: 1.879 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.5859, allocations: 1.119 MB / 0.7268 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.815e-05/0.586, allocations: 54 kB / 0.7268 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.5861, allocations: 72 kB / 0.7269 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.5875, allocations: 0.7943 MB / 0.7277 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.5876, allocations: 0 / 0.7277 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.5876, allocations: 32 kB / 0.7277 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/0.5877, allocations: 23.94 kB / 0.7277 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.5888, allocations: 0.5633 MB / 0.7283 GB, free: 15.14 MB / 0.5606 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.004241/0.5931, allocations: 3.56 MB / 0.7317 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/0.5937, allocations: 258.4 kB / 0.732 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.5941, allocations: 176.8 kB / 0.7321 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005884/0.5947, allocations: 0.6532 MB / 0.7328 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.5947, allocations: 42.55 kB / 0.7328 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.465e-06/0.5947, allocations: 4 kB / 0.7328 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001269/0.596, allocations: 0.5189 MB / 0.7333 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.5961, allocations: 59.34 kB / 0.7334 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.5972, allocations: 0.9495 MB / 0.7343 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.5973, allocations: 37.7 kB / 0.7344 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004454/0.5978, allocations: 0.4966 MB / 0.7348 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.5979, allocations: 123 kB / 0.735 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.5981, allocations: 114.2 kB / 0.7351 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5982, allocations: 326 kB / 0.7354 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.5986, allocations: 161 kB / 0.7355 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004907/0.5991, allocations: 350.9 kB / 0.7359 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009009/0.6, allocations: 0.5117 MB / 0.7364 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.6, allocations: 0 / 0.7364 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001177/0.6012, allocations: 0.6185 MB / 0.737 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.6012, allocations: 12.62 kB / 0.737 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.6012, allocations: 8 kB / 0.737 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.6013, allocations: 12 kB / 0.737 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.6017, allocations: 119.8 kB / 0.7371 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.6018, allocations: 15.92 kB / 0.7371 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006994/0.6025, allocations: 83.42 kB / 0.7372 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.6025, allocations: 24 kB / 0.7372 GB, free: 5.344 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * 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.0003997/0.6029, allocations: 282.5 kB / 0.7375 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.6031, allocations: 107.3 kB / 0.7376 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009785/0.6041, allocations: 483.3 kB / 0.7381 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.6041, allocations: 4 kB / 0.7381 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.6041, allocations: 3.938 kB / 0.7381 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007218/0.6049, allocations: 455 kB / 0.7385 GB, free: 4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.6071, allocations: 1.374 MB / 0.7398 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.6072, allocations: 0 / 0.7398 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.6075, allocations: 79.88 kB / 0.7399 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.6075, allocations: 7.938 kB / 0.7399 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.6076, allocations: 8 kB / 0.7399 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.6076, allocations: 4 kB / 0.7399 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6076, allocations: 0 / 0.7399 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.6089, allocations: 0.776 MB / 0.7407 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.6093, allocations: 228.4 kB / 0.7409 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.6095, allocations: 8 kB / 0.7409 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000514/0.61, allocations: 31.91 kB / 0.741 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.6101, allocations: 27.91 kB / 0.741 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.6101, allocations: 24.05 kB / 0.741 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008877/0.611, allocations: 0.6628 MB / 0.7417 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.611, allocations: 0 / 0.7417 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001103/0.6121, allocations: 347.1 kB / 0.742 GB, free: 316 kB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002557/0.6147, allocations: 1.591 MB / 0.7435 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.6157, allocations: 432.7 kB / 0.744 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6157, allocations: 0 / 0.744 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.6162, allocations: 189 kB / 0.7441 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.619, allocations: 0.6127 MB / 0.7447 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.6294, allocations: 6.835 MB / 0.7514 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/0.6301, allocations: 1.04 MB / 0.7524 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008125/0.6309, allocations: 195.4 kB / 0.7526 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.6314, allocations: 379.2 kB / 0.753 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of SimCode: time 8.02e-07/0.6314, allocations: 0 / 0.753 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07041/0.7018, allocations: 29.73 MB / 0.782 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.938/10.64, allocations: 9.781 kB / 0.782 GB, free: 7.453 MB / 0.6075 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IDEAS_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)