Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.conf.json 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/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_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_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.51/2.51, allocations: 436.5 MB / 0.7104 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003179, allocations: 8 kB / 0.8708 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6255/0.6258, allocations: 153.7 MB / 1.021 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001352/0.6272, allocations: 1.04 MB / 1.022 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006488/0.6279, allocations: 335.2 kB / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.532e-05/0.6279, allocations: 0 / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.422e-05/0.628, allocations: 0 / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 1.975e-05/0.628, allocations: 7.938 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.6284, allocations: 75.78 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.709e-05/0.6285, allocations: 19.97 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.703e-05/0.6285, allocations: 4 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.742e-05/0.6286, allocations: 15.97 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.944e-05/0.6286, allocations: 19.92 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.6286, allocations: 0 / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.6288, allocations: 67.81 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.151e-05/0.6288, allocations: 23.91 kB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.642e-05/0.6289, allocations: 53.64 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.629, allocations: 103.8 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.629, allocations: 0 / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.825e-06/0.629, allocations: 0 / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.629, allocations: 3.938 kB / 1.023 GB, free: 15.35 MB / 0.7794 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.0004501/0.6295, allocations: 0.5024 MB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.6295, allocations: 8.031 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.481e-05/0.6296, allocations: 15.81 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.6298, allocations: 174.9 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.6298, allocations: 4 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.6298, allocations: 8 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.6301, allocations: 241.6 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.6301, allocations: 4 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.6301, allocations: 0 / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.6301, allocations: 0 / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.6303, allocations: 144 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001758/0.6305, allocations: 193.5 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.6309, allocations: 0.534 MB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-06/0.6309, allocations: 4 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004106/0.6313, allocations: 395.7 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=39): time 1.193e-06/0.6313, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39): time 0.0008497/0.6322, allocations: 0.7918 MB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/0.6323, allocations: 105.1 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.479e-05/0.6323, allocations: 97.86 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.6324, allocations: 25.7 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.059e-05/0.6324, allocations: 84.83 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.395e-05/0.6325, allocations: 78.91 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.6325, allocations: 0 / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.6326, allocations: 326.8 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.163e-05/0.6327, allocations: 83.97 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.254e-05/0.6328, allocations: 83.97 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.6329, allocations: 174.9 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6329, allocations: 0 / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003443/0.6333, allocations: 332.1 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.171e-05/0.6334, allocations: 84 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.6334, allocations: 7.938 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.6334, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.249e-05/0.6335, allocations: 7.938 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.6335, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.6336, allocations: 23.75 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.6337, allocations: 11.94 kB / 1.027 GB, free: 10.57 MB / 0.7794 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.0002466/0.6339, allocations: 267.4 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.634, allocations: 19.81 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01e-05/0.634, allocations: 9.219 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.634, allocations: 4.141 kB / 1.027 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.634, allocations: 11.98 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.634, allocations: 3.984 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.6342, allocations: 241.4 kB / 1.027 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.6342, allocations: 4 kB / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.6342, allocations: 0 / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6342, allocations: 0 / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.6342, allocations: 12 kB / 1.027 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.6342, allocations: 0 / 1.027 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6343, allocations: 3.953 kB / 1.027 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.6355, allocations: 1.283 MB / 1.029 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.103e-05/0.6356, allocations: 92.89 kB / 1.029 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.6357, allocations: 75.94 kB / 1.029 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.919e-05/0.6358, allocations: 8 kB / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/0.6358, allocations: 11.95 kB / 1.029 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.6358, allocations: 15.98 kB / 1.029 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.687e-05/0.6359, allocations: 75.28 kB / 1.029 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6359, allocations: 4.031 kB / 1.029 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003247/0.6362, allocations: 71.98 kB / 1.029 GB, free: 8.277 MB / 0.7794 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.0004513/0.6367, allocations: 248.1 kB / 1.029 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001543/0.6382, allocations: 1.96 MB / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6383, allocations: 0 / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.6397, allocations: 2.022 MB / 1.033 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.6399, allocations: 12.69 kB / 1.033 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000549/0.6404, allocations: 354.5 kB / 1.034 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.6407, allocations: 0.7169 MB / 1.034 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.587e-05/0.6407, allocations: 0 / 1.034 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.184e-05/0.6407, allocations: 7.438 kB / 1.034 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6407, allocations: 0 / 1.034 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of Templates: time 0.00515/0.6459, allocations: 2.37 MB / 1.037 GB, free: 0.5273 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches