Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.348/1.348, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 174.4 kB / 326.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.785/1.785, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008561/0.0008558, allocations: 89.19 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003143/0.0003144, allocations: 9.094 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2041, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.366, allocations: 132.3 MB / 1.029 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.3663, allocations: 79.94 kB / 1.029 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006516/0.3728, allocations: 2.428 MB / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.734e-06/0.3729, allocations: 0 / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.3729, allocations: 0 / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004504/0.3733, allocations: 0.5121 MB / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3734, allocations: 8.031 kB / 1.032 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.535e-05/0.3735, allocations: 19.81 kB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.3736, allocations: 174.9 kB / 1.032 GB, free: 8.074 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.3736, allocations: 11.92 kB / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.3737, allocations: 0 / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.374, allocations: 241.6 kB / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.374, allocations: 0 / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.374, allocations: 0 / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.374, allocations: 0 / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.3741, allocations: 151.9 kB / 1.033 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001868/0.3743, allocations: 226 kB / 1.033 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003901/0.3747, allocations: 0.534 MB / 1.034 GB, free: 6.859 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.3748, allocations: 0 / 1.034 GB, free: 6.859 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003841/0.3751, allocations: 391.6 kB / 1.034 GB, free: 6.449 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=39): time 1.583e-06/0.3752, allocations: 0 / 1.034 GB, free: 6.449 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39): time 0.0009028/0.3761, allocations: 0.7848 MB / 1.035 GB, free: 5.637 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.3762, allocations: 113.1 kB / 1.035 GB, free: 5.508 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.358e-05/0.3763, allocations: 92.94 kB / 1.035 GB, free: 5.41 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.3763, allocations: 29.7 kB / 1.035 GB, free: 5.375 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.259e-05/0.3763, allocations: 84.73 kB / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.3764, allocations: 74.97 kB / 1.035 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.3764, allocations: 0 / 1.035 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3766, allocations: 326.8 kB / 1.035 GB, free: 4.887 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.275e-05/0.3767, allocations: 79.97 kB / 1.035 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.6e-05/0.3767, allocations: 79.98 kB / 1.036 GB, free: 4.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.3769, allocations: 190.8 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3769, allocations: 0 / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003447/0.3773, allocations: 336 kB / 1.036 GB, free: 4.199 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.116e-05/0.3774, allocations: 81.64 kB / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3774, allocations: 0 / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3774, allocations: 0 / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.853e-05/0.3775, allocations: 0 / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.3775, allocations: 0 / 1.036 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.783e-05/0.3776, allocations: 27.73 kB / 1.036 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.3776, allocations: 7.938 kB / 1.036 GB, free: 4.078 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,occ.occ,occ.mu,$PRE.occ.tNext,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0002653/0.3779, allocations: 273.7 kB / 1.036 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.3779, allocations: 23.81 kB / 1.036 GB, free: 3.77 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.535e-05/0.3779, allocations: 5.219 kB / 1.036 GB, free: 3.758 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3779, allocations: 0 / 1.036 GB, free: 3.758 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.378, allocations: 4 kB / 1.036 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.378, allocations: 0 / 1.036 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.3782, allocations: 269.3 kB / 1.037 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3782, allocations: 3.953 kB / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.3782, allocations: 4 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3782, allocations: 0 / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.3782, allocations: 19.98 kB / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3782, allocations: 0 / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3782, allocations: 4 kB / 1.037 GB, free: 3.41 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.3794, allocations: 1.271 MB / 1.038 GB, free: 2.113 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.798e-05/0.3795, allocations: 96.89 kB / 1.038 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.3796, allocations: 79.94 kB / 1.038 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.453e-05/0.3797, allocations: 9.812 kB / 1.038 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.3798, allocations: 19.95 kB / 1.038 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.3798, allocations: 19.98 kB / 1.038 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.371e-05/0.3799, allocations: 83.45 kB / 1.038 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3799, allocations: 0 / 1.038 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003598/0.3803, allocations: 83.86 kB / 1.038 GB, free: 1.711 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0005057/0.3808, allocations: 242.5 kB / 1.039 GB, free: 1.48 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001551/0.3823, allocations: 1.971 MB / 1.041 GB, free: 15.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3823, allocations: 0 / 1.041 GB, free: 15.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.3838, allocations: 2.014 MB / 1.042 GB, free: 13.47 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001621/0.384, allocations: 12 kB / 1.043 GB, free: 13.46 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.3845, allocations: 350.7 kB / 1.043 GB, free: 13.08 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3849, allocations: 0.7246 MB / 1.044 GB, free: 12.33 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.313e-05/0.3849, allocations: 7.844 kB / 1.044 GB, free: 12.32 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.166e-05/0.3849, allocations: 11.44 kB / 1.044 GB, free: 12.31 MB / 0.698 GB Notification: Performance of SimCode: time 3.01e-07/0.3849, allocations: 0 / 1.044 GB, free: 12.31 MB / 0.698 GB Notification: Performance of Templates: time 0.005078/0.39, allocations: 2.74 MB / 1.046 GB, free: 9.582 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches