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.001497/0.001497, 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.001894/0.001894, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7671/0.7671, allocations: 132.2 MB / 422.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 54.5 kB / 0.5019 GB, free: 3.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4045, allocations: 80.2 MB / 0.5802 GB, free: 4.402 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03996/0.4445, allocations: 41.58 MB / 0.6208 GB, free: 4.934 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.4622, allocations: 10.38 MB / 0.6309 GB, free: 12.45 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.4646, allocations: 58.81 kB / 0.631 GB, free: 12.43 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001815/0.4665, allocations: 0.6378 MB / 0.6316 GB, free: 11.88 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005255/0.4717, allocations: 1.878 MB / 0.6334 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002775/0.4745, allocations: 1.171 MB / 0.6346 GB, free: 9.484 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004344/0.4789, allocations: 3.38 MB / 0.6379 GB, free: 6.145 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.4802, allocations: 1.074 MB / 0.6389 GB, free: 5.051 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002499/0.4827, allocations: 1.225 MB / 0.6401 GB, free: 3.828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009933/0.4837, allocations: 0.875 MB / 0.641 GB, free: 2.949 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.4839, allocations: 100 kB / 0.6411 GB, free: 2.852 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.4857, allocations: 0.8578 MB / 0.6419 GB, free: 1.992 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.4859, allocations: 283 kB / 0.6422 GB, free: 1.715 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005953/0.4865, allocations: 0.6298 MB / 0.6428 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002212/0.4887, allocations: 1.912 MB / 0.6447 GB, free: 15.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.4888, allocations: 0 / 0.6447 GB, free: 15.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4888, allocations: 0 / 0.6447 GB, free: 15.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.4888, allocations: 8 kB / 0.6447 GB, free: 15.16 MB / 494.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.0021/0.4909, allocations: 1.511 MB / 0.6462 GB, free: 13.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.4909, allocations: 15.97 kB / 0.6462 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.4911, allocations: 114.7 kB / 0.6463 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003321/0.4914, allocations: 135.4 kB / 0.6464 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.4928, allocations: 1.043 MB / 0.6474 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.4929, allocations: 61.98 kB / 0.6475 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.291e-05/0.493, allocations: 64 kB / 0.6475 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.4942, allocations: 0.7983 MB / 0.6483 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.4942, allocations: 0 / 0.6483 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.4943, allocations: 31.94 kB / 0.6484 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.4943, allocations: 16 kB / 0.6484 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.4954, allocations: 0.575 MB / 0.6489 GB, free: 10.66 MB / 494.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.003525/0.4989, allocations: 3.571 MB / 0.6524 GB, free: 6.863 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.4995, allocations: 258.4 kB / 0.6527 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.4998, allocations: 180.6 kB / 0.6528 GB, free: 6.422 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004479/0.5003, allocations: 0.6576 MB / 0.6535 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.5003, allocations: 42.5 kB / 0.6535 GB, free: 5.566 MB / 494.1 MB Notification: Performance of pre-optimization done (n=31): time 1.983e-06/0.5003, allocations: 4 kB / 0.6535 GB, free: 5.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=31): time 0.001142/0.5015, allocations: 0.5063 MB / 0.654 GB, free: 5.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.5015, allocations: 55.41 kB / 0.6541 GB, free: 4.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.5026, allocations: 0.9532 MB / 0.655 GB, free: 4.012 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.5027, allocations: 41.7 kB / 0.655 GB, free: 3.965 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.5031, allocations: 0.4917 MB / 0.6555 GB, free: 3.469 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.5032, allocations: 102.5 kB / 0.6556 GB, free: 3.367 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.5033, allocations: 118.1 kB / 0.6557 GB, free: 3.246 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.815e-05/0.5034, allocations: 329.9 kB / 0.656 GB, free: 2.918 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003437/0.5038, allocations: 161 kB / 0.6562 GB, free: 2.762 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.5042, allocations: 354.9 kB / 0.6565 GB, free: 2.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007801/0.505, allocations: 0.5078 MB / 0.657 GB, free: 1.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.5051, allocations: 0 / 0.657 GB, free: 1.762 MB / 494.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00108/0.5061, allocations: 0.6224 MB / 0.6576 GB, free: 1.133 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.5062, allocations: 8 kB / 0.6576 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.5062, allocations: 8 kB / 0.6577 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.5062, allocations: 8 kB / 0.6577 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.5066, allocations: 123.8 kB / 0.6578 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.5067, allocations: 11.94 kB / 0.6578 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005635/0.5072, allocations: 87.19 kB / 0.6579 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.5073, allocations: 24 kB / 0.6579 GB, free: 0.8672 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.0003305/0.5076, allocations: 285.8 kB / 0.6582 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.5078, allocations: 98.78 kB / 0.6583 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009217/0.5087, allocations: 476 kB / 0.6587 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.5087, allocations: 8 kB / 0.6587 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.5088, allocations: 7.938 kB / 0.6587 GB, free: 0 / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007061/0.5095, allocations: 454.3 kB / 0.6592 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.5114, allocations: 1.362 MB / 0.6605 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5114, allocations: 0 / 0.6605 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.5117, allocations: 79.94 kB / 0.6606 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/0.5117, allocations: 8 kB / 0.6606 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.5118, allocations: 8 kB / 0.6606 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.5118, allocations: 8.156 kB / 0.6606 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5118, allocations: 3.938 kB / 0.6606 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.513, allocations: 0.7631 MB / 0.6613 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.5133, allocations: 227.8 kB / 0.6616 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.5134, allocations: 11.98 kB / 0.6616 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.5139, allocations: 31.91 kB / 0.6616 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.514, allocations: 35.97 kB / 0.6616 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.514, allocations: 19.98 kB / 0.6617 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007924/0.5148, allocations: 0.6627 MB / 0.6623 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5148, allocations: 0 / 0.6623 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009121/0.5158, allocations: 339.4 kB / 0.6626 GB, free: 11.85 MB / 0.4981 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.002064/0.5178, allocations: 1.587 MB / 0.6642 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009391/0.5188, allocations: 448 kB / 0.6646 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5188, allocations: 0 / 0.6646 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.5192, allocations: 184.3 kB / 0.6648 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.5217, allocations: 0.6086 MB / 0.6654 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.5307, allocations: 7.222 MB / 0.6724 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.5312, allocations: 1.044 MB / 0.6735 GB, free: 364 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007308/0.5319, allocations: 202.1 kB / 0.6736 GB, free: 164 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005771/0.5325, allocations: 371.4 kB / 0.674 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of SimCode: time 6.52e-07/0.5325, allocations: 0 / 0.674 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05345/0.586, allocations: 29.54 MB / 0.7028 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.231/8.818, allocations: 4.375 kB / 0.7029 GB, free: 2.703 MB / 0.5294 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)