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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001049/0.001049, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001245/0.001245, allocations: 168.7 kB / 15.95 MB, free: 204 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.416/1.416, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.832/2.832, allocations: 437.8 MB / 0.7118 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000378/0.0003781, allocations: 11.94 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7978/0.7982, allocations: 153.8 MB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001711/0.8, allocations: 1.036 MB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.8007, allocations: 335.1 kB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.105e-05/0.8008, allocations: 0 / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.8009, allocations: 7.875 kB / 1.024 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.163e-05/0.8009, allocations: 4 kB / 1.024 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.8014, allocations: 67.86 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.692e-05/0.8015, allocations: 43.84 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.311e-05/0.8015, allocations: 3.984 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.471e-05/0.8016, allocations: 15.98 kB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.314e-05/0.8016, allocations: 19.92 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.8016, allocations: 0 / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.8018, allocations: 71.92 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.8019, allocations: 27.86 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.269e-05/0.8019, allocations: 49.64 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.8021, allocations: 115.7 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.8021, allocations: 0 / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.874e-06/0.8021, allocations: 0 / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.8021, allocations: 0 / 1.024 GB, free: 14.27 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.0005655/0.8027, allocations: 0.5041 MB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.8028, allocations: 8.031 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.8029, allocations: 15.81 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.803, allocations: 178.9 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.8031, allocations: 11.98 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.8031, allocations: 4 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.8034, allocations: 237.6 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.8034, allocations: 0 / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.8034, allocations: 4 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.8034, allocations: 3.984 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.8036, allocations: 144 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.8038, allocations: 189.5 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.8042, allocations: 0.5379 MB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004071/0.8046, allocations: 0.5207 MB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.8047, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.8051, allocations: 407.5 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=39): time 1.212e-06/0.8051, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39): time 0.0008461/0.806, allocations: 0.6786 MB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/0.8061, allocations: 105.1 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.211e-05/0.8061, allocations: 101.9 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.8062, allocations: 33.7 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.944e-05/0.8062, allocations: 80.8 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.595e-05/0.8063, allocations: 74.92 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.8063, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.8065, allocations: 322.8 kB / 1.028 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.787e-05/0.8066, allocations: 83.97 kB / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.756e-05/0.8067, allocations: 79.92 kB / 1.028 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.8069, allocations: 177.6 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.8069, allocations: 4.031 kB / 1.028 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003797/0.8072, allocations: 344.4 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.8074, allocations: 81.55 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8074, allocations: 0 / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.8074, allocations: 0 / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.465e-05/0.8075, allocations: 0 / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.8075, allocations: 3.984 kB / 1.029 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.8076, allocations: 23.75 kB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.8076, allocations: 7.938 kB / 1.029 GB, free: 9.09 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.0002855/0.8079, allocations: 273.7 kB / 1.029 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.955e-05/0.808, allocations: 27.81 kB / 1.029 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.087e-05/0.808, allocations: 9.172 kB / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.808, allocations: 0 / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.808, allocations: 0 / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.808, allocations: 0 / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.8083, allocations: 245.4 kB / 1.029 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.8083, allocations: 0 / 1.029 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-07/0.8083, allocations: 0 / 1.029 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.8083, allocations: 3.984 kB / 1.029 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.8083, allocations: 16 kB / 1.029 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.8083, allocations: 7.953 kB / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8083, allocations: 0 / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.8097, allocations: 1.283 MB / 1.031 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.084e-05/0.8097, allocations: 96.89 kB / 1.031 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.8099, allocations: 67.95 kB / 1.031 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.299e-05/0.8099, allocations: 11.98 kB / 1.031 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.81, allocations: 11.95 kB / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.81, allocations: 12.02 kB / 1.031 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.432e-05/0.8101, allocations: 91.45 kB / 1.031 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8101, allocations: 0 / 1.031 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003162/0.8104, allocations: 64 kB / 1.031 GB, free: 6.777 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.0005553/0.811, allocations: 247.7 kB / 1.031 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001849/0.8128, allocations: 1.96 MB / 1.033 GB, free: 4.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.8129, allocations: 64 / 1.033 GB, free: 4.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.8146, allocations: 2.022 MB / 1.035 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.8149, allocations: 23.98 kB / 1.035 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006114/0.8155, allocations: 347.8 kB / 1.036 GB, free: 2.145 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.8159, allocations: 0.7169 MB / 1.036 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.662e-05/0.8159, allocations: 0 / 1.036 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.8159, allocations: 7.438 kB / 1.036 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8159, allocations: 4 kB / 1.036 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of Templates: time 0.005824/0.8217, allocations: 2.388 MB / 1.039 GB, free: 15 MB / 0.795 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