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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8139/0.8139, allocations: 143.3 MB / 158.3 MB, free: 5.863 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 173.1 kB / 191.5 MB, free: 5.785 MB / 154.7 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: 223.2 MB / 447.7 MB, free: 6.551 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009791/0.000979, allocations: 88.28 kB / 0.5187 GB, free: 2.91 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001827/0.001827, allocations: 272.4 kB / 0.6005 GB, free: 49.02 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004512/0.0004513, allocations: 15.98 kB / 0.6929 GB, free: 2.254 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3693, allocations: 82.78 MB / 0.7738 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.396/4.766, allocations: 1.942 GB / 2.716 GB, free: 43.43 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/4.766, allocations: 93.47 kB / 2.716 GB, free: 43.38 MB / 0.698 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: Performance of FrontEnd - DAE generated: time 8.532/13.3, allocations: 2.126 GB / 4.842 GB, free: 72.17 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.124e-06/13.3, allocations: 0 / 4.842 GB, free: 72.17 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.000201/13.3, allocations: 74.23 kB / 4.842 GB, free: 72.16 MB / 0.7761 GB 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 0.01655/13.31, allocations: 3.952 MB / 4.846 GB, free: 70.52 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.885e-05/13.31, allocations: 14.2 kB / 4.846 GB, free: 70.52 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001891/13.32, allocations: 392.9 kB / 4.847 GB, free: 70.47 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006757/13.32, allocations: 0.8321 MB / 4.847 GB, free: 70.3 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006466/13.33, allocations: 2.172 MB / 4.849 GB, free: 69.84 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/13.33, allocations: 208.8 kB / 4.85 GB, free: 69.83 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/13.33, allocations: 285.9 kB / 4.85 GB, free: 69.83 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006793/13.34, allocations: 3.5 MB / 4.853 GB, free: 69.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.428e-05/13.34, allocations: 14.16 kB / 4.853 GB, free: 69.43 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/13.34, allocations: 118 kB / 4.853 GB, free: 69.43 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/13.34, allocations: 124.2 kB / 4.854 GB, free: 69.42 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005381/13.34, allocations: 3.151 MB / 4.857 GB, free: 69.39 MB / 0.7761 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01713/13.36, allocations: 14.43 MB / 4.871 GB, free: 60.84 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003105/13.36, allocations: 2.29 MB / 4.873 GB, free: 60.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009822/13.37, allocations: 1.394 MB / 4.874 GB, free: 58.91 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001901/13.37, allocations: 1.202 MB / 4.876 GB, free: 58.84 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=213): time 4.498e-06/13.37, allocations: 0 / 4.876 GB, free: 58.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=213): time 0.005607/13.37, allocations: 3.14 MB / 4.879 GB, free: 58.65 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/13.37, allocations: 78.28 kB / 4.879 GB, free: 58.58 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/13.37, allocations: 1.25 MB / 4.88 GB, free: 58.42 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002699/13.38, allocations: 67.8 kB / 4.88 GB, free: 58.39 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009687/13.38, allocations: 1.11 MB / 4.881 GB, free: 57.92 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.000664/13.38, allocations: 0.7357 MB / 4.882 GB, free: 57.45 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/13.38, allocations: 39.5 kB / 4.882 GB, free: 57.45 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001229/13.38, allocations: 387.9 kB / 4.882 GB, free: 57.14 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/13.38, allocations: 0.8974 MB / 4.883 GB, free: 57.14 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/13.38, allocations: 1.328 MB / 4.884 GB, free: 56.7 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/13.38, allocations: 1.121 MB / 4.885 GB, free: 56.64 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/13.38, allocations: 2.281 kB / 4.885 GB, free: 56.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.004117/13.39, allocations: 2.583 MB / 4.888 GB, free: 56.42 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/13.39, allocations: 37.11 kB / 4.888 GB, free: 56.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/13.39, allocations: 8.188 kB / 4.888 GB, free: 56.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/13.39, allocations: 26.36 kB / 4.888 GB, free: 56.38 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/13.39, allocations: 450.2 kB / 4.888 GB, free: 56.35 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.407e-05/13.39, allocations: 20.02 kB / 4.888 GB, free: 56.35 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003555/13.39, allocations: 359.8 kB / 4.889 GB, free: 56.25 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/13.39, allocations: 85.27 kB / 4.889 GB, free: 56.25 MB / 0.7761 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 () * Number of clocked 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.001659/13.39, allocations: 0.6837 MB / 4.89 GB, free: 56.11 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/13.39, allocations: 214 kB / 4.89 GB, free: 56 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/13.4, allocations: 2.503 MB / 4.892 GB, free: 55.88 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/13.4, allocations: 25.42 kB / 4.892 GB, free: 55.88 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/13.4, allocations: 3.125 kB / 4.892 GB, free: 55.88 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003243/13.4, allocations: 2.305 MB / 4.895 GB, free: 55.48 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/13.41, allocations: 5.567 MB / 4.9 GB, free: 54.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/13.41, allocations: 3.875 kB / 4.9 GB, free: 54.84 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/13.41, allocations: 470.4 kB / 4.9 GB, free: 54.82 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.58e-05/13.41, allocations: 7.469 kB / 4.9 GB, free: 54.82 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/13.41, allocations: 61.7 kB / 4.9 GB, free: 54.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.545e-05/13.41, allocations: 16.59 kB / 4.9 GB, free: 54.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/13.41, allocations: 3.25 kB / 4.9 GB, free: 54.81 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005454/13.42, allocations: 4.099 MB / 4.904 GB, free: 54.2 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001743/13.42, allocations: 0.5409 MB / 4.905 GB, free: 53.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003955/13.42, allocations: 47.08 kB / 4.905 GB, free: 53.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/13.42, allocations: 247.1 kB / 4.905 GB, free: 53.95 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002375/13.42, allocations: 139.8 kB / 4.905 GB, free: 53.94 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/13.42, allocations: 77.95 kB / 4.906 GB, free: 53.94 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001452/13.43, allocations: 0.9699 MB / 4.906 GB, free: 53.83 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.7e-07/13.43, allocations: 0 / 4.906 GB, free: 53.83 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00517/13.43, allocations: 1.378 MB / 4.908 GB, free: 53.7 MB / 0.7761 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) * Number of clocked states: 0 () * 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.01459/13.45, allocations: 10.05 MB / 4.918 GB, free: 48.61 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.006037/13.45, allocations: 2.321 MB / 4.92 GB, free: 47.77 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-05/13.45, allocations: 3.875 kB / 4.92 GB, free: 47.77 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.002507/13.45, allocations: 1.193 MB / 4.921 GB, free: 47.35 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006956/13.46, allocations: 1.204 MB / 4.922 GB, free: 47.11 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02836/13.49, allocations: 21.09 MB / 4.943 GB, free: 33.18 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/13.49, allocations: 2.021 MB / 4.945 GB, free: 31.9 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.002996/13.49, allocations: 0.7261 MB / 4.946 GB, free: 31.39 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/13.5, allocations: 1.102 MB / 4.947 GB, free: 30.38 MB / 0.7761 GB Notification: Performance of SimCode: time 1.052e-06/13.5, allocations: 0 / 4.947 GB, free: 30.38 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6891/14.18, allocations: 125.4 MB / 5.069 GB, free: 74.89 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/14.19, allocations: 234.7 kB / 5.069 GB, free: 74.65 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.498/20.68, allocations: 0 / 5.069 GB, free: 74.65 MB / 0.7917 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)