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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009452/0.0009452, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.00106/0.00106, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.3 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.591/2.591, allocations: 390.9 MB / 0.666 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 12 kB / 0.8154 GB, free: 13.53 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8163/0.8167, allocations: 142.4 MB / 0.9545 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.001708/0.8184, allocations: 1.421 MB / 0.9559 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.8196, allocations: 0.6116 MB / 0.9565 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.8197, allocations: 5.188 kB / 0.9565 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.238e-05/0.8198, allocations: 3.938 kB / 0.9565 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.8199, allocations: 28.28 kB / 0.9565 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007229/0.8207, allocations: 266.2 kB / 0.9567 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004654/0.8211, allocations: 474.8 kB / 0.9572 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.8212, allocations: 38.33 kB / 0.9572 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005254/0.8218, allocations: 324.7 kB / 0.9575 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.8221, allocations: 185.3 kB / 0.9577 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.021e-05/0.8222, allocations: 13.75 kB / 0.9577 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.76e-05/0.8223, allocations: 15.12 kB / 0.9577 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.8224, allocations: 118.8 kB / 0.9579 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.725e-05/0.8225, allocations: 118.7 kB / 0.958 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.8228, allocations: 470.6 kB / 0.9584 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.8229, allocations: 0 / 0.9584 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8229, allocations: 3.938 kB / 0.9584 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.8229, allocations: 0 / 0.9584 GB, free: 5.238 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.00109/0.824, allocations: 0.7818 MB / 0.9592 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.824, allocations: 8.75 kB / 0.9592 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.8242, allocations: 54.83 kB / 0.9593 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.8246, allocations: 324.1 kB / 0.9596 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.97e-05/0.8246, allocations: 20.19 kB / 0.9596 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.421e-05/0.8247, allocations: 35.61 kB / 0.9596 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009057/0.8256, allocations: 250.6 kB / 0.9599 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8257, allocations: 3.984 kB / 0.9599 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.8257, allocations: 5.109 kB / 0.9599 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.8257, allocations: 2.219 kB / 0.9599 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007049/0.8264, allocations: 123.9 kB / 0.96 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.8276, allocations: 0.6772 MB / 0.9606 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009558/0.8286, allocations: 196.2 kB / 0.9608 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006652/0.8293, allocations: 126.4 kB / 0.961 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.8293, allocations: 2.156 kB / 0.961 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008332/0.8301, allocations: 248 kB / 0.9612 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.8301, allocations: 1.344 kB / 0.9612 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002306/0.8324, allocations: 0.5189 MB / 0.9617 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.8325, allocations: 61.31 kB / 0.9618 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004809/0.833, allocations: 439.5 kB / 0.9622 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.258e-05/0.8331, allocations: 50.56 kB / 0.9622 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.066e-05/0.8332, allocations: 100.6 kB / 0.9623 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.8332, allocations: 42.12 kB / 0.9624 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.044e-05/0.8332, allocations: 9.625 kB / 0.9624 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.318e-05/0.8333, allocations: 322 kB / 0.9627 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.8336, allocations: 135.2 kB / 0.9628 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.8339, allocations: 200.7 kB / 0.963 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002931/0.8342, allocations: 209.2 kB / 0.9632 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.8342, allocations: 1 kB / 0.9632 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009298/0.8352, allocations: 0.5271 MB / 0.9637 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-05/0.8352, allocations: 97.59 kB / 0.9638 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.8353, allocations: 2.031 kB / 0.9638 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.8353, allocations: 2.812 kB / 0.9638 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.8354, allocations: 22.27 kB / 0.9638 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.8355, allocations: 2.156 kB / 0.9638 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005102/0.836, allocations: 74.09 kB / 0.9639 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.626e-05/0.8361, allocations: 64.59 kB / 0.964 GB, free: 1.234 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 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002326/0.8363, allocations: 213.7 kB / 0.9642 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-05/0.8364, allocations: 40.97 kB / 0.9642 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-05/0.8365, allocations: 41.06 kB / 0.9642 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.8365, allocations: 0.9688 kB / 0.9642 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.8365, allocations: 9 kB / 0.9643 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.8365, allocations: 0 / 0.9643 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.8385, allocations: 0.8169 MB / 0.9651 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.8385, allocations: 1.094 kB / 0.9651 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.422e-05/0.8385, allocations: 3.406 kB / 0.9651 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.8386, allocations: 1.062 kB / 0.9651 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.8386, allocations: 23.38 kB / 0.9651 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.8386, allocations: 5 kB / 0.9651 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.8386, allocations: 4.984 kB / 0.9651 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.8402, allocations: 499.8 kB / 0.9656 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.8405, allocations: 247.5 kB / 0.9658 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.799e-05/0.8406, allocations: 14.84 kB / 0.9658 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004376/0.8411, allocations: 41.22 kB / 0.9659 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.8411, allocations: 12.39 kB / 0.9659 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.45e-05/0.8412, allocations: 60.48 kB / 0.9659 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003848/0.8416, allocations: 314.4 kB / 0.9662 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8416, allocations: 0.9688 kB / 0.9662 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000415/0.842, allocations: 68.3 kB / 0.9663 GB, free: 15.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002085/0.8422, allocations: 133.1 kB / 0.9664 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001317/0.8436, allocations: 479.6 kB / 0.9669 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.8436, allocations: 4.125 kB / 0.9669 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000712/0.8443, allocations: 131.7 kB / 0.967 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.8447, allocations: 35.39 kB / 0.967 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.8463, allocations: 0.7124 MB / 0.9677 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.8467, allocations: 0.787 MB / 0.9685 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.82e-05/0.8468, allocations: 13.55 kB / 0.9685 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.416e-05/0.8469, allocations: 22.95 kB / 0.9685 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.8469, allocations: 0 / 0.9685 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of Templates: time 0.01128/0.8582, allocations: 5.327 MB / 0.9737 GB, free: 11.03 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