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.001129/0.001128, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001068/0.001068, allocations: 195.2 kB / 16.14 MB, free: 6.715 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.314/1.314, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002061/0.002061, allocations: 290 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9291/0.9291, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 90.91 kB / 0.5945 GB, free: 28.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.161, allocations: 86.99 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03796/0.199, allocations: 41.32 MB / 0.7198 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01486/0.2139, allocations: 10.45 MB / 0.73 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.2157, allocations: 47.69 kB / 0.73 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.2175, allocations: 0.5361 MB / 0.7306 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004224/0.2217, allocations: 1.749 MB / 0.7323 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002593/0.2243, allocations: 1.073 MB / 0.7333 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004649/0.229, allocations: 4.518 MB / 0.7377 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.2301, allocations: 0.8867 MB / 0.7386 GB, free: 4.43 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001727/0.2319, allocations: 1.046 MB / 0.7396 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.2329, allocations: 0.8905 MB / 0.7405 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.233, allocations: 48 kB / 0.7405 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.2348, allocations: 0.7794 MB / 0.7413 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002578/0.2351, allocations: 231 kB / 0.7415 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006079/0.2357, allocations: 0.5791 MB / 0.7421 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002276/0.238, allocations: 1.873 MB / 0.7439 GB, free: 14.97 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.238, allocations: 0 / 0.7439 GB, free: 14.97 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.042e-06/0.238, allocations: 0 / 0.7439 GB, free: 14.97 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.529e-05/0.2381, allocations: 0 / 0.7439 GB, free: 14.97 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.002419/0.2405, allocations: 1.515 MB / 0.7454 GB, free: 13.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2405, allocations: 11.97 kB / 0.7454 GB, free: 13.39 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003536/0.2409, allocations: 139.4 kB / 0.7455 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.2425, allocations: 1.079 MB / 0.7466 GB, free: 12.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.2425, allocations: 54 kB / 0.7466 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.2426, allocations: 71.91 kB / 0.7467 GB, free: 12.01 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.244, allocations: 0.7983 MB / 0.7475 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.244, allocations: 0 / 0.7475 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.2441, allocations: 28 kB / 0.7475 GB, free: 11.15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.2441, allocations: 20 kB / 0.7475 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2452, allocations: 0.575 MB / 0.7481 GB, free: 10.55 MB / 0.545 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.004277/0.2495, allocations: 3.54 MB / 0.7516 GB, free: 6.785 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.2501, allocations: 264.5 kB / 0.7518 GB, free: 6.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.2504, allocations: 183.6 kB / 0.752 GB, free: 6.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005175/0.2509, allocations: 0.6609 MB / 0.7526 GB, free: 5.531 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.251, allocations: 34.56 kB / 0.7527 GB, free: 5.488 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.251, allocations: 0 / 0.7527 GB, free: 5.488 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001213/0.2522, allocations: 0.513 MB / 0.7532 GB, free: 4.969 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.2523, allocations: 51.41 kB / 0.7532 GB, free: 4.906 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.2534, allocations: 0.9338 MB / 0.7541 GB, free: 3.953 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.2535, allocations: 33.7 kB / 0.7542 GB, free: 3.914 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003985/0.2539, allocations: 499.6 kB / 0.7546 GB, free: 3.418 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.254, allocations: 122.3 kB / 0.7547 GB, free: 3.297 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.2542, allocations: 118.1 kB / 0.7549 GB, free: 3.176 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.2543, allocations: 329.9 kB / 0.7552 GB, free: 2.848 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.2546, allocations: 165 kB / 0.7553 GB, free: 2.684 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/0.2552, allocations: 347.6 kB / 0.7557 GB, free: 2.273 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000796/0.256, allocations: 0.5187 MB / 0.7562 GB, free: 1.684 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.256, allocations: 0 / 0.7562 GB, free: 1.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001083/0.2571, allocations: 0.6132 MB / 0.7568 GB, free: 1.062 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.2571, allocations: 4 kB / 0.7568 GB, free: 1.059 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.2571, allocations: 8 kB / 0.7568 GB, free: 1.051 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.2571, allocations: 8.562 kB / 0.7568 GB, free: 1.043 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.2576, allocations: 127.8 kB / 0.7569 GB, free: 0.918 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/0.2576, allocations: 11.94 kB / 0.7569 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006694/0.2583, allocations: 111.2 kB / 0.757 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-05/0.2583, allocations: 24 kB / 0.757 GB, free: 0.7734 MB / 0.545 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.000355/0.2587, allocations: 279.3 kB / 0.7573 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.2588, allocations: 98.78 kB / 0.7574 GB, free: 404 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009968/0.2599, allocations: 492.8 kB / 0.7579 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.2599, allocations: 4 kB / 0.7579 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2599, allocations: 0 / 0.7579 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007093/0.2606, allocations: 453.4 kB / 0.7583 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.2626, allocations: 1.366 MB / 0.7596 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2626, allocations: 8.031 kB / 0.7597 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.2629, allocations: 75.89 kB / 0.7597 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.2629, allocations: 7.938 kB / 0.7597 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.263, allocations: 11.98 kB / 0.7597 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.263, allocations: 0 / 0.7597 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.263, allocations: 4 kB / 0.7597 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.2642, allocations: 0.7621 MB / 0.7605 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.2645, allocations: 231.7 kB / 0.7607 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.2647, allocations: 4 kB / 0.7607 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005609/0.2652, allocations: 52 kB / 0.7608 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.921e-05/0.2653, allocations: 23.97 kB / 0.7608 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.2654, allocations: 24.05 kB / 0.7608 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000821/0.2662, allocations: 0.6471 MB / 0.7614 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.51e-07/0.2662, allocations: 0 / 0.7614 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009301/0.2671, allocations: 339.4 kB / 0.7618 GB, free: 11.76 MB / 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.0007547/0.2679, allocations: 379.5 kB / 0.7621 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008395/0.2687, allocations: 416.7 kB / 0.7625 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2688, allocations: 0 / 0.7625 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003758/0.2691, allocations: 184.3 kB / 0.7627 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.2717, allocations: 0.5924 MB / 0.7633 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.2743, allocations: 1.954 MB / 0.7652 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.2749, allocations: 1.032 MB / 0.7662 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007312/0.2757, allocations: 193.8 kB / 0.7664 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.2758, allocations: 83.42 kB / 0.7665 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/0.2758, allocations: 0 / 0.7665 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of Templates: time 0.3547/0.6306, allocations: 20.2 MB / 0.7862 GB, free: 91.58 MB / 0.5606 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)