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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007646/0.007646, allocations: 98.05 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.00205/0.00205, allocations: 197.6 kB / 16.67 MB, free: 5.922 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.925/2.925, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 60.12 kB / 1.083 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2788, allocations: 162.2 MB / 1.241 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002365/0.2812, allocations: 1.334 MB / 1.243 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.282, allocations: 339 kB / 1.243 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.282, allocations: 8 kB / 1.243 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.633e-05/0.2821, allocations: 3.938 kB / 1.243 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.659e-05/0.2821, allocations: 11.91 kB / 1.243 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.2825, allocations: 79.78 kB / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.2826, allocations: 55.92 kB / 1.243 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.483e-05/0.2827, allocations: 7.984 kB / 1.243 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.2827, allocations: 19.92 kB / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.608e-05/0.2828, allocations: 23.91 kB / 1.243 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.2828, allocations: 7.938 kB / 1.243 GB, free: 8.359 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.283, allocations: 75.92 kB / 1.243 GB, free: 8.285 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.283, allocations: 27.92 kB / 1.243 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.099e-05/0.2831, allocations: 47.73 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.2833, allocations: 159.4 kB / 1.244 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2834, allocations: 3.938 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2834, allocations: 4 kB / 1.244 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.2834, allocations: 4 kB / 1.244 GB, free: 8.043 MB / 0.9981 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.0005499/0.2839, allocations: 0.5159 MB / 1.244 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.284, allocations: 8.031 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.284, allocations: 46.73 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.631e-05/0.2841, allocations: 20.83 kB / 1.244 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.2843, allocations: 176.2 kB / 1.244 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.2843, allocations: 4.375 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.2843, allocations: 384 / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.2846, allocations: 246.2 kB / 1.245 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2846, allocations: 3.938 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2847, allocations: 7.984 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.2848, allocations: 148 kB / 1.245 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001904/0.285, allocations: 185.5 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004856/0.2855, allocations: 0.5376 MB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004474/0.286, allocations: 0.5242 MB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.023e-06/0.286, allocations: 4 kB / 1.246 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004391/0.2865, allocations: 403.5 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=39): time 1.282e-06/0.2865, allocations: 0 / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39): time 0.0008419/0.2873, allocations: 0.6855 MB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.2874, allocations: 101.1 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.188e-05/0.2875, allocations: 101.8 kB / 1.247 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.2875, allocations: 29.7 kB / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.861e-05/0.2876, allocations: 88.77 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.797e-05/0.2876, allocations: 75.44 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.2877, allocations: 37.69 kB / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2879, allocations: 322.8 kB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.288, allocations: 79.98 kB / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.319e-05/0.2881, allocations: 87.97 kB / 1.248 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.2884, allocations: 357.3 kB / 1.248 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2884, allocations: 0 / 1.248 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00039/0.2888, allocations: 340.1 kB / 1.249 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.544e-05/0.2889, allocations: 86.52 kB / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2889, allocations: 0 / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.2889, allocations: 0 / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.205e-05/0.289, allocations: 4 kB / 1.249 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.289, allocations: 0 / 1.249 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.2891, allocations: 19.89 kB / 1.249 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.2891, allocations: 7.984 kB / 1.249 GB, free: 2.555 MB / 0.9981 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.0002625/0.2894, allocations: 266.2 kB / 1.249 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.2895, allocations: 31.78 kB / 1.249 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.323e-05/0.2895, allocations: 13.22 kB / 1.249 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2895, allocations: 0 / 1.249 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2895, allocations: 0 / 1.249 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.2895, allocations: 0 / 1.249 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.2897, allocations: 249.4 kB / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2897, allocations: 0 / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.2897, allocations: 0 / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2897, allocations: 3.938 kB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.2898, allocations: 15.98 kB / 1.249 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2898, allocations: 0 / 1.249 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2898, allocations: 4 kB / 1.249 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2912, allocations: 1.283 MB / 1.25 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.542e-05/0.2912, allocations: 100.8 kB / 1.251 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.2914, allocations: 71.95 kB / 1.251 GB, free: 432 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.547e-05/0.2914, allocations: 8 kB / 1.251 GB, free: 424 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.2915, allocations: 11.98 kB / 1.251 GB, free: 412 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.2915, allocations: 11.98 kB / 1.251 GB, free: 400 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.343e-05/0.2916, allocations: 83.31 kB / 1.251 GB, free: 316 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2916, allocations: 4 kB / 1.251 GB, free: 312 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002927/0.2919, allocations: 64 kB / 1.251 GB, free: 248 kB / 0.9981 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.4597/0.7516, allocations: 1.96 MB / 1.253 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001442/0.753, allocations: 1.964 MB / 1.255 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.7531, allocations: 0.75 kB / 1.255 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.7543, allocations: 2.012 MB / 1.257 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.7545, allocations: 23.02 kB / 1.257 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006462/0.7552, allocations: 398.3 kB / 1.257 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.7553, allocations: 0.7141 MB / 1.258 GB, free: 12.24 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.424e-05/0.7553, allocations: 3.047 kB / 1.258 GB, free: 12.24 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.7554, allocations: 31.8 kB / 1.258 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.7554, allocations: 1.156 kB / 1.258 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.7799, allocations: 4.149 MB / 1.262 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.7/8.48, allocations: 15.56 kB / 1.262 GB, free: 11.71 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv --start-time 0 --stop-time 36000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[535]=36000.000000 File[108]=2030.400000 " Variables in the reference:time,occ.occ Variables in the result:time,occ.one_mu,occ.zero_mu,occ.seed,occ.occ