Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007889/0.007889, allocations: 95.77 kB / 15.73 MB, free: 6.055 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.001673/0.001673, allocations: 204.6 kB / 16.68 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.702/2.702, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.91 kB / 1.018 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3398, allocations: 151.6 MB / 1.167 GB, free: 6.848 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002369/0.3422, allocations: 1.334 MB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007552/0.343, allocations: 359.2 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.107e-05/0.343, allocations: 0 / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.733e-05/0.3431, allocations: 3.984 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.529e-05/0.3432, allocations: 7.922 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.3436, allocations: 83.72 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.3437, allocations: 55.92 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.882e-05/0.3438, allocations: 3.984 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.674e-05/0.3438, allocations: 23.92 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.896e-05/0.3439, allocations: 19.97 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.3439, allocations: 4 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.3441, allocations: 87.86 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.3441, allocations: 27.86 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.971e-05/0.3442, allocations: 51.73 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.3444, allocations: 159.3 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.3445, allocations: 0 / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3445, allocations: 4 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3445, allocations: 0 / 1.169 GB, free: 4.621 MB / 0.92 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.0005226/0.345, allocations: 0.516 MB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3451, allocations: 16.02 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.3452, allocations: 20.84 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3453, allocations: 168.3 kB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.3453, allocations: 8.312 kB / 1.169 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.3453, allocations: 4.375 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.3456, allocations: 242.2 kB / 1.17 GB, free: 3.555 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3456, allocations: 4.125 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3457, allocations: 3.938 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3457, allocations: 0 / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.3458, allocations: 144 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.346, allocations: 193.5 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.3464, allocations: 0.5337 MB / 1.171 GB, free: 2.625 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.3468, allocations: 0.5204 MB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 5.04e-06/0.3468, allocations: 0 / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003969/0.3472, allocations: 403.6 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of pre-optimization done (n=39): time 1.112e-06/0.3472, allocations: 0 / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of matching and sorting (n=39): time 0.0007695/0.348, allocations: 0.6865 MB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.348, allocations: 109.1 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.168e-05/0.3481, allocations: 105.8 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.3481, allocations: 25.7 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.991e-05/0.3482, allocations: 84.78 kB / 1.172 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 6.456e-05/0.3482, allocations: 79.38 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.3483, allocations: 33.7 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3484, allocations: 326.8 kB / 1.173 GB, free: 188 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.779e-05/0.3485, allocations: 84 kB / 1.173 GB, free: 104 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.675e-05/0.3486, allocations: 87.86 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.3489, allocations: 348.4 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3489, allocations: 0 / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003174/0.3492, allocations: 340.1 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.182e-05/0.3493, allocations: 81.58 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3493, allocations: 0 / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3493, allocations: 0 / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.511e-05/0.3494, allocations: 4 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.3494, allocations: 0 / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.594e-05/0.3495, allocations: 31.88 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.3495, allocations: 8 kB / 1.174 GB, free: 15.19 MB / 0.9356 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 (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,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002408/0.3498, allocations: 265.7 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.3498, allocations: 27.78 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.338e-05/0.3498, allocations: 5.219 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3498, allocations: 4 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3498, allocations: 3.938 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3499, allocations: 0 / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.35, allocations: 245.4 kB / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3501, allocations: 7.938 kB / 1.174 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3501, allocations: 4 kB / 1.174 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3501, allocations: 7.875 kB / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.3501, allocations: 15.98 kB / 1.174 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3501, allocations: 0 / 1.174 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3501, allocations: 0 / 1.174 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.3512, allocations: 1.279 MB / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3513, allocations: 92.95 kB / 1.176 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-05/0.3514, allocations: 71.89 kB / 1.176 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.685e-05/0.3515, allocations: 12.03 kB / 1.176 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.3515, allocations: 11.98 kB / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.3515, allocations: 15.98 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.36e-05/0.3516, allocations: 79.28 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3516, allocations: 3.938 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002887/0.3519, allocations: 67.94 kB / 1.176 GB, free: 12.88 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004118/0.3523, allocations: 252.7 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001707/0.354, allocations: 1.964 MB / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.354, allocations: 0 / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.3558, allocations: 2.007 MB / 1.18 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.3561, allocations: 23.98 kB / 1.18 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005501/0.3566, allocations: 337.9 kB / 1.18 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.357, allocations: 0.7166 MB / 1.181 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.923e-05/0.357, allocations: 7.922 kB / 1.181 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.357, allocations: 7.438 kB / 1.181 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.357, allocations: 3.938 kB / 1.181 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of Templates: time 0.005888/0.3629, allocations: 2.626 MB / 1.184 GB, free: 4.875 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & ./Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches