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.0009715/0.0009714, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.478/1.478, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.72/2.72, allocations: 443.2 MB / 0.7181 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003228, allocations: 12.06 kB / 0.8801 GB, free: 41.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3, allocations: 155.1 MB / 1.032 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001573/0.3016, allocations: 1.136 MB / 1.033 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009066/0.3026, allocations: 0.5066 MB / 1.033 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.738e-05/0.3026, allocations: 0 / 1.033 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 6.273e-05/0.3027, allocations: 4 kB / 1.033 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.972e-05/0.3028, allocations: 11.92 kB / 1.033 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.3033, allocations: 200.8 kB / 1.033 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.3035, allocations: 143.7 kB / 1.034 GB, free: 2.578 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.725e-05/0.3036, allocations: 8 kB / 1.034 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.991e-05/0.3036, allocations: 43.91 kB / 1.034 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.826e-05/0.3037, allocations: 35.84 kB / 1.034 GB, free: 2.492 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.3037, allocations: 8 kB / 1.034 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.304, allocations: 171.8 kB / 1.034 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.643e-05/0.304, allocations: 27.91 kB / 1.034 GB, free: 2.289 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.403e-05/0.3041, allocations: 73.5 kB / 1.034 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.3043, allocations: 167.9 kB / 1.034 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3043, allocations: 0 / 1.034 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.542e-06/0.3043, allocations: 4 kB / 1.034 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.3044, allocations: 0 / 1.034 GB, free: 2.043 MB / 0.7794 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.0004939/0.3049, allocations: 415.1 kB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3049, allocations: 12.03 kB / 1.034 GB, free: 1.574 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.3049, allocations: 20.83 kB / 1.035 GB, free: 1.555 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.3051, allocations: 209.8 kB / 1.035 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.3052, allocations: 8.375 kB / 1.035 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.3052, allocations: 8.375 kB / 1.035 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.3053, allocations: 83.89 kB / 1.035 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3054, allocations: 192 / 1.035 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.3054, allocations: 3.938 kB / 1.035 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.3054, allocations: 7.984 kB / 1.035 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.768e-05/0.3055, allocations: 31.98 kB / 1.035 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002127/0.3057, allocations: 238.5 kB / 1.035 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3058, allocations: 85.11 kB / 1.035 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.016e-05/0.3059, allocations: 57.75 kB / 1.035 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.3059, allocations: 4 kB / 1.035 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.3061, allocations: 117 kB / 1.035 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.3061, allocations: 0 / 1.035 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003205/0.3064, allocations: 197.8 kB / 1.036 GB, free: 384 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.3065, allocations: 81.11 kB / 1.036 GB, free: 284 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3066, allocations: 151.2 kB / 1.036 GB, free: 124 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3066, allocations: 37.7 kB / 1.036 GB, free: 80 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.3067, allocations: 104.5 kB / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.3067, allocations: 39.55 kB / 1.036 GB, free: 15.93 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.3068, allocations: 21.7 kB / 1.036 GB, free: 15.9 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3069, allocations: 322.8 kB / 1.036 GB, free: 15.58 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.205e-05/0.307, allocations: 39.98 kB / 1.036 GB, free: 15.54 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3072, allocations: 203.3 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.3073, allocations: 93.64 kB / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3073, allocations: 0 / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002148/0.3075, allocations: 173.2 kB / 1.037 GB, free: 15.01 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.3075, allocations: 4 kB / 1.037 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.3076, allocations: 8 kB / 1.037 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.3076, allocations: 0 / 1.037 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.964e-05/0.3076, allocations: 11.98 kB / 1.037 GB, free: 14.99 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3077, allocations: 0 / 1.037 GB, free: 14.99 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.3079, allocations: 91.75 kB / 1.037 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.308, allocations: 8 kB / 1.037 GB, free: 14.89 MB / 0.795 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.0001042/0.3081, allocations: 137.7 kB / 1.037 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.3081, allocations: 15.84 kB / 1.037 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.3081, allocations: 12.72 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3081, allocations: 0 / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3082, allocations: 4 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3082, allocations: 0 / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.3083, allocations: 189.6 kB / 1.037 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3083, allocations: 3.938 kB / 1.037 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.196e-05/0.3083, allocations: 8 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3083, allocations: 0 / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.567e-06/0.3084, allocations: 4 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.3084, allocations: 7.984 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3084, allocations: 4 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.3086, allocations: 185.7 kB / 1.037 GB, free: 14.25 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.3086, allocations: 92.89 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.3087, allocations: 8 kB / 1.037 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.273e-05/0.3087, allocations: 4 kB / 1.037 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.3088, allocations: 11.92 kB / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.3088, allocations: 11.94 kB / 1.038 GB, free: 14.1 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.749e-05/0.3089, allocations: 112.5 kB / 1.038 GB, free: 13.99 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3089, allocations: 0 / 1.038 GB, free: 13.99 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002827/0.3092, allocations: 67.98 kB / 1.038 GB, free: 13.93 MB / 0.795 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.0002456/0.3094, allocations: 163.3 kB / 1.038 GB, free: 13.76 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002541/0.3097, allocations: 163.3 kB / 1.038 GB, free: 13.59 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3097, allocations: 4 kB / 1.038 GB, free: 13.58 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.962e-05/0.3098, allocations: 47.92 kB / 1.038 GB, free: 13.54 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001607/0.3099, allocations: 15.88 kB / 1.038 GB, free: 13.52 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004383/0.3104, allocations: 280.3 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.3106, allocations: 0.7004 MB / 1.039 GB, free: 12.48 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.161e-05/0.3106, allocations: 19.44 kB / 1.039 GB, free: 12.46 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3106, allocations: 0 / 1.039 GB, free: 12.46 MB / 0.795 GB Notification: Performance of Templates: time 0.003777/0.3144, allocations: 2.407 MB / 1.041 GB, free: 10.08 MB / 0.795 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