Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001204/0.001204, allocations: 191 kB / 17.29 MB, free: 5.516 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.294/1.294, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 291.9 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9255/0.9255, allocations: 169.2 MB / 0.4989 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 105.3 kB / 0.5967 GB, free: 14.5 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1568, allocations: 86.96 MB / 0.6816 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.3048/0.4617, allocations: 41.57 MB / 0.7222 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01632/0.478, allocations: 10.39 MB / 0.7323 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.4802, allocations: 55.72 kB / 0.7324 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.482, allocations: 0.6424 MB / 0.733 GB, free: 140 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004906/0.4869, allocations: 1.88 MB / 0.7348 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00305/0.4899, allocations: 1.191 MB / 0.736 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004258/0.4942, allocations: 3.399 MB / 0.7393 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.4956, allocations: 1.062 MB / 0.7404 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.4983, allocations: 1.231 MB / 0.7416 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.4994, allocations: 0.8851 MB / 0.7424 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.4996, allocations: 107 kB / 0.7425 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.5016, allocations: 0.8598 MB / 0.7434 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.5019, allocations: 277 kB / 0.7436 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006447/0.5025, allocations: 0.6268 MB / 0.7442 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002409/0.505, allocations: 1.932 MB / 0.7461 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.505, allocations: 0 / 0.7461 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.273e-06/0.505, allocations: 0 / 0.7461 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.709e-05/0.505, allocations: 1.062 kB / 0.7461 GB, free: 8.078 MB / 0.5137 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.002264/0.5073, allocations: 1.521 MB / 0.7476 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.5073, allocations: 9.5 kB / 0.7476 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003616/0.5077, allocations: 132.8 kB / 0.7478 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.5095, allocations: 1.105 MB / 0.7488 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.335e-05/0.5095, allocations: 55.12 kB / 0.7489 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.5097, allocations: 68.25 kB / 0.749 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.511, allocations: 0.7991 MB / 0.7497 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.511, allocations: 1.031 kB / 0.7497 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.5111, allocations: 27.75 kB / 0.7498 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.142e-05/0.5111, allocations: 22.27 kB / 0.7498 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.5122, allocations: 0.5725 MB / 0.7503 GB, free: 5.094 MB / 0.5137 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.004012/0.5162, allocations: 3.554 MB / 0.7538 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005613/0.5168, allocations: 256.3 kB / 0.7541 GB, free: 1.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.5172, allocations: 178.9 kB / 0.7542 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005308/0.5177, allocations: 0.6628 MB / 0.7549 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.5177, allocations: 37.38 kB / 0.7549 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.5178, allocations: 4 kB / 0.7549 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31): time 0.001154/0.5189, allocations: 0.5067 MB / 0.7554 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.519, allocations: 55.56 kB / 0.7555 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.5201, allocations: 0.9485 MB / 0.7564 GB, free: 68 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.5202, allocations: 36.83 kB / 0.7564 GB, free: 28 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.5205, allocations: 0.4922 MB / 0.7569 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.5207, allocations: 118.7 kB / 0.757 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.5208, allocations: 114.7 kB / 0.7571 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5209, allocations: 331.2 kB / 0.7574 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003236/0.5213, allocations: 165.2 kB / 0.7576 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004374/0.5217, allocations: 348.9 kB / 0.7579 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007346/0.5225, allocations: 0.5106 MB / 0.7584 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5225, allocations: 0 / 0.7584 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001068/0.5235, allocations: 0.615 MB / 0.759 GB, free: 14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.5236, allocations: 8.188 kB / 0.759 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.5236, allocations: 5.5 kB / 0.759 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.5236, allocations: 12.31 kB / 0.7591 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004174/0.524, allocations: 120.8 kB / 0.7592 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.5241, allocations: 15.2 kB / 0.7592 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00066/0.5247, allocations: 87.69 kB / 0.7593 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.5248, allocations: 28.19 kB / 0.7593 GB, free: 13.89 MB / 0.5294 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.0003509/0.5251, allocations: 282.7 kB / 0.7596 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.5253, allocations: 98 kB / 0.7597 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009529/0.5263, allocations: 490.7 kB / 0.7601 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5263, allocations: 3.375 kB / 0.7601 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.5263, allocations: 1.188 kB / 0.7601 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007148/0.527, allocations: 453.3 kB / 0.7606 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.5292, allocations: 1.37 MB / 0.7619 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5292, allocations: 4 kB / 0.7619 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.5295, allocations: 79.88 kB / 0.762 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.5295, allocations: 3.938 kB / 0.762 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.5296, allocations: 8 kB / 0.762 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.5296, allocations: 4 kB / 0.762 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5296, allocations: 9.031 kB / 0.762 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5308, allocations: 0.7748 MB / 0.7628 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.5311, allocations: 215.8 kB / 0.763 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.5313, allocations: 15.92 kB / 0.763 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.5318, allocations: 31.97 kB / 0.763 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.654e-05/0.5318, allocations: 24.03 kB / 0.763 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.5319, allocations: 19.98 kB / 0.7631 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008397/0.5327, allocations: 0.6588 MB / 0.7637 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5327, allocations: 0 / 0.7637 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001104/0.5338, allocations: 343.4 kB / 0.764 GB, free: 9.684 MB / 0.5294 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.0008084/0.5347, allocations: 393.3 kB / 0.7644 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008402/0.5355, allocations: 416.8 kB / 0.7648 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.5355, allocations: 4.062 kB / 0.7648 GB, free: 8.895 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.5359, allocations: 183.8 kB / 0.765 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.5382, allocations: 0.6192 MB / 0.7656 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.5407, allocations: 1.59 MB / 0.7671 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.5413, allocations: 1.04 MB / 0.7682 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006432/0.5419, allocations: 197.6 kB / 0.7683 GB, free: 5.211 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.5421, allocations: 79.42 kB / 0.7684 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/0.5421, allocations: 0 / 0.7684 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of Templates: time 0.03316/0.5753, allocations: 21.24 MB / 0.7892 GB, free: 220 kB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)