Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.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.OccupancyScheduleNegativeStartTime,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.OccupancyScheduleNegativeStartTime") translateModel(Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime,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.OccupancyScheduleNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01159/0.01159, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.559/1.559, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.489/3.489, allocations: 473.4 MB / 0.7469 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0007145/0.0007146, allocations: 20.5 kB / 0.9158 GB, free: 33.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5234/0.5241, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime): time 0.002113/0.5263, allocations: 1.2 MB / 1.075 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.5279, allocations: 0.7166 MB / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.383e-05/0.528, allocations: 0 / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.161e-05/0.5281, allocations: 3.938 kB / 1.076 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.576e-05/0.5282, allocations: 15.91 kB / 1.076 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.5294, allocations: 290 kB / 1.076 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002983/0.5298, allocations: 163.6 kB / 1.076 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.005e-05/0.5298, allocations: 4 kB / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.53, allocations: 71.75 kB / 1.077 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.5301, allocations: 47.83 kB / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.5302, allocations: 4 kB / 1.077 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.5306, allocations: 235.8 kB / 1.077 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.962e-05/0.5307, allocations: 39.89 kB / 1.077 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.5309, allocations: 81.42 kB / 1.077 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006395/0.5315, allocations: 291.5 kB / 1.077 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.5315, allocations: 4 kB / 1.077 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.106e-06/0.5316, allocations: 7.938 kB / 1.077 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.5316, allocations: 0 / 1.077 GB, free: 4.355 MB / 0.8262 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.0007957/0.5324, allocations: 450.9 kB / 1.078 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.5324, allocations: 12.03 kB / 1.078 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.5325, allocations: 12.78 kB / 1.078 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.5328, allocations: 213.5 kB / 1.078 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.5328, allocations: 8.375 kB / 1.078 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.5329, allocations: 12.38 kB / 1.078 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.5331, allocations: 92.73 kB / 1.078 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.5331, allocations: 4.172 kB / 1.078 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.5331, allocations: 11.94 kB / 1.078 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.5332, allocations: 4 kB / 1.078 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.5333, allocations: 43.91 kB / 1.078 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003434/0.5336, allocations: 251.3 kB / 1.078 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.5338, allocations: 107.8 kB / 1.078 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.5339, allocations: 78.64 kB / 1.078 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.534, allocations: 0 / 1.078 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.5342, allocations: 134.4 kB / 1.079 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.5343, allocations: 4 kB / 1.079 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.0004616/0.5347, allocations: 218.1 kB / 1.079 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.5348, allocations: 118.8 kB / 1.079 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.535, allocations: 135.5 kB / 1.079 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.535, allocations: 41.69 kB / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.083e-05/0.5351, allocations: 96.7 kB / 1.079 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.5352, allocations: 59.28 kB / 1.079 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.709e-05/0.5353, allocations: 29.7 kB / 1.079 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5354, allocations: 330.8 kB / 1.08 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.5355, allocations: 48.27 kB / 1.08 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.5358, allocations: 191.2 kB / 1.08 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.536, allocations: 130.5 kB / 1.08 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.536, allocations: 0 / 1.08 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003277/0.5363, allocations: 205.2 kB / 1.08 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5363, allocations: 11.94 kB / 1.08 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.5364, allocations: 4 kB / 1.08 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.5364, allocations: 0 / 1.08 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/0.5365, allocations: 15.98 kB / 1.08 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.5365, allocations: 0 / 1.08 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.5368, allocations: 63.7 kB / 1.08 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.5368, allocations: 11.94 kB / 1.08 GB, free: 0.9336 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 (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.0001565/0.537, allocations: 144.1 kB / 1.08 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.537, allocations: 11.84 kB / 1.08 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.537, allocations: 16.72 kB / 1.08 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.5371, allocations: 4 kB / 1.08 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5371, allocations: 0 / 1.08 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.5371, allocations: 7.984 kB / 1.08 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/0.5373, allocations: 209.4 kB / 1.081 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.5373, allocations: 0 / 1.081 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.438e-05/0.5374, allocations: 15.92 kB / 1.081 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/0.5374, allocations: 0 / 1.081 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.5374, allocations: 4 kB / 1.081 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5374, allocations: 0 / 1.081 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5374, allocations: 4 kB / 1.081 GB, free: 476 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003198/0.5377, allocations: 219.7 kB / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.5378, allocations: 88.92 kB / 1.081 GB, free: 124 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.5378, allocations: 4 kB / 1.081 GB, free: 120 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.896e-05/0.5379, allocations: 7.938 kB / 1.081 GB, free: 112 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.538, allocations: 15.92 kB / 1.081 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.538, allocations: 4 kB / 1.081 GB, free: 92 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001043/0.5381, allocations: 113.1 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5381, allocations: 0 / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004128/0.5385, allocations: 107.9 kB / 1.081 GB, free: 15.88 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.0003437/0.5389, allocations: 191.1 kB / 1.081 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003571/0.5392, allocations: 217 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5392, allocations: 4 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.253e-05/0.5393, allocations: 55.92 kB / 1.082 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.5395, allocations: 14.81 kB / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.5401, allocations: 283.8 kB / 1.082 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.5404, allocations: 0.7087 MB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.21e-05/0.5405, allocations: 8.891 kB / 1.083 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.5405, allocations: 15.42 kB / 1.083 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.5405, allocations: 0 / 1.083 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of Templates: time 0.007002/0.5475, allocations: 2.925 MB / 1.085 GB, free: 11.41 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Validation_OccupancyScheduleNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches