Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002119/0.002119, allocations: 217.7 kB / 22.26 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.653/1.653, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.704/3.704, allocations: 0.505 GB / 0.8101 GB, free: 21.99 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 68.11 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4936/0.4957, allocations: 180.2 MB / 1.353 GB, free: 8.469 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003588/0.4993, allocations: 1.439 MB / 1.354 GB, free: 7.02 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.5005, allocations: 498.3 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.5006, allocations: 0 / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.5007, allocations: 7.922 kB / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.964e-05/0.5008, allocations: 11.92 kB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.5019, allocations: 249.8 kB / 1.355 GB, free: 6.27 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.5022, allocations: 155.7 kB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.736e-05/0.5023, allocations: 4 kB / 1.355 GB, free: 6.113 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.5024, allocations: 55.91 kB / 1.355 GB, free: 6.059 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.5025, allocations: 43.83 kB / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.5025, allocations: 12 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.5029, allocations: 187.8 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.949e-05/0.503, allocations: 43.89 kB / 1.355 GB, free: 5.777 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.5032, allocations: 51.73 kB / 1.355 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005126/0.5037, allocations: 243.5 kB / 1.356 GB, free: 5.488 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5037, allocations: 0 / 1.356 GB, free: 5.488 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.756e-06/0.5037, allocations: 0 / 1.356 GB, free: 5.488 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.309e-05/0.5037, allocations: 4 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007865/0.5045, allocations: 373.6 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.5045, allocations: 12.03 kB / 1.356 GB, free: 5.074 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.5046, allocations: 34.75 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.223e-05/0.5047, allocations: 16.83 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.5049, allocations: 154.3 kB / 1.356 GB, free: 4.84 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.505, allocations: 12.38 kB / 1.356 GB, free: 4.828 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.505, allocations: 8.375 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.5052, allocations: 83.95 kB / 1.356 GB, free: 4.727 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.5052, allocations: 3.938 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.5052, allocations: 0 / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.5052, allocations: 0 / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.5053, allocations: 43.91 kB / 1.356 GB, free: 4.68 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003247/0.5057, allocations: 201.6 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.5058, allocations: 81.17 kB / 1.357 GB, free: 4.34 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.865e-05/0.5059, allocations: 49.81 kB / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.5059, allocations: 0 / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.5062, allocations: 121 kB / 1.357 GB, free: 4.148 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.083e-06/0.5062, allocations: 4 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0004282/0.5067, allocations: 186 kB / 1.357 GB, free: 3.957 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.5067, allocations: 85.09 kB / 1.357 GB, free: 3.855 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.5069, allocations: 151.5 kB / 1.357 GB, free: 3.699 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/0.507, allocations: 37.69 kB / 1.357 GB, free: 3.656 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/0.5071, allocations: 104.5 kB / 1.357 GB, free: 3.547 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.601e-05/0.5071, allocations: 35.73 kB / 1.357 GB, free: 3.512 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.5072, allocations: 49.7 kB / 1.357 GB, free: 3.457 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5074, allocations: 326.8 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.353e-05/0.5075, allocations: 47.97 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.5077, allocations: 200 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.5079, allocations: 97.58 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5079, allocations: 0 / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002894/0.5082, allocations: 165.4 kB / 1.358 GB, free: 2.562 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5082, allocations: 5.406 kB / 1.358 GB, free: 2.559 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.5082, allocations: 4 kB / 1.358 GB, free: 2.555 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.5083, allocations: 0 / 1.358 GB, free: 2.555 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.5084, allocations: 15.92 kB / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.5084, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.5087, allocations: 79.8 kB / 1.358 GB, free: 2.461 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.5087, allocations: 4 kB / 1.358 GB, free: 2.457 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001727/0.5089, allocations: 145.8 kB / 1.359 GB, free: 2.305 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/0.5089, allocations: 15.89 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.888e-05/0.5089, allocations: 12.72 kB / 1.359 GB, free: 2.277 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.5089, allocations: 4 kB / 1.359 GB, free: 2.273 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.5089, allocations: 0 / 1.359 GB, free: 2.273 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5089, allocations: 0 / 1.359 GB, free: 2.273 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.5091, allocations: 164.6 kB / 1.359 GB, free: 2.07 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.5091, allocations: 7.938 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.5092, allocations: 7.938 kB / 1.359 GB, free: 2.055 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5092, allocations: 4 kB / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.5092, allocations: 7.984 kB / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.5092, allocations: 0 / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5092, allocations: 0 / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.5095, allocations: 179.8 kB / 1.359 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.541e-05/0.5095, allocations: 15.91 kB / 1.359 GB, free: 1.832 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.5095, allocations: 0 / 1.359 GB, free: 1.832 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.898e-05/0.5096, allocations: 8 kB / 1.359 GB, free: 1.824 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.5096, allocations: 7.922 kB / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.5096, allocations: 11.94 kB / 1.359 GB, free: 1.805 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000102/0.5097, allocations: 113 kB / 1.359 GB, free: 1.695 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.5097, allocations: 0 / 1.359 GB, free: 1.695 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003793/0.5101, allocations: 75.8 kB / 1.359 GB, free: 1.621 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008783/0.511, allocations: 0.7869 MB / 1.36 GB, free: 0.8047 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000384/0.5114, allocations: 155.3 kB / 1.36 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5114, allocations: 0 / 1.36 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 7.944e-05/0.5115, allocations: 39.92 kB / 1.36 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.5117, allocations: 11.94 kB / 1.36 GB, free: 0.5898 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.5141, allocations: 1.708 MB / 1.362 GB, free: 14.78 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.5145, allocations: 0.7048 MB / 1.362 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.185e-05/0.5146, allocations: 8.656 kB / 1.362 GB, free: 14.04 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.671e-05/0.5146, allocations: 35.42 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of SimCode: time 8.92e-07/0.5146, allocations: 3.938 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03833/0.553, allocations: 4.165 MB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.93, allocations: 1.719 kB / 1.367 GB, free: 9.996 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.93181331595406]