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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8304/0.8304, allocations: 141.8 MB / 149.1 MB, free: 1.816 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 173.3 kB / 181.9 MB, free: 1.273 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 221.3 MB / 436 MB, free: 6.031 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 104.6 kB / 0.507 GB, free: 2.695 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001817, allocations: 271.8 kB / 0.5885 GB, free: 47.72 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 9.658e-06/9.688e-06, allocations: 2.75 kB / 0.6759 GB, free: 59.86 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2152, allocations: 82.77 MB / 0.7567 GB, free: 1.16 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.246/1.462, allocations: 384.9 MB / 1.133 GB, free: 260.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/1.462, allocations: 88.94 kB / 1.133 GB, free: 260.7 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.852/4.314, allocations: 0.8093 GB / 1.942 GB, free: 76.26 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0002293/4.314, allocations: 56.7 kB / 1.942 GB, free: 76.26 MB / 0.7138 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.005074/4.319, allocations: 2.172 MB / 1.944 GB, free: 75.6 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/4.32, allocations: 10.78 kB / 1.944 GB, free: 75.6 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/4.321, allocations: 266.7 kB / 1.944 GB, free: 75.47 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05723/4.378, allocations: 24.77 MB / 1.969 GB, free: 74.32 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/4.378, allocations: 41.25 kB / 1.969 GB, free: 74.32 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005458/4.379, allocations: 87.66 kB / 1.969 GB, free: 74.32 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001868/4.38, allocations: 0.8779 MB / 1.97 GB, free: 74.32 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/4.382, allocations: 1.203 MB / 1.971 GB, free: 74.1 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/4.383, allocations: 9.719 kB / 1.971 GB, free: 74.1 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/4.383, allocations: 3.625 kB / 1.971 GB, free: 74.1 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.175e-05/4.383, allocations: 43.97 kB / 1.971 GB, free: 74.1 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008762/4.391, allocations: 7.6 MB / 1.978 GB, free: 69.83 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006255/4.392, allocations: 349.8 kB / 1.979 GB, free: 69.81 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/4.393, allocations: 267.2 kB / 1.979 GB, free: 69.8 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007351/4.393, allocations: 1.157 MB / 1.98 GB, free: 68.48 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/4.393, allocations: 44.62 kB / 1.98 GB, free: 68.45 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=59): time 3.236e-06/4.393, allocations: 0 / 1.98 GB, free: 68.45 MB / 0.7138 GB Notification: Performance of matching and sorting (n=59): time 0.001485/4.395, allocations: 0.6235 MB / 1.981 GB, free: 68.32 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/4.395, allocations: 60.88 kB / 1.981 GB, free: 68.26 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/4.396, allocations: 1.192 MB / 1.982 GB, free: 68.1 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001046/4.396, allocations: 28.8 kB / 1.982 GB, free: 68.07 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004323/4.397, allocations: 0.6546 MB / 1.983 GB, free: 67.73 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/4.397, allocations: 201.8 kB / 1.983 GB, free: 67.6 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/4.397, allocations: 3.656 kB / 1.983 GB, free: 67.6 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.809e-05/4.397, allocations: 345.2 kB / 1.983 GB, free: 67.3 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/4.398, allocations: 223 kB / 1.983 GB, free: 67.3 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004713/4.398, allocations: 0.5827 MB / 1.984 GB, free: 66.86 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/4.399, allocations: 356.5 kB / 1.984 GB, free: 66.85 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/4.399, allocations: 3.688 kB / 1.984 GB, free: 66.85 MB / 0.7138 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00143/4.4, allocations: 0.8979 MB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/4.4, allocations: 3.594 kB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/4.4, allocations: 7.875 kB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/4.4, allocations: 21.53 kB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000725/4.401, allocations: 235.2 kB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/4.401, allocations: 31 kB / 1.985 GB, free: 66.72 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/4.403, allocations: 168.2 kB / 1.986 GB, free: 66.67 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.713e-05/4.403, allocations: 47.88 kB / 1.986 GB, free: 66.67 MB / 0.7138 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 111 * 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.000215/4.403, allocations: 139 kB / 1.986 GB, free: 66.55 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/4.403, allocations: 166.2 kB / 1.986 GB, free: 66.47 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/4.405, allocations: 0.7558 MB / 1.987 GB, free: 66.4 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/4.405, allocations: 14.5 kB / 1.987 GB, free: 66.4 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/4.405, allocations: 3.906 kB / 1.987 GB, free: 66.4 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008776/4.406, allocations: 0.7022 MB / 1.987 GB, free: 66.14 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/4.409, allocations: 2.167 MB / 1.989 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/4.409, allocations: 3 kB / 1.989 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007302/4.41, allocations: 190.7 kB / 1.99 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/4.41, allocations: 5.312 kB / 1.99 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/4.41, allocations: 10.47 kB / 1.99 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/4.41, allocations: 6.469 kB / 1.99 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/4.41, allocations: 8.625 kB / 1.99 GB, free: 65.76 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001698/4.412, allocations: 1.319 MB / 1.991 GB, free: 65.29 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007568/4.413, allocations: 369.1 kB / 1.991 GB, free: 65.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/4.413, allocations: 10.08 kB / 1.991 GB, free: 65.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/4.414, allocations: 116.6 kB / 1.991 GB, free: 65.09 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/4.414, allocations: 43.83 kB / 1.991 GB, free: 65.09 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.611e-05/4.414, allocations: 38.89 kB / 1.991 GB, free: 65.09 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001209/4.415, allocations: 0.8929 MB / 1.992 GB, free: 64.98 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002225/4.418, allocations: 0.7068 MB / 1.993 GB, free: 64.85 MB / 0.7138 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 () * 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.001497/4.419, allocations: 0.9694 MB / 1.994 GB, free: 64.62 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001006/4.42, allocations: 0.6198 MB / 1.995 GB, free: 64.61 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/4.42, allocations: 0 / 1.995 GB, free: 64.61 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0003995/4.421, allocations: 315.8 kB / 1.995 GB, free: 64.61 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004379/4.425, allocations: 0.9217 MB / 1.996 GB, free: 64.61 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/4.429, allocations: 2.317 MB / 1.998 GB, free: 63.92 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001202/4.431, allocations: 1.592 MB / 2 GB, free: 63.18 MB / 0.7138 GB Notification: Performance of SimCode: time 1.052e-06/4.431, allocations: 0 / 2 GB, free: 63.18 MB / 0.7138 GB Notification: Performance of Templates: time 0.05173/4.482, allocations: 32.96 MB / 2.032 GB, free: 61.72 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (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)