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.009587/0.009586, allocations: 97.47 kB / 15.73 MB, free: 6.008 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.00195/0.00195, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.524/1.524, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.98/2.98, allocations: 472.6 MB / 0.7453 GB, free: 492 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 63.91 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225/1.226, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime): time 0.003963/1.23, allocations: 1.479 MB / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001519/1.232, allocations: 0.7006 MB / 1.228 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/1.232, allocations: 0 / 1.228 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/1.232, allocations: 11.86 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001127/1.232, allocations: 11.88 kB / 1.228 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001525/1.234, allocations: 346.5 kB / 1.228 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003327/1.234, allocations: 179.6 kB / 1.228 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.604e-05/1.234, allocations: 15.97 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/1.234, allocations: 71.83 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/1.234, allocations: 43.83 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/1.234, allocations: 12 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005281/1.235, allocations: 255.7 kB / 1.229 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/1.235, allocations: 31.91 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/1.235, allocations: 67.7 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007247/1.236, allocations: 303.6 kB / 1.229 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/1.236, allocations: 4 kB / 1.229 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.575e-06/1.236, allocations: 0 / 1.229 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.428e-06/1.236, allocations: 0 / 1.229 GB, free: 10.03 MB / 0.9512 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.0009636/1.237, allocations: 478.4 kB / 1.229 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/1.237, allocations: 12.03 kB / 1.229 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/1.237, allocations: 8.891 kB / 1.229 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/1.238, allocations: 213.9 kB / 1.23 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/1.238, allocations: 12.31 kB / 1.23 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/1.238, allocations: 16.38 kB / 1.23 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/1.238, allocations: 96.64 kB / 1.23 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/1.238, allocations: 192 / 1.23 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/1.238, allocations: 11.94 kB / 1.23 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.238, allocations: 0 / 1.23 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/1.238, allocations: 43.91 kB / 1.23 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/1.239, allocations: 255.3 kB / 1.23 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/1.239, allocations: 107.8 kB / 1.23 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/1.239, allocations: 74.7 kB / 1.23 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/1.239, allocations: 0 / 1.23 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/1.239, allocations: 141.8 kB / 1.23 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=21): time 2.415e-06/1.239, allocations: 0 / 1.23 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21): time 0.0005094/1.24, allocations: 210.2 kB / 1.231 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.24, allocations: 122.7 kB / 1.231 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/1.24, allocations: 139.5 kB / 1.231 GB, free: 7.871 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/1.24, allocations: 53.56 kB / 1.231 GB, free: 7.812 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.72e-05/1.24, allocations: 96.7 kB / 1.231 GB, free: 7.715 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.921e-05/1.241, allocations: 64.7 kB / 1.231 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/1.241, allocations: 57.69 kB / 1.231 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001784/1.241, allocations: 330.8 kB / 1.231 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/1.241, allocations: 48.27 kB / 1.231 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/1.241, allocations: 187.2 kB / 1.232 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/1.241, allocations: 134.5 kB / 1.232 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.241, allocations: 0 / 1.232 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003531/1.242, allocations: 201.4 kB / 1.232 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/1.242, allocations: 8 kB / 1.232 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/1.242, allocations: 4 kB / 1.232 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/1.242, allocations: 4 kB / 1.232 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/1.242, allocations: 15.92 kB / 1.232 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/1.242, allocations: 4 kB / 1.232 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/1.242, allocations: 43.84 kB / 1.232 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/1.242, allocations: 12.23 kB / 1.232 GB, free: 6.551 MB / 0.9512 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.0001731/1.243, allocations: 136.6 kB / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/1.243, allocations: 15.84 kB / 1.232 GB, free: 6.395 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.957e-05/1.243, allocations: 16.72 kB / 1.232 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/1.243, allocations: 4 kB / 1.232 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/1.243, allocations: 0 / 1.232 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.243, allocations: 3.938 kB / 1.232 GB, free: 6.367 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/1.243, allocations: 209.5 kB / 1.232 GB, free: 6.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.243, allocations: 0 / 1.232 GB, free: 6.113 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.151e-05/1.243, allocations: 15.98 kB / 1.232 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/1.243, allocations: 0 / 1.232 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/1.243, allocations: 4 kB / 1.232 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/1.243, allocations: 4 kB / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.243, allocations: 0 / 1.232 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003492/1.243, allocations: 218.6 kB / 1.233 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/1.244, allocations: 96.94 kB / 1.233 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/1.244, allocations: 0 / 1.233 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.589e-05/1.244, allocations: 7.938 kB / 1.233 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/1.244, allocations: 15.98 kB / 1.233 GB, free: 5.715 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/1.244, allocations: 4 kB / 1.233 GB, free: 5.711 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001041/1.244, allocations: 109.4 kB / 1.233 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.3e-07/1.244, allocations: 0 / 1.233 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006999/1.245, allocations: 103.8 kB / 1.233 GB, free: 5.504 MB / 0.9512 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.0006297/1.245, allocations: 199.1 kB / 1.233 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005695/1.246, allocations: 232.8 kB / 1.233 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.246, allocations: 4 kB / 1.233 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/1.246, allocations: 55.86 kB / 1.233 GB, free: 4.996 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/1.246, allocations: 8 kB / 1.233 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009063/1.247, allocations: 248.5 kB / 1.234 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/1.248, allocations: 0.7123 MB / 1.234 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001008/1.248, allocations: 12.88 kB / 1.234 GB, free: 3.957 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.9e-05/1.248, allocations: 15.44 kB / 1.234 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of SimCode: time 3.21e-07/1.248, allocations: 0 / 1.234 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of Templates: time 0.01152/1.26, allocations: 3.108 MB / 1.237 GB, free: 0.875 MB / 0.9512 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