Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.CalendarTimeMonthsMinus,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.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_10_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.001291/0.001291, allocations: 88.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002502/0.002503, allocations: 180.8 kB / 16.92 MB, free: 6.23 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.446/1.446, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.653/2.653, allocations: 437.8 MB / 0.7128 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003635, allocations: 12.22 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6232/0.6236, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002017/0.6257, allocations: 1.444 MB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001462/0.6272, allocations: 0.6935 MB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.78e-05/0.6273, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.432e-05/0.6274, allocations: 3.938 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.6275, allocations: 31.84 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.6284, allocations: 341.2 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006476/0.629, allocations: 0.5306 MB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.6292, allocations: 36.88 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005309/0.6297, allocations: 311.1 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.6301, allocations: 171.1 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.018e-05/0.6302, allocations: 12 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.101e-05/0.6302, allocations: 16 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.6304, allocations: 111.6 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002426/0.6306, allocations: 224.5 kB / 1.028 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.6311, allocations: 476.8 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.6311, allocations: 0 / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6311, allocations: 4 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.406e-05/0.6311, allocations: 0 / 1.028 GB, free: 11.46 MB / 0.7794 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.001198/0.6323, allocations: 0.7769 MB / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.6324, allocations: 15.98 kB / 1.029 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.6325, allocations: 52.45 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.6329, allocations: 338.1 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.734e-05/0.633, allocations: 20.55 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.6331, allocations: 32.38 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.6342, allocations: 243.5 kB / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.6342, allocations: 3.938 kB / 1.029 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.6342, allocations: 7.984 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.6342, allocations: 8 kB / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000841/0.6351, allocations: 119.9 kB / 1.03 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.6364, allocations: 0.6837 MB / 1.03 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.6376, allocations: 194.5 kB / 1.03 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008037/0.6384, allocations: 128.8 kB / 1.031 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.6384, allocations: 4 kB / 1.031 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001016/0.6395, allocations: 247 kB / 1.031 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.6395, allocations: 0 / 1.031 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002827/0.6423, allocations: 0.5222 MB / 1.031 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.6424, allocations: 59.41 kB / 1.031 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004761/0.6429, allocations: 441.8 kB / 1.032 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.48e-05/0.6429, allocations: 45.69 kB / 1.032 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.6431, allocations: 101.4 kB / 1.032 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.6431, allocations: 39.5 kB / 1.032 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.941e-05/0.6432, allocations: 41.7 kB / 1.032 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.6433, allocations: 326.8 kB / 1.032 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.6436, allocations: 139.9 kB / 1.032 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.644, allocations: 193.9 kB / 1.033 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.6444, allocations: 310.9 kB / 1.033 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.6444, allocations: 0 / 1.033 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009477/0.6454, allocations: 0.5215 MB / 1.033 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.756e-05/0.6455, allocations: 95.38 kB / 1.033 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.6455, allocations: 4 kB / 1.034 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.6455, allocations: 0 / 1.034 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.6457, allocations: 23.92 kB / 1.034 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.6457, allocations: 7.984 kB / 1.034 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.6462, allocations: 71.94 kB / 1.034 GB, free: 5.371 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.8e-05/0.6463, allocations: 63.92 kB / 1.034 GB, free: 5.309 MB / 0.7794 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.0002592/0.6466, allocations: 224.8 kB / 1.034 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.6467, allocations: 35.53 kB / 1.034 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.6468, allocations: 39.78 kB / 1.034 GB, free: 5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.6468, allocations: 8 kB / 1.034 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6468, allocations: 4 kB / 1.034 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.6468, allocations: 0 / 1.034 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.6492, allocations: 0.8104 MB / 1.035 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6492, allocations: 0 / 1.035 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.809e-05/0.6492, allocations: 4 kB / 1.035 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.6492, allocations: 0 / 1.035 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.82e-05/0.6493, allocations: 27.91 kB / 1.035 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6493, allocations: 4 kB / 1.035 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6493, allocations: 0 / 1.035 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.6512, allocations: 0.4936 MB / 1.035 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.6515, allocations: 244.4 kB / 1.036 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.032e-05/0.6516, allocations: 19.94 kB / 1.036 GB, free: 3.301 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005178/0.6521, allocations: 37.22 kB / 1.036 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.6522, allocations: 11.98 kB / 1.036 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.985e-05/0.6522, allocations: 59.97 kB / 1.036 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003365/0.6526, allocations: 315.1 kB / 1.036 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6526, allocations: 0 / 1.036 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004251/0.653, allocations: 79.83 kB / 1.036 GB, free: 2.812 MB / 0.7794 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.0001994/0.6532, allocations: 131.2 kB / 1.036 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001471/0.6547, allocations: 478.9 kB / 1.037 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.6547, allocations: 4.062 kB / 1.037 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008922/0.6556, allocations: 139.8 kB / 1.037 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.6561, allocations: 29.55 kB / 1.037 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.6579, allocations: 0.7813 MB / 1.038 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.6583, allocations: 0.7906 MB / 1.038 GB, free: 392 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.224e-05/0.6583, allocations: 15.44 kB / 1.038 GB, free: 376 kB / 0.7794 GB Notification: Performance of SimCode: time 6.11e-07/0.6584, allocations: 0 / 1.038 GB, free: 376 kB / 0.7794 GB Notification: Performance of Templates: time 0.006982/0.6653, allocations: 4.069 MB / 1.042 GB, free: 12.25 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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