Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.009092/0.009093, allocations: 97.89 kB / 15.73 MB, free: 5.996 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.001473/0.001473, allocations: 187 kB / 16.67 MB, free: 5.926 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.916/1.916, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.975/2.975, allocations: 437 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 63.91 kB / 1.019 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4294, allocations: 151.6 MB / 1.167 GB, free: 6.762 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003033/0.4325, allocations: 1.742 MB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.4339, allocations: 0.6207 MB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.269e-05/0.434, allocations: 0 / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.4341, allocations: 11.86 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.4343, allocations: 39.56 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008309/0.4351, allocations: 358.8 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006525/0.4358, allocations: 0.6399 MB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.4359, allocations: 29.11 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003924/0.4363, allocations: 311.5 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.4366, allocations: 155.6 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.4367, allocations: 40 kB / 1.171 GB, free: 2.816 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.4368, allocations: 40 kB / 1.171 GB, free: 2.777 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.437, allocations: 131.5 kB / 1.171 GB, free: 2.648 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.4372, allocations: 219 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005889/0.4378, allocations: 0.5994 MB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.4378, allocations: 4 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.334e-06/0.4378, allocations: 0 / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.4379, allocations: 0 / 1.171 GB, free: 1.828 MB / 0.92 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.001316/0.4392, allocations: 0.917 MB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4392, allocations: 11.98 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.4394, allocations: 56.66 kB / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.4399, allocations: 338.5 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.4399, allocations: 20.36 kB / 1.173 GB, free: 376 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.44, allocations: 32.38 kB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009929/0.441, allocations: 237.9 kB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.441, allocations: 192 / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.4411, allocations: 7.938 kB / 1.173 GB, free: 92 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.4411, allocations: 3.984 kB / 1.173 GB, free: 88 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000779/0.4419, allocations: 115.9 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.4432, allocations: 0.6797 MB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4442, allocations: 178.5 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.4449, allocations: 112.8 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.445, allocations: 4 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009354/0.4459, allocations: 235.1 kB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.833e-06/0.4459, allocations: 0 / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002474/0.4484, allocations: 499.1 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.4485, allocations: 63.39 kB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.449, allocations: 441.9 kB / 1.175 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.704e-05/0.4491, allocations: 45.69 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.947e-05/0.4492, allocations: 101.4 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.4492, allocations: 47.69 kB / 1.175 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.4494, allocations: 133.4 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.4496, allocations: 330.8 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.4499, allocations: 139.9 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.4502, allocations: 186.9 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.4506, allocations: 299.3 kB / 1.177 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4506, allocations: 3.938 kB / 1.177 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008625/0.4514, allocations: 0.5182 MB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4516, allocations: 95.38 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.4516, allocations: 4 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.4516, allocations: 0 / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.4518, allocations: 27.91 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4518, allocations: 4 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.4523, allocations: 63.98 kB / 1.177 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.144e-05/0.4524, allocations: 63.97 kB / 1.177 GB, free: 11.55 MB / 0.9356 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.0002875/0.4527, allocations: 224.2 kB / 1.177 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.193e-05/0.4527, allocations: 43.73 kB / 1.178 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.955e-05/0.4528, allocations: 35.8 kB / 1.178 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4528, allocations: 4 kB / 1.178 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4529, allocations: 4 kB / 1.178 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4529, allocations: 0 / 1.178 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.455, allocations: 0.7895 MB / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.455, allocations: 0 / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.594e-05/0.4551, allocations: 7.984 kB / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4551, allocations: 4 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.4551, allocations: 23.92 kB / 1.178 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4551, allocations: 3.938 kB / 1.178 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4552, allocations: 4 kB / 1.178 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.4568, allocations: 483.4 kB / 1.179 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.4571, allocations: 244.7 kB / 1.179 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/0.4572, allocations: 12 kB / 1.179 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004661/0.4577, allocations: 31.91 kB / 1.179 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.4577, allocations: 15.92 kB / 1.179 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.684e-05/0.4578, allocations: 59.97 kB / 1.179 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003143/0.4581, allocations: 315.1 kB / 1.179 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4581, allocations: 4 kB / 1.179 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003789/0.4585, allocations: 75.94 kB / 1.18 GB, free: 9.105 MB / 0.9356 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.0002546/0.4588, allocations: 124 kB / 1.18 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.4601, allocations: 483.9 kB / 1.18 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4601, allocations: 0 / 1.18 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007637/0.4609, allocations: 123.9 kB / 1.18 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.4613, allocations: 37.47 kB / 1.18 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.4628, allocations: 0.6048 MB / 1.181 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.4632, allocations: 0.7864 MB / 1.182 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.6e-05/0.4633, allocations: 13.42 kB / 1.182 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.4633, allocations: 19.44 kB / 1.182 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of SimCode: time 5.41e-07/0.4633, allocations: 0 / 1.182 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of Templates: time 0.009592/0.4729, allocations: 5.434 MB / 1.187 GB, free: 1.32 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches