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.001189/0.001189, allocations: 103 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.00118/0.00118, allocations: 189.7 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.219/1.219, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.41/2.41, allocations: 469.4 MB / 0.7428 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.98 kB / 1.066 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6798/0.6812, allocations: 159.1 MB / 1.221 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002913/0.6841, allocations: 1.725 MB / 1.223 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.6854, allocations: 0.6363 MB / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.6855, allocations: 0 / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.6857, allocations: 11.81 kB / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.6858, allocations: 35.78 kB / 1.223 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008981/0.6867, allocations: 364.7 kB / 1.224 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007089/0.6875, allocations: 0.636 MB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.6876, allocations: 33.09 kB / 1.224 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004667/0.688, allocations: 307.6 kB / 1.225 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.6884, allocations: 167.2 kB / 1.225 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.6885, allocations: 40 kB / 1.225 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.6887, allocations: 40 kB / 1.225 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.6888, allocations: 123.7 kB / 1.225 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.689, allocations: 223 kB / 1.225 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005729/0.6896, allocations: 0.5938 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.6896, allocations: 3.938 kB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.545e-06/0.6896, allocations: 0 / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.171e-05/0.6897, allocations: 3.938 kB / 1.226 GB, free: 13.5 MB / 0.9512 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.001337/0.691, allocations: 0.9054 MB / 1.227 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.691, allocations: 8.625 kB / 1.227 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.6912, allocations: 52.47 kB / 1.227 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.6916, allocations: 338.2 kB / 1.227 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/0.6916, allocations: 20.36 kB / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.446e-05/0.6917, allocations: 32.36 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.6927, allocations: 240.4 kB / 1.227 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.6928, allocations: 192 / 1.227 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.6928, allocations: 7.938 kB / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.6928, allocations: 0 / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008046/0.6936, allocations: 119.9 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.6948, allocations: 0.6719 MB / 1.228 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.6959, allocations: 178.5 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007577/0.6967, allocations: 116.8 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.6967, allocations: 8 kB / 1.228 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008988/0.6976, allocations: 231.1 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.6976, allocations: 0 / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002571/0.7002, allocations: 498.8 kB / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.7003, allocations: 63.39 kB / 1.229 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/0.7007, allocations: 445.8 kB / 1.23 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.7007, allocations: 41.69 kB / 1.23 GB, free: 9.328 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.966e-05/0.7008, allocations: 101.4 kB / 1.23 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.7009, allocations: 43.45 kB / 1.23 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.7011, allocations: 129.3 kB / 1.23 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.7012, allocations: 330.8 kB / 1.23 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.7015, allocations: 139.9 kB / 1.23 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.7018, allocations: 197.9 kB / 1.23 GB, free: 8.367 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.7022, allocations: 290.3 kB / 1.231 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7022, allocations: 8 kB / 1.231 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008224/0.703, allocations: 0.5203 MB / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.886e-05/0.7031, allocations: 93.09 kB / 1.231 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.7031, allocations: 7.938 kB / 1.231 GB, free: 7.395 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.7031, allocations: 4 kB / 1.231 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.7033, allocations: 23.91 kB / 1.231 GB, free: 7.367 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.7033, allocations: 4 kB / 1.231 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/0.7038, allocations: 56.05 kB / 1.231 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.684e-05/0.7039, allocations: 63.98 kB / 1.232 GB, free: 7.246 MB / 0.9512 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.0002422/0.7041, allocations: 228.7 kB / 1.232 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.421e-05/0.7042, allocations: 35.53 kB / 1.232 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.7042, allocations: 39.8 kB / 1.232 GB, free: 6.945 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7042, allocations: 7.938 kB / 1.232 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.7042, allocations: 4 kB / 1.232 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.7043, allocations: 3.984 kB / 1.232 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.7065, allocations: 0.7868 MB / 1.233 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7065, allocations: 4 kB / 1.233 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.583e-05/0.7065, allocations: 7.984 kB / 1.233 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.7065, allocations: 0 / 1.233 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.7066, allocations: 19.97 kB / 1.233 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.7066, allocations: 3.938 kB / 1.233 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.7066, allocations: 7.938 kB / 1.233 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.7084, allocations: 471.3 kB / 1.233 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.7087, allocations: 252.3 kB / 1.233 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.946e-05/0.7088, allocations: 12 kB / 1.233 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004866/0.7092, allocations: 43.89 kB / 1.233 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.7093, allocations: 7.984 kB / 1.233 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.727e-05/0.7094, allocations: 59.98 kB / 1.233 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000299/0.7097, allocations: 319.1 kB / 1.234 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7097, allocations: 0 / 1.234 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003365/0.71, allocations: 68 kB / 1.234 GB, free: 4.801 MB / 0.9512 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.0001698/0.7102, allocations: 135.1 kB / 1.234 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001363/0.7115, allocations: 470.5 kB / 1.234 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.7116, allocations: 4 kB / 1.234 GB, free: 4.168 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008179/0.7124, allocations: 119.9 kB / 1.234 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004058/0.7128, allocations: 37.17 kB / 1.235 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.7145, allocations: 0.6503 MB / 1.235 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.715, allocations: 0.7825 MB / 1.236 GB, free: 2.531 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/0.7151, allocations: 19.42 kB / 1.236 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of SimCode: time 3.2e-07/0.7151, allocations: 3.938 kB / 1.236 GB, free: 2.512 MB / 0.9512 GB Notification: Performance of Templates: time 0.006181/0.7212, allocations: 4.082 MB / 1.24 GB, free: 14.38 MB / 0.9669 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