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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001246/0.001246, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001216/0.001216, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.359/1.359, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.689/2.689, allocations: 482.4 MB / 0.7553 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.7 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7227/0.7246, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.00219/0.7268, allocations: 1.323 MB / 1.084 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006213/0.7274, allocations: 349.9 kB / 1.085 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.671e-05/0.7275, allocations: 0.9375 kB / 1.085 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.318e-05/0.7275, allocations: 0.6094 kB / 1.085 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.35e-05/0.7276, allocations: 14.03 kB / 1.085 GB, free: 500 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003969/0.728, allocations: 93.67 kB / 1.085 GB, free: 452 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.62e-05/0.7281, allocations: 51.8 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.7281, allocations: 2.578 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.185e-05/0.7282, allocations: 26.48 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.78e-05/0.7282, allocations: 20.16 kB / 1.085 GB, free: 408 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.7282, allocations: 3.625 kB / 1.085 GB, free: 408 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.7284, allocations: 88.42 kB / 1.085 GB, free: 376 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.447e-05/0.7285, allocations: 24.19 kB / 1.085 GB, free: 372 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.7285, allocations: 47.17 kB / 1.085 GB, free: 344 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.7287, allocations: 158.2 kB / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.7288, allocations: 0 / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7288, allocations: 0 / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.7288, allocations: 0.75 kB / 1.085 GB, free: 284 kB / 0.8262 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.0005172/0.7293, allocations: 0.5176 MB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.7293, allocations: 13.41 kB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.767e-05/0.7294, allocations: 14.53 kB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.7296, allocations: 179.4 kB / 1.086 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.7296, allocations: 4.156 kB / 1.086 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.7296, allocations: 3.156 kB / 1.086 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.7299, allocations: 241.3 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.73, allocations: 192 / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.73, allocations: 13.97 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.73, allocations: 3.984 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.7302, allocations: 145 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.7304, allocations: 186.7 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.7308, allocations: 0.5355 MB / 1.087 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.7313, allocations: 0.5201 MB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.7313, allocations: 0 / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/0.7317, allocations: 402.4 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=39): time 1.142e-06/0.7317, allocations: 0 / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39): time 0.0008299/0.7326, allocations: 0.6895 MB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.7327, allocations: 108.8 kB / 1.089 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.823e-05/0.7327, allocations: 95.45 kB / 1.089 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.7328, allocations: 27.08 kB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.7328, allocations: 87.02 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.233e-05/0.7329, allocations: 72.41 kB / 1.089 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.733, allocations: 37.89 kB / 1.089 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.7331, allocations: 326.8 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.7332, allocations: 79.41 kB / 1.089 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-05/0.7333, allocations: 87.39 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.7337, allocations: 352.8 kB / 1.09 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7337, allocations: 0 / 1.09 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003971/0.7341, allocations: 336.9 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.538e-05/0.7342, allocations: 80.47 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.7342, allocations: 2.031 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.7342, allocations: 4.062 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.917e-05/0.7343, allocations: 1.75 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.7343, allocations: 5.531 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.452e-05/0.7344, allocations: 16.89 kB / 1.09 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.7344, allocations: 7.922 kB / 1.09 GB, free: 12.85 MB / 0.8419 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.0002817/0.7347, allocations: 277.9 kB / 1.09 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.7347, allocations: 22.58 kB / 1.09 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-06/0.7348, allocations: 9.812 kB / 1.09 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.7348, allocations: 1.469 kB / 1.09 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.7348, allocations: 4 kB / 1.09 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.7348, allocations: 0.75 kB / 1.09 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.735, allocations: 252.4 kB / 1.091 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.735, allocations: 0 / 1.091 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.735, allocations: 0.9062 kB / 1.091 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.735, allocations: 8.641 kB / 1.091 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.7351, allocations: 16.02 kB / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.7351, allocations: 0 / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7351, allocations: 0 / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.7364, allocations: 1.285 MB / 1.092 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.407e-05/0.7365, allocations: 93.33 kB / 1.092 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.7366, allocations: 75.92 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.452e-05/0.7367, allocations: 8.656 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.7368, allocations: 8.953 kB / 1.092 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.7368, allocations: 15.33 kB / 1.092 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.7368, allocations: 79.78 kB / 1.092 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.014e-06/0.7368, allocations: 0 / 1.092 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003323/0.7372, allocations: 69.3 kB / 1.092 GB, free: 11.77 MB / 0.8419 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.0004895/0.7377, allocations: 253.5 kB / 1.092 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001785/0.7395, allocations: 1.964 MB / 1.094 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.7395, allocations: 0 / 1.094 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.7412, allocations: 2.013 MB / 1.096 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.7414, allocations: 20.91 kB / 1.096 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.742, allocations: 376.7 kB / 1.097 GB, free: 9.176 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.7423, allocations: 0.7124 MB / 1.097 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.7424, allocations: 8.688 kB / 1.097 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.7424, allocations: 0 / 1.097 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of Templates: time 0.00461/0.747, allocations: 2.428 MB / 1.1 GB, free: 8.211 MB / 0.8419 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=400 -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches