Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.319/2.319, allocations: 390.3 MB / 405.3 MB, free: 13.53 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.001362/0.001362, allocations: 189.6 kB / 498.1 MB, free: 5.766 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.565/1.565, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.001039/0.001039, allocations: 106.8 kB / 0.9346 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 13.7 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3059, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.5231, allocations: 152.2 MB / 1.371 GB, free: 9.91 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.5234, allocations: 71.95 kB / 1.372 GB, free: 9.84 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0169/0.5403, allocations: 5.342 MB / 1.377 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5403, allocations: 0 / 1.377 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.946e-05/0.5404, allocations: 4 kB / 1.377 GB, free: 4.488 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.001249/0.5416, allocations: 0.6842 MB / 1.377 GB, free: 3.719 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.5417, allocations: 8.031 kB / 1.377 GB, free: 3.711 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.5419, allocations: 43.56 kB / 1.377 GB, free: 3.668 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.5424, allocations: 271.2 kB / 1.378 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.851e-05/0.5425, allocations: 15.98 kB / 1.378 GB, free: 3.348 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.5426, allocations: 20 kB / 1.378 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.5438, allocations: 238.9 kB / 1.378 GB, free: 3.09 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5439, allocations: 0 / 1.378 GB, free: 3.09 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.5439, allocations: 3.938 kB / 1.378 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.5439, allocations: 7.984 kB / 1.378 GB, free: 3.078 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009463/0.5449, allocations: 123.9 kB / 1.378 GB, free: 2.957 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.5466, allocations: 0.6019 MB / 1.379 GB, free: 2.305 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.5478, allocations: 198.2 kB / 1.379 GB, free: 2.105 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.5478, allocations: 4 kB / 1.379 GB, free: 2.102 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008901/0.5487, allocations: 229.8 kB / 1.379 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.5487, allocations: 0 / 1.379 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of matching and sorting (n=16): time 0.00256/0.5513, allocations: 489 kB / 1.38 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.5514, allocations: 59.39 kB / 1.38 GB, free: 1.312 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003665/0.5517, allocations: 287.6 kB / 1.38 GB, free: 1.027 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 8.264e-05/0.5518, allocations: 37.7 kB / 1.38 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.964e-05/0.5519, allocations: 101 kB / 1.38 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.552, allocations: 43.47 kB / 1.38 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.552, allocations: 8 kB / 1.38 GB, free: 0.832 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5522, allocations: 334.8 kB / 1.38 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.5525, allocations: 103.9 kB / 1.381 GB, free: 404 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.5528, allocations: 163 kB / 1.381 GB, free: 220 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.5531, allocations: 159.4 kB / 1.381 GB, free: 48 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.5531, allocations: 4 kB / 1.381 GB, free: 44 kB / 0.8698 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008329/0.5539, allocations: 433.6 kB / 1.381 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.669e-05/0.554, allocations: 81.42 kB / 1.381 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.554, allocations: 0 / 1.381 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5541, allocations: 4 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.5542, allocations: 24.16 kB / 1.381 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.5543, allocations: 11.94 kB / 1.381 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.5546, allocations: 39.83 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.358e-05/0.5547, allocations: 39.98 kB / 1.381 GB, free: 15.39 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.0002392/0.555, allocations: 196.3 kB / 1.382 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.306e-05/0.555, allocations: 27.72 kB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.557e-05/0.5551, allocations: 38.3 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5551, allocations: 0 / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.5551, allocations: 0 / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5551, allocations: 3.984 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.5573, allocations: 0.7424 MB / 1.382 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5573, allocations: 0 / 1.382 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.5574, allocations: 11.92 kB / 1.382 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.5574, allocations: 8 kB / 1.382 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.5574, allocations: 15.98 kB / 1.382 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.5575, allocations: 0 / 1.382 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5575, allocations: 0 / 1.382 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.5593, allocations: 474.9 kB / 1.383 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.5596, allocations: 192.5 kB / 1.383 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/0.5597, allocations: 19.94 kB / 1.383 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004397/0.5601, allocations: 35.97 kB / 1.383 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.5602, allocations: 7.984 kB / 1.383 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.115e-05/0.5602, allocations: 47.97 kB / 1.383 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002636/0.5605, allocations: 223 kB / 1.383 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5605, allocations: 0 / 1.383 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004416/0.5609, allocations: 63.94 kB / 1.383 GB, free: 13.21 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.0002362/0.5612, allocations: 139.2 kB / 1.384 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001389/0.5626, allocations: 418.6 kB / 1.384 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5626, allocations: 0 / 1.384 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007638/0.5634, allocations: 135.3 kB / 1.384 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.5637, allocations: 38.77 kB / 1.384 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.5652, allocations: 0.5385 MB / 1.385 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.5656, allocations: 0.7594 MB / 1.385 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.516e-05/0.5657, allocations: 17.41 kB / 1.385 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.011e-05/0.5657, allocations: 19.42 kB / 1.385 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of SimCode: time 2.835e-06/0.5657, allocations: 0 / 1.385 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of Templates: time 0.008289/0.574, allocations: 4.331 MB / 1.39 GB, free: 6.762 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_9_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