Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.011/2.011, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001005/0.001005, allocations: 184.8 kB / 487.4 MB, free: 5.047 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.31/1.31, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 97.89 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.735e-05, allocations: 6.25 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2336, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8115/1.045, allocations: 149.2 MB / 1.352 GB, free: 18.43 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/1.045, allocations: 79.59 kB / 1.352 GB, free: 18.43 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00659/1.052, allocations: 2.423 MB / 1.354 GB, free: 34 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.062e-06/1.052, allocations: 0 / 1.354 GB, free: 34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.713e-06/1.052, allocations: 0 / 1.354 GB, free: 34 MB / 0.8386 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.0003519/1.052, allocations: 0.4958 MB / 1.355 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/1.053, allocations: 12 kB / 1.355 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.325e-05/1.053, allocations: 20.5 kB / 1.355 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.57e-05/1.053, allocations: 175.4 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/1.053, allocations: 0.7031 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.053, allocations: 3.844 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001652/1.053, allocations: 147.9 kB / 1.355 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/1.053, allocations: 235.7 kB / 1.355 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/1.053, allocations: 0 / 1.355 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/1.053, allocations: 3.875 kB / 1.355 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/1.053, allocations: 0 / 1.355 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/1.053, allocations: 187 kB / 1.355 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/1.054, allocations: 0.5337 MB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/1.054, allocations: 0.5197 MB / 1.356 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/1.054, allocations: 3.938 kB / 1.356 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/1.054, allocations: 381.3 kB / 1.357 GB, free: 33 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=39): time 1.103e-06/1.054, allocations: 0 / 1.357 GB, free: 33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39): time 0.0004334/1.055, allocations: 407.5 kB / 1.357 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/1.055, allocations: 106.4 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.863e-05/1.055, allocations: 94 kB / 1.357 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/1.055, allocations: 30.2 kB / 1.357 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/1.055, allocations: 88.83 kB / 1.357 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.985e-05/1.055, allocations: 76.09 kB / 1.357 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/1.055, allocations: 0 / 1.357 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001087/1.055, allocations: 323.2 kB / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.245e-05/1.055, allocations: 80.83 kB / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.602e-05/1.055, allocations: 85.44 kB / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/1.055, allocations: 101.4 kB / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/1.055, allocations: 0 / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002413/1.055, allocations: 269 kB / 1.358 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.353e-05/1.056, allocations: 84.94 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.056, allocations: 0 / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/1.056, allocations: 4.531 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.458e-05/1.056, allocations: 192 / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/1.056, allocations: 0.75 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.595e-05/1.056, allocations: 19.41 kB / 1.358 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/1.056, allocations: 5.109 kB / 1.358 GB, free: 32.19 MB / 0.8386 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 () * 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.0001866/1.056, allocations: 244.2 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/1.056, allocations: 31.22 kB / 1.359 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.34e-05/1.056, allocations: 10.91 kB / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/1.056, allocations: 0 / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/1.056, allocations: 0 / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/1.056, allocations: 0.6562 kB / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/1.056, allocations: 236.3 kB / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.056, allocations: 1.75 kB / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/1.056, allocations: 0 / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/1.056, allocations: 0 / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/1.056, allocations: 23.39 kB / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/1.056, allocations: 0.5625 kB / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/1.056, allocations: 0 / 1.359 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/1.057, allocations: 0.5665 MB / 1.359 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/1.057, allocations: 93.42 kB / 1.36 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/1.057, allocations: 83.89 kB / 1.36 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.82e-05/1.057, allocations: 11.64 kB / 1.36 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/1.057, allocations: 17.39 kB / 1.36 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/1.057, allocations: 22.78 kB / 1.36 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.213e-05/1.057, allocations: 75.89 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.057, allocations: 4.031 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002832/1.057, allocations: 81.33 kB / 1.36 GB, free: 31.56 MB / 0.8386 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) * 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.0003904/1.058, allocations: 246.9 kB / 1.36 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0011/1.059, allocations: 1.939 MB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.059, allocations: 0 / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0009097/1.06, allocations: 2.009 MB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/1.06, allocations: 11.75 kB / 1.364 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/1.06, allocations: 259.3 kB / 1.364 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/1.061, allocations: 0.7222 MB / 1.365 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.151e-05/1.061, allocations: 0 / 1.365 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.446e-06/1.061, allocations: 7.438 kB / 1.365 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.061, allocations: 4 kB / 1.365 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of Templates: time 0.004746/1.065, allocations: 2.731 MB / 1.368 GB, free: 30.21 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches