Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="IDEAS_dev_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.001162/0.001162, allocations: 112.5 kB / 15.73 MB, free: 76 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.001204/0.001204, allocations: 187.9 kB / 16.66 MB, free: 6.582 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9437/0.9437, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.89 kB / 0.5851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4705/0.4719, allocations: 80.92 MB / 0.6642 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03989/0.5118, allocations: 41.57 MB / 0.7047 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01607/0.5279, allocations: 10.38 MB / 0.7149 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00291/0.5309, allocations: 63.22 kB / 0.7149 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001984/0.5329, allocations: 0.6641 MB / 0.7156 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005409/0.5383, allocations: 1.97 MB / 0.7175 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003073/0.5414, allocations: 1.19 MB / 0.7187 GB, free: 9.613 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004355/0.5458, allocations: 3.399 MB / 0.722 GB, free: 6.203 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.5472, allocations: 1.067 MB / 0.723 GB, free: 5.121 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00281/0.55, allocations: 1.263 MB / 0.7243 GB, free: 3.859 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.5515, allocations: 0.8906 MB / 0.7251 GB, free: 2.965 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002833/0.5518, allocations: 100 kB / 0.7252 GB, free: 2.867 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002296/0.5541, allocations: 0.8578 MB / 0.7261 GB, free: 2.008 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004143/0.5546, allocations: 275 kB / 0.7263 GB, free: 1.738 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.5556, allocations: 0.6337 MB / 0.727 GB, free: 1.102 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003526/0.5592, allocations: 1.944 MB / 0.7289 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.5592, allocations: 0 / 0.7289 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.624e-06/0.5592, allocations: 0 / 0.7289 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.443e-05/0.5593, allocations: 0 / 0.7289 GB, free: 15.15 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003101/0.5624, allocations: 1.552 MB / 0.7304 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.5624, allocations: 8.031 kB / 0.7304 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001361/0.5625, allocations: 118.7 kB / 0.7305 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003839/0.5629, allocations: 136.1 kB / 0.7306 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.5648, allocations: 1.122 MB / 0.7317 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.5648, allocations: 54 kB / 0.7318 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.5649, allocations: 72 kB / 0.7318 GB, free: 12 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.5662, allocations: 0.7905 MB / 0.7326 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.5662, allocations: 3.938 kB / 0.7326 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/0.5663, allocations: 35.98 kB / 0.7327 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.135e-05/0.5664, allocations: 20 kB / 0.7327 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.5674, allocations: 0.5672 MB / 0.7332 GB, free: 10.54 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.003793/0.5712, allocations: 3.549 MB / 0.7367 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.5718, allocations: 263.9 kB / 0.7369 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.5722, allocations: 179.7 kB / 0.7371 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004922/0.5727, allocations: 0.6532 MB / 0.7377 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.5727, allocations: 50.48 kB / 0.7378 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.5727, allocations: 0 / 0.7378 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31): time 0.001204/0.574, allocations: 0.5208 MB / 0.7383 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.574, allocations: 63.28 kB / 0.7384 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.5752, allocations: 0.9534 MB / 0.7393 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.5752, allocations: 33.7 kB / 0.7393 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.5757, allocations: 0.5005 MB / 0.7398 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.5758, allocations: 111 kB / 0.7399 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.576, allocations: 118.1 kB / 0.74 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5761, allocations: 326 kB / 0.7403 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.5765, allocations: 165 kB / 0.7405 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/0.577, allocations: 354.9 kB / 0.7408 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008291/0.5778, allocations: 0.5039 MB / 0.7413 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.5778, allocations: 4 kB / 0.7413 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001205/0.579, allocations: 0.623 MB / 0.7419 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.5791, allocations: 15.97 kB / 0.742 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.5791, allocations: 4 kB / 0.742 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.5791, allocations: 8 kB / 0.742 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.5796, allocations: 123.8 kB / 0.7421 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.633e-05/0.5796, allocations: 19.86 kB / 0.7421 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006231/0.5802, allocations: 83.42 kB / 0.7422 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.5803, allocations: 24 kB / 0.7422 GB, free: 0.7344 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.0003597/0.5807, allocations: 281.6 kB / 0.7425 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.5808, allocations: 103.3 kB / 0.7426 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009716/0.5818, allocations: 476.7 kB / 0.743 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.5818, allocations: 4 kB / 0.743 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.5819, allocations: 7.938 kB / 0.743 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000707/0.5826, allocations: 451 kB / 0.7435 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.5847, allocations: 1.363 MB / 0.7448 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.5847, allocations: 0 / 0.7448 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.5851, allocations: 75.89 kB / 0.7449 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.5851, allocations: 0 / 0.7449 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/0.5851, allocations: 15.98 kB / 0.7449 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.5852, allocations: 4.156 kB / 0.7449 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5852, allocations: 7.938 kB / 0.7449 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.5866, allocations: 0.7684 MB / 0.7457 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/0.587, allocations: 228.4 kB / 0.7459 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.5872, allocations: 8 kB / 0.7459 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006525/0.5879, allocations: 39.97 kB / 0.7459 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.683e-05/0.588, allocations: 31.97 kB / 0.746 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.455e-05/0.5881, allocations: 19.98 kB / 0.746 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001108/0.5892, allocations: 0.6588 MB / 0.7466 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5892, allocations: 0 / 0.7466 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001121/0.5903, allocations: 347.1 kB / 0.7469 GB, free: 11.71 MB / 0.5762 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.002617/0.5929, allocations: 1.593 MB / 0.7485 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001024/0.594, allocations: 420.9 kB / 0.7489 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.594, allocations: 0 / 0.7489 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003863/0.5944, allocations: 192.5 kB / 0.7491 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002936/0.5973, allocations: 0.6103 MB / 0.7497 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.6076, allocations: 6.843 MB / 0.7564 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.6083, allocations: 1.036 MB / 0.7574 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007742/0.6091, allocations: 200.3 kB / 0.7576 GB, free: 500 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.6096, allocations: 375.3 kB / 0.7579 GB, free: 124 kB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/0.6096, allocations: 0 / 0.7579 GB, free: 124 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06346/0.6731, allocations: 29.73 MB / 0.787 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10/10.68, allocations: 6.734 kB / 0.787 GB, free: 2.762 MB / 0.6075 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)