Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 183.9 kB / 498.1 MB, free: 5.73 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 0.7948 GB, free: 17.87 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009544/0.0009544, allocations: 92.27 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003328, allocations: 14.28 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2903, allocations: 142.4 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1839/0.4742, allocations: 152.2 MB / 1.372 GB, free: 9.762 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4745, allocations: 71.95 kB / 1.372 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01617/0.4907, allocations: 5.358 MB / 1.377 GB, free: 4.328 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.093e-06/0.4907, allocations: 0 / 1.377 GB, free: 4.328 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.4908, allocations: 4 kB / 1.377 GB, free: 4.324 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009238/0.4917, allocations: 0.6894 MB / 1.378 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.4917, allocations: 8.031 kB / 1.378 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.4919, allocations: 43.56 kB / 1.378 GB, free: 3.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.4923, allocations: 267.2 kB / 1.378 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.4924, allocations: 16 kB / 1.378 GB, free: 3.184 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.4924, allocations: 19.98 kB / 1.378 GB, free: 3.164 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009683/0.4934, allocations: 233.4 kB / 1.378 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.4934, allocations: 3.984 kB / 1.378 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.4935, allocations: 4 kB / 1.378 GB, free: 2.922 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.4935, allocations: 4 kB / 1.378 GB, free: 2.918 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007402/0.4942, allocations: 123.9 kB / 1.378 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.4955, allocations: 0.598 MB / 1.379 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.4965, allocations: 198.4 kB / 1.379 GB, free: 1.945 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.4965, allocations: 7.984 kB / 1.379 GB, free: 1.938 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009038/0.4974, allocations: 233.7 kB / 1.379 GB, free: 1.699 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=16): time 1.813e-06/0.4974, allocations: 0 / 1.379 GB, free: 1.699 MB / 0.8698 GB Notification: Performance of matching and sorting (n=16): time 0.002348/0.4998, allocations: 485 kB / 1.38 GB, free: 1.219 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.4999, allocations: 59.41 kB / 1.38 GB, free: 1.148 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.5002, allocations: 291.5 kB / 1.38 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.5002, allocations: 37.7 kB / 1.38 GB, free: 0.8164 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.5003, allocations: 97.03 kB / 1.38 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.186e-05/0.5004, allocations: 43.48 kB / 1.38 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.5004, allocations: 11.98 kB / 1.38 GB, free: 0.6641 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5005, allocations: 326.8 kB / 1.38 GB, free: 344 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.5008, allocations: 104 kB / 1.381 GB, free: 240 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.5011, allocations: 166.9 kB / 1.381 GB, free: 52 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.5014, allocations: 165.3 kB / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5014, allocations: 0 / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007719/0.5022, allocations: 432.6 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.031e-05/0.5023, allocations: 79.39 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5023, allocations: 3.938 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.5023, allocations: 4 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.5025, allocations: 15.98 kB / 1.381 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.5025, allocations: 12.17 kB / 1.381 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.5029, allocations: 43.77 kB / 1.381 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.5029, allocations: 43.98 kB / 1.382 GB, free: 15.22 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0002106/0.5032, allocations: 188.3 kB / 1.382 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.5032, allocations: 23.72 kB / 1.382 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.5033, allocations: 34.36 kB / 1.382 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.5033, allocations: 0 / 1.382 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5033, allocations: 4 kB / 1.382 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.5033, allocations: 0 / 1.382 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.5053, allocations: 0.7557 MB / 1.382 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5054, allocations: 0 / 1.382 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.445e-05/0.5054, allocations: 4 kB / 1.382 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.5054, allocations: 11.98 kB / 1.383 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.5054, allocations: 11.98 kB / 1.383 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5055, allocations: 3.938 kB / 1.383 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.5055, allocations: 3.984 kB / 1.383 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.5071, allocations: 477.6 kB / 1.383 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.5073, allocations: 196.5 kB / 1.383 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.5074, allocations: 16 kB / 1.383 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/0.5078, allocations: 31.97 kB / 1.383 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.5078, allocations: 11.98 kB / 1.383 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.989e-05/0.5079, allocations: 43.97 kB / 1.383 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002212/0.5081, allocations: 227 kB / 1.383 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5081, allocations: 0 / 1.383 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003664/0.5085, allocations: 55.94 kB / 1.384 GB, free: 13.05 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.000227/0.5087, allocations: 145 kB / 1.384 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001234/0.51, allocations: 418.6 kB / 1.384 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.51, allocations: 0 / 1.384 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007288/0.5107, allocations: 132.2 kB / 1.384 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.511, allocations: 33.97 kB / 1.384 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.5124, allocations: 0.5448 MB / 1.385 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.5128, allocations: 0.7555 MB / 1.386 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.332e-05/0.5129, allocations: 13.42 kB / 1.386 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.89e-05/0.513, allocations: 19.38 kB / 1.386 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of SimCode: time 3.41e-07/0.513, allocations: 0 / 1.386 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of Templates: time 0.008058/0.521, allocations: 4.336 MB / 1.39 GB, free: 6.605 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time