Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="IBPSA_latest_IBPSA_Airflow_Multizone_Examples_CO2TransportStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Airflow.Multizone.Examples.CO2TransportStep,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 191.7 kB / 7.808 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4481/0.4481, allocations: 90.86 MB / 99.08 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 221.4 MB / 342.7 MB, free: 5.496 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009675, allocations: 103.8 kB / 415.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1722/0.1732, allocations: 78.45 MB / 494 MB, free: 7.98 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.5162, allocations: 72.3 MB / 0.553 GB, free: 73.41 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.691/4.208, allocations: 1.935 GB / 2.488 GB, free: 94.69 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/4.208, allocations: 90.08 kB / 2.488 GB, free: 94.64 MB / 0.6042 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 7.039/11.25, allocations: 2.142 GB / 4.63 GB, free: 39.02 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/11.25, allocations: 11.03 kB / 4.63 GB, free: 39.02 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007794/11.25, allocations: 0.8914 MB / 4.631 GB, free: 38.84 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008058/11.26, allocations: 2.227 MB / 4.633 GB, free: 38.38 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/11.26, allocations: 84.62 kB / 4.633 GB, free: 38.38 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001599/11.26, allocations: 172 kB / 4.633 GB, free: 38.38 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008123/11.27, allocations: 2.833 MB / 4.636 GB, free: 38.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009287/11.28, allocations: 3.136 MB / 4.639 GB, free: 37.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/11.28, allocations: 5.531 kB / 4.639 GB, free: 37.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007132/11.28, allocations: 4.531 kB / 4.639 GB, free: 37.98 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/11.28, allocations: 135.5 kB / 4.639 GB, free: 37.98 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0217/11.3, allocations: 15.86 MB / 4.654 GB, free: 28.25 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/11.31, allocations: 1.51 MB / 4.656 GB, free: 28.21 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002009/11.31, allocations: 1.344 MB / 4.657 GB, free: 28.19 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/11.31, allocations: 1.385 MB / 4.659 GB, free: 26.68 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002174/11.31, allocations: 1.284 MB / 4.66 GB, free: 26.61 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=213): time 5.16e-06/11.31, allocations: 0 / 4.66 GB, free: 26.61 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213): time 0.006522/11.32, allocations: 2.488 MB / 4.662 GB, free: 26.44 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/11.32, allocations: 75.75 kB / 4.662 GB, free: 26.38 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002068/11.32, allocations: 0.983 MB / 4.663 GB, free: 26.23 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.00023/11.32, allocations: 28.67 kB / 4.663 GB, free: 26.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/11.32, allocations: 0.8786 MB / 4.664 GB, free: 25.69 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007991/11.32, allocations: 0.7072 MB / 4.665 GB, free: 25.21 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/11.32, allocations: 0 / 4.665 GB, free: 25.21 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001486/11.32, allocations: 389.2 kB / 4.665 GB, free: 24.91 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001454/11.33, allocations: 0.932 MB / 4.666 GB, free: 24.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/11.33, allocations: 1.333 MB / 4.667 GB, free: 24.48 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002398/11.33, allocations: 1.201 MB / 4.669 GB, free: 24.47 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/11.33, allocations: 4.375 kB / 4.669 GB, free: 24.47 MB / 0.6823 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.005636/11.34, allocations: 2.627 MB / 4.671 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/11.34, allocations: 6.219 kB / 4.671 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.782e-05/11.34, allocations: 8.031 kB / 4.671 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.076e-05/11.34, allocations: 19.53 kB / 4.671 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002267/11.34, allocations: 465.2 kB / 4.672 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.973e-05/11.34, allocations: 27.16 kB / 4.672 GB, free: 24.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/11.34, allocations: 342.4 kB / 4.672 GB, free: 24.21 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/11.34, allocations: 88.38 kB / 4.672 GB, free: 24.21 MB / 0.6823 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.0004516/11.34, allocations: 148.4 kB / 4.672 GB, free: 24.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006804/11.34, allocations: 196.3 kB / 4.672 GB, free: 24 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005029/11.35, allocations: 2.563 MB / 4.675 GB, free: 23.89 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/11.35, allocations: 25.84 kB / 4.675 GB, free: 23.88 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/11.35, allocations: 2.844 kB / 4.675 GB, free: 23.88 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003387/11.35, allocations: 2.358 MB / 4.677 GB, free: 23.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/11.36, allocations: 5.461 MB / 4.683 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/11.36, allocations: 2.938 kB / 4.683 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/11.36, allocations: 484.7 kB / 4.683 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.226e-05/11.36, allocations: 9.75 kB / 4.683 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002332/11.36, allocations: 44.16 kB / 4.683 GB, free: 22.86 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-05/11.36, allocations: 13.28 kB / 4.683 GB, free: 22.86 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/11.36, allocations: 8.594 kB / 4.683 GB, free: 22.86 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006236/11.37, allocations: 3.906 MB / 4.687 GB, free: 22.26 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009736/11.38, allocations: 6.079 MB / 4.693 GB, free: 21.27 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/11.38, allocations: 0.5363 MB / 4.693 GB, free: 21.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007171/11.38, allocations: 19.19 kB / 4.693 GB, free: 21.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002812/11.39, allocations: 215.3 kB / 4.694 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/11.39, allocations: 120.8 kB / 4.694 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/11.39, allocations: 76.19 kB / 4.694 GB, free: 21.04 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001499/11.39, allocations: 0.7465 MB / 4.695 GB, free: 20.93 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.006491/11.39, allocations: 1.834 MB / 4.696 GB, free: 20.77 MB / 0.6823 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.007949/11.4, allocations: 5.306 MB / 4.702 GB, free: 18.42 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004177/11.41, allocations: 2.337 MB / 4.704 GB, free: 18.36 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/11.41, allocations: 0 / 4.704 GB, free: 18.36 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002017/11.41, allocations: 1.223 MB / 4.705 GB, free: 18.36 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005712/11.41, allocations: 0.9707 MB / 4.706 GB, free: 18.34 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/11.43, allocations: 4.996 MB / 4.711 GB, free: 17.3 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003853/11.43, allocations: 2.347 MB / 4.713 GB, free: 16.54 MB / 0.6823 GB Notification: Performance of SimCode: time 1.613e-06/11.43, allocations: 0 / 4.713 GB, free: 16.54 MB / 0.6823 GB (rm -f IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.pipe ; mkfifo IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.pipe >> ../files/IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Airflow_Multizone_Examples_CO2TransportStep_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Airflow_Multizone_Examples_CO2TransportStep.fmu > IBPSA_latest_IBPSA.Airflow.Multizone.Examples.CO2TransportStep.pipe 2>&1)