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.001673/0.001672, 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.002302/0.002303, allocations: 195.2 kB / 16.14 MB, free: 6.637 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.574/1.574, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.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.856/2.856, allocations: 437 MB / 0.71 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 71.89 kB / 0.8686 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8725/0.8745, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.004673/0.8792, allocations: 1.794 MB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001872/0.8811, allocations: 0.687 MB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.6e-05/0.8812, allocations: 7.938 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.8814, allocations: 11.92 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.8815, allocations: 27.84 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000891/0.8824, allocations: 335.9 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006025/0.883, allocations: 0.5267 MB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.8832, allocations: 40.78 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004957/0.8837, allocations: 315.1 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003516/0.8841, allocations: 171.1 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.8842, allocations: 16 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.792e-05/0.8843, allocations: 16 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.8845, allocations: 119.5 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.8848, allocations: 206.7 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006908/0.8855, allocations: 0.5858 MB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8855, allocations: 4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8855, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.8855, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 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.001667/0.8872, allocations: 0.9015 MB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.8873, allocations: 11.98 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.8874, allocations: 52.47 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.888, allocations: 334.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.981e-05/0.8881, allocations: 32.47 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.695e-05/0.8882, allocations: 32.36 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.8894, allocations: 230 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.8895, allocations: 3.938 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.8895, allocations: 4 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.8895, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008741/0.8904, allocations: 115.9 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.8921, allocations: 0.672 MB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.8933, allocations: 186.4 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008663/0.8942, allocations: 112.8 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.8942, allocations: 8 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.8954, allocations: 231.1 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.675e-06/0.8954, allocations: 3.938 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002952/0.8983, allocations: 494.4 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.8984, allocations: 67.38 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.899, allocations: 441.8 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.8991, allocations: 49.69 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.8992, allocations: 101.3 kB / 1.025 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.8993, allocations: 35.61 kB / 1.025 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/0.8995, allocations: 137.3 kB / 1.025 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.8997, allocations: 326.8 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.9001, allocations: 139.9 kB / 1.026 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.9004, allocations: 205.9 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.9009, allocations: 298.8 kB / 1.026 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.9009, allocations: 0 / 1.026 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001003/0.9019, allocations: 0.5292 MB / 1.027 GB, free: 7.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.9021, allocations: 95.38 kB / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.9021, allocations: 0 / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.9021, allocations: 4 kB / 1.027 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.9023, allocations: 23.97 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.9023, allocations: 7.938 kB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005563/0.9029, allocations: 59.98 kB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.903, allocations: 67.86 kB / 1.027 GB, free: 7.664 MB / 0.7794 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.0002979/0.9033, allocations: 216.3 kB / 1.027 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.9034, allocations: 39.53 kB / 1.027 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.68e-05/0.9034, allocations: 43.8 kB / 1.027 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.9035, allocations: 3.938 kB / 1.027 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.9035, allocations: 0 / 1.027 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.9035, allocations: 3.984 kB / 1.027 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.906, allocations: 0.7882 MB / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.906, allocations: 0 / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.9061, allocations: 11.92 kB / 1.028 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.9061, allocations: 0 / 1.028 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.9061, allocations: 23.91 kB / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.9061, allocations: 0 / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.9061, allocations: 0 / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.9081, allocations: 475.7 kB / 1.029 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.9085, allocations: 248.4 kB / 1.029 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.843e-05/0.9085, allocations: 19.94 kB / 1.029 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005235/0.9091, allocations: 39.95 kB / 1.029 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.9091, allocations: 4 kB / 1.029 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/0.9092, allocations: 55.97 kB / 1.029 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003899/0.9096, allocations: 323.1 kB / 1.029 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9096, allocations: 0 / 1.029 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003887/0.91, allocations: 68 kB / 1.029 GB, free: 5.23 MB / 0.7794 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.0002635/0.9103, allocations: 131.7 kB / 1.03 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001486/0.9118, allocations: 476.4 kB / 1.03 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.9118, allocations: 3.938 kB / 1.03 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008629/0.9127, allocations: 119.8 kB / 1.03 GB, free: 4.484 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.9131, allocations: 45.89 kB / 1.03 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.9149, allocations: 0.7171 MB / 1.031 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.9154, allocations: 0.7828 MB / 1.032 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.858e-05/0.9155, allocations: 17.42 kB / 1.032 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.742e-05/0.9156, allocations: 19.42 kB / 1.032 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.9156, allocations: 0 / 1.032 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of Templates: time 0.01134/0.9269, allocations: 5.468 MB / 1.037 GB, free: 13.29 MB / 0.795 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches