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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006012/0.006012, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.004209/0.004209, allocations: 195.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.51/2.51, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.754/3.754, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 61.48 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.3889, allocations: 157.4 MB / 1.052 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003604/0.3926, allocations: 1.47 MB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3937, allocations: 0.5022 MB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.793e-05/0.3938, allocations: 0 / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.759e-05/0.3939, allocations: 7.984 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.876e-05/0.394, allocations: 7.938 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009677/0.395, allocations: 215.2 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002947/0.3953, allocations: 151.7 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.711e-05/0.3954, allocations: 7.969 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3955, allocations: 59.91 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.3956, allocations: 43.83 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.3956, allocations: 8 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003742/0.396, allocations: 175.8 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.724e-05/0.3961, allocations: 31.91 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.3962, allocations: 55.72 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.3967, allocations: 235.7 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3967, allocations: 7.938 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3967, allocations: 3.938 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.3967, allocations: 4 kB / 1.055 GB, free: 5.711 MB / 0.8106 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.0007671/0.3975, allocations: 443 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3975, allocations: 8.625 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.786e-05/0.3976, allocations: 38.73 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.411e-05/0.3977, allocations: 12.84 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.3979, allocations: 201.8 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.398, allocations: 8.375 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.398, allocations: 8.375 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.3982, allocations: 87.89 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.3982, allocations: 7.922 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3983, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.3983, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.48e-05/0.3984, allocations: 35.98 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003055/0.3987, allocations: 238.4 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.3988, allocations: 81.19 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.351e-05/0.3989, allocations: 53.81 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.3989, allocations: 0 / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.3992, allocations: 120.9 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.552e-06/0.3992, allocations: 4 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004114/0.3996, allocations: 185.5 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.3997, allocations: 85.11 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.3999, allocations: 154.8 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.45e-05/0.4, allocations: 33.7 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/0.4001, allocations: 104.5 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.4001, allocations: 39.53 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.4002, allocations: 49.7 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.4004, allocations: 326.8 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.511e-05/0.4005, allocations: 39.98 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.4007, allocations: 203.3 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.4009, allocations: 93.64 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4009, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002676/0.4012, allocations: 173.2 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4012, allocations: 9.875 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.4012, allocations: 0 / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.4012, allocations: 4 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.334e-05/0.4013, allocations: 4 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.4013, allocations: 4.625 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.4016, allocations: 79.83 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.4017, allocations: 4 kB / 1.058 GB, free: 2.5 MB / 0.8106 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.0001543/0.4018, allocations: 145.8 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.4018, allocations: 11.84 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.4019, allocations: 20.64 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4019, allocations: 0 / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4019, allocations: 0 / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4019, allocations: 0 / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.4021, allocations: 197.5 kB / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4021, allocations: 0 / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.372e-05/0.4022, allocations: 4 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4022, allocations: 4 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.4022, allocations: 8 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4022, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4022, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.4025, allocations: 189.6 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.4025, allocations: 92.94 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.4026, allocations: 0 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.481e-05/0.4026, allocations: 8 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.4027, allocations: 11.98 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.4027, allocations: 0 / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001022/0.4028, allocations: 113.7 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4028, allocations: 3.938 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000332/0.4031, allocations: 72 kB / 1.059 GB, free: 1.539 MB / 0.8106 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.0007735/0.4039, allocations: 0.7828 MB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002928/0.4042, allocations: 167.3 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4042, allocations: 0 / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.298e-05/0.4043, allocations: 39.98 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001774/0.4045, allocations: 7.938 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.4065, allocations: 1.72 MB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.4069, allocations: 0.708 MB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.658e-05/0.4069, allocations: 8.672 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.849e-05/0.407, allocations: 27.42 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of SimCode: time 9.22e-07/0.407, allocations: 3.938 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.825/2.232, allocations: 3.82 MB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003729/2.233, allocations: 211.2 kB / 1.066 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.715/6.948, allocations: 0 / 1.066 GB, free: 9.984 MB / 0.8262 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)