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.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.495/1.495, allocations: 249.5 MB / 257 MB, free: 6.902 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.001022/0.001022, allocations: 183.5 kB / 316.3 MB, free: 3.316 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.793/1.793, allocations: 205.3 MB / 0.5671 GB, free: 15.95 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.0008324/0.0008323, allocations: 104.6 kB / 0.6714 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.763e-05/1.764e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1886, allocations: 106.3 MB / 0.8853 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6978/0.8864, allocations: 134 MB / 1.016 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.8866, allocations: 78.31 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0144/0.901, allocations: 5.163 MB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.092e-06/0.9011, allocations: 0 / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.457e-05/0.9011, allocations: 4 kB / 1.021 GB, free: 15.42 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.000836/0.9019, allocations: 0.6027 MB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.902, allocations: 16.03 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.27e-05/0.9021, allocations: 31.72 kB / 1.022 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.9024, allocations: 277.9 kB / 1.022 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.9024, allocations: 7.984 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.849e-05/0.9025, allocations: 23.88 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001355/0.9027, allocations: 53.92 kB / 1.022 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.9029, allocations: 163.8 kB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.9029, allocations: 0 / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.903, allocations: 0 / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.903, allocations: 0 / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.904, allocations: 0.5601 MB / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.9042, allocations: 131.3 kB / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.9043, allocations: 55.34 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.9043, allocations: 4 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.9047, allocations: 225 kB / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.864e-06/0.9047, allocations: 0 / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.000424/0.9052, allocations: 214.3 kB / 1.024 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.9052, allocations: 66.83 kB / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.9055, allocations: 263.8 kB / 1.024 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.9055, allocations: 36.95 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.468e-05/0.9056, allocations: 96.66 kB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.835e-05/0.9057, allocations: 46.83 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.9057, allocations: 8 kB / 1.024 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.9058, allocations: 326 kB / 1.024 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.906, allocations: 106 kB / 1.024 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.9062, allocations: 152.2 kB / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.9064, allocations: 82.94 kB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.9064, allocations: 4 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005623/0.907, allocations: 341.7 kB / 1.025 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.907, allocations: 82.44 kB / 1.025 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.907, allocations: 0 / 1.025 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.9071, allocations: 4.188 kB / 1.025 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.9072, allocations: 27.92 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.9072, allocations: 4 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003652/0.9076, allocations: 43.81 kB / 1.025 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/0.9077, allocations: 55.55 kB / 1.025 GB, free: 11.71 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.0001307/0.9078, allocations: 131.7 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.011e-05/0.9079, allocations: 31.58 kB / 1.025 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.9079, allocations: 29.58 kB / 1.025 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.908, allocations: 0 / 1.025 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.908, allocations: 0 / 1.025 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.908, allocations: 3.984 kB / 1.025 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006144/0.9086, allocations: 0.5538 MB / 1.026 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.9086, allocations: 0 / 1.026 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.371e-05/0.9087, allocations: 8 kB / 1.026 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.9087, allocations: 15.91 kB / 1.026 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.9087, allocations: 15.48 kB / 1.026 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9087, allocations: 0 / 1.026 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.9087, allocations: 0 / 1.026 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.9091, allocations: 313.2 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.9093, allocations: 186.1 kB / 1.026 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.64e-05/0.9094, allocations: 22.61 kB / 1.026 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.9095, allocations: 15.88 kB / 1.027 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.9096, allocations: 15.97 kB / 1.027 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.9096, allocations: 30.86 kB / 1.027 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001661/0.9098, allocations: 216 kB / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9098, allocations: 0 / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003273/0.9102, allocations: 48 kB / 1.027 GB, free: 10.23 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.0001699/0.9103, allocations: 123.8 kB / 1.027 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004657/0.9108, allocations: 352.3 kB / 1.027 GB, free: 9.82 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9108, allocations: 0 / 1.027 GB, free: 9.82 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.9109, allocations: 68.97 kB / 1.027 GB, free: 9.77 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.9112, allocations: 28.58 kB / 1.027 GB, free: 9.754 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005016/0.9117, allocations: 315.7 kB / 1.028 GB, free: 9.469 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.912, allocations: 0.7584 MB / 1.028 GB, free: 8.691 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001457/0.9122, allocations: 41.2 kB / 1.028 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.9123, allocations: 31.42 kB / 1.028 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.9123, allocations: 0 / 1.028 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of Templates: time 0.00768/0.92, allocations: 4.531 MB / 1.033 GB, free: 4.133 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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