Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_latest_Buildings_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.828/1.828, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009939/0.0009939, allocations: 181.3 kB / 490.8 MB, free: 1.895 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.133/1.133, allocations: 221.4 MB / 0.7863 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008352/0.0008352, allocations: 91.34 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.428/0.4289, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.61, allocations: 143 MB / 1.212 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3/3.61, allocations: 1.982 GB / 3.194 GB, free: 331.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/3.611, allocations: 87.95 kB / 3.194 GB, free: 331.4 MB / 1.151 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 5.738/9.349, allocations: 2.142 GB / 5.336 GB, free: 130.4 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/9.349, allocations: 8.438 kB / 5.336 GB, free: 130.4 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/9.355, allocations: 0.8996 MB / 5.337 GB, free: 130.2 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004968/9.36, allocations: 2.231 MB / 5.339 GB, free: 129.9 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-05/9.36, allocations: 90.31 kB / 5.339 GB, free: 129.9 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000408/9.361, allocations: 172.6 kB / 5.339 GB, free: 129.9 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004722/9.365, allocations: 2.817 MB / 5.342 GB, free: 129.8 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004791/9.37, allocations: 3.142 MB / 5.345 GB, free: 129.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.219e-05/9.37, allocations: 3.906 kB / 5.345 GB, free: 129.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/9.371, allocations: 6.906 kB / 5.345 GB, free: 129.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/9.371, allocations: 130.4 kB / 5.345 GB, free: 129.4 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/9.386, allocations: 15.86 MB / 5.361 GB, free: 119.8 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002049/9.389, allocations: 1.524 MB / 5.362 GB, free: 119.8 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/9.39, allocations: 1.341 MB / 5.364 GB, free: 119.8 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001005/9.391, allocations: 1.391 MB / 5.365 GB, free: 118.3 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001792/9.393, allocations: 1.279 MB / 5.366 GB, free: 118.2 MB / 1.214 GB Notification: Performance of pre-optimization done (n=213): time 4.018e-06/9.393, allocations: 0 / 5.366 GB, free: 118.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=213): time 0.005793/9.399, allocations: 2.487 MB / 5.369 GB, free: 118 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/9.399, allocations: 75.03 kB / 5.369 GB, free: 118 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/9.4, allocations: 0.9853 MB / 5.37 GB, free: 117.8 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0001525/9.4, allocations: 28.98 kB / 5.37 GB, free: 117.8 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006486/9.401, allocations: 0.8775 MB / 5.371 GB, free: 117.4 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006413/9.402, allocations: 0.7005 MB / 5.371 GB, free: 117.1 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/9.402, allocations: 3.969 kB / 5.371 GB, free: 117.1 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001157/9.402, allocations: 387.1 kB / 5.372 GB, free: 116.8 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/9.403, allocations: 0.9342 MB / 5.373 GB, free: 116.8 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/9.405, allocations: 1.331 MB / 5.374 GB, free: 116.3 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/9.407, allocations: 1.208 MB / 5.375 GB, free: 116.3 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/9.407, allocations: 3.531 kB / 5.375 GB, free: 116.3 MB / 1.214 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.00435/9.411, allocations: 2.616 MB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/9.411, allocations: 5.766 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/9.411, allocations: 14.98 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/9.411, allocations: 14.38 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/9.414, allocations: 471.6 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.851e-05/9.414, allocations: 28.23 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003011/9.417, allocations: 345.2 kB / 5.378 GB, free: 116.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002225/9.417, allocations: 86.88 kB / 5.378 GB, free: 116.1 MB / 1.214 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.0003635/9.417, allocations: 153.2 kB / 5.379 GB, free: 116 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/9.418, allocations: 198.6 kB / 5.379 GB, free: 115.9 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004532/9.422, allocations: 2.564 MB / 5.381 GB, free: 115.8 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/9.422, allocations: 19.56 kB / 5.381 GB, free: 115.8 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/9.422, allocations: 1.781 kB / 5.381 GB, free: 115.8 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003365/9.426, allocations: 2.359 MB / 5.384 GB, free: 115.4 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009533/9.435, allocations: 5.473 MB / 5.389 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/9.435, allocations: 3.938 kB / 5.389 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002561/9.438, allocations: 481.5 kB / 5.389 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-05/9.438, allocations: 12.58 kB / 5.389 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/9.438, allocations: 39.45 kB / 5.389 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/9.438, allocations: 14.41 kB / 5.39 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/9.438, allocations: 3.844 kB / 5.39 GB, free: 114.8 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005323/9.443, allocations: 3.903 MB / 5.393 GB, free: 114.2 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007238/9.451, allocations: 6.08 MB / 5.399 GB, free: 113.2 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/9.452, allocations: 0.5396 MB / 5.4 GB, free: 113 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000337/9.452, allocations: 10.09 kB / 5.4 GB, free: 113 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/9.454, allocations: 210.4 kB / 5.4 GB, free: 113 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/9.454, allocations: 130.9 kB / 5.4 GB, free: 113 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/9.454, allocations: 77.08 kB / 5.4 GB, free: 113 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.0009791/9.455, allocations: 0.7451 MB / 5.401 GB, free: 112.9 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.004179/9.46, allocations: 1.832 MB / 5.403 GB, free: 112.8 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 16 (volEas.dynBal.medium.Xi[1],volEas.dynBal.U,volEas.dynBal.m,volEas.dynBal.mC[1],oriOutBot.mExc,oriOutTop.mExc,oriWesTop.mExc,volWes.dynBal.medium.Xi[1],volWes.dynBal.U,volWes.dynBal.m,volWes.dynBal.mC[1],oriEasTop.mExc,volTop.dynBal.medium.Xi[1],volTop.dynBal.U,volTop.dynBal.m,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.005175/9.465, allocations: 5.317 MB / 5.408 GB, free: 110.5 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.002912/9.468, allocations: 2.339 MB / 5.41 GB, free: 110.4 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/9.468, allocations: 0 / 5.41 GB, free: 110.4 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001369/9.469, allocations: 1.224 MB / 5.411 GB, free: 110.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/9.473, allocations: 0.9792 MB / 5.412 GB, free: 110.4 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/9.481, allocations: 4.986 MB / 5.417 GB, free: 109.3 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/9.483, allocations: 2.339 MB / 5.419 GB, free: 108.6 MB / 1.214 GB Notification: Performance of SimCode: time 5.51e-07/9.483, allocations: 0 / 5.419 GB, free: 108.6 MB / 1.214 GB (rm -f Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep_res.mat --tempDir=temp_Buildings_latest_Buildings_Airflow_Multizone_Examples_CO2TransportStep_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Airflow_Multizone_Examples_CO2TransportStep.fmu > Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)