Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.0014/0.0014, allocations: 104.2 kB / 15.98 MB, free: 6.348 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.001588/0.001588, allocations: 195.6 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 222.8 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.736/1.736, allocations: 292.3 MB / 0.5492 GB, free: 13.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 66.94 kB / 0.6716 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2578, allocations: 114.5 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04028/0.2982, allocations: 41.26 MB / 0.8238 GB, free: 4.508 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01479/0.313, allocations: 10.25 MB / 0.8338 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.3153, allocations: 51.62 kB / 0.8339 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001844/0.3172, allocations: 0.5518 MB / 0.8344 GB, free: 9.625 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.3228, allocations: 1.738 MB / 0.8361 GB, free: 7.879 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003141/0.326, allocations: 1.1 MB / 0.8372 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004807/0.3308, allocations: 3.406 MB / 0.8405 GB, free: 3.375 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.3323, allocations: 1.037 MB / 0.8415 GB, free: 2.316 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.3356, allocations: 1.255 MB / 0.8427 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.3374, allocations: 0.9217 MB / 0.8436 GB, free: 140 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002134/0.3376, allocations: 100 kB / 0.8437 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.3402, allocations: 0.8693 MB / 0.8446 GB, free: 15.17 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000374/0.3406, allocations: 283 kB / 0.8448 GB, free: 14.89 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.3416, allocations: 0.6337 MB / 0.8455 GB, free: 14.25 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002347/0.344, allocations: 1.485 MB / 0.8469 GB, free: 12.77 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.344, allocations: 4 kB / 0.8469 GB, free: 12.76 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.375e-06/0.344, allocations: 0 / 0.8469 GB, free: 12.76 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.523e-05/0.344, allocations: 0 / 0.8469 GB, free: 12.76 MB / 0.67 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.0027/0.3467, allocations: 1.511 MB / 0.8484 GB, free: 11.2 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3468, allocations: 12.03 kB / 0.8484 GB, free: 11.19 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003468/0.3471, allocations: 131.4 kB / 0.8485 GB, free: 11.06 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.3487, allocations: 1.064 MB / 0.8496 GB, free: 9.949 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/0.3487, allocations: 57.98 kB / 0.8496 GB, free: 9.895 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3489, allocations: 72 kB / 0.8497 GB, free: 9.824 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.3502, allocations: 0.7866 MB / 0.8505 GB, free: 9 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.3502, allocations: 0 / 0.8505 GB, free: 9 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.3503, allocations: 36 kB / 0.8505 GB, free: 8.965 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/0.3504, allocations: 23.98 kB / 0.8505 GB, free: 8.941 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3514, allocations: 0.5672 MB / 0.8511 GB, free: 8.371 MB / 0.67 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.003945/0.3554, allocations: 3.54 MB / 0.8545 GB, free: 4.602 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005627/0.3559, allocations: 266.4 kB / 0.8548 GB, free: 4.332 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.3563, allocations: 176.8 kB / 0.855 GB, free: 4.156 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005474/0.3568, allocations: 0.6571 MB / 0.8556 GB, free: 3.352 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.3569, allocations: 30.56 kB / 0.8556 GB, free: 3.312 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 3.226e-06/0.3569, allocations: 0 / 0.8556 GB, free: 3.312 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001209/0.3581, allocations: 0.5214 MB / 0.8561 GB, free: 2.785 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.3581, allocations: 59.39 kB / 0.8562 GB, free: 2.715 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.3592, allocations: 0.9254 MB / 0.8571 GB, free: 1.77 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.3593, allocations: 29.7 kB / 0.8571 GB, free: 1.734 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003765/0.3596, allocations: 0.4918 MB / 0.8576 GB, free: 1.238 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3598, allocations: 114.4 kB / 0.8577 GB, free: 1.125 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3599, allocations: 118 kB / 0.8578 GB, free: 1 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3601, allocations: 325.9 kB / 0.8581 GB, free: 0.6758 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.3604, allocations: 165 kB / 0.8583 GB, free: 0.5156 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.3609, allocations: 363.4 kB / 0.8586 GB, free: 92 kB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008587/0.3618, allocations: 0.5108 MB / 0.8591 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3618, allocations: 0 / 0.8591 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001122/0.3629, allocations: 0.6092 MB / 0.8597 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3629, allocations: 8 kB / 0.8597 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3629, allocations: 4 kB / 0.8597 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.363, allocations: 8.625 kB / 0.8598 GB, free: 14.87 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004301/0.3634, allocations: 135.8 kB / 0.8599 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.3634, allocations: 8 kB / 0.8599 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000701/0.3641, allocations: 107.2 kB / 0.86 GB, free: 14.62 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.3642, allocations: 24 kB / 0.86 GB, free: 14.6 MB / 0.6856 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.0003854/0.3646, allocations: 278.6 kB / 0.8603 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3647, allocations: 98.78 kB / 0.8604 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009934/0.3657, allocations: 496.2 kB / 0.8609 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.3658, allocations: 4 kB / 0.8609 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3658, allocations: 0 / 0.8609 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007083/0.3665, allocations: 456.8 kB / 0.8613 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.3686, allocations: 1.35 MB / 0.8626 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3686, allocations: 0 / 0.8626 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.369, allocations: 79.88 kB / 0.8627 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.369, allocations: 7.938 kB / 0.8627 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.369, allocations: 12.06 kB / 0.8627 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.369, allocations: 4 kB / 0.8627 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.369, allocations: 0 / 0.8627 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.3703, allocations: 0.7655 MB / 0.8635 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.3707, allocations: 231.7 kB / 0.8637 GB, free: 10.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.3708, allocations: 11.94 kB / 0.8637 GB, free: 10.67 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.3714, allocations: 51.91 kB / 0.8637 GB, free: 10.62 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.3715, allocations: 23.97 kB / 0.8638 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.3715, allocations: 19.98 kB / 0.8638 GB, free: 10.58 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008285/0.3723, allocations: 0.6469 MB / 0.8644 GB, free: 9.922 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3723, allocations: 0 / 0.8644 GB, free: 9.922 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00101/0.3734, allocations: 331.4 kB / 0.8647 GB, free: 9.598 MB / 0.6856 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.0008688/0.3742, allocations: 383.4 kB / 0.8651 GB, free: 9.227 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001009/0.3753, allocations: 456.3 kB / 0.8655 GB, free: 8.781 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3753, allocations: 0 / 0.8655 GB, free: 8.781 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.3757, allocations: 184.2 kB / 0.8657 GB, free: 8.602 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.3782, allocations: 0.6173 MB / 0.8663 GB, free: 8.004 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.3809, allocations: 1.969 MB / 0.8682 GB, free: 5.984 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.3816, allocations: 1.028 MB / 0.8692 GB, free: 4.926 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.3818, allocations: 83.42 kB / 0.8693 GB, free: 4.844 MB / 0.6856 GB Notification: Performance of SimCode: time 7.21e-07/0.3818, allocations: 0 / 0.8693 GB, free: 4.844 MB / 0.6856 GB Notification: Performance of Templates: time 0.02889/0.4107, allocations: 17.73 MB / 0.8866 GB, free: 3.266 MB / 0.7012 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)