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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.009207/0.009207, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002123/0.002123, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.522/1.522, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.014/3.014, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 66.77 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3932, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003409/0.3967, allocations: 1.474 MB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3979, allocations: 0.514 MB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.111e-05/0.398, allocations: 0 / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.3981, allocations: 7.938 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.768e-05/0.3982, allocations: 11.86 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008854/0.3991, allocations: 202.6 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.3994, allocations: 135.8 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.546e-05/0.3994, allocations: 7.969 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.3995, allocations: 55.84 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.419e-05/0.3996, allocations: 35.84 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.3997, allocations: 8 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003453/0.4, allocations: 167.8 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.25e-05/0.4001, allocations: 31.91 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.277e-05/0.4002, allocations: 47.73 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.4006, allocations: 168 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4006, allocations: 0 / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4006, allocations: 4 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.4006, allocations: 0 / 1.056 GB, free: 5.414 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.0007193/0.4013, allocations: 447 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.4014, allocations: 19.91 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.494e-05/0.4015, allocations: 12.84 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.4017, allocations: 204.1 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.4018, allocations: 8.375 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.4018, allocations: 12.38 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.402, allocations: 79.94 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.402, allocations: 192 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.402, allocations: 7.938 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.4021, allocations: 0 / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.583e-05/0.4021, allocations: 43.92 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.4024, allocations: 234.4 kB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.4026, allocations: 77.2 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.744e-05/0.4027, allocations: 57.78 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.4027, allocations: 4 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/0.403, allocations: 109.1 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.914e-06/0.403, allocations: 0 / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004183/0.4034, allocations: 189.4 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.065e-05/0.4035, allocations: 85.11 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.4038, allocations: 159.1 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.4038, allocations: 41.64 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.525e-05/0.4039, allocations: 100.5 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.404, allocations: 39.53 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/0.4041, allocations: 49.7 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4042, allocations: 326.8 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-05/0.4043, allocations: 43.98 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.4045, allocations: 193.2 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.4047, allocations: 97.64 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4047, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000257/0.4049, allocations: 165.3 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.405, allocations: 8 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.405, allocations: 4 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.405, allocations: 0 / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.025e-05/0.4051, allocations: 11.94 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.4051, allocations: 0 / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.4054, allocations: 79.83 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.4055, allocations: 4 kB / 1.058 GB, free: 2.238 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.0001343/0.4056, allocations: 129.9 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.4056, allocations: 19.73 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.224e-05/0.4057, allocations: 12.72 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.4057, allocations: 0 / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4057, allocations: 8 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.4057, allocations: 0 / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.4059, allocations: 197.5 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.4059, allocations: 3.938 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.853e-05/0.4059, allocations: 11.94 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.4059, allocations: 3.938 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.4059, allocations: 0 / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.406, allocations: 4.625 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.406, allocations: 0 / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002467/0.4062, allocations: 181.8 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.854e-05/0.4063, allocations: 92.89 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.4063, allocations: 8 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.951e-05/0.4064, allocations: 0 / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.795e-05/0.4064, allocations: 11.92 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.4064, allocations: 4 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.873e-05/0.4065, allocations: 117.1 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4065, allocations: 0 / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003397/0.4069, allocations: 75.98 kB / 1.059 GB, free: 1.277 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.0002797/0.4072, allocations: 152 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002789/0.4074, allocations: 167.4 kB / 1.059 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4075, allocations: 0 / 1.059 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.617e-05/0.4075, allocations: 47.97 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.4077, allocations: 18.06 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000504/0.4083, allocations: 290.8 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.4086, allocations: 0.7043 MB / 1.06 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.17e-05/0.4086, allocations: 19.44 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of SimCode: time 7.12e-07/0.4086, allocations: 0 / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of Templates: time 0.006648/0.4153, allocations: 2.42 MB / 1.063 GB, free: 13.41 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time