Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.457/1.457, allocations: 249.5 MB / 257 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 172.8 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008779/0.0008779, allocations: 78.55 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.737e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2283, allocations: 106.3 MB / 0.8853 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6468/0.8752, allocations: 134.1 MB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.8754, allocations: 75.7 kB / 1.016 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01446/0.8899, allocations: 5.187 MB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.342e-06/0.89, allocations: 0 / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.564e-05/0.89, allocations: 4 kB / 1.021 GB, free: 15.27 MB / 0.6511 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.0008461/0.8908, allocations: 0.6014 MB / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.8909, allocations: 12.03 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.747e-05/0.891, allocations: 35.7 kB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.8913, allocations: 282.9 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.8914, allocations: 4 kB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.419e-05/0.8914, allocations: 16 kB / 1.022 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001284/0.8916, allocations: 56.3 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.8918, allocations: 157.4 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.8919, allocations: 0 / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.8919, allocations: 0.8438 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.8919, allocations: 4 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.8929, allocations: 0.5614 MB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.8931, allocations: 129 kB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.774e-05/0.8932, allocations: 55.59 kB / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.8933, allocations: 0 / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000372/0.8936, allocations: 218.5 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.8937, allocations: 4 kB / 1.023 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.000399/0.8941, allocations: 221.4 kB / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.8941, allocations: 63.28 kB / 1.024 GB, free: 13 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.8944, allocations: 266.2 kB / 1.024 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.221e-05/0.8944, allocations: 37.52 kB / 1.024 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.171e-05/0.8945, allocations: 93.23 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.329e-05/0.8945, allocations: 55.19 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.8946, allocations: 4 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.8947, allocations: 326.4 kB / 1.024 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.8949, allocations: 100.9 kB / 1.025 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.8951, allocations: 156.7 kB / 1.025 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.8952, allocations: 79.95 kB / 1.025 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.8952, allocations: 4 kB / 1.025 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005578/0.8958, allocations: 343.3 kB / 1.025 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.437e-05/0.8959, allocations: 78.58 kB / 1.025 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.8959, allocations: 192 / 1.025 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.8959, allocations: 8 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.8961, allocations: 27.91 kB / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.8961, allocations: 4 kB / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.8965, allocations: 43.81 kB / 1.025 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.924e-05/0.8966, allocations: 59.66 kB / 1.025 GB, free: 11.55 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001357/0.8967, allocations: 131.7 kB / 1.025 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.8968, allocations: 35.56 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.925e-05/0.8969, allocations: 29.39 kB / 1.026 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.8969, allocations: 0 / 1.026 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8969, allocations: 0 / 1.026 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.8969, allocations: 0 / 1.026 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006634/0.8976, allocations: 0.5563 MB / 1.026 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.8976, allocations: 0 / 1.026 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.8976, allocations: 15.98 kB / 1.026 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.8976, allocations: 0 / 1.026 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.8977, allocations: 11.98 kB / 1.026 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.8977, allocations: 4 kB / 1.026 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.8977, allocations: 0 / 1.026 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.898, allocations: 319 kB / 1.026 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.8982, allocations: 190.4 kB / 1.027 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.964e-05/0.8983, allocations: 15 kB / 1.027 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.8985, allocations: 11.98 kB / 1.027 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.365e-05/0.8985, allocations: 15.73 kB / 1.027 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.8986, allocations: 31.97 kB / 1.027 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001653/0.8988, allocations: 210.8 kB / 1.027 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8988, allocations: 0 / 1.027 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003151/0.8991, allocations: 55.05 kB / 1.027 GB, free: 10.08 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$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.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0001807/0.8993, allocations: 128.1 kB / 1.027 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004613/0.8997, allocations: 355.9 kB / 1.027 GB, free: 9.664 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8997, allocations: 0 / 1.027 GB, free: 9.664 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.8999, allocations: 68.23 kB / 1.027 GB, free: 9.613 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.9002, allocations: 33.27 kB / 1.027 GB, free: 9.594 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005354/0.9007, allocations: 307.4 kB / 1.028 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.901, allocations: 0.7545 MB / 1.028 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001408/0.9012, allocations: 41.2 kB / 1.029 GB, free: 8.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.9013, allocations: 39.03 kB / 1.029 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.9013, allocations: 0 / 1.029 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of Templates: time 0.007849/0.9092, allocations: 4.534 MB / 1.033 GB, free: 3.969 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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