Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_9_Buildings_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.824/1.824, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009672/0.0009672, allocations: 168.8 kB / 487 MB, free: 5.402 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.196/1.196, allocations: 221.3 MB / 0.7819 GB, free: 1.461 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008879, allocations: 102.9 kB / 0.9213 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4753/0.4762, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.6896, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.143/3.832, allocations: 1.982 GB / 3.187 GB, free: 323.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/3.832, allocations: 91.81 kB / 3.187 GB, free: 323.6 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.783/9.615, allocations: 2.142 GB / 5.329 GB, free: 134 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/9.615, allocations: 9.875 kB / 5.329 GB, free: 134 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006059/9.621, allocations: 0.9002 MB / 5.33 GB, free: 133.9 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00487/9.626, allocations: 2.227 MB / 5.332 GB, free: 133.5 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-05/9.626, allocations: 89.72 kB / 5.332 GB, free: 133.5 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000412/9.627, allocations: 168.8 kB / 5.332 GB, free: 133.5 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004451/9.631, allocations: 2.827 MB / 5.335 GB, free: 133.5 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004347/9.636, allocations: 3.141 MB / 5.338 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.028e-05/9.636, allocations: 8.281 kB / 5.338 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/9.636, allocations: 6.625 kB / 5.338 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.366e-05/9.636, allocations: 126.4 kB / 5.338 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01465/9.651, allocations: 15.88 MB / 5.354 GB, free: 123.5 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/9.653, allocations: 1.516 MB / 5.355 GB, free: 123.5 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/9.654, allocations: 1.348 MB / 5.356 GB, free: 123.4 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000829/9.655, allocations: 1.384 MB / 5.358 GB, free: 121.9 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/9.656, allocations: 1.28 MB / 5.359 GB, free: 121.9 MB / 1.214 GB Notification: Performance of pre-optimization done (n=213): time 3.787e-06/9.656, allocations: 0 / 5.359 GB, free: 121.9 MB / 1.214 GB Notification: Performance of matching and sorting (n=213): time 0.004957/9.661, allocations: 2.491 MB / 5.362 GB, free: 121.7 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/9.661, allocations: 74.56 kB / 5.362 GB, free: 121.6 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/9.663, allocations: 0.9847 MB / 5.363 GB, free: 121.5 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0001333/9.663, allocations: 29.39 kB / 5.363 GB, free: 121.5 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004897/9.663, allocations: 0.8706 MB / 5.363 GB, free: 121.1 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004999/9.664, allocations: 0.7051 MB / 5.364 GB, free: 120.7 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/9.664, allocations: 0 / 5.364 GB, free: 120.7 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 9.018e-05/9.664, allocations: 384.5 kB / 5.364 GB, free: 120.4 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/9.665, allocations: 0.9405 MB / 5.365 GB, free: 120.4 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/9.666, allocations: 1.328 MB / 5.367 GB, free: 120 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/9.668, allocations: 1.208 MB / 5.368 GB, free: 120 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/9.668, allocations: 3.031 kB / 5.368 GB, free: 120 MB / 1.214 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.003777/9.672, allocations: 2.615 MB / 5.37 GB, free: 119.8 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/9.672, allocations: 3.5 kB / 5.37 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/9.672, allocations: 9.75 kB / 5.37 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/9.672, allocations: 19.12 kB / 5.37 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/9.674, allocations: 474.3 kB / 5.371 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/9.674, allocations: 20.89 kB / 5.371 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002556/9.677, allocations: 346.9 kB / 5.371 GB, free: 119.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/9.677, allocations: 89.14 kB / 5.371 GB, free: 119.8 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.0003106/9.677, allocations: 143.4 kB / 5.371 GB, free: 119.7 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/9.677, allocations: 197.4 kB / 5.372 GB, free: 119.6 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/9.681, allocations: 2.571 MB / 5.374 GB, free: 119.4 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/9.681, allocations: 22.03 kB / 5.374 GB, free: 119.4 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/9.681, allocations: 0 / 5.374 GB, free: 119.4 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002856/9.684, allocations: 2.362 MB / 5.377 GB, free: 119.1 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00793/9.692, allocations: 5.465 MB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/9.692, allocations: 3.469 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/9.695, allocations: 483.2 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.66e-05/9.695, allocations: 13.66 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/9.695, allocations: 38.64 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/9.695, allocations: 13.89 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/9.695, allocations: 7.562 kB / 5.382 GB, free: 118.4 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004695/9.7, allocations: 3.901 MB / 5.386 GB, free: 117.8 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007087/9.707, allocations: 6.078 MB / 5.392 GB, free: 116.9 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/9.708, allocations: 0.5431 MB / 5.393 GB, free: 116.7 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000369/9.708, allocations: 11.22 kB / 5.393 GB, free: 116.7 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/9.71, allocations: 214.5 kB / 5.393 GB, free: 116.7 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/9.711, allocations: 126 kB / 5.393 GB, free: 116.7 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/9.711, allocations: 75.42 kB / 5.393 GB, free: 116.7 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.0008792/9.712, allocations: 0.742 MB / 5.394 GB, free: 116.5 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.004071/9.716, allocations: 1.835 MB / 5.396 GB, free: 116.5 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.004971/9.721, allocations: 5.321 MB / 5.401 GB, free: 114.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.002868/9.724, allocations: 2.336 MB / 5.403 GB, free: 114.1 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/9.724, allocations: 3.5 kB / 5.403 GB, free: 114.1 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001332/9.725, allocations: 1.221 MB / 5.404 GB, free: 114.1 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/9.729, allocations: 0.9812 MB / 5.405 GB, free: 114 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007971/9.737, allocations: 4.979 MB / 5.41 GB, free: 113 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002232/9.74, allocations: 2.335 MB / 5.412 GB, free: 112.3 MB / 1.214 GB Notification: Performance of SimCode: time 6.71e-07/9.74, allocations: 3.188 kB / 5.412 GB, free: 112.3 MB / 1.214 GB (rm -f Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; mkfifo Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe >> ../files/Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep_res.mat --tempDir=temp_Buildings_9_Buildings_Airflow_Multizone_Examples_CO2TransportStep_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Airflow_Multizone_Examples_CO2TransportStep.fmu > Buildings_9_Buildings.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)