Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001409/0.001409, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002411/0.002411, allocations: 219 kB / 22.26 MB, free: 5.125 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.61/1.61, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.052/3.052, allocations: 476.7 MB / 0.7707 GB, free: 4.445 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_11_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.002058/0.002058, allocations: 72.62 kB / 1.117 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4319/0.434, allocations: 170 MB / 1.283 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003615/0.4376, allocations: 1.437 MB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001086/0.4387, allocations: 0.5023 MB / 1.285 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.031e-05/0.4387, allocations: 7.938 kB / 1.285 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.93e-05/0.4388, allocations: 7.875 kB / 1.285 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.535e-05/0.4389, allocations: 15.86 kB / 1.285 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000922/0.4398, allocations: 240.4 kB / 1.286 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.4401, allocations: 143.8 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.768e-05/0.4402, allocations: 8 kB / 1.286 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.4403, allocations: 55.89 kB / 1.286 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.4404, allocations: 47.83 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.636e-05/0.4405, allocations: 12 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004084/0.4409, allocations: 191.8 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.441, allocations: 43.89 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.4411, allocations: 55.72 kB / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004428/0.4416, allocations: 234.8 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4416, allocations: 0 / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.456e-06/0.4416, allocations: 0 / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.4416, allocations: 0 / 1.286 GB, free: 8.77 MB / 0.9825 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.0008891/0.4425, allocations: 377.6 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.486e-05/0.4425, allocations: 12.03 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.4426, allocations: 34.73 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.4427, allocations: 16.84 kB / 1.287 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.443, allocations: 150.3 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.443, allocations: 8.375 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.923e-05/0.4431, allocations: 12.38 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.4433, allocations: 83.89 kB / 1.287 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.4433, allocations: 3.938 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.4433, allocations: 4 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.4433, allocations: 0 / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.788e-05/0.4434, allocations: 39.97 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003487/0.4438, allocations: 201.6 kB / 1.287 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.444, allocations: 78.86 kB / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.803e-05/0.4441, allocations: 49.81 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.4441, allocations: 4 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.4445, allocations: 116.9 kB / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.4445, allocations: 0 / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0004868/0.445, allocations: 185.5 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.4451, allocations: 89.09 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.4453, allocations: 151.9 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.227e-05/0.4454, allocations: 33.7 kB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.4455, allocations: 96.52 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.407e-05/0.4456, allocations: 43.67 kB / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.4457, allocations: 53.69 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002647/0.4459, allocations: 326.8 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.093e-05/0.446, allocations: 47.92 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.4463, allocations: 195.3 kB / 1.289 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.4465, allocations: 101.6 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4465, allocations: 0 / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003257/0.4469, allocations: 165.4 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4469, allocations: 4 kB / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.66e-05/0.4469, allocations: 7.984 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.4469, allocations: 96 / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.447, allocations: 11.98 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.4471, allocations: 0.625 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.4474, allocations: 79.8 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.4474, allocations: 4 kB / 1.289 GB, free: 5.746 MB / 0.9825 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.000186/0.4476, allocations: 133.8 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.4476, allocations: 11.89 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.4476, allocations: 20.72 kB / 1.289 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.4477, allocations: 3.984 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4477, allocations: 4 kB / 1.289 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4477, allocations: 0 / 1.289 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.4479, allocations: 172.6 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4479, allocations: 0 / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.4479, allocations: 11.98 kB / 1.289 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4479, allocations: 0 / 1.289 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.4479, allocations: 0 / 1.289 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4479, allocations: 4 kB / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.4479, allocations: 4 kB / 1.289 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.4482, allocations: 185.7 kB / 1.289 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.4482, allocations: 11.89 kB / 1.289 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.4483, allocations: 8 kB / 1.289 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.988e-05/0.4483, allocations: 3.984 kB / 1.289 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.4483, allocations: 4 kB / 1.289 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.4484, allocations: 7.984 kB / 1.289 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.613e-05/0.4485, allocations: 121.5 kB / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4485, allocations: 0 / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000341/0.4488, allocations: 71.86 kB / 1.29 GB, free: 4.906 MB / 0.9825 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.0008298/0.4496, allocations: 0.7798 MB / 1.29 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003032/0.4499, allocations: 163.3 kB / 1.291 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4499, allocations: 0 / 1.291 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.16e-05/0.45, allocations: 35.98 kB / 1.291 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.4502, allocations: 4 kB / 1.291 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.4526, allocations: 1.733 MB / 1.292 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007132/0.4533, allocations: 0.7041 MB / 1.293 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.546e-05/0.4534, allocations: 4.859 kB / 1.293 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.778e-05/0.4535, allocations: 31.42 kB / 1.293 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.4535, allocations: 0 / 1.293 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.4896, allocations: 4.166 MB / 1.297 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.86, allocations: 3.938 kB / 1.297 GB, free: 13.29 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.378390201134607]