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.00817/0.00817, allocations: 99 kB / 15.73 MB, free: 6.035 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.002031/0.002031, allocations: 200.5 kB / 16.67 MB, free: 5.973 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.873/2.873, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 67.84 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3826, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.003067/0.3857, allocations: 1.331 MB / 1.209 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008567/0.3866, allocations: 351 kB / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.594e-05/0.3867, allocations: 0 / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.3868, allocations: 3.938 kB / 1.209 GB, free: 8.484 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.141e-05/0.3868, allocations: 7.938 kB / 1.209 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.3874, allocations: 79.78 kB / 1.209 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.3876, allocations: 59.89 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.3876, allocations: 7.938 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.425e-05/0.3877, allocations: 23.92 kB / 1.209 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.058e-05/0.3877, allocations: 23.91 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.3878, allocations: 4 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.388, allocations: 71.94 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.236e-05/0.3881, allocations: 35.89 kB / 1.209 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.498e-05/0.3881, allocations: 43.75 kB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.3884, allocations: 155.5 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3885, allocations: 3.938 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3885, allocations: 0 / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.381e-05/0.3885, allocations: 3.938 kB / 1.209 GB, free: 7.973 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.0007019/0.3892, allocations: 0.5203 MB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3892, allocations: 8.625 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.637e-05/0.3893, allocations: 50.73 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.3895, allocations: 16.75 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.3896, allocations: 172.3 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3896, allocations: 384 / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.3896, allocations: 4.375 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.3899, allocations: 246.2 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.39, allocations: 7.922 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.39, allocations: 4 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.39, allocations: 0 / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.3902, allocations: 144 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002139/0.3904, allocations: 197.5 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.3908, allocations: 0.5337 MB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.3912, allocations: 0.5282 MB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.3912, allocations: 0 / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.3917, allocations: 399.5 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=39): time 1.593e-06/0.3917, allocations: 0 / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39): time 0.0009227/0.3926, allocations: 0.6893 MB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.3927, allocations: 105.1 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.962e-05/0.3928, allocations: 101.8 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.3929, allocations: 25.7 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.3929, allocations: 88.73 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/0.393, allocations: 74.91 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.3931, allocations: 37.7 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3932, allocations: 322.8 kB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.518e-05/0.3933, allocations: 88 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.246e-05/0.3934, allocations: 79.98 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.3937, allocations: 361.3 kB / 1.214 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3938, allocations: 0 / 1.214 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003894/0.3941, allocations: 328.1 kB / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.3943, allocations: 85.58 kB / 1.214 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3943, allocations: 4 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.3943, allocations: 0 / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.74e-05/0.3944, allocations: 0 / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3944, allocations: 0 / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.3945, allocations: 27.8 kB / 1.214 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.3946, allocations: 8 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.000318/0.3949, allocations: 261.7 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.3949, allocations: 27.75 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.444e-05/0.395, allocations: 5.219 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.395, allocations: 3.938 kB / 1.215 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.395, allocations: 0 / 1.215 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.395, allocations: 0 / 1.215 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.3952, allocations: 249.4 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3952, allocations: 4 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.3952, allocations: 0 / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3953, allocations: 3.938 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3953, allocations: 15.98 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3953, allocations: 0 / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3953, allocations: 4 kB / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.3967, allocations: 1.283 MB / 1.216 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.3967, allocations: 92.89 kB / 1.216 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3969, allocations: 75.95 kB / 1.216 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.397, allocations: 12.03 kB / 1.216 GB, free: 364 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.397, allocations: 7.984 kB / 1.216 GB, free: 356 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.397, allocations: 15.98 kB / 1.216 GB, free: 340 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.806e-05/0.3971, allocations: 75.28 kB / 1.217 GB, free: 264 kB / 0.9669 GB Notification: Performance of sort global known variables: time 3.61e-07/0.3971, allocations: 0 / 1.217 GB, free: 264 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003494/0.3975, allocations: 72 kB / 1.217 GB, free: 192 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.002098/0.3996, allocations: 1.97 MB / 1.218 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00163/0.4012, allocations: 1.964 MB / 1.22 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4012, allocations: 0 / 1.22 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.4027, allocations: 2.015 MB / 1.222 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.403, allocations: 22.06 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.0009221/0.4039, allocations: 405 kB / 1.223 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.4043, allocations: 0.7127 MB / 1.223 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.607e-05/0.4044, allocations: 7.844 kB / 1.223 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.586e-05/0.4044, allocations: 31.42 kB / 1.224 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of SimCode: time 7.51e-07/0.4044, allocations: 0 / 1.224 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.4291, allocations: 4.251 MB / 1.228 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/7.994, allocations: 14.03 kB / 1.228 GB, free: 4.848 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