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 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.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.0009248/0.0009249, allocations: 91.84 kB / 16.02 MB, free: 80 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.001098/0.001098, allocations: 182.6 kB / 16.92 MB, free: 6.652 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.743/2.743, allocations: 443.2 MB / 0.7181 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 8.844 kB / 0.8801 GB, free: 42.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2701, allocations: 155.2 MB / 1.032 GB, free: 4.758 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime): time 0.001677/0.2718, allocations: 1.191 MB / 1.033 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.273, allocations: 0.7247 MB / 1.033 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.273, allocations: 0 / 1.033 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 6.325e-05/0.2731, allocations: 7.922 kB / 1.033 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.31e-05/0.2731, allocations: 15.91 kB / 1.034 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007789/0.2739, allocations: 287.2 kB / 1.034 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.2742, allocations: 163.6 kB / 1.034 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.73e-05/0.2742, allocations: 8 kB / 1.034 GB, free: 2.363 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.137e-05/0.2743, allocations: 59.88 kB / 1.034 GB, free: 2.305 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.619e-05/0.2744, allocations: 47.77 kB / 1.034 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.2744, allocations: 8 kB / 1.034 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003155/0.2747, allocations: 247.7 kB / 1.034 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.222e-05/0.2748, allocations: 31.89 kB / 1.034 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.474e-05/0.2749, allocations: 81.42 kB / 1.034 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.2751, allocations: 207.9 kB / 1.035 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2752, allocations: 7.938 kB / 1.035 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.096e-06/0.2752, allocations: 3.984 kB / 1.035 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.2752, allocations: 0 / 1.035 GB, free: 1.676 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005392/0.2757, allocations: 454.8 kB / 1.035 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2758, allocations: 12.03 kB / 1.035 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.2758, allocations: 12.84 kB / 1.035 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.276, allocations: 214.1 kB / 1.035 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.276, allocations: 8.375 kB / 1.035 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.2761, allocations: 16.36 kB / 1.035 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.2762, allocations: 96.73 kB / 1.035 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.2763, allocations: 192 / 1.035 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.2763, allocations: 3.938 kB / 1.035 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2763, allocations: 4 kB / 1.035 GB, free: 0.7695 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.112e-05/0.2764, allocations: 47.91 kB / 1.035 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002435/0.2766, allocations: 251.4 kB / 1.036 GB, free: 432 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.2768, allocations: 103.8 kB / 1.036 GB, free: 300 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.2769, allocations: 78.7 kB / 1.036 GB, free: 212 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.2769, allocations: 0 / 1.036 GB, free: 212 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.2771, allocations: 141.6 kB / 1.036 GB, free: 48 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.2771, allocations: 0 / 1.036 GB, free: 48 kB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.0003911/0.2775, allocations: 217.5 kB / 1.036 GB, free: 15.83 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.2776, allocations: 118.8 kB / 1.036 GB, free: 15.69 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.2777, allocations: 142.4 kB / 1.036 GB, free: 15.54 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.2778, allocations: 37.69 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.829e-05/0.2778, allocations: 100.6 kB / 1.037 GB, free: 15.39 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/0.2779, allocations: 55.34 kB / 1.037 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.2779, allocations: 29.7 kB / 1.037 GB, free: 15.3 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.278, allocations: 330.8 kB / 1.037 GB, free: 14.97 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.643e-05/0.2781, allocations: 48.27 kB / 1.037 GB, free: 14.92 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2783, allocations: 180.5 kB / 1.037 GB, free: 14.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.2785, allocations: 126.5 kB / 1.037 GB, free: 14.57 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2785, allocations: 4 kB / 1.037 GB, free: 14.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002848/0.2788, allocations: 209.2 kB / 1.038 GB, free: 14.36 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2788, allocations: 8 kB / 1.038 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.2789, allocations: 4 kB / 1.038 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2789, allocations: 3.984 kB / 1.038 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.108e-05/0.279, allocations: 12 kB / 1.038 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.279, allocations: 3.938 kB / 1.038 GB, free: 14.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.2792, allocations: 63.73 kB / 1.038 GB, free: 14.26 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.2793, allocations: 12 kB / 1.038 GB, free: 14.25 MB / 0.795 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.0001208/0.2794, allocations: 145.7 kB / 1.038 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.2794, allocations: 15.75 kB / 1.038 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.2794, allocations: 16.72 kB / 1.038 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2795, allocations: 0 / 1.038 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2795, allocations: 0 / 1.038 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.2795, allocations: 11.98 kB / 1.038 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.2796, allocations: 205.5 kB / 1.038 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2797, allocations: 0 / 1.038 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.2797, allocations: 15.92 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2797, allocations: 0 / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2797, allocations: 8 kB / 1.038 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2797, allocations: 0 / 1.038 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2797, allocations: 4 kB / 1.038 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.28, allocations: 214.5 kB / 1.038 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.2801, allocations: 88.95 kB / 1.038 GB, free: 13.44 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.2801, allocations: 7.938 kB / 1.038 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.813e-05/0.2802, allocations: 11.94 kB / 1.038 GB, free: 13.42 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.2802, allocations: 7.984 kB / 1.038 GB, free: 13.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.2802, allocations: 4 kB / 1.038 GB, free: 13.41 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.351e-05/0.2803, allocations: 113.5 kB / 1.038 GB, free: 13.3 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2803, allocations: 4 kB / 1.038 GB, free: 13.29 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003257/0.2806, allocations: 104 kB / 1.039 GB, free: 13.19 MB / 0.795 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.0002765/0.2809, allocations: 195.1 kB / 1.039 GB, free: 12.99 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002912/0.2812, allocations: 218.2 kB / 1.039 GB, free: 12.76 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2812, allocations: 3.938 kB / 1.039 GB, free: 12.76 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.902e-05/0.2813, allocations: 47.98 kB / 1.039 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.2815, allocations: 11.98 kB / 1.039 GB, free: 12.7 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004262/0.2819, allocations: 309.5 kB / 1.039 GB, free: 12.36 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.2822, allocations: 0.7126 MB / 1.04 GB, free: 11.62 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.767e-05/0.2822, allocations: 15.44 kB / 1.04 GB, free: 11.61 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.2822, allocations: 0 / 1.04 GB, free: 11.61 MB / 0.795 GB Notification: Performance of Templates: time 0.004625/0.2869, allocations: 3.089 MB / 1.043 GB, free: 8.535 MB / 0.795 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Validation.OccupancyScheduleNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occSchDay.occupied,occSchDay1.occupied,occSchDay2.occupied,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchDay1.tNexNonOcc,occSchDay1.tNexOcc,occSchDay2.tNexNonOcc,occSchDay2.tNexOcc Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchDay1.occupied,occSchDay1.tNexNonOcc,occSchDay1.tNexOcc,occSchDay2.occupied,occSchDay2.tNexNonOcc,occSchDay2.tNexOcc,time