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.001287/0.001287, allocations: 108 kB / 15.61 MB, free: 152 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.001836/0.001835, allocations: 192.9 kB / 16.53 MB, free: 6.664 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.598/1.598, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.473/3.473, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 62.36 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.482/0.4834, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Validation.OccupancySchedulePositiveStartTime): time 0.003518/0.487, allocations: 1.482 MB / 1.07 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.4883, allocations: 0.6891 MB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.458e-05/0.4884, allocations: 0 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.4885, allocations: 15.86 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.344e-05/0.4887, allocations: 15.84 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.49, allocations: 338.2 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000307/0.4903, allocations: 171.6 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.165e-05/0.4904, allocations: 12 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.4905, allocations: 71.77 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.4906, allocations: 43.83 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.4907, allocations: 12 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.4911, allocations: 251.7 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.4912, allocations: 39.89 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.4914, allocations: 55.73 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005063/0.4919, allocations: 307.6 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4919, allocations: 4 kB / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4919, allocations: 0 / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.4919, allocations: 0 / 1.072 GB, free: 6.938 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.0008908/0.4928, allocations: 478.9 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.4929, allocations: 8.031 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.597e-05/0.493, allocations: 12.84 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.4933, allocations: 217.6 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.4933, allocations: 4.375 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.605e-05/0.4934, allocations: 20.36 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.4936, allocations: 100.7 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4936, allocations: 192 / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.4937, allocations: 3.938 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4937, allocations: 0 / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.4938, allocations: 51.91 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/0.4941, allocations: 247.4 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000177/0.4943, allocations: 103.8 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.4944, allocations: 70.7 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.4945, allocations: 0 / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.4948, allocations: 146.6 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.4948, allocations: 0 / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.0004617/0.4953, allocations: 217.5 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.4954, allocations: 110.8 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.4956, allocations: 143.3 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.4956, allocations: 45.69 kB / 1.074 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.4957, allocations: 92.7 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.692e-05/0.4958, allocations: 59.28 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.252e-05/0.4959, allocations: 65.62 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.496, allocations: 326.8 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.4961, allocations: 52.25 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.4964, allocations: 188.4 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.4966, allocations: 122.6 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4966, allocations: 0 / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000309/0.4969, allocations: 209.1 kB / 1.075 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4969, allocations: 7.938 kB / 1.075 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/0.497, allocations: 12 kB / 1.075 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.497, allocations: 4 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.84e-05/0.4971, allocations: 15.98 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4971, allocations: 4 kB / 1.075 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.4973, allocations: 45.48 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.4974, allocations: 8 kB / 1.075 GB, free: 3.473 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.0001521/0.4975, allocations: 149.9 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.4976, allocations: 19.75 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.4976, allocations: 8.719 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.4976, allocations: 4 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4976, allocations: 0 / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4976, allocations: 0 / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.4978, allocations: 209.5 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4978, allocations: 4 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/0.4979, allocations: 8 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.4979, allocations: 0 / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.4979, allocations: 15.92 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4979, allocations: 4 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4979, allocations: 0 / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.4982, allocations: 213.1 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.188e-05/0.4983, allocations: 88.92 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.4983, allocations: 7.984 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.099e-05/0.4984, allocations: 7.938 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.4985, allocations: 15.98 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.4985, allocations: 8 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.782e-05/0.4986, allocations: 109.8 kB / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4986, allocations: 0 / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004123/0.499, allocations: 103.9 kB / 1.076 GB, free: 2.418 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 (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.0003568/0.4994, allocations: 198.7 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003746/0.4997, allocations: 217.1 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.4998, allocations: 4 kB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.452e-05/0.4999, allocations: 63.86 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.5001, allocations: 7.938 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005504/0.5006, allocations: 262 kB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.501, allocations: 0.7045 MB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.616e-05/0.501, allocations: 12.88 kB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.5011, allocations: 11.44 kB / 1.077 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.5011, allocations: 4 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of Templates: time 0.007748/0.5088, allocations: 3.092 MB / 1.08 GB, free: 13.81 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=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