Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 103.3 kB / 16.41 MB, free: 6.457 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.001269/0.001269, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.254/1.254, allocations: 222.9 MB / 241 MB, free: 15.07 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.313/2.313, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.91 kB / 1.019 GB, free: 9.234 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6999/0.7012, allocations: 151.6 MB / 1.167 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002716/0.7039, allocations: 1.735 MB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.7052, allocations: 0.6207 MB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.331e-05/0.7053, allocations: 0 / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 9.296e-05/0.7054, allocations: 11.81 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.7055, allocations: 39.56 kB / 1.17 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008016/0.7063, allocations: 371.2 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0006563/0.707, allocations: 0.6321 MB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.7071, allocations: 37.09 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.7075, allocations: 315.6 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002871/0.7078, allocations: 156.5 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.182e-05/0.7079, allocations: 40 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 7.81e-05/0.708, allocations: 40 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.7082, allocations: 127.7 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.7084, allocations: 219 kB / 1.172 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005526/0.7089, allocations: 0.5923 MB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7089, allocations: 3.938 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.767e-06/0.7089, allocations: 0 / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.709, allocations: 3.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.001322/0.7103, allocations: 0.9209 MB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.7103, allocations: 16.58 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.7105, allocations: 52.66 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.7108, allocations: 334.5 kB / 1.174 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.7109, allocations: 32.3 kB / 1.174 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/0.711, allocations: 28.36 kB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000908/0.7119, allocations: 237.9 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.7119, allocations: 192 / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.058e-05/0.712, allocations: 11.94 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.712, allocations: 0 / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007428/0.7127, allocations: 119.9 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.7139, allocations: 0.672 MB / 1.175 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009567/0.7149, allocations: 190.4 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006902/0.7156, allocations: 112.8 kB / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.7156, allocations: 4 kB / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008578/0.7165, allocations: 230.3 kB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.435e-06/0.7165, allocations: 0 / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002318/0.7188, allocations: 497.2 kB / 1.176 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.7189, allocations: 63.41 kB / 1.176 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.7193, allocations: 445.8 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.7194, allocations: 37.7 kB / 1.176 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.7195, allocations: 105.4 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.7195, allocations: 47.67 kB / 1.176 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.7197, allocations: 133.5 kB / 1.176 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.7198, allocations: 326.8 kB / 1.177 GB, free: 10 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.7201, allocations: 139.9 kB / 1.177 GB, free: 9.863 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.7204, allocations: 201.9 kB / 1.177 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.7208, allocations: 291.5 kB / 1.177 GB, free: 9.328 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.7208, allocations: 8 kB / 1.177 GB, free: 9.32 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007902/0.7216, allocations: 0.5148 MB / 1.178 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.7217, allocations: 99.36 kB / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.7217, allocations: 0 / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.7217, allocations: 4 kB / 1.178 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.7219, allocations: 23.92 kB / 1.178 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.7219, allocations: 4 kB / 1.178 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004464/0.7224, allocations: 60.05 kB / 1.178 GB, free: 8.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.299e-05/0.7224, allocations: 63.97 kB / 1.178 GB, free: 8.527 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.0002294/0.7227, allocations: 220.2 kB / 1.178 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.7227, allocations: 39.7 kB / 1.178 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.372e-05/0.7228, allocations: 43.78 kB / 1.178 GB, free: 8.227 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7228, allocations: 4 kB / 1.178 GB, free: 8.223 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7228, allocations: 4 kB / 1.178 GB, free: 8.219 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.7228, allocations: 0 / 1.178 GB, free: 8.219 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.7248, allocations: 0.7873 MB / 1.179 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7248, allocations: 0 / 1.179 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.584e-05/0.7249, allocations: 15.94 kB / 1.179 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.7249, allocations: 0 / 1.179 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.7249, allocations: 19.97 kB / 1.179 GB, free: 7.336 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.725, allocations: 7.938 kB / 1.179 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.725, allocations: 0 / 1.179 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.7265, allocations: 489.4 kB / 1.18 GB, free: 6.836 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.7268, allocations: 244.6 kB / 1.18 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.812e-05/0.7269, allocations: 19.98 kB / 1.18 GB, free: 6.559 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.7273, allocations: 31.91 kB / 1.18 GB, free: 6.527 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.7274, allocations: 7.984 kB / 1.18 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.246e-05/0.7274, allocations: 59.98 kB / 1.18 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0003131/0.7277, allocations: 323.1 kB / 1.18 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7278, allocations: 0 / 1.18 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003593/0.7281, allocations: 75.94 kB / 1.18 GB, free: 6.074 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.0001728/0.7283, allocations: 119.2 kB / 1.18 GB, free: 5.945 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001223/0.7295, allocations: 474.5 kB / 1.181 GB, free: 5.457 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.7295, allocations: 4 kB / 1.181 GB, free: 5.453 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006823/0.7302, allocations: 122 kB / 1.181 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.7306, allocations: 37.47 kB / 1.181 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.732, allocations: 0.6567 MB / 1.182 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.7324, allocations: 0.7825 MB / 1.182 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.7324, allocations: 19.44 kB / 1.183 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of SimCode: time 2e-07/0.7324, allocations: 0 / 1.183 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of Templates: time 0.005938/0.7384, allocations: 4.094 MB / 1.187 GB, free: 15.64 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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