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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008198/0.0008203, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005117/0.005117, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.387/1.387, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.408/2.408, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003504, allocations: 8 kB / 0.8159 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6988/0.6992, allocations: 142.4 MB / 0.955 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001243/0.7005, allocations: 1.058 MB / 0.9561 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006941/0.7012, allocations: 364.8 kB / 0.9564 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.7012, allocations: 0 / 0.9564 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.053e-05/0.7013, allocations: 5.031 kB / 0.9564 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.7014, allocations: 4.969 kB / 0.9564 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.7017, allocations: 76.81 kB / 0.9565 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.779e-05/0.7018, allocations: 43.56 kB / 0.9565 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.285e-05/0.7019, allocations: 1.188 kB / 0.9565 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.384e-05/0.7019, allocations: 7.562 kB / 0.9565 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.29e-05/0.702, allocations: 26.39 kB / 0.9566 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.702, allocations: 2.156 kB / 0.9566 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.7022, allocations: 82.23 kB / 0.9567 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.7022, allocations: 28.05 kB / 0.9567 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.415e-05/0.7023, allocations: 74.78 kB / 0.9567 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.7025, allocations: 151.9 kB / 0.9569 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7025, allocations: 0 / 0.9569 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7025, allocations: 1.062 kB / 0.9569 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.319e-06/0.7025, allocations: 0 / 0.9569 GB, free: 6.273 MB / 0.7169 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.0004019/0.7029, allocations: 0.5029 MB / 0.9574 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.703, allocations: 13.66 kB / 0.9574 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.7031, allocations: 15.75 kB / 0.9574 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.541e-05/0.7032, allocations: 183.7 kB / 0.9576 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.7032, allocations: 2.719 kB / 0.9576 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.7032, allocations: 3.844 kB / 0.9576 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.7035, allocations: 241.7 kB / 0.9578 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.7035, allocations: 4.125 kB / 0.9578 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.7035, allocations: 5.594 kB / 0.9578 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.7035, allocations: 0 / 0.9578 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.7037, allocations: 149.6 kB / 0.958 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.7038, allocations: 188.5 kB / 0.9582 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.7041, allocations: 0.5344 MB / 0.9587 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.7044, allocations: 0.5233 MB / 0.9592 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-06/0.7044, allocations: 0 / 0.9592 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003602/0.7048, allocations: 404.1 kB / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=39): time 1.172e-06/0.7048, allocations: 0 / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39): time 0.0007629/0.7056, allocations: 0.6872 MB / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.7057, allocations: 108.6 kB / 0.9604 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.024e-05/0.7057, allocations: 102 kB / 0.9604 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.7057, allocations: 26.95 kB / 0.9605 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.806e-05/0.7058, allocations: 86.11 kB / 0.9606 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/0.7058, allocations: 77.12 kB / 0.9606 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.7059, allocations: 28.36 kB / 0.9607 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.7059, allocations: 322.7 kB / 0.961 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.75e-05/0.706, allocations: 89.19 kB / 0.961 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.761e-05/0.7061, allocations: 81.86 kB / 0.9611 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.7064, allocations: 353.2 kB / 0.9615 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7064, allocations: 0 / 0.9615 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003299/0.7067, allocations: 331.2 kB / 0.9618 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.323e-05/0.7068, allocations: 81.5 kB / 0.9619 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.7068, allocations: 1.406 kB / 0.9619 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.7069, allocations: 3.984 kB / 0.9619 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.469e-05/0.7069, allocations: 5.156 kB / 0.9619 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.7069, allocations: 1.25 kB / 0.9619 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.707, allocations: 24.75 kB / 0.9619 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.7071, allocations: 6.375 kB / 0.9619 GB, free: 2.559 MB / 0.7169 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.0002116/0.7073, allocations: 261.1 kB / 0.9621 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.7073, allocations: 26.72 kB / 0.9622 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.127e-05/0.7073, allocations: 9.219 kB / 0.9622 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.7074, allocations: 0.9688 kB / 0.9622 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.7074, allocations: 0 / 0.9622 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.7074, allocations: 5.016 kB / 0.9622 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.7075, allocations: 244.2 kB / 0.9624 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7075, allocations: 4 kB / 0.9624 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.7075, allocations: 1.125 kB / 0.9624 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.7075, allocations: 3.938 kB / 0.9624 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.7076, allocations: 12.89 kB / 0.9624 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7076, allocations: 0 / 0.9624 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.7076, allocations: 9.312 kB / 0.9625 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.7087, allocations: 1.291 MB / 0.9637 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.7088, allocations: 89.7 kB / 0.9638 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.7089, allocations: 83.41 kB / 0.9639 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.709, allocations: 12.44 kB / 0.9639 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.709, allocations: 6.719 kB / 0.9639 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.318e-05/0.709, allocations: 13.17 kB / 0.9639 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.304e-05/0.7091, allocations: 85.95 kB / 0.964 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7091, allocations: 0 / 0.964 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003224/0.7094, allocations: 67.58 kB / 0.9641 GB, free: 1.219 MB / 0.7169 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.0004463/0.7099, allocations: 243 kB / 0.9643 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001546/0.7114, allocations: 1.96 MB / 0.9662 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.7114, allocations: 0.9688 kB / 0.9662 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.713, allocations: 2.014 MB / 0.9682 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.7133, allocations: 22.11 kB / 0.9682 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005866/0.7139, allocations: 359 kB / 0.9685 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.7142, allocations: 0.7132 MB / 0.9692 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.523e-05/0.7142, allocations: 5.188 kB / 0.9692 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.7142, allocations: 7.438 kB / 0.9692 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of SimCode: time 4.3e-07/0.7142, allocations: 0 / 0.9692 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of Templates: time 0.005659/0.7199, allocations: 2.431 MB / 0.9716 GB, free: 12.36 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches