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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005445/0.005445, allocations: 100.5 kB / 15.73 MB, free: 5.977 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.001335/0.001335, allocations: 197.2 kB / 16.67 MB, free: 5.914 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.832/2.832, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 63.88 kB / 1.054 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3839, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.004604/0.3885, allocations: 1.33 MB / 1.209 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.3898, allocations: 350.9 kB / 1.209 GB, free: 8.484 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.388e-05/0.3899, allocations: 0 / 1.209 GB, free: 8.484 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.3901, allocations: 0 / 1.209 GB, free: 8.484 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.008e-05/0.3901, allocations: 3.938 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006854/0.3908, allocations: 91.72 kB / 1.209 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001612/0.391, allocations: 59.89 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.91e-05/0.3911, allocations: 0 / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.498e-05/0.3911, allocations: 19.92 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.509e-05/0.3912, allocations: 23.91 kB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3912, allocations: 4 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.3915, allocations: 83.86 kB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.261e-05/0.3916, allocations: 31.91 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.168e-05/0.3917, allocations: 47.75 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.3921, allocations: 155.5 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3921, allocations: 4 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.354e-06/0.3921, allocations: 0 / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.457e-05/0.3921, allocations: 0 / 1.209 GB, free: 7.969 MB / 0.9669 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.0007502/0.3929, allocations: 0.5103 MB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/0.393, allocations: 16.56 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.04e-05/0.3931, allocations: 50.73 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.3932, allocations: 16.75 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.3934, allocations: 172.3 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.3935, allocations: 4.375 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.3935, allocations: 4.375 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004358/0.3939, allocations: 242.1 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.394, allocations: 3.938 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.394, allocations: 4 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.394, allocations: 0 / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.3943, allocations: 148 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000279/0.3946, allocations: 193.5 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.3953, allocations: 0.5298 MB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006782/0.396, allocations: 0.5204 MB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.396, allocations: 0 / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007192/0.3967, allocations: 415.4 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=39): time 2.555e-06/0.3967, allocations: 4 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39): time 0.001289/0.398, allocations: 0.6777 MB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/0.3982, allocations: 105.1 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.3983, allocations: 105.8 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3983, allocations: 29.7 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/0.3984, allocations: 80.8 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3985, allocations: 82.84 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.3986, allocations: 29.7 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3988, allocations: 330.9 kB / 1.214 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.399, allocations: 87.91 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.3991, allocations: 79.98 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/0.3996, allocations: 353.3 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3996, allocations: 0 / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005678/0.4002, allocations: 336.2 kB / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.4004, allocations: 81.53 kB / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.4004, allocations: 0 / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.4004, allocations: 3.984 kB / 1.214 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.676e-05/0.4005, allocations: 0 / 1.214 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.4005, allocations: 8.062 kB / 1.214 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.4007, allocations: 19.75 kB / 1.214 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.4007, allocations: 12 kB / 1.214 GB, free: 2.48 MB / 0.9669 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.0004057/0.4012, allocations: 261.6 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.886e-05/0.4012, allocations: 27.75 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.349e-05/0.4013, allocations: 5.219 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.4013, allocations: 0 / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4013, allocations: 0 / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4013, allocations: 7.922 kB / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.4016, allocations: 245.4 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4016, allocations: 7.984 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.4016, allocations: 0 / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-05/0.4016, allocations: 7.938 kB / 1.215 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.4017, allocations: 15.98 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4017, allocations: 0 / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4017, allocations: 0 / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.4037, allocations: 1.279 MB / 1.216 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.8e-05/0.4038, allocations: 92.89 kB / 1.216 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.404, allocations: 75.98 kB / 1.216 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.4042, allocations: 11.98 kB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.4042, allocations: 11.94 kB / 1.216 GB, free: 352 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.4043, allocations: 15.98 kB / 1.216 GB, free: 336 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.523e-05/0.4044, allocations: 79.28 kB / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of sort global known variables: time 2.9e-07/0.4044, allocations: 0 / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005155/0.4049, allocations: 68 kB / 1.217 GB, free: 188 kB / 0.9669 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.003126/0.408, allocations: 1.967 MB / 1.219 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002534/0.4106, allocations: 1.967 MB / 1.22 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.4106, allocations: 0 / 1.22 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.413, allocations: 2.018 MB / 1.222 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.4134, allocations: 18.56 kB / 1.222 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.4145, allocations: 408.9 kB / 1.223 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.4149, allocations: 0.7127 MB / 1.224 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.31e-05/0.415, allocations: 3.906 kB / 1.224 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.551e-05/0.4151, allocations: 31.42 kB / 1.224 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of SimCode: time 6.92e-07/0.4151, allocations: 0 / 1.224 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.4449, allocations: 4.239 MB / 1.228 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.23, allocations: 15.66 kB / 1.228 GB, free: 4.844 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > 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) "" Variables in the reference:time,occ.occ Variables in the result:occ.occ,occ.one_mu,occ.seed,occ.zero_mu,time