Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001912/0.001912, allocations: 201.6 kB / 16.14 MB, free: 6.648 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.504/1.504, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.501/2.501, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032/1.034, allocations: 140.4 MB / 0.949 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.003959/1.038, allocations: 1.793 MB / 0.9507 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001682/1.039, allocations: 0.6898 MB / 0.9514 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/1.04, allocations: 0 / 0.9514 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001425/1.04, allocations: 11.86 kB / 0.9514 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002028/1.04, allocations: 28.48 kB / 0.9514 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/1.041, allocations: 327.9 kB / 0.9517 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005801/1.041, allocations: 0.5354 MB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/1.042, allocations: 43.06 kB / 0.9523 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004719/1.042, allocations: 311.3 kB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002929/1.042, allocations: 172 kB / 0.9528 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001054/1.043, allocations: 15.78 kB / 0.9528 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.851e-05/1.043, allocations: 18.69 kB / 0.9528 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001814/1.043, allocations: 120.4 kB / 0.9529 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002598/1.043, allocations: 198.5 kB / 0.9531 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006083/1.044, allocations: 0.5835 MB / 0.9537 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.044, allocations: 3.984 kB / 0.9537 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.62e-07/1.044, allocations: 0 / 0.9537 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.484e-06/1.044, allocations: 0 / 0.9537 GB, free: 5.699 MB / 0.7169 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.00157/1.045, allocations: 0.9034 MB / 0.9546 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.587e-05/1.045, allocations: 13.5 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/1.046, allocations: 59.33 kB / 0.9546 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/1.046, allocations: 329 kB / 0.9549 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.517e-05/1.046, allocations: 24.58 kB / 0.955 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/1.046, allocations: 28.78 kB / 0.955 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/1.047, allocations: 238.5 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/1.047, allocations: 7.875 kB / 0.9552 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/1.048, allocations: 5.391 kB / 0.9552 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/1.048, allocations: 2.594 kB / 0.9552 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008229/1.048, allocations: 113.9 kB / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/1.05, allocations: 0.6773 MB / 0.956 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/1.051, allocations: 187.5 kB / 0.9562 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008029/1.052, allocations: 117.5 kB / 0.9563 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/1.052, allocations: 5.375 kB / 0.9563 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/1.053, allocations: 227.2 kB / 0.9565 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 3.186e-06/1.053, allocations: 1.375 kB / 0.9565 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002935/1.056, allocations: 498.8 kB / 0.957 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/1.056, allocations: 60.66 kB / 0.9571 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006107/1.057, allocations: 447.2 kB / 0.9575 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001141/1.057, allocations: 42.69 kB / 0.9575 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.827e-05/1.057, allocations: 100.5 kB / 0.9576 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.564e-05/1.057, allocations: 38.75 kB / 0.9577 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/1.057, allocations: 136.1 kB / 0.9578 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.146e-05/1.057, allocations: 330 kB / 0.9581 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/1.058, allocations: 136.3 kB / 0.9582 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/1.058, allocations: 197.2 kB / 0.9584 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/1.058, allocations: 307 kB / 0.9587 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.058, allocations: 1.062 kB / 0.9587 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009648/1.059, allocations: 0.5198 MB / 0.9592 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.059, allocations: 97.69 kB / 0.9593 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.059, allocations: 5.078 kB / 0.9593 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.265e-05/1.059, allocations: 3.719 kB / 0.9593 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/1.06, allocations: 22.2 kB / 0.9593 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/1.06, allocations: 6.312 kB / 0.9593 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/1.06, allocations: 59.08 kB / 0.9594 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/1.061, allocations: 68.62 kB / 0.9595 GB, free: 1.469 MB / 0.7169 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.0003593/1.061, allocations: 213.1 kB / 0.9597 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.319e-05/1.061, allocations: 40.97 kB / 0.9597 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.976e-05/1.061, allocations: 47.66 kB / 0.9598 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/1.061, allocations: 1.938 kB / 0.9598 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/1.061, allocations: 5.219 kB / 0.9598 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/1.061, allocations: 0 / 0.9598 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/1.064, allocations: 0.7898 MB / 0.9605 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/1.064, allocations: 3.938 kB / 0.9605 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.551e-05/1.064, allocations: 3.719 kB / 0.9605 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/1.064, allocations: 1.125 kB / 0.9605 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/1.064, allocations: 27.09 kB / 0.9606 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/1.064, allocations: 1.25 kB / 0.9606 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.064, allocations: 0 / 0.9606 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/1.066, allocations: 483.8 kB / 0.961 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/1.066, allocations: 243.9 kB / 0.9613 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.983e-05/1.066, allocations: 23.17 kB / 0.9613 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/1.067, allocations: 31.69 kB / 0.9613 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/1.067, allocations: 12.39 kB / 0.9613 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/1.067, allocations: 58.59 kB / 0.9614 GB, free: 144 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000433/1.067, allocations: 316.1 kB / 0.9617 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.21e-07/1.067, allocations: 1.25 kB / 0.9617 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008441/1.068, allocations: 67.8 kB / 0.9617 GB, free: 15.94 MB / 0.7325 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.0003953/1.068, allocations: 130.4 kB / 0.9619 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001666/1.07, allocations: 471.1 kB / 0.9623 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/1.07, allocations: 0.9688 kB / 0.9623 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008576/1.071, allocations: 132.2 kB / 0.9624 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/1.072, allocations: 38.56 kB / 0.9625 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/1.074, allocations: 0.7201 MB / 0.9632 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/1.074, allocations: 0.7878 MB / 0.964 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001032/1.074, allocations: 16.98 kB / 0.964 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/1.074, allocations: 14.88 kB / 0.964 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/1.074, allocations: 0 / 0.964 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of Templates: time 0.01413/1.088, allocations: 5.453 MB / 0.9693 GB, free: 11.2 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches