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.007404/0.007405, allocations: 99.8 kB / 15.73 MB, free: 6.004 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.001735/0.001735, allocations: 191 kB / 16.67 MB, free: 5.934 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.38/2.38, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 62.28 kB / 0.9508 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3192, allocations: 140.4 MB / 1.088 GB, free: 1.516 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002566/0.3218, allocations: 1.326 MB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008317/0.3227, allocations: 352.7 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.541e-05/0.3227, allocations: 0 / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.3229, allocations: 7.922 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.04e-05/0.3229, allocations: 7.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.3234, allocations: 83.78 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.3235, allocations: 59.89 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.481e-05/0.3236, allocations: 7.938 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.54e-05/0.3236, allocations: 15.94 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.488e-05/0.3237, allocations: 27.89 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.3237, allocations: 4 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.3239, allocations: 75.94 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.756e-05/0.3239, allocations: 35.91 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.965e-05/0.324, allocations: 47.73 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.3242, allocations: 159.3 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3243, allocations: 3.938 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3243, allocations: 0 / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.3243, allocations: 0 / 1.09 GB, free: 15.3 MB / 0.8575 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.0005919/0.3249, allocations: 0.516 MB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3249, allocations: 8.031 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.3251, allocations: 16.84 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.3252, allocations: 180.3 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.3252, allocations: 4.375 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.3253, allocations: 384 / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.3256, allocations: 245.9 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3256, allocations: 192 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.3256, allocations: 7.938 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3256, allocations: 3.984 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.3258, allocations: 144 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002066/0.326, allocations: 197.5 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.3264, allocations: 0.5415 MB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003879/0.3268, allocations: 0.5204 MB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.345e-06/0.3268, allocations: 3.938 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004125/0.3273, allocations: 391.7 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.192e-06/0.3273, allocations: 0 / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.0008211/0.3281, allocations: 0.6971 MB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.3282, allocations: 109.1 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.532e-05/0.3283, allocations: 97.8 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.3283, allocations: 33.69 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.3284, allocations: 80.8 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.3284, allocations: 75.44 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.3285, allocations: 33.7 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3286, allocations: 326.8 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.983e-05/0.3287, allocations: 83.91 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.984e-05/0.3288, allocations: 87.98 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.3292, allocations: 353.3 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3292, allocations: 0 / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004892/0.3297, allocations: 340.1 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.558e-05/0.3298, allocations: 81.58 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3298, allocations: 0 / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3299, allocations: 0 / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.458e-05/0.3299, allocations: 0 / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.3299, allocations: 4 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3301, allocations: 27.77 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.3301, allocations: 8.062 kB / 1.095 GB, free: 9.863 MB / 0.8575 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.0002753/0.3304, allocations: 267.7 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.3304, allocations: 23.89 kB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.717e-05/0.3304, allocations: 9.219 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3304, allocations: 0 / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3304, allocations: 0 / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3305, allocations: 0 / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.3307, allocations: 253.4 kB / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3307, allocations: 0 / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3307, allocations: 0 / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.3307, allocations: 7.938 kB / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3307, allocations: 19.98 kB / 1.096 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3307, allocations: 0 / 1.096 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3307, allocations: 0 / 1.096 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.3321, allocations: 1.283 MB / 1.097 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.516e-05/0.3322, allocations: 92.95 kB / 1.097 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.3323, allocations: 75.89 kB / 1.097 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.675e-05/0.3324, allocations: 8 kB / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.3325, allocations: 16.02 kB / 1.097 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.3325, allocations: 15.98 kB / 1.097 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.876e-05/0.3326, allocations: 83.22 kB / 1.097 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3326, allocations: 0 / 1.097 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000297/0.3329, allocations: 67.94 kB / 1.097 GB, free: 7.547 MB / 0.8575 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.0004773/0.3334, allocations: 242.6 kB / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001674/0.335, allocations: 1.967 MB / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.335, allocations: 0 / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.3366, allocations: 2.014 MB / 1.101 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.3368, allocations: 19.98 kB / 1.101 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005567/0.3374, allocations: 339.1 kB / 1.102 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.3378, allocations: 0.7167 MB / 1.102 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.679e-05/0.3378, allocations: 4 kB / 1.102 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.37e-05/0.3378, allocations: 11.44 kB / 1.102 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3378, allocations: 0 / 1.102 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of Templates: time 0.00593/0.3437, allocations: 2.65 MB / 1.105 GB, free: 15.53 MB / 0.8731 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