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.004861/0.004861, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001088/0.001088, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.235/2.235, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 59.91 kB / 0.9508 GB, free: 7.719 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8821/0.8836, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002185/0.8858, allocations: 1.338 MB / 1.089 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007097/0.8866, allocations: 342.3 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.15e-05/0.8866, allocations: 1.344 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.691e-05/0.8867, allocations: 4.547 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.431e-05/0.8867, allocations: 6.047 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.8872, allocations: 89.98 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.8873, allocations: 62.62 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.8874, allocations: 3.672 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.435e-05/0.8874, allocations: 14.38 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.252e-05/0.8875, allocations: 24.17 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.8875, allocations: 4.156 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.8877, allocations: 79.48 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.509e-05/0.8877, allocations: 31.92 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.4e-05/0.8878, allocations: 52.11 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.8881, allocations: 155.1 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.8881, allocations: 0 / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8881, allocations: 0.625 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.8881, allocations: 0 / 1.09 GB, free: 4.184 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.0005023/0.8886, allocations: 0.518 MB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.8886, allocations: 8.906 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.8888, allocations: 14.45 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.82e-05/0.8888, allocations: 184 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.8889, allocations: 2.969 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.8889, allocations: 7.844 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.8892, allocations: 248.2 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.8892, allocations: 4.188 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.8892, allocations: 6.094 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.8892, allocations: 0 / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.8894, allocations: 144.8 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.8896, allocations: 192.1 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.8899, allocations: 0.5421 MB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.8903, allocations: 0.5202 MB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.8903, allocations: 0 / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004212/0.8907, allocations: 398.1 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.452e-06/0.8907, allocations: 0 / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.0008937/0.8916, allocations: 0.6941 MB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/0.8917, allocations: 112.1 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.8918, allocations: 95.81 kB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.969e-06/0.8918, allocations: 27.11 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.621e-05/0.8918, allocations: 82.39 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.33e-05/0.8919, allocations: 73.59 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-05/0.8919, allocations: 36.38 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.892, allocations: 327.8 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.8921, allocations: 79.2 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.8922, allocations: 88.31 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/0.8926, allocations: 351.9 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8926, allocations: 0 / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003949/0.893, allocations: 342.4 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.554e-05/0.8931, allocations: 80.88 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.8931, allocations: 0 / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.8931, allocations: 0 / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.447e-05/0.8932, allocations: 2.672 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.8932, allocations: 0.8125 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.8933, allocations: 18.77 kB / 1.095 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.8933, allocations: 15.44 kB / 1.095 GB, free: 0.7383 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.0002877/0.8936, allocations: 269.3 kB / 1.095 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.8937, allocations: 27.19 kB / 1.095 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.18e-05/0.8937, allocations: 6.781 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.8937, allocations: 0 / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.8937, allocations: 1.719 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.8937, allocations: 0 / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.8939, allocations: 248 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.8939, allocations: 1 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.402e-06/0.8939, allocations: 0.7969 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.8939, allocations: 8.719 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.894, allocations: 18.58 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.894, allocations: 0.5312 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.894, allocations: 5.469 kB / 1.096 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.8955, allocations: 1.275 MB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/0.8955, allocations: 97.45 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.8956, allocations: 75.66 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-05/0.8957, allocations: 13.53 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.8958, allocations: 13.34 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.8958, allocations: 14.81 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.236e-05/0.8959, allocations: 78.7 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8959, allocations: 0 / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003624/0.8963, allocations: 69.27 kB / 1.097 GB, free: 15.65 MB / 0.8731 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.0004812/0.8968, allocations: 243.8 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001979/0.8987, allocations: 1.972 MB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8988, allocations: 0 / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001775/0.9005, allocations: 2.013 MB / 1.101 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.9008, allocations: 18.25 kB / 1.101 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.9014, allocations: 327 kB / 1.102 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.9017, allocations: 0.7185 MB / 1.102 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.474e-05/0.9017, allocations: 0 / 1.102 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.9017, allocations: 12.31 kB / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of SimCode: time 5.71e-07/0.9017, allocations: 0 / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of Templates: time 0.006387/0.9081, allocations: 2.634 MB / 1.105 GB, free: 12.12 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