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.001521/0.001521, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001479/0.001479, allocations: 187 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.482/2.482, allocations: 437 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 67.91 kB / 1.019 GB, free: 9.32 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8328/0.8342, allocations: 151.6 MB / 1.167 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.00307/0.8374, allocations: 1.746 MB / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.8388, allocations: 0.6168 MB / 1.17 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.8389, allocations: 4 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.839, allocations: 11.86 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.8392, allocations: 39.56 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009592/0.8402, allocations: 370.6 kB / 1.17 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0007304/0.8409, allocations: 0.636 MB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.841, allocations: 29.09 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004977/0.8416, allocations: 315.6 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.8419, allocations: 156 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.842, allocations: 40 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 8.435e-05/0.8421, allocations: 40 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.8423, allocations: 127.7 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002136/0.8425, allocations: 211 kB / 1.172 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005643/0.8431, allocations: 0.6014 MB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.8431, allocations: 0 / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8431, allocations: 3.938 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.666e-05/0.8431, allocations: 7.938 kB / 1.172 GB, free: 14.82 MB / 0.9044 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.001481/0.8446, allocations: 0.8957 MB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.8446, allocations: 16.88 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.8448, allocations: 56.45 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.8453, allocations: 330.2 kB / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.8454, allocations: 20.31 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.564e-05/0.8455, allocations: 36.3 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.8465, allocations: 237.9 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.8465, allocations: 192 / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.8466, allocations: 11.92 kB / 1.174 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.8466, allocations: 0 / 1.174 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008424/0.8474, allocations: 111.9 kB / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.8488, allocations: 0.6681 MB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.8499, allocations: 182.4 kB / 1.175 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007561/0.8507, allocations: 117 kB / 1.175 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.8507, allocations: 12 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009908/0.8517, allocations: 239 kB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.8517, allocations: 3.938 kB / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002599/0.8543, allocations: 494.1 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.8544, allocations: 67.39 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004648/0.8549, allocations: 437.9 kB / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.8549, allocations: 41.69 kB / 1.176 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.8551, allocations: 97.36 kB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.099e-05/0.8551, allocations: 39.55 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.8554, allocations: 145.2 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.8556, allocations: 326.8 kB / 1.177 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.8559, allocations: 135.9 kB / 1.177 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.8563, allocations: 197.9 kB / 1.177 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004565/0.8567, allocations: 303.3 kB / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.8567, allocations: 0 / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009487/0.8577, allocations: 0.5243 MB / 1.178 GB, free: 8.816 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.886e-05/0.8578, allocations: 95.38 kB / 1.178 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.8578, allocations: 0 / 1.178 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.8578, allocations: 4 kB / 1.178 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.858, allocations: 15.98 kB / 1.178 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.858, allocations: 7.938 kB / 1.178 GB, free: 8.684 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.8585, allocations: 59.84 kB / 1.178 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.364e-05/0.8586, allocations: 64.02 kB / 1.178 GB, free: 8.562 MB / 0.9044 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.0002388/0.8589, allocations: 216.3 kB / 1.178 GB, free: 8.344 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.8589, allocations: 35.53 kB / 1.178 GB, free: 8.309 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.093e-05/0.859, allocations: 51.72 kB / 1.178 GB, free: 8.262 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.859, allocations: 7.938 kB / 1.178 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.859, allocations: 3.938 kB / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.859, allocations: 0 / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.8614, allocations: 0.7834 MB / 1.179 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.8614, allocations: 0 / 1.179 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.046e-05/0.8615, allocations: 11.94 kB / 1.179 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.8615, allocations: 0 / 1.179 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.8615, allocations: 19.97 kB / 1.179 GB, free: 7.375 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.8616, allocations: 11.94 kB / 1.179 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8616, allocations: 0 / 1.179 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.8634, allocations: 481.4 kB / 1.18 GB, free: 6.879 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003714/0.8638, allocations: 248.4 kB / 1.18 GB, free: 6.617 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/0.8639, allocations: 16 kB / 1.18 GB, free: 6.602 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.8644, allocations: 31.91 kB / 1.18 GB, free: 6.57 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.8644, allocations: 11.98 kB / 1.18 GB, free: 6.559 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.056e-05/0.8645, allocations: 55.97 kB / 1.18 GB, free: 6.504 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000347/0.8649, allocations: 319.1 kB / 1.18 GB, free: 6.195 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8649, allocations: 0 / 1.18 GB, free: 6.195 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004359/0.8653, allocations: 75.89 kB / 1.18 GB, free: 6.121 MB / 0.9044 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.0002224/0.8655, allocations: 131.2 kB / 1.18 GB, free: 5.98 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001457/0.867, allocations: 462.5 kB / 1.181 GB, free: 5.504 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.867, allocations: 384 / 1.181 GB, free: 5.504 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0008268/0.8679, allocations: 130.5 kB / 1.181 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.8683, allocations: 34.67 kB / 1.181 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.8702, allocations: 0.6388 MB / 1.182 GB, free: 4.676 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.8707, allocations: 0.7903 MB / 1.182 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.096e-05/0.8708, allocations: 19.42 kB / 1.182 GB, free: 3.84 MB / 0.9044 GB Notification: Performance of SimCode: time 6.11e-07/0.8708, allocations: 0 / 1.182 GB, free: 3.84 MB / 0.9044 GB Notification: Performance of Templates: time 0.007634/0.8784, allocations: 4.088 MB / 1.186 GB, free: 15.7 MB / 0.92 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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