Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007493/0.007493, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001416/0.001416, allocations: 194.3 kB / 16.67 MB, free: 5.938 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.83 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3398, allocations: 159.9 MB / 1.226 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus): time 0.002861/0.3427, allocations: 1.522 MB / 1.227 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.344, allocations: 0.5499 MB / 1.228 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.686e-05/0.3441, allocations: 4 kB / 1.228 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.3442, allocations: 3.938 kB / 1.228 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.3444, allocations: 27.84 kB / 1.228 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000885/0.3453, allocations: 306.7 kB / 1.228 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005887/0.3459, allocations: 0.5072 MB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.76e-05/0.3459, allocations: 7.984 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.3464, allocations: 271.6 kB / 1.229 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003202/0.3467, allocations: 151.6 kB / 1.229 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3468, allocations: 28 kB / 1.229 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.3469, allocations: 24 kB / 1.229 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3471, allocations: 115.7 kB / 1.229 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.3473, allocations: 187 kB / 1.229 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.3477, allocations: 418.4 kB / 1.23 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.3478, allocations: 7.984 kB / 1.23 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3478, allocations: 0 / 1.23 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.211e-05/0.3478, allocations: 0 / 1.23 GB, free: 5.141 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001343/0.3491, allocations: 0.8781 MB / 1.23 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3492, allocations: 8.031 kB / 1.23 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.3493, allocations: 56.64 kB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.3497, allocations: 310.6 kB / 1.231 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.3498, allocations: 20.36 kB / 1.231 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.3498, allocations: 24.36 kB / 1.231 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009556/0.3508, allocations: 214 kB / 1.231 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3508, allocations: 192 / 1.231 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.3509, allocations: 15.92 kB / 1.231 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.3509, allocations: 0 / 1.231 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007514/0.3516, allocations: 98.3 kB / 1.231 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.3521, allocations: 389.3 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.3531, allocations: 182.3 kB / 1.232 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.3538, allocations: 112.8 kB / 1.232 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3539, allocations: 7.984 kB / 1.232 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009142/0.3548, allocations: 215.1 kB / 1.232 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.3548, allocations: 0 / 1.232 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.002526/0.3573, allocations: 0.4885 MB / 1.232 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.3574, allocations: 63.33 kB / 1.233 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.3578, allocations: 417.9 kB / 1.233 GB, free: 1.449 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.211e-05/0.3579, allocations: 37.7 kB / 1.233 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.358, allocations: 97.44 kB / 1.233 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.358, allocations: 35.75 kB / 1.233 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.3582, allocations: 129.4 kB / 1.233 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3583, allocations: 322.8 kB / 1.234 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.3586, allocations: 115.9 kB / 1.234 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.3589, allocations: 178.8 kB / 1.234 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.3593, allocations: 282.9 kB / 1.234 GB, free: 204 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3593, allocations: 0 / 1.234 GB, free: 204 kB / 0.9825 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008512/0.3602, allocations: 494.4 kB / 1.235 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.186e-05/0.3603, allocations: 91.31 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3603, allocations: 4 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.3603, allocations: 4 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.3605, allocations: 24.09 kB / 1.235 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3605, allocations: 8 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004767/0.361, allocations: 59.75 kB / 1.235 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.943e-05/0.3611, allocations: 59.98 kB / 1.235 GB, free: 15.44 MB / 0.9981 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.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.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.0002367/0.3614, allocations: 196.4 kB / 1.235 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.3614, allocations: 47.69 kB / 1.235 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.172e-05/0.3615, allocations: 35.75 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3615, allocations: 4 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3615, allocations: 0 / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3615, allocations: 0 / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.3638, allocations: 0.756 MB / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3638, allocations: 0 / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.535e-05/0.3638, allocations: 4 kB / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3638, allocations: 0 / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.3639, allocations: 23.97 kB / 1.236 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3639, allocations: 0 / 1.236 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3639, allocations: 0 / 1.236 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.3656, allocations: 479.4 kB / 1.236 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.3659, allocations: 204.6 kB / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.081e-05/0.3659, allocations: 12 kB / 1.236 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.3664, allocations: 31.97 kB / 1.237 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.3665, allocations: 7.984 kB / 1.237 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/0.3666, allocations: 59.97 kB / 1.237 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000284/0.3668, allocations: 299 kB / 1.237 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3668, allocations: 0 / 1.237 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003498/0.3672, allocations: 67.98 kB / 1.237 GB, free: 13.15 MB / 0.9981 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.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,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.0001597/0.3674, allocations: 120.9 kB / 1.237 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001312/0.3687, allocations: 442.5 kB / 1.237 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3687, allocations: 0 / 1.237 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007747/0.3695, allocations: 118.7 kB / 1.238 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3699, allocations: 37.8 kB / 1.238 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.3714, allocations: 0.5588 MB / 1.238 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.3718, allocations: 0.7707 MB / 1.239 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.052e-05/0.3719, allocations: 13.09 kB / 1.239 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.3719, allocations: 19.42 kB / 1.239 GB, free: 11 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/0.3719, allocations: 0 / 1.239 GB, free: 11 MB / 0.9981 GB Notification: Performance of Templates: time 0.009456/0.3814, allocations: 4.935 MB / 1.244 GB, free: 5.961 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches