Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009909/0.000991, allocations: 92.16 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.001188/0.001188, allocations: 173 kB / 16.92 MB, free: 6.652 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.467/1.467, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.699/2.699, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 15.17 kB / 0.9035 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3453, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002012/0.3474, allocations: 1.45 MB / 1.061 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3488, allocations: 0.6833 MB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.862e-05/0.3489, allocations: 3.938 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.663e-05/0.349, allocations: 3.938 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.3492, allocations: 31.84 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007535/0.3499, allocations: 342.6 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00051/0.3505, allocations: 0.5344 MB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.3506, allocations: 25.11 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.351, allocations: 318.9 kB / 1.063 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.3513, allocations: 179 kB / 1.063 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.182e-05/0.3514, allocations: 12 kB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.164e-05/0.3514, allocations: 16 kB / 1.063 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.3516, allocations: 107.7 kB / 1.063 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.3518, allocations: 228.4 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004301/0.3523, allocations: 475.1 kB / 1.064 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3523, allocations: 0 / 1.064 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3523, allocations: 0 / 1.064 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.3523, allocations: 0 / 1.064 GB, free: 0.5625 MB / 0.8106 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.001148/0.3535, allocations: 0.7731 MB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3535, allocations: 15.97 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3536, allocations: 56.38 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.3541, allocations: 334.2 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/0.3541, allocations: 24.55 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.817e-05/0.3542, allocations: 24.38 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3553, allocations: 247 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3553, allocations: 3.938 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.3553, allocations: 7.984 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3554, allocations: 4 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008101/0.3562, allocations: 123.9 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.3575, allocations: 0.6913 MB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3586, allocations: 198.5 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.3593, allocations: 124.8 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.3594, allocations: 4 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009647/0.3604, allocations: 239.1 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.3604, allocations: 0 / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002639/0.363, allocations: 0.5267 MB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.3631, allocations: 55.41 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.3636, allocations: 449.8 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.514e-05/0.3636, allocations: 45.69 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3638, allocations: 109.3 kB / 1.068 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.3638, allocations: 31.55 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.617e-05/0.3639, allocations: 45.64 kB / 1.068 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.364, allocations: 326.8 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.3643, allocations: 135.9 kB / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.3647, allocations: 201.9 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.3651, allocations: 298.8 kB / 1.069 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3651, allocations: 0 / 1.069 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008882/0.366, allocations: 0.5217 MB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.3661, allocations: 95.38 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3661, allocations: 4 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3662, allocations: 0 / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3663, allocations: 23.92 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3664, allocations: 7.984 kB / 1.069 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005035/0.3669, allocations: 67.98 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.374e-05/0.367, allocations: 67.91 kB / 1.069 GB, free: 10.41 MB / 0.8262 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.0002947/0.3673, allocations: 212.3 kB / 1.069 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.3673, allocations: 39.53 kB / 1.07 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.748e-05/0.3674, allocations: 43.78 kB / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3674, allocations: 8 kB / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3674, allocations: 0 / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3675, allocations: 0 / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3697, allocations: 0.8104 MB / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3697, allocations: 4 kB / 1.07 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.562e-05/0.3698, allocations: 11.92 kB / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3698, allocations: 0 / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.3698, allocations: 27.91 kB / 1.07 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.3698, allocations: 0 / 1.07 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3698, allocations: 0 / 1.07 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.3717, allocations: 0.4936 MB / 1.071 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.3719, allocations: 244.4 kB / 1.071 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.817e-05/0.372, allocations: 23.92 kB / 1.071 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004744/0.3725, allocations: 31.97 kB / 1.071 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.3725, allocations: 11.98 kB / 1.071 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.474e-05/0.3726, allocations: 59.97 kB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003259/0.373, allocations: 315.1 kB / 1.072 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.633e-06/0.373, allocations: 4 kB / 1.072 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003991/0.3734, allocations: 71.92 kB / 1.072 GB, free: 7.918 MB / 0.8262 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.000199/0.3736, allocations: 127.7 kB / 1.072 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001333/0.3749, allocations: 490.4 kB / 1.072 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3749, allocations: 4 kB / 1.072 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007768/0.3757, allocations: 136.3 kB / 1.072 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.3761, allocations: 33.53 kB / 1.072 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.3779, allocations: 0.7815 MB / 1.073 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.3783, allocations: 0.7943 MB / 1.074 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.3784, allocations: 15.44 kB / 1.074 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3784, allocations: 0 / 1.074 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of Templates: time 0.006945/0.3853, allocations: 4.076 MB / 1.078 GB, free: 1.336 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches