Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_maint_8_0_x_Buildings_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.303/1.303, allocations: 285.5 MB / 292.8 MB, free: 10.46 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009167/0.000917, allocations: 193.2 kB / 361.1 MB, free: 7.062 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.002/1.002, allocations: 205.1 MB / 0.6195 GB, free: 10.29 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007704/0.0007704, allocations: 94.23 kB / 0.7326 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1718/0.1726, allocations: 121.4 MB / 0.8511 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.5714, allocations: 115.3 MB / 0.9637 GB, free: 77.99 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.926/3.497, allocations: 2.136 GB / 3.099 GB, free: 347.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/3.497, allocations: 87.58 kB / 3.1 GB, free: 347.6 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Media/package.mo:4975:5-4976:59:writable] Error: Variable reference_p: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Media/package.mo:4977:5-4978:64:writable] Error: Variable reference_T: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Media/package.mo:4981:5-4982:66:writable] Error: Variable p_default: Internal error - Types.typeOfValue failed: fail() [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Media/package.mo:4983:5-4984: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 5.208/8.706, allocations: 2.103 GB / 5.203 GB, free: 81.41 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/8.706, allocations: 12.5 kB / 5.203 GB, free: 81.4 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00589/8.712, allocations: 0.9 MB / 5.203 GB, free: 80.51 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004933/8.717, allocations: 2.205 MB / 5.206 GB, free: 78.3 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/8.717, allocations: 84 kB / 5.206 GB, free: 78.22 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007079/8.718, allocations: 176 kB / 5.206 GB, free: 78.05 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004905/8.723, allocations: 2.813 MB / 5.209 GB, free: 75.23 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004546/8.727, allocations: 3.136 MB / 5.212 GB, free: 71.97 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-05/8.727, allocations: 11.84 kB / 5.212 GB, free: 71.96 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002321/8.727, allocations: 7.719 kB / 5.212 GB, free: 71.96 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-05/8.727, allocations: 129.3 kB / 5.212 GB, free: 71.83 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/8.74, allocations: 14.88 MB / 5.226 GB, free: 56.03 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/8.743, allocations: 2.052 MB / 5.228 GB, free: 54 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/8.744, allocations: 1.349 MB / 5.23 GB, free: 52.64 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007927/8.745, allocations: 1.385 MB / 5.231 GB, free: 50.98 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001475/8.746, allocations: 1.288 MB / 5.232 GB, free: 49.68 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=213): time 3.968e-06/8.746, allocations: 0 / 5.232 GB, free: 49.68 MB / 0.9948 GB Notification: Performance of matching and sorting (n=213): time 0.004863/8.751, allocations: 2.481 MB / 5.235 GB, free: 47.2 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.57e-05/8.751, allocations: 73.41 kB / 5.235 GB, free: 47.12 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/8.752, allocations: 0.9774 MB / 5.236 GB, free: 46.14 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001321/8.752, allocations: 29.7 kB / 5.236 GB, free: 46.1 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004412/8.753, allocations: 0.871 MB / 5.237 GB, free: 45.22 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004605/8.753, allocations: 0.7042 MB / 5.237 GB, free: 44.5 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/8.753, allocations: 0 / 5.237 GB, free: 44.5 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 8.358e-05/8.754, allocations: 385.9 kB / 5.238 GB, free: 44.12 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/8.755, allocations: 0.9334 MB / 5.239 GB, free: 43.18 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/8.756, allocations: 1.344 MB / 5.24 GB, free: 41.68 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/8.758, allocations: 1.211 MB / 5.241 GB, free: 40.49 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/8.758, allocations: 0 / 5.241 GB, free: 40.49 MB / 0.9948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.003429/8.761, allocations: 2.62 MB / 5.244 GB, free: 37.87 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/8.761, allocations: 4 kB / 5.244 GB, free: 37.87 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/8.761, allocations: 8 kB / 5.244 GB, free: 37.86 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/8.761, allocations: 16 kB / 5.244 GB, free: 37.84 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/8.763, allocations: 469.9 kB / 5.244 GB, free: 37.39 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/8.763, allocations: 19.98 kB / 5.244 GB, free: 37.37 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/8.765, allocations: 309.8 kB / 5.244 GB, free: 37.09 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/8.766, allocations: 83.97 kB / 5.244 GB, free: 37 MB / 0.9948 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.0002819/8.766, allocations: 149.3 kB / 5.245 GB, free: 36.86 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/8.766, allocations: 201.6 kB / 5.245 GB, free: 36.66 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/8.77, allocations: 2.553 MB / 5.247 GB, free: 34.11 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/8.77, allocations: 24 kB / 5.247 GB, free: 34.09 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/8.77, allocations: 4 kB / 5.247 GB, free: 34.08 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002681/8.773, allocations: 2.366 MB / 5.25 GB, free: 31.65 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007191/8.78, allocations: 5.464 MB / 5.255 GB, free: 26.13 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/8.78, allocations: 4 kB / 5.255 GB, free: 26.13 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/8.782, allocations: 491.6 kB / 5.255 GB, free: 25.65 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/8.782, allocations: 12 kB / 5.255 GB, free: 25.64 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/8.782, allocations: 35.95 kB / 5.255 GB, free: 25.6 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.934e-06/8.782, allocations: 12 kB / 5.256 GB, free: 25.59 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/8.782, allocations: 11.94 kB / 5.256 GB, free: 25.58 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004408/8.787, allocations: 4.23 MB / 5.26 GB, free: 21.23 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006615/8.793, allocations: 6.443 MB / 5.266 GB, free: 14.66 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009026/8.794, allocations: 0.5372 MB / 5.266 GB, free: 14.1 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003304/8.794, allocations: 15.89 kB / 5.266 GB, free: 14.09 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/8.796, allocations: 207.5 kB / 5.267 GB, free: 13.88 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/8.796, allocations: 121.8 kB / 5.267 GB, free: 13.77 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/8.797, allocations: 79.95 kB / 5.267 GB, free: 13.69 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.0007362/8.797, allocations: 0.7391 MB / 5.268 GB, free: 12.95 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.003749/8.801, allocations: 1.841 MB / 5.269 GB, free: 11.11 MB / 0.9948 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.004808/8.806, allocations: 5.312 MB / 5.275 GB, free: 5.801 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.002647/8.809, allocations: 2.336 MB / 5.277 GB, free: 3.461 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/8.809, allocations: 4.375 kB / 5.277 GB, free: 3.457 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/8.81, allocations: 1.233 MB / 5.278 GB, free: 2.227 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003815/8.814, allocations: 0.9722 MB / 5.279 GB, free: 1.277 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007869/8.822, allocations: 4.957 MB / 5.284 GB, free: 12.29 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00242/8.824, allocations: 2.333 MB / 5.286 GB, free: 9.922 MB / 1.01 GB Notification: Performance of SimCode: time 3.41e-07/8.824, allocations: 0 / 5.286 GB, free: 9.922 MB / 1.01 GB (rm -f Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Airflow_Multizone_Examples_CO2TransportStep_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Airflow_Multizone_Examples_CO2TransportStep.fmu > Buildings_maint.8.0.x_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)