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.001704/0.001704, allocations: 105.8 kB / 16.27 MB, free: 6.414 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.002028/0.002028, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.399/1.399, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.615/2.615, allocations: 469.4 MB / 0.7427 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001504, allocations: 71.42 kB / 0.9088 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3209, allocations: 159.1 MB / 1.064 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003277/0.3243, allocations: 1.74 MB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3257, allocations: 0.6207 MB / 1.067 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.3259, allocations: 0 / 1.067 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.326, allocations: 11.86 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.3262, allocations: 43.78 kB / 1.067 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009824/0.3272, allocations: 366.6 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007138/0.3279, allocations: 0.6321 MB / 1.068 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.3281, allocations: 29.11 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000432/0.3285, allocations: 307.6 kB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002561/0.3288, allocations: 151.5 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.3289, allocations: 48 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.329, allocations: 40 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.3292, allocations: 123.6 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.3294, allocations: 215 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005037/0.3299, allocations: 0.5962 MB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3299, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3299, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.3299, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8419 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.001281/0.3312, allocations: 0.9111 MB / 1.07 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3312, allocations: 12.56 kB / 1.07 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3314, allocations: 52.47 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.3318, allocations: 334.2 kB / 1.07 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.82e-05/0.3318, allocations: 28.55 kB / 1.07 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.969e-05/0.3319, allocations: 24.36 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.333, allocations: 234 kB / 1.071 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.333, allocations: 7.938 kB / 1.071 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.333, allocations: 4 kB / 1.071 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.333, allocations: 4 kB / 1.071 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008168/0.3339, allocations: 119.8 kB / 1.071 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.3351, allocations: 0.6758 MB / 1.071 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3362, allocations: 186.5 kB / 1.072 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007701/0.337, allocations: 116.8 kB / 1.072 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.337, allocations: 4 kB / 1.072 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009612/0.338, allocations: 237.1 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.338, allocations: 0 / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002564/0.3406, allocations: 496.8 kB / 1.072 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.3406, allocations: 67.39 kB / 1.072 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.3411, allocations: 441.8 kB / 1.073 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.878e-05/0.3412, allocations: 37.7 kB / 1.073 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.3413, allocations: 101.3 kB / 1.073 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.464e-05/0.3413, allocations: 43.48 kB / 1.073 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.3416, allocations: 141.3 kB / 1.073 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3417, allocations: 330.8 kB / 1.073 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.342, allocations: 139.9 kB / 1.074 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/0.3423, allocations: 195.1 kB / 1.074 GB, free: 4.895 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003961/0.3427, allocations: 298.9 kB / 1.074 GB, free: 4.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3427, allocations: 0 / 1.074 GB, free: 4.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000867/0.3436, allocations: 0.526 MB / 1.075 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.181e-05/0.3437, allocations: 103.6 kB / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3437, allocations: 0 / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3437, allocations: 4 kB / 1.075 GB, free: 3.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3439, allocations: 23.92 kB / 1.075 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.3439, allocations: 3.984 kB / 1.075 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.3444, allocations: 59.8 kB / 1.075 GB, free: 3.824 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.3445, allocations: 63.92 kB / 1.075 GB, free: 3.762 MB / 0.8419 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.000246/0.3447, allocations: 216.3 kB / 1.075 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.3448, allocations: 43.52 kB / 1.075 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.802e-05/0.3449, allocations: 35.8 kB / 1.075 GB, free: 3.465 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3449, allocations: 0 / 1.075 GB, free: 3.465 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3449, allocations: 0 / 1.075 GB, free: 3.465 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3449, allocations: 7.984 kB / 1.075 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.3471, allocations: 0.7973 MB / 1.076 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3471, allocations: 0 / 1.076 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-05/0.3471, allocations: 7.984 kB / 1.076 GB, free: 2.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3472, allocations: 0 / 1.076 GB, free: 2.598 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.3472, allocations: 23.92 kB / 1.076 GB, free: 2.574 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3472, allocations: 8 kB / 1.076 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3472, allocations: 0 / 1.076 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3489, allocations: 478.8 kB / 1.076 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3492, allocations: 244.5 kB / 1.077 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.063e-05/0.3493, allocations: 19.94 kB / 1.077 GB, free: 1.805 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004753/0.3498, allocations: 31.95 kB / 1.077 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3498, allocations: 8 kB / 1.077 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.079e-05/0.3499, allocations: 55.97 kB / 1.077 GB, free: 1.711 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003037/0.3502, allocations: 323 kB / 1.077 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3502, allocations: 0 / 1.077 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003699/0.3506, allocations: 71.98 kB / 1.077 GB, free: 1.324 MB / 0.8419 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.0001718/0.3508, allocations: 132 kB / 1.077 GB, free: 1.184 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00133/0.3521, allocations: 486.3 kB / 1.078 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3521, allocations: 384 / 1.078 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007766/0.3529, allocations: 130.4 kB / 1.078 GB, free: 0.5586 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.3533, allocations: 34.16 kB / 1.078 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.505/0.8583, allocations: 0.6346 MB / 1.078 GB, free: 22.62 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.8587, allocations: 0.7879 MB / 1.079 GB, free: 21.93 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.55e-05/0.8588, allocations: 17.3 kB / 1.079 GB, free: 21.92 MB / 0.8419 GB Notification: Performance of SimCode: time 7.92e-07/0.8588, allocations: 0 / 1.079 GB, free: 21.92 MB / 0.8419 GB Notification: Performance of Templates: time 0.01002/0.8688, allocations: 4.097 MB / 1.083 GB, free: 21.48 MB / 0.8419 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