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/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.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") [: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.7899/0.7899, allocations: 141.8 MB / 149.1 MB, free: 4.043 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.001248/0.001248, allocations: 183.4 kB / 181.9 MB, free: 15.77 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.512/1.512, allocations: 221.3 MB / 436 MB, free: 8.883 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.001153/0.001153, allocations: 93.62 kB / 0.507 GB, free: 24.26 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002045/0.002045, allocations: 274.1 kB / 0.5884 GB, free: 11.94 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.659e-06/9.699e-06, allocations: 4 kB / 0.6759 GB, free: 2.305 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.543/0.543, allocations: 82.76 MB / 0.7567 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.818/1.361, allocations: 378.4 MB / 1.126 GB, free: 1.094 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/1.361, allocations: 90.39 kB / 1.126 GB, free: 1.051 MB / 0.6513 GB Notification: Performance of FrontEnd: time 1.784/3.145, allocations: 442.6 MB / 1.559 GB, free: 152 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001749/3.145, allocations: 37.58 kB / 1.559 GB, free: 152 MB / 0.6982 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.003324/3.149, allocations: 1.249 MB / 1.56 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/3.149, allocations: 7.75 kB / 1.56 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007482/3.149, allocations: 139.6 kB / 1.56 GB, free: 151.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03356/3.183, allocations: 12.99 MB / 1.573 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/3.183, allocations: 22.12 kB / 1.573 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002571/3.183, allocations: 50.94 kB / 1.573 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001248/3.185, allocations: 453.5 kB / 1.573 GB, free: 148 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/3.186, allocations: 0.6277 MB / 1.574 GB, free: 147.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/3.186, allocations: 7.875 kB / 1.574 GB, free: 147.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.395e-05/3.186, allocations: 3.984 kB / 1.574 GB, free: 147.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/3.186, allocations: 17.31 kB / 1.574 GB, free: 147.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004919/3.191, allocations: 3.557 MB / 1.577 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/3.191, allocations: 194.3 kB / 1.577 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/3.192, allocations: 144.9 kB / 1.578 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004701/3.192, allocations: 0.6607 MB / 1.578 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/3.192, allocations: 34.25 kB / 1.578 GB, free: 143.7 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 3.186e-06/3.192, allocations: 0 / 1.578 GB, free: 143.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.0009428/3.193, allocations: 365.7 kB / 1.579 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/3.193, allocations: 59.3 kB / 1.579 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009589/3.194, allocations: 0.6363 MB / 1.579 GB, free: 143.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/3.194, allocations: 25.7 kB / 1.579 GB, free: 143.1 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/3.194, allocations: 374.2 kB / 1.58 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/3.195, allocations: 113.6 kB / 1.58 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/3.195, allocations: 3.969 kB / 1.58 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.255e-05/3.195, allocations: 321.9 kB / 1.58 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/3.195, allocations: 115.3 kB / 1.58 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/3.195, allocations: 338.3 kB / 1.581 GB, free: 142 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004206/3.196, allocations: 191.9 kB / 1.581 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/3.196, allocations: 3.312 kB / 1.581 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0009249/3.197, allocations: 495.8 kB / 1.581 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/3.197, allocations: 3.562 kB / 1.581 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/3.197, allocations: 7.875 kB / 1.581 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/3.197, allocations: 7.188 kB / 1.581 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/3.197, allocations: 121.6 kB / 1.581 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/3.197, allocations: 11.92 kB / 1.581 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008117/3.198, allocations: 86.48 kB / 1.581 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/3.198, allocations: 27.17 kB / 1.581 GB, free: 141.6 MB / 0.6982 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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.0001283/3.198, allocations: 124.7 kB / 1.582 GB, free: 141.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/3.198, allocations: 82.22 kB / 1.582 GB, free: 141.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008412/3.199, allocations: 441.5 kB / 1.582 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/3.199, allocations: 7.812 kB / 1.582 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/3.199, allocations: 3.781 kB / 1.582 GB, free: 141.2 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005457/3.2, allocations: 401.2 kB / 1.582 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/3.202, allocations: 1.227 MB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/3.202, allocations: 0 / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/3.202, allocations: 91.34 kB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/3.202, allocations: 6.906 kB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/3.202, allocations: 3.219 kB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/3.202, allocations: 1.875 kB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/3.202, allocations: 3.844 kB / 1.584 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009736/3.203, allocations: 0.761 MB / 1.585 GB, free: 139.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004185/3.204, allocations: 231 kB / 1.585 GB, free: 139.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/3.204, allocations: 0 / 1.585 GB, free: 139.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006284/3.204, allocations: 59.59 kB / 1.585 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.914e-05/3.205, allocations: 25.84 kB / 1.585 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.061e-05/3.205, allocations: 21.11 kB / 1.585 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006085/3.205, allocations: 492.9 kB / 1.585 GB, free: 139 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001386/3.207, allocations: 375.4 kB / 1.586 GB, free: 138.8 MB / 0.6982 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 () * 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 (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.001275/3.208, allocations: 0.5649 MB / 1.586 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0005864/3.208, allocations: 344.3 kB / 1.587 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/3.208, allocations: 0 / 1.587 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.000242/3.209, allocations: 158.9 kB / 1.587 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/3.211, allocations: 457.5 kB / 1.587 GB, free: 138.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/3.214, allocations: 1.169 MB / 1.588 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/3.215, allocations: 1.137 MB / 1.589 GB, free: 136.8 MB / 0.6982 GB Notification: Performance of SimCode: time 8.22e-07/3.215, allocations: 3.375 kB / 1.589 GB, free: 136.8 MB / 0.6982 GB Notification: Performance of Templates: time 0.03366/3.249, allocations: 17.2 MB / 1.606 GB, free: 123.2 MB / 0.6982 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)