Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001921/0.001921, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.002456/0.002456, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.579/1.579, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.426/3.426, allocations: 0.49 GB / 0.7916 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_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.002169/0.002169, allocations: 70.66 kB / 1.149 GB, free: 26.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4575/0.4597, allocations: 176.1 MB / 1.321 GB, free: 3.285 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002873/0.4626, allocations: 1.438 MB / 1.322 GB, free: 1.836 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.4635, allocations: 498.6 kB / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.546e-05/0.4636, allocations: 4 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 7.805e-05/0.4637, allocations: 3.938 kB / 1.323 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.016e-05/0.4637, allocations: 11.92 kB / 1.323 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007942/0.4645, allocations: 234.7 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000245/0.4648, allocations: 151.8 kB / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.055e-05/0.4648, allocations: 4 kB / 1.323 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.87e-05/0.4649, allocations: 59.84 kB / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.465, allocations: 43.81 kB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.465, allocations: 12 kB / 1.323 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002788/0.4653, allocations: 163.8 kB / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.394e-05/0.4654, allocations: 39.89 kB / 1.323 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.341e-05/0.4655, allocations: 59.72 kB / 1.323 GB, free: 0.5781 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.4658, allocations: 231.5 kB / 1.324 GB, free: 360 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.4658, allocations: 4 kB / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4658, allocations: 0 / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.4658, allocations: 4 kB / 1.324 GB, free: 352 kB / 1.014 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.0007033/0.4665, allocations: 442.7 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4666, allocations: 15.98 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.916e-05/0.4666, allocations: 34.75 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.4667, allocations: 20.84 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.4669, allocations: 208.1 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.467, allocations: 12.38 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.467, allocations: 8.375 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.4672, allocations: 83.89 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.4672, allocations: 3.938 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.4672, allocations: 0 / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4672, allocations: 0 / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.662e-05/0.4673, allocations: 47.91 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002872/0.4676, allocations: 230.5 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.4677, allocations: 69.23 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.108e-05/0.4678, allocations: 53.75 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.4678, allocations: 4 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.468, allocations: 117 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.468, allocations: 0 / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004019/0.4684, allocations: 189.5 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.373e-05/0.4685, allocations: 85.09 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.4686, allocations: 151.7 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.4687, allocations: 37.7 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.4688, allocations: 96.52 kB / 1.325 GB, free: 14.22 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.918e-05/0.4688, allocations: 43.67 kB / 1.325 GB, free: 14.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.4689, allocations: 57.62 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.4691, allocations: 322.8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.982e-05/0.4692, allocations: 47.92 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002672/0.4694, allocations: 197.5 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.4696, allocations: 101.5 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4696, allocations: 3.938 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002661/0.4699, allocations: 161.5 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.4699, allocations: 8 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.4699, allocations: 7.984 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.4699, allocations: 0 / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.47, allocations: 11.94 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.47, allocations: 4 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.4703, allocations: 75.86 kB / 1.326 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.4703, allocations: 4 kB / 1.326 GB, free: 13.12 MB / 1.029 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.0001434/0.4705, allocations: 133.8 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.4705, allocations: 11.89 kB / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.4705, allocations: 16.7 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4705, allocations: 0 / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.4706, allocations: 8 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4706, allocations: 0 / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.4708, allocations: 197.5 kB / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4708, allocations: 0 / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-05/0.4708, allocations: 15.92 kB / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4708, allocations: 0 / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.4708, allocations: 0 / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.4708, allocations: 4 kB / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4708, allocations: 0 / 1.327 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.4711, allocations: 189 kB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.601e-05/0.4712, allocations: 89.02 kB / 1.327 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.4712, allocations: 8 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.264e-05/0.4712, allocations: 3.984 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/0.4713, allocations: 7.938 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4713, allocations: 4 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.827e-05/0.4714, allocations: 117 kB / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4714, allocations: 0 / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00034/0.4717, allocations: 79.8 kB / 1.327 GB, free: 12.15 MB / 1.029 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.0007979/0.4725, allocations: 0.7733 MB / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003093/0.4729, allocations: 159.3 kB / 1.328 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4729, allocations: 4 kB / 1.328 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.283e-05/0.4729, allocations: 39.92 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.4731, allocations: 4 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.4751, allocations: 1.725 MB / 1.33 GB, free: 9.312 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.4755, allocations: 0.7079 MB / 1.331 GB, free: 8.578 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.455e-05/0.4756, allocations: 12.67 kB / 1.331 GB, free: 8.562 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.4756, allocations: 27.42 kB / 1.331 GB, free: 8.535 MB / 1.029 GB Notification: Performance of SimCode: time 2.71e-07/0.4756, allocations: 0 / 1.331 GB, free: 8.535 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.5078, allocations: 3.99 MB / 1.335 GB, free: 4.668 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/8.873, allocations: 4 kB / 1.335 GB, free: 4.664 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 16.165008625015616]