Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IBPSA_latest_IBPSA_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.001205/0.001205, allocations: 102.4 kB / 16.27 MB, free: 5.953 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.001134/0.001135, allocations: 190.2 kB / 17.19 MB, free: 5.59 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7489/0.7489, allocations: 122.9 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 63.89 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3638, allocations: 77.91 MB / 0.5673 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03177/0.3957, allocations: 41.55 MB / 0.6079 GB, free: 1.105 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.4113, allocations: 10.41 MB / 0.618 GB, free: 6.746 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002976/0.4144, allocations: 55.69 kB / 0.6181 GB, free: 6.691 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.4166, allocations: 0.6365 MB / 0.6187 GB, free: 6.051 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005271/0.422, allocations: 1.885 MB / 0.6205 GB, free: 4.156 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002978/0.425, allocations: 1.167 MB / 0.6217 GB, free: 3.004 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00408/0.4291, allocations: 3.391 MB / 0.625 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.4307, allocations: 1.071 MB / 0.626 GB, free: 14.51 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002908/0.4337, allocations: 1.233 MB / 0.6272 GB, free: 13.29 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.435, allocations: 0.875 MB / 0.6281 GB, free: 12.41 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002783/0.4353, allocations: 100 kB / 0.6282 GB, free: 12.31 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.4376, allocations: 0.8656 MB / 0.629 GB, free: 11.44 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.438, allocations: 275 kB / 0.6293 GB, free: 11.17 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009676/0.439, allocations: 0.6298 MB / 0.6299 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002983/0.442, allocations: 1.901 MB / 0.6318 GB, free: 8.633 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.442, allocations: 4 kB / 0.6318 GB, free: 8.629 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.442, allocations: 0 / 0.6318 GB, free: 8.629 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.118e-05/0.4421, allocations: 0 / 0.6318 GB, free: 8.629 MB / 478.1 MB 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.002671/0.4447, allocations: 1.515 MB / 0.6332 GB, free: 7.062 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4448, allocations: 8.625 kB / 0.6333 GB, free: 7.055 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001471/0.4449, allocations: 114.7 kB / 0.6334 GB, free: 6.934 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.4453, allocations: 143.4 kB / 0.6335 GB, free: 6.793 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.4469, allocations: 1.033 MB / 0.6345 GB, free: 5.715 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.825e-05/0.447, allocations: 61.98 kB / 0.6346 GB, free: 5.656 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.4471, allocations: 72 kB / 0.6346 GB, free: 5.586 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.4486, allocations: 0.7943 MB / 0.6354 GB, free: 4.754 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.4486, allocations: 0 / 0.6354 GB, free: 4.754 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-05/0.4487, allocations: 35.98 kB / 0.6354 GB, free: 4.719 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/0.4487, allocations: 23.94 kB / 0.6355 GB, free: 4.695 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.4499, allocations: 0.5711 MB / 0.636 GB, free: 4.125 MB / 478.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.003877/0.4538, allocations: 3.563 MB / 0.6395 GB, free: 340 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.4544, allocations: 270.4 kB / 0.6398 GB, free: 60 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.4547, allocations: 176.7 kB / 0.6399 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004823/0.4552, allocations: 0.6571 MB / 0.6406 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.4553, allocations: 38.56 kB / 0.6406 GB, free: 15.03 MB / 494.1 MB Notification: Performance of pre-optimization done (n=31): time 1.874e-06/0.4553, allocations: 3.938 kB / 0.6406 GB, free: 15.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=31): time 0.001141/0.4564, allocations: 0.5046 MB / 0.6411 GB, free: 14.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.4565, allocations: 55.41 kB / 0.6412 GB, free: 14.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.4575, allocations: 0.9495 MB / 0.6421 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.4576, allocations: 33.7 kB / 0.6421 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003695/0.458, allocations: 0.4956 MB / 0.6426 GB, free: 12.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.4581, allocations: 114.4 kB / 0.6427 GB, free: 12.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.4582, allocations: 114 kB / 0.6428 GB, free: 12.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4584, allocations: 337.8 kB / 0.6431 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.4587, allocations: 165 kB / 0.6433 GB, free: 12.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/0.4592, allocations: 347 kB / 0.6436 GB, free: 11.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008076/0.46, allocations: 0.5109 MB / 0.6441 GB, free: 11.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.46, allocations: 4 kB / 0.6441 GB, free: 11.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001124/0.4611, allocations: 0.6175 MB / 0.6447 GB, free: 10.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4612, allocations: 11.98 kB / 0.6447 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4612, allocations: 4 kB / 0.6448 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.4612, allocations: 8 kB / 0.6448 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004273/0.4617, allocations: 123.8 kB / 0.6449 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.4617, allocations: 11.94 kB / 0.6449 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005787/0.4623, allocations: 87.09 kB / 0.645 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.4623, allocations: 35.98 kB / 0.645 GB, free: 10.31 MB / 494.1 MB 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.0003618/0.4627, allocations: 274.5 kB / 0.6453 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.4628, allocations: 98.78 kB / 0.6454 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000976/0.4638, allocations: 484.3 kB / 0.6458 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/0.4638, allocations: 4 kB / 0.6458 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4639, allocations: 0 / 0.6458 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006799/0.4645, allocations: 454 kB / 0.6463 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.4664, allocations: 1.371 MB / 0.6476 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4664, allocations: 4 kB / 0.6476 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.4668, allocations: 71.89 kB / 0.6477 GB, free: 7.469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.4668, allocations: 8.156 kB / 0.6477 GB, free: 7.461 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.4668, allocations: 15.94 kB / 0.6477 GB, free: 7.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.4668, allocations: 0 / 0.6477 GB, free: 7.445 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.4668, allocations: 7.984 kB / 0.6477 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.468, allocations: 0.7619 MB / 0.6484 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.4683, allocations: 235.7 kB / 0.6487 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.4685, allocations: 4 kB / 0.6487 GB, free: 6.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.469, allocations: 32.03 kB / 0.6487 GB, free: 6.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-05/0.4691, allocations: 31.89 kB / 0.6487 GB, free: 6.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.674e-05/0.4691, allocations: 16 kB / 0.6488 GB, free: 6.312 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008409/0.47, allocations: 0.6588 MB / 0.6494 GB, free: 5.645 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.47, allocations: 4 kB / 0.6494 GB, free: 5.641 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0009977/0.471, allocations: 335.5 kB / 0.6497 GB, free: 5.312 MB / 494.1 MB 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.00216/0.4731, allocations: 1.607 MB / 0.6513 GB, free: 3.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009505/0.4741, allocations: 447.8 kB / 0.6517 GB, free: 3.238 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4741, allocations: 0 / 0.6517 GB, free: 3.238 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.4745, allocations: 189 kB / 0.6519 GB, free: 3.055 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.4773, allocations: 0.6122 MB / 0.6525 GB, free: 2.484 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009429/0.4867, allocations: 7.22 MB / 0.6595 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006076/0.4873, allocations: 1.032 MB / 0.6606 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008389/0.4882, allocations: 207.4 kB / 0.6608 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004673/0.4887, allocations: 375.2 kB / 0.6611 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of SimCode: time 8.21e-07/0.4887, allocations: 0 / 0.6611 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05565/0.5443, allocations: 29.54 MB / 0.69 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.461, allocations: 3.938 kB / 0.69 GB, free: 12.07 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)