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.005051/0.005051, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001285/0.001285, allocations: 199 kB / 16.79 MB, free: 6.254 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.351/1.351, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.717/2.717, allocations: 461.9 MB / 0.7348 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 61.58 kB / 0.8991 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3609, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.00378/0.3647, allocations: 1.781 MB / 1.055 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3663, allocations: 0.687 MB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.3665, allocations: 8 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.3666, allocations: 7.922 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.3668, allocations: 31.84 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.3677, allocations: 330.4 kB / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006923/0.3684, allocations: 0.5305 MB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.3686, allocations: 41.09 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005954/0.3692, allocations: 318.9 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.3696, allocations: 175.1 kB / 1.057 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.3697, allocations: 16 kB / 1.057 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.816e-05/0.3698, allocations: 16 kB / 1.057 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000184/0.37, allocations: 115.6 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.3703, allocations: 198.8 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004855/0.3708, allocations: 495.2 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3708, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.032e-06/0.3708, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.895e-05/0.3709, allocations: 4 kB / 1.057 GB, free: 3.57 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.001774/0.3726, allocations: 0.9015 MB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3727, allocations: 12.03 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001912/0.3729, allocations: 52.47 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.3734, allocations: 326.2 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.933e-05/0.3735, allocations: 24.55 kB / 1.059 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.3736, allocations: 32.36 kB / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.3748, allocations: 243.5 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3748, allocations: 3.938 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.3748, allocations: 0 / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3749, allocations: 4 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008683/0.3757, allocations: 115.9 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.3773, allocations: 0.6797 MB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.3784, allocations: 186.5 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008346/0.3793, allocations: 112.8 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.3793, allocations: 7.938 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.3804, allocations: 229.1 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 2.775e-06/0.3805, allocations: 0 / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002859/0.3833, allocations: 496.8 kB / 1.061 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.3834, allocations: 63.39 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.384, allocations: 445.8 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3841, allocations: 37.7 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.3843, allocations: 109.3 kB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.3843, allocations: 39.55 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.3846, allocations: 141.3 kB / 1.062 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3848, allocations: 326.8 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.3851, allocations: 139.9 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.3855, allocations: 189.9 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004665/0.3859, allocations: 303.1 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.386, allocations: 0 / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009748/0.3869, allocations: 0.5201 MB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.3871, allocations: 99.38 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3871, allocations: 3.984 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.3871, allocations: 7.938 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.3873, allocations: 19.97 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3873, allocations: 4 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.3879, allocations: 67.92 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.832e-05/0.388, allocations: 67.86 kB / 1.063 GB, free: 13.3 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.0003186/0.3884, allocations: 212.3 kB / 1.063 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.3884, allocations: 39.53 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.147e-05/0.3885, allocations: 39.8 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3885, allocations: 0 / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.3885, allocations: 0 / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.3886, allocations: 7.984 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.391, allocations: 0.7846 MB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.391, allocations: 0 / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.718e-05/0.391, allocations: 11.98 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.391, allocations: 4 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/0.3911, allocations: 23.92 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.3911, allocations: 11.92 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3911, allocations: 0 / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.393, allocations: 477.2 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.3933, allocations: 244.5 kB / 1.065 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.3934, allocations: 19.94 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.3939, allocations: 31.95 kB / 1.065 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.394, allocations: 8 kB / 1.065 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.986e-05/0.3941, allocations: 59.91 kB / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003957/0.3945, allocations: 323.1 kB / 1.065 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3945, allocations: 0 / 1.065 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000412/0.3949, allocations: 67.98 kB / 1.065 GB, free: 10.87 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.0002346/0.3951, allocations: 131.6 kB / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001456/0.3966, allocations: 482.5 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.3966, allocations: 0 / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008182/0.3974, allocations: 127.8 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.3979, allocations: 37.53 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.3998, allocations: 0.7724 MB / 1.067 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004776/0.4003, allocations: 0.7827 MB / 1.068 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.4003, allocations: 19.42 kB / 1.068 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.4003, allocations: 0 / 1.068 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of Templates: time 0.007677/0.408, allocations: 4.081 MB / 1.072 GB, free: 4.305 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