Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.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: translateModel(Buildings.Airflow.Multizone.Examples.NaturalVentilation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volA.T|volOut.T|oriOutBot.v|oriOutTop.v",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation") translateModel(Buildings.Airflow.Multizone.Examples.NaturalVentilation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volA.T|volOut.T|oriOutBot.v|oriOutTop.v",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation") [: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.78/1.78, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009415/0.0009415, allocations: 178.5 kB / 490.8 MB, free: 1.906 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.127/1.127, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008141/0.0008144, allocations: 100.9 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.7e-06/5.731e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1928, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.951/3.144, allocations: 1.92 GB / 3.131 GB, free: 417.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/3.145, allocations: 87.95 kB / 3.132 GB, free: 417.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.523/4.667, allocations: 0.6673 GB / 3.799 GB, free: 170.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.205e-05/4.667, allocations: 31.52 kB / 3.799 GB, free: 170.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003351/4.671, allocations: 1.397 MB / 3.8 GB, free: 169 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/4.671, allocations: 8.031 kB / 3.8 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002617/4.673, allocations: 398.1 kB / 3.801 GB, free: 168.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/4.675, allocations: 0.8686 MB / 3.802 GB, free: 167.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/4.675, allocations: 24 kB / 3.802 GB, free: 167.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/4.675, allocations: 55.91 kB / 3.802 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001244/4.676, allocations: 0.7771 MB / 3.802 GB, free: 166.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/4.678, allocations: 0.9145 MB / 3.803 GB, free: 165.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/4.678, allocations: 0 / 3.803 GB, free: 165.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-05/4.678, allocations: 4 kB / 3.803 GB, free: 165.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.599e-05/4.678, allocations: 41.98 kB / 3.803 GB, free: 165.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004387/4.682, allocations: 4.707 MB / 3.808 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000838/4.683, allocations: 0.6307 MB / 3.809 GB, free: 160.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/4.684, allocations: 450.7 kB / 3.809 GB, free: 159.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004285/4.684, allocations: 0.6762 MB / 3.81 GB, free: 159 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/4.684, allocations: 47.22 kB / 3.81 GB, free: 158.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=70): time 2.234e-06/4.684, allocations: 0 / 3.81 GB, free: 158.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=70): time 0.001748/4.686, allocations: 0.7766 MB / 3.81 GB, free: 158.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.842e-05/4.686, allocations: 60.06 kB / 3.81 GB, free: 158.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005004/4.687, allocations: 495.6 kB / 3.811 GB, free: 157.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/4.687, allocations: 29.7 kB / 3.811 GB, free: 157.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/4.687, allocations: 327.9 kB / 3.811 GB, free: 157.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/4.687, allocations: 236.4 kB / 3.811 GB, free: 157 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/4.687, allocations: 0 / 3.811 GB, free: 157 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.381e-05/4.687, allocations: 394.7 kB / 3.812 GB, free: 156.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/4.687, allocations: 277.2 kB / 3.812 GB, free: 156.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003719/4.688, allocations: 357.5 kB / 3.812 GB, free: 155.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005412/4.688, allocations: 347 kB / 3.813 GB, free: 155.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/4.688, allocations: 0 / 3.813 GB, free: 155.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001111/4.689, allocations: 0.7879 MB / 3.814 GB, free: 154.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/4.689, allocations: 8 kB / 3.814 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/4.689, allocations: 0 / 3.814 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/4.689, allocations: 4 kB / 3.814 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/4.69, allocations: 155.9 kB / 3.814 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/4.69, allocations: 8 kB / 3.814 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009794/4.691, allocations: 91.47 kB / 3.814 GB, free: 154.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/4.691, allocations: 35.89 kB / 3.814 GB, free: 154.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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.0001129/4.691, allocations: 112.9 kB / 3.814 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/4.692, allocations: 79.06 kB / 3.814 GB, free: 154.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001245/4.693, allocations: 0.8124 MB / 3.815 GB, free: 153.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/4.693, allocations: 4 kB / 3.815 GB, free: 153.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/4.693, allocations: 3.906 kB / 3.815 GB, free: 153.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009129/4.694, allocations: 0.836 MB / 3.816 GB, free: 152.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/4.696, allocations: 1.781 MB / 3.817 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/4.696, allocations: 0 / 3.817 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/4.697, allocations: 171.8 kB / 3.818 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/4.697, allocations: 4 kB / 3.818 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-05/4.697, allocations: 11.98 kB / 3.818 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/4.697, allocations: 4 kB / 3.818 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/4.697, allocations: 4 kB / 3.818 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001383/4.698, allocations: 1.194 MB / 3.819 GB, free: 149.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/4.699, allocations: 244 kB / 3.819 GB, free: 149.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/4.699, allocations: 0 / 3.819 GB, free: 149.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008427/4.7, allocations: 67.78 kB / 3.819 GB, free: 149.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.036e-05/4.7, allocations: 40.59 kB / 3.819 GB, free: 149 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.256e-05/4.7, allocations: 23.98 kB / 3.819 GB, free: 149 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003445/4.7, allocations: 383.2 kB / 3.819 GB, free: 148.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00101/4.701, allocations: 435.1 kB / 3.82 GB, free: 148.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (volA.dynBal.medium.Xi[1],volA.dynBal.U,volA.dynBal.m,oriOutBot.mExc,oriOutTop.mExc,volOut.dynBal.medium.Xi[1],volOut.dynBal.U,volOut.dynBal.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001727/4.703, allocations: 1.793 MB / 3.822 GB, free: 146.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0008502/4.704, allocations: 0.6669 MB / 3.822 GB, free: 145.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/4.704, allocations: 4.312 kB / 3.822 GB, free: 145.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003895/4.704, allocations: 374.3 kB / 3.823 GB, free: 145.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/4.706, allocations: 445.3 kB / 3.823 GB, free: 145.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/4.709, allocations: 1.776 MB / 3.825 GB, free: 143.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007458/4.71, allocations: 1.197 MB / 3.826 GB, free: 142 MB / 1.151 GB Notification: Performance of SimCode: time 6.61e-07/4.71, allocations: 0 / 3.826 GB, free: 142 MB / 1.151 GB Notification: Performance of Templates: time 0.03203/4.742, allocations: 25.79 MB / 3.851 GB, free: 116.4 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.makefile (rm -f Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.sim & ./Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_Examples_NaturalVentilation.csv","../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.NaturalVentilation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volA.T,volOut.T,oriOutBot.v,oriOutTop.v Variables in the result:colOut.densitySelection,colOut.h,colRooTop.densitySelection,colRooTop.h,oriOutBot.A,oriOutBot.C,oriOutBot.CD,oriOutBot._dp_start,oriOutBot._m_flow_start,oriOutBot.a,oriOutBot.allowFlowReversal,oriOutBot.b,oriOutBot.c,oriOutBot.d,oriOutBot.dp_turbulent,oriOutBot.dynVis_default,oriOutBot.forceErrorControlOnFlow,oriOutBot.m,oriOutBot.m_flow_nominal,oriOutBot.m_flow_small,oriOutBot.rho_default,oriOutBot.sta_default.T,oriOutBot.sta_default.X[1],oriOutBot.sta_default.X[2],oriOutBot.sta_default.p,oriOutBot.useDefaultProperties,oriOutBot.v,oriOutTop.A,oriOutTop.C,oriOutTop.CD,oriOutTop._dp_start,oriOutTop._m_flow_start,oriOutTop.a,oriOutTop.allowFlowReversal,oriOutTop.b,oriOutTop.c,oriOutTop.d,oriOutTop.dp_turbulent,oriOutTop.dynVis_default,oriOutTop.forceErrorControlOnFlow,oriOutTop.m,oriOutTop.m_flow_nominal,oriOutTop.m_flow_small,oriOutTop.rho_default,oriOutTop.sta_default.T,oriOutTop.sta_default.X[1],oriOutTop.sta_default.X[2],oriOutTop.sta_default.p,oriOutTop.useDefaultProperties,oriOutTop.v,preHeaFlo.T_ref,preHeaFlo.alpha,q_flow.height,q_flow.offset,q_flow.startTime,time,volA.T,volA.T_start,volA.V,volA.X_start[1],volA.X_start[2],volA.allowFlowReversal,volA.dynBal.CSen,volA.dynBal.T_start,volA.dynBal.X_start[1],volA.dynBal.X_start[2],volA.dynBal.computeCSen,volA.dynBal.cp_default,volA.dynBal.energyDynamics,volA.dynBal.fluidVolume,volA.dynBal.hStart,volA.dynBal.initialize_p,volA.dynBal.mSenFac,volA.dynBal.massDynamics,volA.dynBal.medium.preferredMediumStates,volA.dynBal.medium.standardOrderComponents,volA.dynBal.nPorts,volA.dynBal.p_start,volA.dynBal.rho_default,volA.dynBal.rho_start,volA.dynBal.s[1],volA.dynBal.state_default.T,volA.dynBal.state_default.X[1],volA.dynBal.state_default.X[2],volA.dynBal.state_default.p,volA.dynBal.substanceDynamics,volA.dynBal.traceDynamics,volA.dynBal.use_C_flow,volA.dynBal.use_mWat_flow,volA.dynBal.wrongEnergyMassBalanceConfiguration,volA.energyDynamics,volA.mSenFac,volA.m_flow_nominal,volA.m_flow_small,volA.massDynamics,volA.nPorts,volA.p_start,volA.rho_default,volA.rho_start,volA.state_default.T,volA.state_default.X[1],volA.state_default.X[2],volA.state_default.p,volA.state_start.T,volA.state_start.X[1],volA.state_start.X[2],volA.state_start.p,volA.substanceDynamics,volA.traceDynamics,volA.useSteadyStateTwoPort,volA.use_C_flow,volA.wrongEnergyMassBalanceConfiguration,volOut.T,volOut.T_start,volOut.V,volOut.X_start[1],volOut.X_start[2],volOut.allowFlowReversal,volOut.dynBal.CSen,volOut.dynBal.T_start,volOut.dynBal.X_start[1],volOut.dynBal.X_start[2],volOut.dynBal.computeCSen,volOut.dynBal.cp_default,volOut.dynBal.energyDynamics,volOut.dynBal.fluidVolume,volOut.dynBal.hStart,volOut.dynBal.initialize_p,volOut.dynBal.mSenFac,volOut.dynBal.massDynamics,volOut.dynBal.medium.preferredMediumStates,volOut.dynBal.medium.standardOrderComponents,volOut.dynBal.nPorts,volOut.dynBal.p_start,volOut.dynBal.rho_default,volOut.dynBal.rho_start,volOut.dynBal.s[1],volOut.dynBal.state_default.T,volOut.dynBal.state_default.X[1],volOut.dynBal.state_default.X[2],volOut.dynBal.state_default.p,volOut.dynBal.substanceDynamics,volOut.dynBal.traceDynamics,volOut.dynBal.use_C_flow,volOut.dynBal.use_mWat_flow,volOut.dynBal.wrongEnergyMassBalanceConfiguration,volOut.energyDynamics,volOut.mSenFac,volOut.m_flow_nominal,volOut.m_flow_small,volOut.massDynamics,volOut.nPorts,volOut.p_start,volOut.rho_default,volOut.rho_start,volOut.state_default.T,volOut.state_default.X[1],volOut.state_default.X[2],volOut.state_default.p,volOut.state_start.T,volOut.state_start.X[1],volOut.state_start.X[2],volOut.state_start.p,volOut.substanceDynamics,volOut.traceDynamics,volOut.useSteadyStateTwoPort,volOut.use_C_flow,volOut.wrongEnergyMassBalanceConfiguration