Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 109.3 kB / 16.41 MB, free: 6.465 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.001916/0.001916, allocations: 187 kB / 17.34 MB, free: 5.719 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.504/1.504, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.569/2.569, allocations: 437 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 68.08 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8639/0.8655, allocations: 151.6 MB / 1.167 GB, free: 3.996 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003109/0.8686, allocations: 1.748 MB / 1.169 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.87, allocations: 0.6168 MB / 1.17 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.8702, allocations: 3.938 kB / 1.17 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.8703, allocations: 11.88 kB / 1.17 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.8705, allocations: 35.56 kB / 1.17 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009796/0.8714, allocations: 374.7 kB / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000763/0.8722, allocations: 0.636 MB / 1.171 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.8724, allocations: 29.09 kB / 1.171 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005017/0.8729, allocations: 311.6 kB / 1.171 GB, free: 244 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.8732, allocations: 160.1 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.8734, allocations: 40 kB / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.598e-05/0.8735, allocations: 44 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.8736, allocations: 127.5 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.8738, allocations: 211 kB / 1.172 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005992/0.8744, allocations: 0.5976 MB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.8745, allocations: 4 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8745, allocations: 0 / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.414e-05/0.8745, allocations: 0 / 1.172 GB, free: 15.07 MB / 0.9044 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.001483/0.876, allocations: 0.9037 MB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.876, allocations: 16.88 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.8762, allocations: 52.47 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.8767, allocations: 338.1 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.8768, allocations: 20.36 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.8768, allocations: 32.36 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.8779, allocations: 237.9 kB / 1.174 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.8779, allocations: 8.109 kB / 1.174 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.878, allocations: 7.938 kB / 1.174 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.878, allocations: 4 kB / 1.174 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008046/0.8788, allocations: 111.9 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.8802, allocations: 0.672 MB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.8813, allocations: 174.5 kB / 1.175 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008016/0.8821, allocations: 120.8 kB / 1.175 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.8821, allocations: 4.234 kB / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009969/0.8832, allocations: 235 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.8832, allocations: 0 / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002614/0.8858, allocations: 0.4923 MB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.8858, allocations: 59.41 kB / 1.176 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.8863, allocations: 437.9 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/0.8864, allocations: 41.69 kB / 1.176 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.8865, allocations: 109.3 kB / 1.176 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/0.8865, allocations: 35.59 kB / 1.176 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.8868, allocations: 141.2 kB / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.8869, allocations: 330.7 kB / 1.177 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.8872, allocations: 143.9 kB / 1.177 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.8875, allocations: 189.9 kB / 1.177 GB, free: 9.926 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.888, allocations: 299.5 kB / 1.177 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.888, allocations: 0 / 1.177 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008584/0.8888, allocations: 0.5163 MB / 1.178 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.8889, allocations: 103.6 kB / 1.178 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.889, allocations: 0 / 1.178 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.889, allocations: 4 kB / 1.178 GB, free: 8.949 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.8892, allocations: 23.91 kB / 1.178 GB, free: 8.926 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.8892, allocations: 4 kB / 1.178 GB, free: 8.922 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005008/0.8897, allocations: 59.8 kB / 1.178 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-05/0.8898, allocations: 55.98 kB / 1.178 GB, free: 8.809 MB / 0.9044 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.0002488/0.89, allocations: 232.2 kB / 1.178 GB, free: 8.574 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.8901, allocations: 35.53 kB / 1.178 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.584e-05/0.8902, allocations: 43.8 kB / 1.178 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.8902, allocations: 0 / 1.178 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.8902, allocations: 0 / 1.178 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.8902, allocations: 3.984 kB / 1.178 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.8925, allocations: 0.7911 MB / 1.179 GB, free: 7.645 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.8926, allocations: 4 kB / 1.179 GB, free: 7.641 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.8926, allocations: 7.984 kB / 1.179 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.8926, allocations: 4 kB / 1.179 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.8927, allocations: 19.98 kB / 1.179 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.8927, allocations: 7.922 kB / 1.179 GB, free: 7.602 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8927, allocations: 7.938 kB / 1.179 GB, free: 7.594 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.8945, allocations: 467.3 kB / 1.179 GB, free: 7.121 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.8948, allocations: 248.4 kB / 1.18 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.57e-05/0.8949, allocations: 20 kB / 1.18 GB, free: 6.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005072/0.8954, allocations: 35.89 kB / 1.18 GB, free: 6.805 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.8955, allocations: 7.938 kB / 1.18 GB, free: 6.797 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.8956, allocations: 59.97 kB / 1.18 GB, free: 6.738 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0003249/0.8959, allocations: 319.1 kB / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8959, allocations: 0 / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003844/0.8963, allocations: 75.83 kB / 1.18 GB, free: 6.355 MB / 0.9044 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.0001886/0.8965, allocations: 127.2 kB / 1.18 GB, free: 6.219 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.8979, allocations: 476 kB / 1.181 GB, free: 5.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.8979, allocations: 0 / 1.181 GB, free: 5.73 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0008043/0.8987, allocations: 120.3 kB / 1.181 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.8991, allocations: 39.91 kB / 1.181 GB, free: 5.578 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.9008, allocations: 0.6448 MB / 1.182 GB, free: 4.902 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.9012, allocations: 0.7825 MB / 1.182 GB, free: 4.094 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.9013, allocations: 19.42 kB / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.9013, allocations: 0 / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of Templates: time 0.006551/0.9079, allocations: 4.093 MB / 1.186 GB, free: 15.94 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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