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 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.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.0008596/0.0008596, allocations: 84.22 kB / 15.06 MB, free: 1.09 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.001032/0.001032, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.075/3.075, allocations: 462.6 MB / 0.736 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004591/0.0004591, allocations: 10.27 kB / 0.9021 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3892, allocations: 159.6 MB / 1.058 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime): time 0.002319/0.3916, allocations: 1.178 MB / 1.059 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001419/0.3931, allocations: 0.6391 MB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.351e-05/0.3931, allocations: 3.938 kB / 1.06 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.3933, allocations: 11.92 kB / 1.06 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.799e-05/0.3934, allocations: 19.84 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3944, allocations: 274.2 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00052/0.395, allocations: 139.7 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.3951, allocations: 4 kB / 1.06 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.957e-05/0.3952, allocations: 67.83 kB / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.3953, allocations: 59.75 kB / 1.06 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.3953, allocations: 4 kB / 1.06 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003797/0.3957, allocations: 227.8 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.061e-05/0.3958, allocations: 31.91 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.3959, allocations: 45.62 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004627/0.3964, allocations: 211.9 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3964, allocations: 4 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3964, allocations: 0 / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3964, allocations: 0 / 1.061 GB, free: 2.41 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007825/0.3972, allocations: 462.6 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3973, allocations: 8.031 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.4e-05/0.3973, allocations: 11.91 kB / 1.061 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.3976, allocations: 202.9 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.3977, allocations: 7.953 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3977, allocations: 15.94 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.398, allocations: 97.64 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.398, allocations: 0 / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.398, allocations: 4 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.398, allocations: 0 / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.3981, allocations: 47.91 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000366/0.3985, allocations: 247.4 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.3987, allocations: 107.9 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.3988, allocations: 74.62 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.3989, allocations: 0 / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.3992, allocations: 139.5 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.3992, allocations: 0 / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.0005239/0.3997, allocations: 221.3 kB / 1.062 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/0.3998, allocations: 114.8 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4, allocations: 147.8 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.4001, allocations: 37.7 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.051e-05/0.4001, allocations: 96.7 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.945e-05/0.4002, allocations: 59.28 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.4002, allocations: 4 kB / 1.063 GB, free: 84 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0003252/0.4006, allocations: 322.8 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.289e-05/0.4007, allocations: 48.27 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.4009, allocations: 184.5 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.4011, allocations: 75.91 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4011, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003166/0.4014, allocations: 205.3 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4014, allocations: 4 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.4015, allocations: 8 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.4015, allocations: 4 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.4016, allocations: 11.94 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.4016, allocations: 4 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.4019, allocations: 59.69 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.4019, allocations: 12 kB / 1.064 GB, free: 15.1 MB / 0.8262 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 ($whenCondition3,$PRE.occSchDay2.occupied,occSchDay2.occupied,$PRE.occSchDay2.tOcc,occSchDay2.tOcc,$PRE.occSchDay2.tNonOcc,occSchDay2.tNonOcc,$PRE.occSchDay2.tNext,occSchDay2.tNext,$whenCondition2,$PRE.occSchDay1.occupied,occSchDay1.occupied,$PRE.occSchDay1.tOcc,occSchDay1.tOcc,$PRE.occSchDay1.tNonOcc,occSchDay1.tNonOcc,$PRE.occSchDay1.tNext,occSchDay1.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.4021, allocations: 136.2 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.4021, allocations: 15.86 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.4021, allocations: 16.7 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4022, allocations: 4 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.4022, allocations: 3.938 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4022, allocations: 0 / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.4024, allocations: 209.4 kB / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4024, allocations: 4 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.4025, allocations: 8 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4025, allocations: 4 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.4025, allocations: 11.95 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4025, allocations: 0 / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4025, allocations: 0 / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.4028, allocations: 215.3 kB / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.4029, allocations: 88.92 kB / 1.064 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.4029, allocations: 4 kB / 1.064 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.792e-05/0.403, allocations: 15.94 kB / 1.064 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.4031, allocations: 11.98 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.4031, allocations: 4 kB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.965e-05/0.4031, allocations: 101 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4031, allocations: 0 / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003624/0.4035, allocations: 103.9 kB / 1.065 GB, free: 14.07 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003248/0.4038, allocations: 207.1 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003332/0.4042, allocations: 217.2 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4042, allocations: 0 / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.611e-05/0.4043, allocations: 59.91 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.4045, allocations: 8 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005726/0.4051, allocations: 265.3 kB / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.4056, allocations: 0.7048 MB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.987e-05/0.4056, allocations: 17.14 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.644e-05/0.4057, allocations: 27.38 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.4057, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.006671/0.4124, allocations: 2.862 MB / 1.069 GB, free: 9.668 MB / 0.8262 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches