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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001092/0.001092, allocations: 193.6 kB / 16.14 MB, free: 6.711 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.376/1.376, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.868/2.868, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 66.53 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4951/0.4965, allocations: 157.4 MB / 1.052 GB, free: 8.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003432/0.5001, allocations: 1.478 MB / 1.054 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001189/0.5013, allocations: 0.514 MB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.09e-05/0.5013, allocations: 0 / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.5015, allocations: 7.984 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.804e-05/0.5016, allocations: 3.938 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007461/0.5023, allocations: 202.6 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.5026, allocations: 131.8 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.65e-05/0.5026, allocations: 4 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.5027, allocations: 55.89 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.5028, allocations: 43.77 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.5029, allocations: 8 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.5032, allocations: 167.8 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.5033, allocations: 35.89 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.5034, allocations: 51.72 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003635/0.5038, allocations: 227.7 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.5038, allocations: 0 / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5038, allocations: 0 / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.5038, allocations: 0 / 1.055 GB, free: 5.969 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.000773/0.5046, allocations: 447 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.5046, allocations: 16.03 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.705e-05/0.5047, allocations: 12.84 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.505, allocations: 205.6 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.505, allocations: 4.375 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.5051, allocations: 20.3 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.5053, allocations: 83.94 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.5053, allocations: 192 / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.5053, allocations: 3.938 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.5053, allocations: 7.938 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.182e-05/0.5054, allocations: 35.98 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.5058, allocations: 242.3 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.5059, allocations: 73.2 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.506, allocations: 57.84 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.506, allocations: 4 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.5063, allocations: 109 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.5063, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004238/0.5068, allocations: 189.4 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.5069, allocations: 85.11 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.507, allocations: 154.8 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.5071, allocations: 41.7 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.5072, allocations: 100.5 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.5073, allocations: 35.55 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.048e-05/0.5073, allocations: 45.7 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5075, allocations: 326.8 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.658e-05/0.5076, allocations: 39.98 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.5078, allocations: 202.2 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.508, allocations: 97.58 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.508, allocations: 0 / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002484/0.5082, allocations: 177.3 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.5083, allocations: 8 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.77e-05/0.5083, allocations: 4 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.5083, allocations: 0 / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.5084, allocations: 8 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.5084, allocations: 4.609 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.5087, allocations: 79.72 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.5087, allocations: 4 kB / 1.058 GB, free: 2.785 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.0001503/0.5089, allocations: 135.4 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.5089, allocations: 15.75 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.509, allocations: 16.72 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.509, allocations: 0 / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.509, allocations: 4 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.509, allocations: 4.094 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.5092, allocations: 193.6 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.5092, allocations: 3.938 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-05/0.5092, allocations: 4 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.5092, allocations: 4 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.5092, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.5092, allocations: 0 / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5093, allocations: 11.92 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002724/0.5095, allocations: 184.4 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.058e-05/0.5096, allocations: 96.83 kB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.5096, allocations: 8 kB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.795e-05/0.5097, allocations: 0 / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.5097, allocations: 7.984 kB / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.5098, allocations: 4 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.502e-05/0.5098, allocations: 116.6 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5099, allocations: 4 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003103/0.5102, allocations: 71.98 kB / 1.059 GB, free: 1.824 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.0002842/0.5105, allocations: 163.1 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.5108, allocations: 159.4 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.5108, allocations: 0 / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.311e-05/0.5108, allocations: 43.92 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.511, allocations: 17.08 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005037/0.5116, allocations: 253.1 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.5119, allocations: 0.7082 MB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.414e-05/0.512, allocations: 8.672 kB / 1.06 GB, free: 416 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.595e-05/0.512, allocations: 19.38 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.512, allocations: 0 / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of Templates: time 0.005961/0.518, allocations: 2.397 MB / 1.062 GB, free: 14.02 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (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 & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches