Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.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.Validation.OpenDoorTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=96,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature") translateModel(BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=96,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature") [: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.7196/0.7196, allocations: 141.8 MB / 149.1 MB, free: 1.887 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.001037/0.001037, allocations: 177.6 kB / 182 MB, free: 13.93 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.282/1.282, allocations: 221.3 MB / 436 MB, free: 6.848 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.0009142/0.0009143, allocations: 97.77 kB / 0.507 GB, free: 24.58 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001886/0.001886, allocations: 278.4 kB / 0.5885 GB, free: 10.15 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.066e-06/8.105e-06, allocations: 3.938 kB / 0.6759 GB, free: 0.5156 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3662, allocations: 82.76 MB / 0.7567 GB, free: 110.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.503/3.869, allocations: 1.883 GB / 2.639 GB, free: 182 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/3.869, allocations: 88.45 kB / 2.639 GB, free: 181.9 MB / 0.6982 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3938:5-3939:59:writable] Error: Variable reference_p: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3940:5-3941:64:writable] Error: Variable reference_T: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3944:5-3945:66:writable] Error: Variable p_default: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:3946:5-3947:69:writable] Error: Variable T_default: Internal error - Types.typeOfValue failed: fail() Notification: Performance of FrontEnd: time 1.621/5.49, allocations: 461.4 MB / 3.09 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001341/5.49, allocations: 23.34 kB / 3.09 GB, free: 145.4 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.006442/5.497, allocations: 1.525 MB / 3.091 GB, free: 145 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/5.497, allocations: 13.06 kB / 3.091 GB, free: 145 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/5.498, allocations: 164.2 kB / 3.092 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/5.5, allocations: 0.6426 MB / 3.092 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/5.5, allocations: 28.66 kB / 3.092 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003116/5.5, allocations: 55.34 kB / 3.092 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002459/5.503, allocations: 1.317 MB / 3.094 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/5.505, allocations: 1.067 MB / 3.095 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/5.505, allocations: 0 / 3.095 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.797e-05/5.505, allocations: 3.969 kB / 3.095 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.453e-05/5.505, allocations: 42.39 kB / 3.095 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/5.511, allocations: 3.495 MB / 3.098 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/5.513, allocations: 1.294 MB / 3.099 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008489/5.514, allocations: 0.6847 MB / 3.1 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008175/5.515, allocations: 0.9628 MB / 3.101 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009114/5.515, allocations: 0.6837 MB / 3.102 GB, free: 142.1 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=123): time 3.596e-06/5.516, allocations: 0 / 3.102 GB, free: 142.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=123): time 0.003005/5.519, allocations: 1.386 MB / 3.103 GB, free: 142 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/5.519, allocations: 91.83 kB / 3.103 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008895/5.519, allocations: 0.5253 MB / 3.104 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.229e-05/5.52, allocations: 28.89 kB / 3.104 GB, free: 141.8 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/5.52, allocations: 299.9 kB / 3.104 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/5.52, allocations: 396.6 kB / 3.104 GB, free: 141.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/5.52, allocations: 6.219 kB / 3.104 GB, free: 141.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001426/5.52, allocations: 396.9 kB / 3.105 GB, free: 141.1 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007125/5.521, allocations: 0.508 MB / 3.105 GB, free: 141.1 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008343/5.522, allocations: 0.6942 MB / 3.106 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/5.524, allocations: 0.7584 MB / 3.107 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/5.524, allocations: 0 / 3.107 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002744/5.526, allocations: 1.506 MB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/5.526, allocations: 6.656 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/5.526, allocations: 3.719 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/5.526, allocations: 12.81 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/5.527, allocations: 231.5 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/5.527, allocations: 14.05 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008875/5.528, allocations: 93.67 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/5.528, allocations: 45.31 kB / 3.108 GB, free: 140.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,bouTem.a,bouTem.b,bouTem.last,$PRE.bouTem.nextEvent,bouTem.nextEvent,bouTem.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 1 * 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.000224/5.529, allocations: 160.4 kB / 3.109 GB, free: 140.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/5.529, allocations: 90.66 kB / 3.109 GB, free: 140.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003039/5.532, allocations: 1.615 MB / 3.11 GB, free: 140.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/5.532, allocations: 10.53 kB / 3.11 GB, free: 140.5 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/5.532, allocations: 0 / 3.11 GB, free: 140.5 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/5.532, allocations: 3.844 kB / 3.11 GB, free: 140.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005051/5.537, allocations: 3.233 MB / 3.113 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/5.537, allocations: 9.75 kB / 3.113 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008814/5.538, allocations: 211.6 kB / 3.114 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.53e-05/5.538, allocations: 13.19 kB / 3.114 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.971e-05/5.538, allocations: 18.81 kB / 3.114 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.667e-06/5.538, allocations: 11.16 kB / 3.114 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/5.538, allocations: 11.16 kB / 3.114 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003573/5.542, allocations: 2.833 MB / 3.116 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006724/5.542, allocations: 333.7 kB / 3.117 GB, free: 139 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/5.543, allocations: 14.88 kB / 3.117 GB, free: 139 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006781/5.543, allocations: 38.61 kB / 3.117 GB, free: 139 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/5.543, allocations: 77.16 kB / 3.117 GB, free: 139 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.34e-05/5.543, allocations: 50.77 kB / 3.117 GB, free: 139 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005049/5.544, allocations: 414.4 kB / 3.117 GB, free: 138.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001535/5.546, allocations: 466.2 kB / 3.118 GB, free: 138.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (dooDis.mExcAB,dooDis.mExcBA) * Number of discrete variables: 6 ($whenCondition1,bouTem.a,bouTem.b,bouTem.last,bouTem.nextEvent,bouTem.nextEventScaled) * Number of discrete states: 6 (bouTem.nextEvent,bouTem.last,bouTem.nextEventScaled,bouTem.b,bouTem.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.00244/5.548, allocations: 1.797 MB / 3.12 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001836/5.55, allocations: 1.252 MB / 3.121 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/5.55, allocations: 0 / 3.121 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007741/5.551, allocations: 0.6875 MB / 3.121 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.001349/5.552, allocations: 213.2 kB / 3.122 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/5.555, allocations: 1.861 MB / 3.123 GB, free: 137.8 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009081/5.556, allocations: 1.228 MB / 3.125 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of SimCode: time 6.31e-07/5.556, allocations: 0 / 3.125 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of Templates: time 0.03862/5.595, allocations: 23.89 MB / 3.148 GB, free: 136.8 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.makefile (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.sim & ./BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.Validation.OpenDoorTemperature.pipe 2>&1)