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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.325/2.325, allocations: 390.5 MB / 398 MB, free: 10.95 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.00109/0.00109, allocations: 187.2 kB / 491.2 MB, free: 1.582 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.559/1.559, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.000947/0.000947, allocations: 99.52 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.963e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2625, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.096/5.358, allocations: 1.983 GB / 3.195 GB, free: 344.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/5.359, allocations: 87.95 kB / 3.195 GB, free: 344.3 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: Performance of FrontEnd - DAE generated: time 9.23/14.59, allocations: 2.114 GB / 5.309 GB, free: 126.4 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.154e-06/14.59, allocations: 0 / 5.309 GB, free: 126.4 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.0003563/14.59, allocations: 81.17 kB / 5.309 GB, free: 126.4 MB / 1.214 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.01892/14.61, allocations: 3.598 MB / 5.312 GB, free: 125.8 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/14.61, allocations: 9.438 kB / 5.312 GB, free: 125.8 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008201/14.62, allocations: 0.8364 MB / 5.313 GB, free: 125.7 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009687/14.63, allocations: 2.184 MB / 5.315 GB, free: 125.3 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003913/14.63, allocations: 85.97 kB / 5.315 GB, free: 125.3 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001917/14.63, allocations: 174.3 kB / 5.316 GB, free: 125.3 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01054/14.64, allocations: 2.694 MB / 5.318 GB, free: 125.3 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/14.65, allocations: 3.034 MB / 5.321 GB, free: 124.9 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002492/14.65, allocations: 6.359 kB / 5.321 GB, free: 124.9 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001209/14.66, allocations: 7.516 kB / 5.321 GB, free: 124.9 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000283/14.66, allocations: 125.6 kB / 5.321 GB, free: 124.9 MB / 1.214 GB Warning: The model contains alias variables with conflicting start and/or 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.03207/14.69, allocations: 14.15 MB / 5.335 GB, free: 116.6 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00747/14.7, allocations: 2.806 MB / 5.338 GB, free: 115.6 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003477/14.7, allocations: 1.248 MB / 5.339 GB, free: 115.6 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001644/14.7, allocations: 1.387 MB / 5.341 GB, free: 114.1 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003423/14.7, allocations: 1.167 MB / 5.342 GB, free: 114 MB / 1.214 GB Notification: Performance of pre-optimization done (n=213): time 6.994e-06/14.7, allocations: 0 / 5.342 GB, free: 114 MB / 1.214 GB Notification: Performance of matching and sorting (n=213): time 0.007571/14.71, allocations: 2.212 MB / 5.344 GB, free: 113.8 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.483e-05/14.71, allocations: 76 kB / 5.344 GB, free: 113.8 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/14.72, allocations: 0.9792 MB / 5.345 GB, free: 113.6 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.00041/14.72, allocations: 28.23 kB / 5.345 GB, free: 113.6 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.001656/14.72, allocations: 1.11 MB / 5.346 GB, free: 113.2 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001339/14.72, allocations: 0.711 MB / 5.347 GB, free: 112.8 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/14.72, allocations: 3 kB / 5.347 GB, free: 112.8 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.000289/14.72, allocations: 384.1 kB / 5.347 GB, free: 112.5 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/14.72, allocations: 0.8712 MB / 5.348 GB, free: 112.5 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/14.72, allocations: 1.256 MB / 5.349 GB, free: 112.1 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/14.73, allocations: 1.113 MB / 5.35 GB, free: 112.1 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/14.73, allocations: 0 / 5.35 GB, free: 112.1 MB / 1.214 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.005507/14.73, allocations: 2.438 MB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 9.469e-05/14.73, allocations: 31.73 kB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/14.73, allocations: 13.2 kB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.94e-05/14.73, allocations: 17.66 kB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002398/14.73, allocations: 467.5 kB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-05/14.73, allocations: 20.2 kB / 5.353 GB, free: 111.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/14.74, allocations: 350.6 kB / 5.353 GB, free: 111.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004722/14.74, allocations: 88.12 kB / 5.354 GB, free: 111.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.0009414/14.74, allocations: 145.1 kB / 5.354 GB, free: 111.7 MB / 1.214 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005955/14.75, allocations: 2.177 MB / 5.356 GB, free: 111.6 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001227/14.75, allocations: 196 kB / 5.356 GB, free: 111.5 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005591/14.75, allocations: 2.398 MB / 5.358 GB, free: 111.3 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/14.75, allocations: 21.81 kB / 5.358 GB, free: 111.3 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/14.75, allocations: 0 / 5.358 GB, free: 111.3 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003769/14.76, allocations: 2.273 MB / 5.361 GB, free: 110.9 MB / 1.214 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.01306/14.77, allocations: 5.528 MB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/14.77, allocations: 3.031 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00236/14.77, allocations: 477.5 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.482e-05/14.77, allocations: 12.62 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002386/14.77, allocations: 38.14 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.427e-05/14.77, allocations: 16.27 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/14.77, allocations: 8.781 kB / 5.366 GB, free: 110.1 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006372/14.78, allocations: 3.737 MB / 5.37 GB, free: 109.5 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002287/14.78, allocations: 0.5338 MB / 5.371 GB, free: 109.3 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008793/14.78, allocations: 15.69 kB / 5.371 GB, free: 109.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003315/14.79, allocations: 215.6 kB / 5.371 GB, free: 109.3 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003011/14.79, allocations: 141.6 kB / 5.371 GB, free: 109.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/14.79, allocations: 78.25 kB / 5.371 GB, free: 109.3 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.001753/14.79, allocations: 0.7391 MB / 5.372 GB, free: 109.2 MB / 1.214 GB Notification: Performance of sort global known variables: time 2.9e-07/14.79, allocations: 0.75 kB / 5.372 GB, free: 109.2 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.00531/14.79, allocations: 1.186 MB / 5.373 GB, free: 109.1 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.01563/14.81, allocations: 10.15 MB / 5.383 GB, free: 105.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.00543/14.81, allocations: 2.235 MB / 5.385 GB, free: 105 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/14.81, allocations: 0 / 5.385 GB, free: 105 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.002516/14.82, allocations: 1.164 MB / 5.386 GB, free: 105 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007266/14.82, allocations: 1.013 MB / 5.387 GB, free: 105 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/14.84, allocations: 5.511 MB / 5.393 GB, free: 103.8 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/14.85, allocations: 2.026 MB / 5.395 GB, free: 103 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.004785/14.85, allocations: 0.7187 MB / 5.395 GB, free: 103 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003042/14.85, allocations: 1.084 MB / 5.396 GB, free: 103 MB / 1.214 GB Notification: Performance of SimCode: time 1.603e-06/14.85, allocations: 0 / 5.396 GB, free: 103 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1879/15.04, allocations: 89.47 MB / 5.484 GB, free: 100.2 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/15.04, allocations: 178.4 kB / 5.484 GB, free: 99.98 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.724/20.77, allocations: 3.938 kB / 5.484 GB, free: 99.98 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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Airflow.Multizone.Examples.CO2TransportStep_res.mat does not exist to compare? outputFormat=mat