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: "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) [: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.755/0.755, allocations: 141.8 MB / 149.1 MB, free: 11.02 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.001122/0.001122, allocations: 170.9 kB / 181.9 MB, free: 7.848 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.437/1.437, allocations: 221.3 MB / 436 MB, free: 4 kB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 97.53 kB / 0.507 GB, free: 9.094 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002036/0.002035, allocations: 278.3 kB / 0.5884 GB, free: 5.902 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.5219/0.5239, allocations: 89.63 MB / 0.676 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.74, allocations: 82.79 MB / 0.7568 GB, free: 115.4 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.134/4.875, allocations: 1.941 GB / 2.698 GB, free: 29.81 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/4.875, allocations: 91.94 kB / 2.698 GB, free: 29.72 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: 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 8.078/12.95, allocations: 2.13 GB / 4.828 GB, free: 68.44 MB / 0.7764 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/12.95, allocations: 6.531 kB / 4.828 GB, free: 68.44 MB / 0.7764 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007396/12.96, allocations: 0.9077 MB / 4.829 GB, free: 68.27 MB / 0.7764 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006929/12.97, allocations: 2.211 MB / 4.831 GB, free: 67.72 MB / 0.7764 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/12.97, allocations: 87.31 kB / 4.832 GB, free: 67.72 MB / 0.7764 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/12.97, allocations: 166.5 kB / 4.832 GB, free: 67.72 MB / 0.7764 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005488/12.97, allocations: 2.814 MB / 4.834 GB, free: 67.7 MB / 0.7764 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00498/12.98, allocations: 3.134 MB / 4.838 GB, free: 67.32 MB / 0.7764 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.584e-05/12.98, allocations: 12.75 kB / 4.838 GB, free: 67.31 MB / 0.7764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000252/12.98, allocations: 4.812 kB / 4.838 GB, free: 67.31 MB / 0.7764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/12.98, allocations: 135.3 kB / 4.838 GB, free: 67.3 MB / 0.7764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02412/13, allocations: 14.88 MB / 4.852 GB, free: 58.26 MB / 0.7764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005317/13.01, allocations: 2.055 MB / 4.854 GB, free: 58.2 MB / 0.7764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002983/13.01, allocations: 1.345 MB / 4.856 GB, free: 58.17 MB / 0.7764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/13.01, allocations: 1.391 MB / 4.857 GB, free: 56.67 MB / 0.7764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002994/13.02, allocations: 1.277 MB / 4.858 GB, free: 56.59 MB / 0.7764 GB Notification: Performance of pre-optimization done (n=213): time 6.963e-06/13.02, allocations: 0 / 4.858 GB, free: 56.59 MB / 0.7764 GB Notification: Performance of matching and sorting (n=213): time 0.007107/13.02, allocations: 2.479 MB / 4.861 GB, free: 56.43 MB / 0.7764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/13.02, allocations: 80.86 kB / 4.861 GB, free: 56.36 MB / 0.7764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/13.03, allocations: 0.9728 MB / 4.862 GB, free: 56.2 MB / 0.7764 GB Notification: Performance of collectPreVariables (initialization): time 0.0002385/13.03, allocations: 29.36 kB / 4.862 GB, free: 56.17 MB / 0.7764 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009324/13.03, allocations: 0.8762 MB / 4.862 GB, free: 55.66 MB / 0.7764 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007852/13.03, allocations: 0.7093 MB / 4.863 GB, free: 55.19 MB / 0.7764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/13.03, allocations: 0 / 4.863 GB, free: 55.19 MB / 0.7764 GB Notification: Performance of setup shared object (initialization): time 0.0001271/13.03, allocations: 383.7 kB / 4.864 GB, free: 54.88 MB / 0.7764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/13.03, allocations: 0.9349 MB / 4.864 GB, free: 54.88 MB / 0.7764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/13.03, allocations: 1.349 MB / 4.866 GB, free: 54.44 MB / 0.7764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/13.03, allocations: 1.204 MB / 4.867 GB, free: 54.4 MB / 0.7764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/13.03, allocations: 2.75 kB / 4.867 GB, free: 54.4 MB / 0.7764 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.00441/13.04, allocations: 2.615 MB / 4.869 GB, free: 54.2 MB / 0.7764 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/13.04, allocations: 5.812 kB / 4.869 GB, free: 54.2 MB / 0.7764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/13.04, allocations: 11.84 kB / 4.87 GB, free: 54.2 MB / 0.7764 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.298e-05/13.04, allocations: 18.97 kB / 4.87 GB, free: 54.2 MB / 0.7764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002081/13.04, allocations: 468.9 kB / 4.87 GB, free: 54.17 MB / 0.7764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.016e-05/13.04, allocations: 23.09 kB / 4.87 GB, free: 54.16 MB / 0.7764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/13.04, allocations: 301.8 kB / 4.87 GB, free: 54.08 MB / 0.7764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/13.04, allocations: 88.42 kB / 4.87 GB, free: 54.08 MB / 0.7764 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.0003552/13.04, allocations: 150.4 kB / 4.871 GB, free: 53.94 MB / 0.7764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/13.04, allocations: 200 kB / 4.871 GB, free: 53.85 MB / 0.7764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004439/13.05, allocations: 2.549 MB / 4.873 GB, free: 53.73 MB / 0.7764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/13.05, allocations: 19.75 kB / 4.873 GB, free: 53.73 MB / 0.7764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/13.05, allocations: 1.094 kB / 4.873 GB, free: 53.73 MB / 0.7764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003139/13.05, allocations: 2.364 MB / 4.876 GB, free: 53.33 MB / 0.7764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/13.06, allocations: 5.467 MB / 4.881 GB, free: 51.52 MB / 0.7764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/13.06, allocations: 2.75 kB / 4.881 GB, free: 51.52 MB / 0.7764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/13.06, allocations: 484.1 kB / 4.881 GB, free: 51.49 MB / 0.7764 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.022e-05/13.06, allocations: 10.62 kB / 4.881 GB, free: 51.49 MB / 0.7764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001668/13.06, allocations: 39.92 kB / 4.881 GB, free: 51.48 MB / 0.7764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-05/13.06, allocations: 15.91 kB / 4.881 GB, free: 51.48 MB / 0.7764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/13.06, allocations: 7.219 kB / 4.881 GB, free: 51.47 MB / 0.7764 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006484/13.07, allocations: 4.223 MB / 4.886 GB, free: 49.55 MB / 0.7764 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01033/13.08, allocations: 6.449 MB / 4.892 GB, free: 45.08 MB / 0.7764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/13.08, allocations: 0.532 MB / 4.892 GB, free: 44.6 MB / 0.7764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003942/13.08, allocations: 19.61 kB / 4.892 GB, free: 44.59 MB / 0.7764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/13.09, allocations: 216.1 kB / 4.893 GB, free: 44.45 MB / 0.7764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/13.09, allocations: 124.4 kB / 4.893 GB, free: 44.38 MB / 0.7764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/13.09, allocations: 80.66 kB / 4.893 GB, free: 44.32 MB / 0.7764 GB Notification: Performance of sort global known variables: time 0.001021/13.09, allocations: 0.7399 MB / 4.893 GB, free: 43.65 MB / 0.7764 GB Notification: Performance of remove unused functions: time 0.005345/13.09, allocations: 1.829 MB / 4.895 GB, free: 41.85 MB / 0.7764 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.007355/13.1, allocations: 5.33 MB / 4.9 GB, free: 37.42 MB / 0.7764 GB Notification: Performance of simCode: created initialization part: time 0.003786/13.1, allocations: 2.335 MB / 4.903 GB, free: 35.25 MB / 0.7764 GB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/13.1, allocations: 4 kB / 4.903 GB, free: 35.25 MB / 0.7764 GB Notification: Performance of simCode: created simulation system equations: time 0.001537/13.11, allocations: 1.227 MB / 4.904 GB, free: 34.11 MB / 0.7764 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005144/13.11, allocations: 0.9771 MB / 4.905 GB, free: 33.44 MB / 0.7764 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/13.12, allocations: 4.955 MB / 4.91 GB, free: 29.13 MB / 0.7764 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002535/13.12, allocations: 2.333 MB / 4.912 GB, free: 27.26 MB / 0.7764 GB Notification: Performance of SimCode: time 1.122e-06/13.12, allocations: 0 / 4.912 GB, free: 27.26 MB / 0.7764 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_CO2TransportStep_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_CO2TransportStep.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)