Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Validation.OccupancySchedulePositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.occupied|occSchDay1.occupied|occSchDay2.occupied|occSchDay.tNexNonOcc|occSchDay.tNexOcc|occSchDay1.tNexNonOcc|occSchDay1.tNexOcc|occSchDay2.tNexNonOcc|occSchDay2.tNexOcc",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime") translateModel(Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.occupied|occSchDay1.occupied|occSchDay2.occupied|occSchDay.tNexNonOcc|occSchDay.tNexOcc|occSchDay1.tNexNonOcc|occSchDay1.tNexOcc|occSchDay2.tNexNonOcc|occSchDay2.tNexOcc",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 108.2 kB / 15.99 MB, free: 5.891 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.002007/0.002007, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.594/1.594, allocations: 222.9 MB / 240.6 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.252/3.252, allocations: 482.4 MB / 0.755 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 67.92 kB / 0.924 GB, free: 29.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3977, allocations: 162.2 MB / 1.082 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime): time 0.003422/0.4012, allocations: 1.558 MB / 1.084 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.4026, allocations: 0.6891 MB / 1.085 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.65e-05/0.4027, allocations: 0 / 1.085 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.341e-05/0.4028, allocations: 7.922 kB / 1.085 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.417e-05/0.4029, allocations: 11.92 kB / 1.085 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.404, allocations: 314.1 kB / 1.085 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.4043, allocations: 167.7 kB / 1.085 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.043e-05/0.4043, allocations: 8 kB / 1.085 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.4045, allocations: 75.75 kB / 1.085 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.4046, allocations: 51.81 kB / 1.085 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.4046, allocations: 12 kB / 1.085 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000438/0.405, allocations: 247.8 kB / 1.085 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-05/0.4051, allocations: 39.89 kB / 1.085 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.4053, allocations: 67.69 kB / 1.086 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.4056, allocations: 215.8 kB / 1.086 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.4056, allocations: 0 / 1.086 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.174e-06/0.4057, allocations: 0 / 1.086 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.4057, allocations: 4 kB / 1.086 GB, free: 10.17 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008775/0.4066, allocations: 471 kB / 1.086 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4066, allocations: 8.031 kB / 1.086 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.254e-05/0.4067, allocations: 20.77 kB / 1.086 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.407, allocations: 209.3 kB / 1.086 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.4071, allocations: 8.375 kB / 1.086 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.4071, allocations: 8.375 kB / 1.086 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.4073, allocations: 104.7 kB / 1.087 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4073, allocations: 192 / 1.087 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.4074, allocations: 11.94 kB / 1.087 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.4074, allocations: 4 kB / 1.087 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.4075, allocations: 43.91 kB / 1.087 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.4079, allocations: 247.3 kB / 1.087 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.408, allocations: 111.8 kB / 1.087 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.4082, allocations: 70.7 kB / 1.087 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.4082, allocations: 4 kB / 1.087 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003334/0.4085, allocations: 137.8 kB / 1.087 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.4085, allocations: 4 kB / 1.087 GB, free: 8.523 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.000486/0.409, allocations: 209.5 kB / 1.087 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.4092, allocations: 118.8 kB / 1.087 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.4093, allocations: 139.3 kB / 1.088 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.943e-05/0.4094, allocations: 37.7 kB / 1.088 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.4095, allocations: 96.69 kB / 1.088 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.816e-05/0.4096, allocations: 51.3 kB / 1.088 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.4097, allocations: 69.62 kB / 1.088 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002655/0.41, allocations: 326.8 kB / 1.088 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.4101, allocations: 52.25 kB / 1.088 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.4104, allocations: 184.4 kB / 1.088 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.4106, allocations: 130.5 kB / 1.089 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4107, allocations: 4 kB / 1.089 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003807/0.411, allocations: 205.2 kB / 1.089 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.4111, allocations: 5.406 kB / 1.089 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/0.4111, allocations: 4 kB / 1.089 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.4111, allocations: 144 / 1.089 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.4112, allocations: 15.98 kB / 1.089 GB, free: 6.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.4113, allocations: 0 / 1.089 GB, free: 6.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.4115, allocations: 51.8 kB / 1.089 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.4115, allocations: 11.98 kB / 1.089 GB, free: 6.723 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 27 (occSchDay2.tNext,$PRE.occSchDay2.tNext,occSchDay2.tNonOcc,$PRE.occSchDay2.tNonOcc,occSchDay2.tOcc,$PRE.occSchDay2.tOcc,occSchDay2.occupied,$PRE.occSchDay2.occupied,$whenCondition3,occSchDay1.tNext,$PRE.occSchDay1.tNext,occSchDay1.tNonOcc,$PRE.occSchDay1.tNonOcc,occSchDay1.tOcc,$PRE.occSchDay1.tOcc,occSchDay1.occupied,$PRE.occSchDay1.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 (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0001574/0.4117, allocations: 136 kB / 1.089 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.4117, allocations: 19.73 kB / 1.089 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.952e-05/0.4118, allocations: 16.72 kB / 1.089 GB, free: 6.543 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4118, allocations: 0 / 1.089 GB, free: 6.543 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.4118, allocations: 8 kB / 1.089 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.4118, allocations: 4 kB / 1.089 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.4121, allocations: 213.4 kB / 1.089 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4121, allocations: 0 / 1.089 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.761e-05/0.4121, allocations: 11.94 kB / 1.089 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4122, allocations: 4 kB / 1.089 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.4122, allocations: 3.984 kB / 1.089 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4122, allocations: 7.938 kB / 1.089 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4122, allocations: 0 / 1.089 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.4125, allocations: 212.8 kB / 1.089 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.229e-05/0.4126, allocations: 92.92 kB / 1.089 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.4127, allocations: 3.984 kB / 1.09 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.586e-05/0.4127, allocations: 7.938 kB / 1.09 GB, free: 5.895 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.4128, allocations: 15.92 kB / 1.09 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.4128, allocations: 4 kB / 1.09 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.444e-05/0.4129, allocations: 105 kB / 1.09 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4129, allocations: 0 / 1.09 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004339/0.4134, allocations: 111.9 kB / 1.09 GB, free: 5.664 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,occSchDay2.occupied,occSchDay2.tOcc,occSchDay2.tNonOcc,occSchDay2.tNext,$whenCondition2,occSchDay1.occupied,occSchDay1.tOcc,occSchDay1.tNonOcc,occSchDay1.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 3 (occSchDay.tNext,occSchDay1.tNext,occSchDay2.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003726/0.4137, allocations: 195.1 kB / 1.09 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005042/0.4143, allocations: 225.2 kB / 1.09 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4143, allocations: 0 / 1.09 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4144, allocations: 51.98 kB / 1.09 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.4146, allocations: 11.94 kB / 1.09 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006232/0.4152, allocations: 319 kB / 1.091 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.4157, allocations: 0.7122 MB / 1.091 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.4157, allocations: 15.44 kB / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4157, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of Templates: time 0.006498/0.4222, allocations: 3.108 MB / 1.094 GB, free: 0.9727 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Validation_OccupancySchedulePositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches