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.001524/0.001524, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001874/0.001874, allocations: 193.6 kB / 16.25 MB, free: 6.637 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.356/1.356, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002125/0.002125, allocations: 282.8 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9861/0.9861, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 89.23 kB / 0.5947 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1584, allocations: 86.99 MB / 0.6796 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03767/0.1961, allocations: 41.24 MB / 0.7199 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01488/0.211, allocations: 10.33 MB / 0.73 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.2129, allocations: 55.62 kB / 0.73 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.2149, allocations: 0.5518 MB / 0.7306 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005001/0.2199, allocations: 1.757 MB / 0.7323 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003122/0.2231, allocations: 1.088 MB / 0.7333 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004324/0.2274, allocations: 3.414 MB / 0.7367 GB, free: 6.48 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.229, allocations: 1.056 MB / 0.7377 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00299/0.232, allocations: 1.239 MB / 0.7389 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001586/0.2336, allocations: 0.9178 MB / 0.7398 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002924/0.2339, allocations: 96 kB / 0.7399 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.2359, allocations: 0.8732 MB / 0.7408 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003563/0.2363, allocations: 283 kB / 0.741 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009803/0.2373, allocations: 0.6299 MB / 0.7416 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003274/0.2406, allocations: 1.92 MB / 0.7435 GB, free: 15.44 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2406, allocations: 0 / 0.7435 GB, free: 15.44 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.625e-06/0.2406, allocations: 0 / 0.7435 GB, free: 15.44 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.043e-05/0.2406, allocations: 0 / 0.7435 GB, free: 15.44 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.003633/0.2443, allocations: 1.515 MB / 0.745 GB, free: 13.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.2443, allocations: 8.031 kB / 0.745 GB, free: 13.87 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/0.2448, allocations: 143.4 kB / 0.7451 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.2468, allocations: 1.091 MB / 0.7462 GB, free: 12.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.2469, allocations: 50 kB / 0.7463 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.247, allocations: 75.91 kB / 0.7463 GB, free: 12.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.2486, allocations: 0.7905 MB / 0.7471 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.2486, allocations: 0 / 0.7471 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.2487, allocations: 32 kB / 0.7471 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.2487, allocations: 19.98 kB / 0.7472 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.2499, allocations: 0.5672 MB / 0.7477 GB, free: 11.03 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.004285/0.2542, allocations: 3.547 MB / 0.7512 GB, free: 7.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.2548, allocations: 270.3 kB / 0.7514 GB, free: 6.977 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003424/0.2552, allocations: 173.3 kB / 0.7516 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004994/0.2557, allocations: 0.6609 MB / 0.7522 GB, free: 5.996 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.2557, allocations: 38.56 kB / 0.7523 GB, free: 5.949 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.2557, allocations: 0 / 0.7523 GB, free: 5.949 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001207/0.2569, allocations: 0.509 MB / 0.7528 GB, free: 5.434 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.257, allocations: 59.39 kB / 0.7528 GB, free: 5.363 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.2582, allocations: 0.9339 MB / 0.7537 GB, free: 4.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.2582, allocations: 33.7 kB / 0.7538 GB, free: 4.371 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003801/0.2586, allocations: 499.6 kB / 0.7543 GB, free: 3.879 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.2587, allocations: 114.4 kB / 0.7544 GB, free: 3.766 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.2589, allocations: 114.1 kB / 0.7545 GB, free: 3.648 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.259, allocations: 333.9 kB / 0.7548 GB, free: 3.316 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.2594, allocations: 165 kB / 0.7549 GB, free: 3.152 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.2599, allocations: 351.6 kB / 0.7553 GB, free: 2.738 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000827/0.2607, allocations: 0.5071 MB / 0.7558 GB, free: 2.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.2608, allocations: 3.938 kB / 0.7558 GB, free: 2.156 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001198/0.262, allocations: 0.6098 MB / 0.7564 GB, free: 1.539 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.262, allocations: 12.03 kB / 0.7564 GB, free: 1.527 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.262, allocations: 8 kB / 0.7564 GB, free: 1.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.262, allocations: 8 kB / 0.7564 GB, free: 1.512 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/0.2625, allocations: 123.8 kB / 0.7565 GB, free: 1.391 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.2625, allocations: 11.94 kB / 0.7565 GB, free: 1.379 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/0.2633, allocations: 111.2 kB / 0.7566 GB, free: 1.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.2633, allocations: 24 kB / 0.7567 GB, free: 1.246 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.0003667/0.2637, allocations: 282.7 kB / 0.7569 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.2639, allocations: 98.78 kB / 0.757 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000985/0.2649, allocations: 492.8 kB / 0.7575 GB, free: 380 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.2649, allocations: 4 kB / 0.7575 GB, free: 376 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2649, allocations: 4 kB / 0.7575 GB, free: 372 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007352/0.2657, allocations: 445.6 kB / 0.7579 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.2678, allocations: 1.365 MB / 0.7593 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.2678, allocations: 4 kB / 0.7593 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.2682, allocations: 79.83 kB / 0.7593 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.116e-06/0.2682, allocations: 7.938 kB / 0.7593 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.2682, allocations: 11.98 kB / 0.7594 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.2682, allocations: 4.156 kB / 0.7594 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.2682, allocations: 4 kB / 0.7594 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.2695, allocations: 0.7589 MB / 0.7601 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.2699, allocations: 231.7 kB / 0.7603 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.27, allocations: 7.938 kB / 0.7603 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000585/0.2706, allocations: 52 kB / 0.7604 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.907e-05/0.2707, allocations: 23.97 kB / 0.7604 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.2707, allocations: 19.98 kB / 0.7604 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008194/0.2716, allocations: 0.6471 MB / 0.7611 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2716, allocations: 4 kB / 0.7611 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001005/0.2726, allocations: 335.4 kB / 0.7614 GB, free: 12.23 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.0008802/0.2735, allocations: 393 kB / 0.7618 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001044/0.2745, allocations: 447.5 kB / 0.7622 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2745, allocations: 0 / 0.7622 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.2749, allocations: 181.6 kB / 0.7624 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.2776, allocations: 0.6204 MB / 0.763 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003236/0.2808, allocations: 1.935 MB / 0.7649 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.2816, allocations: 1.048 MB / 0.7659 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009056/0.2826, allocations: 192 kB / 0.7661 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.2828, allocations: 79.41 kB / 0.7661 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.2828, allocations: 4 kB / 0.7661 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of Templates: time 0.3015/0.5843, allocations: 20.75 MB / 0.7864 GB, free: 91.68 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)