Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.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.Airflow.Multizone.Examples.ChimneyShaftWithVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume") translateModel(BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume") [: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.742/0.742, allocations: 141.8 MB / 149.1 MB, free: 11.75 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 183.9 kB / 182 MB, free: 8.531 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.232/1.232, allocations: 221.4 MB / 436 MB, free: 0.8086 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.0009458/0.0009458, allocations: 86.81 kB / 0.507 GB, free: 9.793 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001778/0.001778, allocations: 273 kB / 0.5884 GB, free: 6.605 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.716e-06/8.747e-06, allocations: 0 / 0.6759 GB, free: 12.98 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.3676, allocations: 82.77 MB / 0.7567 GB, free: 137.7 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.45/3.818, allocations: 1.89 GB / 2.646 GB, free: 98.24 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/3.818, allocations: 84.02 kB / 2.646 GB, free: 98.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 3.391/7.209, allocations: 1.074 GB / 3.72 GB, free: 72.06 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.000206/7.209, allocations: 44 kB / 3.72 GB, free: 72.02 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.007119/7.216, allocations: 2.164 MB / 3.722 GB, free: 69.83 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/7.216, allocations: 8.031 kB / 3.722 GB, free: 69.82 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004169/7.22, allocations: 0.5549 MB / 3.723 GB, free: 69.27 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003311/7.224, allocations: 1.282 MB / 3.724 GB, free: 67.96 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.06e-05/7.224, allocations: 47.91 kB / 3.724 GB, free: 67.91 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004621/7.224, allocations: 83.98 kB / 3.724 GB, free: 67.83 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002911/7.227, allocations: 1.249 MB / 3.726 GB, free: 66.58 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003246/7.23, allocations: 1.472 MB / 3.727 GB, free: 65.04 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.733e-05/7.23, allocations: 7.906 kB / 3.727 GB, free: 65.03 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/7.231, allocations: 0 / 3.727 GB, free: 65.03 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.588e-05/7.231, allocations: 62.58 kB / 3.727 GB, free: 64.97 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009962/7.241, allocations: 7.358 MB / 3.734 GB, free: 57.33 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/7.242, allocations: 1.049 MB / 3.735 GB, free: 56.29 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007121/7.243, allocations: 0.6038 MB / 3.736 GB, free: 55.69 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006484/7.244, allocations: 0.8671 MB / 3.737 GB, free: 54.65 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008224/7.244, allocations: 0.6318 MB / 3.737 GB, free: 54 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=110): time 3.467e-06/7.245, allocations: 0 / 3.737 GB, free: 54 MB / 0.7138 GB Notification: Performance of matching and sorting (n=110): time 0.003124/7.248, allocations: 1.247 MB / 3.739 GB, free: 52.75 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/7.248, allocations: 94.11 kB / 3.739 GB, free: 52.64 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/7.249, allocations: 0.8203 MB / 3.739 GB, free: 51.81 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001125/7.249, allocations: 25.7 kB / 3.739 GB, free: 51.78 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/7.249, allocations: 488.4 kB / 3.74 GB, free: 51.3 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003878/7.25, allocations: 378.2 kB / 3.74 GB, free: 50.93 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.929e-05/7.25, allocations: 0 / 3.74 GB, free: 50.93 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 8.22e-05/7.25, allocations: 341.9 kB / 3.741 GB, free: 50.59 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006597/7.251, allocations: 433.9 kB / 3.741 GB, free: 50.16 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006382/7.251, allocations: 0.5993 MB / 3.742 GB, free: 49.5 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009397/7.252, allocations: 0.5315 MB / 3.742 GB, free: 48.98 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/7.252, allocations: 3.438 kB / 3.742 GB, free: 48.98 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002043/7.254, allocations: 1.231 MB / 3.743 GB, free: 47.75 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/7.254, allocations: 0.9748 MB / 3.744 GB, free: 46.71 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/7.255, allocations: 3.344 kB / 3.744 GB, free: 46.71 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/7.255, allocations: 8 kB / 3.744 GB, free: 46.7 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/7.256, allocations: 235.7 kB / 3.745 GB, free: 46.47 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/7.256, allocations: 7.984 kB / 3.745 GB, free: 46.46 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/7.257, allocations: 133.1 kB / 3.745 GB, free: 46.34 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/7.258, allocations: 43.98 kB / 3.745 GB, free: 46.3 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/7.258, allocations: 4 kB / 3.745 GB, free: 46.29 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001772/7.259, allocations: 1.07 MB / 3.746 GB, free: 45.23 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/7.259, allocations: 4 kB / 3.746 GB, free: 45.23 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/7.259, allocations: 15.89 kB / 3.746 GB, free: 45.21 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009881/7.26, allocations: 223.7 kB / 3.746 GB, free: 44.99 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/7.26, allocations: 8 kB / 3.746 GB, free: 44.98 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/7.262, allocations: 128.2 kB / 3.746 GB, free: 44.87 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/7.262, allocations: 39.98 kB / 3.746 GB, free: 44.83 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEvent,$PRE.mRoo_flow.nextTimeEventScaled,mRoo_flow.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 126 * 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.0002897/7.262, allocations: 134.1 kB / 3.746 GB, free: 44.7 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002502/7.263, allocations: 130.4 kB / 3.746 GB, free: 44.57 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002697/7.265, allocations: 1.267 MB / 3.748 GB, free: 43.3 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/7.265, allocations: 8 kB / 3.748 GB, free: 43.29 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/7.265, allocations: 0 / 3.748 GB, free: 43.29 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001469/7.267, allocations: 1.035 MB / 3.749 GB, free: 42.25 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/7.272, allocations: 3.036 MB / 3.752 GB, free: 39.16 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/7.272, allocations: 4 kB / 3.752 GB, free: 39.15 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/7.273, allocations: 258.9 kB / 3.752 GB, free: 38.9 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.24e-05/7.273, allocations: 8 kB / 3.752 GB, free: 38.89 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.921e-05/7.273, allocations: 15.98 kB / 3.752 GB, free: 38.88 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/7.273, allocations: 12 kB / 3.752 GB, free: 38.87 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/7.273, allocations: 11.12 kB / 3.752 GB, free: 38.86 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002579/7.276, allocations: 2.188 MB / 3.754 GB, free: 36.59 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006967/7.276, allocations: 355.2 kB / 3.754 GB, free: 36.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/7.277, allocations: 15.91 kB / 3.754 GB, free: 36.21 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/7.278, allocations: 96.42 kB / 3.755 GB, free: 36.12 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/7.278, allocations: 60.11 kB / 3.755 GB, free: 36.07 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.164e-05/7.278, allocations: 43.97 kB / 3.755 GB, free: 36.02 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0007594/7.279, allocations: 0.6262 MB / 3.755 GB, free: 35.39 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002391/7.281, allocations: 1.017 MB / 3.756 GB, free: 34.37 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 (roo.dynBal.U,roo.dynBal.m,roo.dynBal.mXi[1],oriChiTop.mExc,oriBot.mExc,oriChiBot.mExc,sha.vol.dynBal.U,sha.vol.dynBal.m,sha.vol.dynBal.mXi[1]) * Number of discrete variables: 3 ($whenCondition1,mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEventScaled) * Number of discrete states: 2 (mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.004173/7.285, allocations: 3.094 MB / 3.759 GB, free: 31.54 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002416/7.288, allocations: 1.703 MB / 3.761 GB, free: 29.84 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/7.288, allocations: 0 / 3.761 GB, free: 29.84 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0006479/7.288, allocations: 0.5697 MB / 3.761 GB, free: 29.27 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/7.292, allocations: 0.6626 MB / 3.762 GB, free: 28.62 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004783/7.296, allocations: 2.745 MB / 3.765 GB, free: 25.85 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/7.298, allocations: 1.54 MB / 3.766 GB, free: 24.28 MB / 0.7138 GB Notification: Performance of SimCode: time 8.62e-07/7.298, allocations: 4 kB / 3.766 GB, free: 24.28 MB / 0.7138 GB Notification: Performance of Templates: time 0.3455/7.643, allocations: 47.17 MB / 3.812 GB, free: 138.1 MB / 0.7294 GB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.makefile (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.sim & ./BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe 2>&1)