Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 107.3 kB / 16.41 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 191.4 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.42/2.42, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 60.12 kB / 1.055 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6681/0.6694, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002827/0.6722, allocations: 1.743 MB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.6735, allocations: 0.6224 MB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.643e-05/0.6736, allocations: 4 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.6738, allocations: 19.8 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.6739, allocations: 27.84 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008441/0.6747, allocations: 359.4 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006591/0.6754, allocations: 0.6437 MB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.6755, allocations: 25.11 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004424/0.676, allocations: 311.6 kB / 1.212 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.6763, allocations: 159.3 kB / 1.212 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.6764, allocations: 44 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.899e-05/0.6765, allocations: 44 kB / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.6767, allocations: 123.7 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.6769, allocations: 219 kB / 1.213 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.6774, allocations: 0.5897 MB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.6774, allocations: 0 / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.298e-06/0.6774, allocations: 0 / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.196e-05/0.6775, allocations: 3.938 kB / 1.213 GB, free: 8.742 MB / 0.9356 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.001339/0.6788, allocations: 0.917 MB / 1.214 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.6788, allocations: 11.97 kB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.679, allocations: 52.47 kB / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.6793, allocations: 330.2 kB / 1.215 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/0.6794, allocations: 24.36 kB / 1.215 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-05/0.6795, allocations: 24.38 kB / 1.215 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.6805, allocations: 243.5 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.6805, allocations: 8.125 kB / 1.215 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.6806, allocations: 7.938 kB / 1.215 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.6806, allocations: 4 kB / 1.215 GB, free: 7 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008156/0.6814, allocations: 107.9 kB / 1.215 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.6827, allocations: 0.6643 MB / 1.216 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.6838, allocations: 190.4 kB / 1.216 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007931/0.6846, allocations: 124.4 kB / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.6846, allocations: 0 / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009802/0.6856, allocations: 235 kB / 1.216 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 2.054e-06/0.6856, allocations: 0 / 1.216 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002664/0.6883, allocations: 0.4951 MB / 1.217 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.6883, allocations: 63.41 kB / 1.217 GB, free: 5.047 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.6888, allocations: 437.9 kB / 1.217 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.6888, allocations: 41.69 kB / 1.217 GB, free: 4.562 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.6889, allocations: 101.3 kB / 1.217 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.63e-05/0.689, allocations: 39.55 kB / 1.217 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.6892, allocations: 141.2 kB / 1.217 GB, free: 4.277 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.6893, allocations: 326.8 kB / 1.218 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002649/0.6896, allocations: 131.9 kB / 1.218 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.6899, allocations: 191.2 kB / 1.218 GB, free: 3.613 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.6903, allocations: 307.6 kB / 1.218 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.6903, allocations: 0 / 1.218 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008287/0.6911, allocations: 0.5164 MB / 1.219 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.094e-05/0.6912, allocations: 95.38 kB / 1.219 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.6912, allocations: 0 / 1.219 GB, free: 2.641 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.6912, allocations: 4 kB / 1.219 GB, free: 2.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.6914, allocations: 36.09 kB / 1.219 GB, free: 2.602 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.6914, allocations: 0 / 1.219 GB, free: 2.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.6919, allocations: 55.86 kB / 1.219 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.656e-05/0.692, allocations: 55.98 kB / 1.219 GB, free: 2.492 MB / 0.9356 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 (calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.calTim.year) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002416/0.6923, allocations: 220.2 kB / 1.219 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.6923, allocations: 47.52 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.769e-05/0.6924, allocations: 39.8 kB / 1.219 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.6924, allocations: 3.938 kB / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.6924, allocations: 0 / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.6924, allocations: 0 / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/0.6947, allocations: 0.795 MB / 1.22 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.6947, allocations: 4 kB / 1.22 GB, free: 1.316 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.652e-05/0.6947, allocations: 11.97 kB / 1.22 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.6947, allocations: 0 / 1.22 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.6948, allocations: 15.98 kB / 1.22 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.6948, allocations: 3.938 kB / 1.22 GB, free: 1.285 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.6948, allocations: 0 / 1.22 GB, free: 1.285 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.6966, allocations: 485.2 kB / 1.221 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.6969, allocations: 244.4 kB / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.697, allocations: 16 kB / 1.221 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.6975, allocations: 39.91 kB / 1.221 GB, free: 496 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.6975, allocations: 7.984 kB / 1.221 GB, free: 488 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.515e-05/0.6976, allocations: 63.97 kB / 1.221 GB, free: 424 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003132/0.6979, allocations: 315.1 kB / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6979, allocations: 0 / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003851/0.6983, allocations: 75.89 kB / 1.221 GB, free: 36 kB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002249/0.6986, allocations: 123.8 kB / 1.221 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001362/0.6999, allocations: 474.5 kB / 1.222 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6999, allocations: 0 / 1.222 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.7008, allocations: 124.2 kB / 1.222 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004083/0.7012, allocations: 44.06 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.7028, allocations: 0.6311 MB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.7031, allocations: 0.7905 MB / 1.223 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.7032, allocations: 23.42 kB / 1.223 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.7032, allocations: 4 kB / 1.223 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of Templates: time 0.006264/0.7095, allocations: 4.083 MB / 1.227 GB, free: 9.613 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time