Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008362/0.0008363, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.0008466/0.0008467, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001658/0.001658, allocations: 274.7 kB / 291.2 MB, free: 1.988 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7286/0.7286, allocations: 144.6 MB / 487 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003901, allocations: 15.69 kB / 0.5683 GB, free: 38.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 83.08 MB / 0.6494 GB, free: 3.598 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.06123/0.1874, allocations: 64.42 MB / 0.7123 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02128/0.2087, allocations: 16.23 MB / 0.7282 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002856/0.2116, allocations: 87.38 kB / 0.7283 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004048/0.2156, allocations: 1.178 MB / 0.7294 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.2257, allocations: 3.532 MB / 0.7329 GB, free: 14 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005838/0.2316, allocations: 2.303 MB / 0.7351 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006251/0.2379, allocations: 3.872 MB / 0.7389 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.24, allocations: 1.481 MB / 0.7403 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002729/0.2427, allocations: 1.658 MB / 0.742 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.2443, allocations: 1.073 MB / 0.743 GB, free: 3.609 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.2445, allocations: 72 kB / 0.7431 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.2473, allocations: 1.014 MB / 0.7441 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004035/0.2477, allocations: 370.5 kB / 0.7444 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006773/0.2484, allocations: 496.5 kB / 0.7449 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003078/0.2515, allocations: 2.642 MB / 0.7475 GB, free: 15.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2515, allocations: 0 / 0.7475 GB, free: 15.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2515, allocations: 4 kB / 0.7475 GB, free: 15.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.503e-05/0.2516, allocations: 0 / 0.7475 GB, free: 15.01 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.003678/0.2553, allocations: 2.314 MB / 0.7497 GB, free: 12.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.2553, allocations: 8.031 kB / 0.7497 GB, free: 12.63 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.2559, allocations: 268.9 kB / 0.75 GB, free: 12.36 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.2587, allocations: 1.783 MB / 0.7517 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.437e-05/0.2588, allocations: 110.7 kB / 0.7518 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.259, allocations: 140 kB / 0.752 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002411/0.2614, allocations: 1.512 MB / 0.7535 GB, free: 8.695 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.2614, allocations: 7.984 kB / 0.7535 GB, free: 8.688 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.2615, allocations: 56 kB / 0.7535 GB, free: 8.633 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.445e-05/0.2616, allocations: 43.94 kB / 0.7536 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.2636, allocations: 1.158 MB / 0.7547 GB, free: 7.426 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.007658/0.2713, allocations: 7.646 MB / 0.7622 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.2722, allocations: 497.9 kB / 0.7626 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007945/0.273, allocations: 1.152 MB / 0.7638 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.273, allocations: 51 kB / 0.7638 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=59): time 1.904e-06/0.273, allocations: 4 kB / 0.7638 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=59): time 0.002037/0.2751, allocations: 1.016 MB / 0.7648 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.2751, allocations: 59.95 kB / 0.7649 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/0.2771, allocations: 1.826 MB / 0.7666 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.2772, allocations: 41.7 kB / 0.7667 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006599/0.2779, allocations: 0.9316 MB / 0.7676 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.278, allocations: 216.9 kB / 0.7678 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.2781, allocations: 20 kB / 0.7678 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2782, allocations: 353.9 kB / 0.7682 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006412/0.2789, allocations: 346.4 kB / 0.7685 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000854/0.2797, allocations: 0.7016 MB / 0.7692 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007408/0.2805, allocations: 466.7 kB / 0.7696 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.2805, allocations: 4 kB / 0.7696 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.001898/0.2824, allocations: 1.253 MB / 0.7708 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2824, allocations: 9.875 kB / 0.7709 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.2824, allocations: 12 kB / 0.7709 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.2825, allocations: 16 kB / 0.7709 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009963/0.2835, allocations: 324 kB / 0.7712 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.2835, allocations: 23.92 kB / 0.7712 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.2848, allocations: 254.3 kB / 0.7715 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.971e-05/0.2849, allocations: 52 kB / 0.7715 GB, free: 5.117 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005685/0.2855, allocations: 435.6 kB / 0.7719 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.2857, allocations: 201.6 kB / 0.7721 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.2873, allocations: 0.9056 MB / 0.773 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.2874, allocations: 11.98 kB / 0.773 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2874, allocations: 8 kB / 0.773 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001255/0.2886, allocations: 0.8269 MB / 0.7738 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003519/0.2922, allocations: 2.506 MB / 0.7763 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2922, allocations: 4 kB / 0.7763 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2318/0.524, allocations: 206.4 kB / 0.7765 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.5241, allocations: 4.969 kB / 0.7765 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.5241, allocations: 23.92 kB / 0.7765 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.5242, allocations: 3.969 kB / 0.7765 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.5242, allocations: 5.344 kB / 0.7765 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.5264, allocations: 1.549 MB / 0.778 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006351/0.527, allocations: 422.4 kB / 0.7784 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.5272, allocations: 14.72 kB / 0.7784 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009996/0.5282, allocations: 132.3 kB / 0.7786 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.5283, allocations: 46.78 kB / 0.7786 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.656e-05/0.5284, allocations: 34.81 kB / 0.7786 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001377/0.5298, allocations: 1.27 MB / 0.7799 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5298, allocations: 0 / 0.7799 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001391/0.5312, allocations: 0.6571 MB / 0.7805 GB, free: 118.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007826/0.5319, allocations: 0.6064 MB / 0.7811 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001342/0.5333, allocations: 0.8493 MB / 0.7819 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5333, allocations: 8.172 kB / 0.7819 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.5339, allocations: 376.5 kB / 0.7823 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004753/0.5387, allocations: 1.191 MB / 0.7835 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.5427, allocations: 3.691 MB / 0.7871 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009835/0.5437, allocations: 1.447 MB / 0.7885 GB, free: 116 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001438/0.5452, allocations: 394.4 kB / 0.7889 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.5455, allocations: 147.9 kB / 0.789 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of SimCode: time 4.11e-07/0.5455, allocations: 1.188 kB / 0.789 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.04796/0.5935, allocations: 39.91 MB / 0.828 GB, free: 86.72 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) Environment - environmentSimulation: