Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.439/2.439, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001185/0.001185, allocations: 186.8 kB / 0.4902 GB, free: 2.258 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.512/1.512, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001307/0.001307, allocations: 112.6 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004332, allocations: 10.28 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2017/0.5435, allocations: 153 MB / 1.379 GB, free: 0.6211 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.5438, allocations: 75.94 kB / 1.379 GB, free: 0.5469 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01692/0.5608, allocations: 5.354 MB / 1.384 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5608, allocations: 0 / 1.384 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.049e-05/0.5608, allocations: 4 kB / 1.384 GB, free: 11.18 MB / 0.8855 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.001099/0.5619, allocations: 0.6958 MB / 1.385 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.562, allocations: 8.562 kB / 1.385 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.5622, allocations: 35.67 kB / 1.385 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.5626, allocations: 267.2 kB / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.5627, allocations: 16 kB / 1.385 GB, free: 10.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.572e-05/0.5628, allocations: 27.98 kB / 1.385 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.5638, allocations: 234.2 kB / 1.385 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.5639, allocations: 0 / 1.385 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.5639, allocations: 0 / 1.385 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.5639, allocations: 8 kB / 1.385 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007763/0.5647, allocations: 119.9 kB / 1.385 GB, free: 9.652 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.5661, allocations: 0.6058 MB / 1.386 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.5672, allocations: 194.4 kB / 1.386 GB, free: 8.797 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.176e-05/0.5673, allocations: 4 kB / 1.386 GB, free: 8.793 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.5683, allocations: 231.1 kB / 1.386 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 3.797e-06/0.5683, allocations: 4 kB / 1.386 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002804/0.5711, allocations: 491.4 kB / 1.387 GB, free: 8.066 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.5712, allocations: 59.41 kB / 1.387 GB, free: 7.996 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.5716, allocations: 283.6 kB / 1.387 GB, free: 7.715 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.5718, allocations: 49.69 kB / 1.387 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.5719, allocations: 93.05 kB / 1.387 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.5719, allocations: 43.53 kB / 1.387 GB, free: 7.523 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.572, allocations: 4 kB / 1.387 GB, free: 7.52 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5721, allocations: 322.8 kB / 1.388 GB, free: 7.195 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.5724, allocations: 107.9 kB / 1.388 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.5728, allocations: 169.9 kB / 1.388 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.5731, allocations: 164.3 kB / 1.388 GB, free: 6.73 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5731, allocations: 0 / 1.388 GB, free: 6.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008219/0.5739, allocations: 421.6 kB / 1.388 GB, free: 6.301 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.192e-05/0.574, allocations: 91.38 kB / 1.389 GB, free: 6.199 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.574, allocations: 0 / 1.389 GB, free: 6.199 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.5741, allocations: 4 kB / 1.389 GB, free: 6.195 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.5742, allocations: 19.92 kB / 1.389 GB, free: 6.176 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.5743, allocations: 4 kB / 1.389 GB, free: 6.172 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.5747, allocations: 43.81 kB / 1.389 GB, free: 6.129 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.566e-05/0.5748, allocations: 39.98 kB / 1.389 GB, free: 6.09 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.0002984/0.5751, allocations: 197.6 kB / 1.389 GB, free: 5.891 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.5751, allocations: 31.61 kB / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.541e-05/0.5752, allocations: 30.36 kB / 1.389 GB, free: 5.824 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.5752, allocations: 7.922 kB / 1.389 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5752, allocations: 0 / 1.389 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.5752, allocations: 0 / 1.389 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.5775, allocations: 0.7558 MB / 1.39 GB, free: 5.004 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.5775, allocations: 0 / 1.39 GB, free: 5.004 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.958e-05/0.5775, allocations: 4 kB / 1.39 GB, free: 5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.5775, allocations: 4 kB / 1.39 GB, free: 4.996 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.5776, allocations: 19.97 kB / 1.39 GB, free: 4.977 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5776, allocations: 0 / 1.39 GB, free: 4.977 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5776, allocations: 4 kB / 1.39 GB, free: 4.973 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.5793, allocations: 481.3 kB / 1.39 GB, free: 4.488 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.5796, allocations: 184.6 kB / 1.39 GB, free: 4.289 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.689e-05/0.5797, allocations: 23.98 kB / 1.39 GB, free: 4.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.5801, allocations: 31.97 kB / 1.39 GB, free: 4.234 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.5802, allocations: 8 kB / 1.39 GB, free: 4.227 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/0.5802, allocations: 47.97 kB / 1.39 GB, free: 4.18 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002595/0.5805, allocations: 227 kB / 1.391 GB, free: 3.957 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5805, allocations: 0 / 1.391 GB, free: 3.957 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004557/0.581, allocations: 59.92 kB / 1.391 GB, free: 3.898 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.0002379/0.5812, allocations: 129.5 kB / 1.391 GB, free: 3.766 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001389/0.5826, allocations: 426.5 kB / 1.391 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5826, allocations: 0 / 1.391 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007222/0.5833, allocations: 136.2 kB / 1.391 GB, free: 3.191 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.5837, allocations: 32.58 kB / 1.391 GB, free: 3.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.5852, allocations: 0.5386 MB / 1.392 GB, free: 2.594 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.5856, allocations: 0.7594 MB / 1.393 GB, free: 1.805 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.106e-05/0.5857, allocations: 21.41 kB / 1.393 GB, free: 1.785 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.5857, allocations: 15.44 kB / 1.393 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of SimCode: time 1.133e-06/0.5857, allocations: 0 / 1.393 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of Templates: time 0.00907/0.5948, allocations: 4.341 MB / 1.397 GB, free: 13.46 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_latest_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