Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.006883/0.006883, allocations: 169 kB / 16.26 MB, free: 6.66 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.496/1.496, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.549/2.549, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004193, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8588/0.8592, allocations: 142.4 MB / 0.9551 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.002371/0.8617, allocations: 1.448 MB / 0.9565 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.8634, allocations: 0.6891 MB / 0.9572 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.005e-05/0.8635, allocations: 0 / 0.9572 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.8636, allocations: 9.047 kB / 0.9572 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.8638, allocations: 31.03 kB / 0.9572 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008559/0.8647, allocations: 336 kB / 0.9575 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.8652, allocations: 0.5357 MB / 0.958 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.8654, allocations: 33.55 kB / 0.9581 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004677/0.8659, allocations: 319.5 kB / 0.9584 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.8661, allocations: 159.4 kB / 0.9585 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.264e-05/0.8662, allocations: 14.75 kB / 0.9585 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.8663, allocations: 16.94 kB / 0.9586 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.8664, allocations: 116.9 kB / 0.9587 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.8667, allocations: 226.5 kB / 0.9589 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.8672, allocations: 0.5688 MB / 0.9594 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.8672, allocations: 3.938 kB / 0.9594 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.124e-06/0.8672, allocations: 0 / 0.9594 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.802e-06/0.8672, allocations: 1.375 kB / 0.9594 GB, free: 4.559 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.001084/0.8683, allocations: 0.776 MB / 0.9602 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.8684, allocations: 14.19 kB / 0.9602 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.8685, allocations: 52.28 kB / 0.9603 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.8689, allocations: 331.7 kB / 0.9606 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.904e-05/0.869, allocations: 24.64 kB / 0.9606 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.8691, allocations: 32.39 kB / 0.9606 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.8702, allocations: 254.8 kB / 0.9609 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.8702, allocations: 3.938 kB / 0.9609 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.8703, allocations: 4.906 kB / 0.9609 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.8703, allocations: 3 kB / 0.9609 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.8711, allocations: 127.3 kB / 0.961 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.8726, allocations: 0.6732 MB / 0.9617 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.8737, allocations: 201.1 kB / 0.9619 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007939/0.8745, allocations: 122.9 kB / 0.962 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.8746, allocations: 2.094 kB / 0.962 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/0.8756, allocations: 250.4 kB / 0.9622 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/0.8756, allocations: 0 / 0.9622 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002875/0.8785, allocations: 0.5212 MB / 0.9627 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.8785, allocations: 69.36 kB / 0.9628 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004971/0.879, allocations: 443.8 kB / 0.9632 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.588e-05/0.8791, allocations: 41.38 kB / 0.9633 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/0.8792, allocations: 105.9 kB / 0.9634 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.8793, allocations: 33.25 kB / 0.9634 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.8793, allocations: 41.62 kB / 0.9634 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.447e-05/0.8794, allocations: 325.5 kB / 0.9637 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.8798, allocations: 139.9 kB / 0.9639 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.8801, allocations: 197.5 kB / 0.9641 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.8805, allocations: 302.4 kB / 0.9644 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.8806, allocations: 0 / 0.9644 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001029/0.8816, allocations: 0.5259 MB / 0.9649 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.531e-05/0.8817, allocations: 95.44 kB / 0.965 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.8817, allocations: 0.9688 kB / 0.965 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.8817, allocations: 3 kB / 0.965 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.8819, allocations: 31 kB / 0.965 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.8819, allocations: 7 kB / 0.965 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.8825, allocations: 58.23 kB / 0.9651 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.8826, allocations: 64.11 kB / 0.9651 GB, free: 448 kB / 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.000299/0.883, allocations: 229 kB / 0.9653 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.883, allocations: 36.56 kB / 0.9654 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.095e-05/0.8831, allocations: 41.42 kB / 0.9654 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.8831, allocations: 2.25 kB / 0.9654 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.8831, allocations: 3.984 kB / 0.9654 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.8832, allocations: 3.938 kB / 0.9654 GB, free: 200 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.8857, allocations: 0.8142 MB / 0.9662 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.8857, allocations: 0 / 0.9662 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-05/0.8857, allocations: 4.031 kB / 0.9662 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.8857, allocations: 1 kB / 0.9662 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.8858, allocations: 23.41 kB / 0.9662 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.8858, allocations: 1.344 kB / 0.9662 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.8858, allocations: 3.938 kB / 0.9662 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.8877, allocations: 499.4 kB / 0.9667 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.888, allocations: 243.9 kB / 0.967 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.936e-05/0.8881, allocations: 27.02 kB / 0.967 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.8886, allocations: 36.53 kB / 0.967 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.8887, allocations: 8.328 kB / 0.967 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.038e-05/0.8888, allocations: 53.61 kB / 0.9671 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004517/0.8893, allocations: 325.9 kB / 0.9674 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8893, allocations: 0 / 0.9674 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004985/0.8898, allocations: 72.16 kB / 0.9674 GB, free: 14.89 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.0002573/0.89, allocations: 133.8 kB / 0.9676 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001491/0.8915, allocations: 483.1 kB / 0.968 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8915, allocations: 0 / 0.968 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.8924, allocations: 143.6 kB / 0.9682 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.8929, allocations: 34.34 kB / 0.9682 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.8948, allocations: 0.7357 MB / 0.9689 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.8953, allocations: 0.787 MB / 0.9697 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.678e-05/0.8954, allocations: 17.61 kB / 0.9697 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.8955, allocations: 14.44 kB / 0.9697 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of SimCode: time 5.41e-07/0.8955, allocations: 0 / 0.9697 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of Templates: time 0.01218/0.9077, allocations: 5.415 MB / 0.975 GB, free: 10.16 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches