Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.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.CO2TransportStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep") translateModel(BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep") [: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.7027/0.7027, allocations: 141.8 MB / 149.1 MB, free: 3.996 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.001078/0.001078, allocations: 186.8 kB / 181.9 MB, free: 15.73 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.276/1.276, allocations: 221.4 MB / 436 MB, free: 8.84 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.001027/0.001027, allocations: 89.53 kB / 0.507 GB, free: 24.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 284.6 kB / 0.5884 GB, free: 11.9 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.317e-06/9.337e-06, allocations: 4 kB / 0.6759 GB, free: 2.262 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4141, allocations: 82.76 MB / 0.7567 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.395/3.81, allocations: 1.941 GB / 2.698 GB, free: 133.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/3.81, allocations: 88.52 kB / 2.698 GB, free: 133.8 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 6.811/10.62, allocations: 2.127 GB / 4.825 GB, free: 62.49 MB / 0.7763 GB Notification: Performance of Transformations before backend: time 0.0002398/10.62, allocations: 68.95 kB / 4.825 GB, free: 62.49 MB / 0.7763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 709 * Number of variables: 709 Notification: Performance of Generate backend data structure: time 0.01306/10.63, allocations: 3.637 MB / 4.828 GB, free: 61.49 MB / 0.7763 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/10.63, allocations: 15.19 kB / 4.828 GB, free: 61.48 MB / 0.7763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00683/10.64, allocations: 0.8965 MB / 4.829 GB, free: 61.31 MB / 0.7763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006231/10.65, allocations: 2.201 MB / 4.831 GB, free: 60.98 MB / 0.7763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/10.65, allocations: 88.16 kB / 4.831 GB, free: 60.98 MB / 0.7763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/10.65, allocations: 174.3 kB / 4.832 GB, free: 60.98 MB / 0.7763 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006803/10.66, allocations: 2.824 MB / 4.834 GB, free: 60.96 MB / 0.7763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008263/10.66, allocations: 3.129 MB / 4.837 GB, free: 60.59 MB / 0.7763 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/10.66, allocations: 5.75 kB / 4.837 GB, free: 60.59 MB / 0.7763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005517/10.66, allocations: 11 kB / 4.837 GB, free: 60.59 MB / 0.7763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/10.66, allocations: 126.6 kB / 4.838 GB, free: 60.58 MB / 0.7763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/10.68, allocations: 14.89 MB / 4.852 GB, free: 51.79 MB / 0.7763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002963/10.68, allocations: 2.056 MB / 4.854 GB, free: 51.75 MB / 0.7763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/10.69, allocations: 1.343 MB / 4.855 GB, free: 51.72 MB / 0.7763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008861/10.69, allocations: 1.388 MB / 4.857 GB, free: 50.22 MB / 0.7763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001706/10.69, allocations: 1.271 MB / 4.858 GB, free: 50.15 MB / 0.7763 GB Notification: Performance of pre-optimization done (n=213): time 4.127e-06/10.69, allocations: 0 / 4.858 GB, free: 50.15 MB / 0.7763 GB Notification: Performance of matching and sorting (n=213): time 0.005458/10.69, allocations: 2.484 MB / 4.86 GB, free: 49.98 MB / 0.7763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/10.69, allocations: 76.16 kB / 4.861 GB, free: 49.91 MB / 0.7763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/10.7, allocations: 0.9747 MB / 4.861 GB, free: 49.77 MB / 0.7763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001772/10.7, allocations: 34.27 kB / 4.862 GB, free: 49.73 MB / 0.7763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007382/10.7, allocations: 0.8737 MB / 4.862 GB, free: 49.25 MB / 0.7763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006746/10.7, allocations: 0.7101 MB / 4.863 GB, free: 48.78 MB / 0.7763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/10.7, allocations: 0 / 4.863 GB, free: 48.78 MB / 0.7763 GB Notification: Performance of setup shared object (initialization): time 0.0001182/10.7, allocations: 389.8 kB / 4.863 GB, free: 48.47 MB / 0.7763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/10.7, allocations: 0.9347 MB / 4.864 GB, free: 48.46 MB / 0.7763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/10.7, allocations: 1.339 MB / 4.866 GB, free: 48.03 MB / 0.7763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/10.7, allocations: 1.207 MB / 4.867 GB, free: 48.01 MB / 0.7763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/10.7, allocations: 3.562 kB / 4.867 GB, free: 48.01 MB / 0.7763 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.004102/10.71, allocations: 2.614 MB / 4.869 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/10.71, allocations: 11.78 kB / 4.869 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/10.71, allocations: 7.781 kB / 4.869 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.27e-05/10.71, allocations: 15.97 kB / 4.869 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/10.71, allocations: 473.2 kB / 4.87 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.447e-05/10.71, allocations: 19.44 kB / 4.87 GB, free: 47.84 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002901/10.71, allocations: 301.2 kB / 4.87 GB, free: 47.76 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/10.71, allocations: 89.39 kB / 4.87 GB, free: 47.76 MB / 0.7763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (258): * Single equations (assignments): 257 * 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.0003594/10.71, allocations: 154.6 kB / 4.87 GB, free: 47.65 MB / 0.7763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/10.71, allocations: 195.3 kB / 4.871 GB, free: 47.55 MB / 0.7763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004337/10.72, allocations: 2.563 MB / 4.873 GB, free: 47.43 MB / 0.7763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/10.72, allocations: 20.75 kB / 4.873 GB, free: 47.43 MB / 0.7763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/10.72, allocations: 3.438 kB / 4.873 GB, free: 47.43 MB / 0.7763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003026/10.72, allocations: 2.359 MB / 4.875 GB, free: 47.04 MB / 0.7763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009039/10.73, allocations: 5.459 MB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/10.73, allocations: 3.844 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/10.73, allocations: 488.2 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.988e-05/10.73, allocations: 16.09 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/10.73, allocations: 40.31 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.414e-05/10.73, allocations: 9.75 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/10.73, allocations: 6.125 kB / 4.881 GB, free: 46.4 MB / 0.7763 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005344/10.74, allocations: 4.231 MB / 4.885 GB, free: 45.8 MB / 0.7763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/10.74, allocations: 0.5388 MB / 4.886 GB, free: 45.58 MB / 0.7763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007013/10.74, allocations: 12.03 kB / 4.886 GB, free: 45.58 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/10.74, allocations: 219.8 kB / 4.886 GB, free: 45.57 MB / 0.7763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/10.74, allocations: 129.1 kB / 4.886 GB, free: 45.56 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/10.74, allocations: 75.47 kB / 4.886 GB, free: 45.56 MB / 0.7763 GB Notification: Performance of sort global known variables: time 0.001168/10.74, allocations: 0.7357 MB / 4.887 GB, free: 45.45 MB / 0.7763 GB Notification: Performance of remove unused functions: time 0.003487/10.75, allocations: 1.208 MB / 4.888 GB, free: 45.3 MB / 0.7763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 16 (volEas.dynBal.U,volEas.dynBal.m,volEas.dynBal.mXi[1],volEas.dynBal.mC[1],oriOutBot.mExc,oriOutTop.mExc,oriWesTop.mExc,volWes.dynBal.U,volWes.dynBal.m,volWes.dynBal.mXi[1],volWes.dynBal.mC[1],oriEasTop.mExc,volTop.dynBal.U,volTop.dynBal.m,volTop.dynBal.mXi[1],volTop.dynBal.mC[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 215 * 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.006622/10.75, allocations: 5.318 MB / 4.893 GB, free: 42.97 MB / 0.7763 GB Notification: Performance of simCode: created initialization part: time 0.003707/10.76, allocations: 2.34 MB / 4.896 GB, free: 42.9 MB / 0.7763 GB Notification: Performance of simCode: created event and clocks part: time 7.535e-06/10.76, allocations: 0 / 4.896 GB, free: 42.9 MB / 0.7763 GB Notification: Performance of simCode: created simulation system equations: time 0.001785/10.76, allocations: 1.228 MB / 4.897 GB, free: 42.9 MB / 0.7763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005086/10.77, allocations: 0.9735 MB / 4.898 GB, free: 42.88 MB / 0.7763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009205/10.77, allocations: 4.947 MB / 4.903 GB, free: 41.86 MB / 0.7763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002786/10.78, allocations: 2.269 MB / 4.905 GB, free: 41.09 MB / 0.7763 GB Notification: Performance of SimCode: time 6.11e-07/10.78, allocations: 0 / 4.905 GB, free: 41.09 MB / 0.7763 GB Notification: Performance of Templates: time 0.08895/10.87, allocations: 67.43 MB / 4.971 GB, free: 37.32 MB / 0.7763 GB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.makefile (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.sim & ./BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)