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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00117/0.00117, allocations: 92.31 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.002016/0.002016, 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.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.668/2.668, allocations: 437.7 MB / 0.7117 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004828, allocations: 12 kB / 0.8722 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8136/0.8141, allocations: 153.8 MB / 1.022 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002109/0.8163, allocations: 1.429 MB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.8177, allocations: 0.6092 MB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.082e-05/0.8178, allocations: 0 / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.8179, allocations: 11.92 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.8181, allocations: 31.84 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007573/0.8188, allocations: 259.5 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005264/0.8194, allocations: 479.3 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.8195, allocations: 21.11 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006126/0.8201, allocations: 323.4 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.8205, allocations: 195.6 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.272e-05/0.8206, allocations: 12 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.8206, allocations: 16 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.8208, allocations: 127.5 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.821, allocations: 101.5 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.8215, allocations: 476.8 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 9.839e-06/0.8215, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.745e-06/0.8215, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.8215, allocations: 0 / 1.026 GB, free: 12.09 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.001299/0.8228, allocations: 0.7846 MB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.8229, allocations: 12.52 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.823, allocations: 55.52 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.8235, allocations: 317.1 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.021e-05/0.8236, allocations: 35.94 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.923e-05/0.8237, allocations: 27.98 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009116/0.8246, allocations: 243.1 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.8246, allocations: 0 / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.8246, allocations: 8 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.8246, allocations: 0 / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007102/0.8254, allocations: 127.9 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.8268, allocations: 0.6839 MB / 1.029 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009574/0.8277, allocations: 198.5 kB / 1.029 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006661/0.8284, allocations: 128.8 kB / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.8285, allocations: 4 kB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000985/0.8295, allocations: 249.3 kB / 1.029 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.954e-06/0.8295, allocations: 0 / 1.029 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002348/0.8318, allocations: 0.5087 MB / 1.03 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.8319, allocations: 59.41 kB / 1.03 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.8324, allocations: 445.7 kB / 1.03 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.8324, allocations: 45.69 kB / 1.03 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.8326, allocations: 101.3 kB / 1.03 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.8326, allocations: 39.59 kB / 1.03 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.8327, allocations: 4 kB / 1.03 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.8328, allocations: 326.8 kB / 1.031 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.8331, allocations: 139.9 kB / 1.031 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.8334, allocations: 201.8 kB / 1.031 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.8338, allocations: 212.5 kB / 1.031 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.8338, allocations: 0 / 1.031 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000948/0.8347, allocations: 0.524 MB / 1.032 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.8349, allocations: 100.6 kB / 1.032 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.8349, allocations: 7.938 kB / 1.032 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.8349, allocations: 4 kB / 1.032 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.8351, allocations: 15.98 kB / 1.032 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.8351, allocations: 7.984 kB / 1.032 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/0.8356, allocations: 79.8 kB / 1.032 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.84e-05/0.8357, allocations: 59.98 kB / 1.032 GB, free: 6.094 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 ($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.0002644/0.836, allocations: 212.4 kB / 1.032 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/0.836, allocations: 39.52 kB / 1.032 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.758e-05/0.8361, allocations: 43.75 kB / 1.032 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.8361, allocations: 7.984 kB / 1.032 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.8361, allocations: 0 / 1.032 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.8362, allocations: 0 / 1.032 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.8383, allocations: 0.8128 MB / 1.033 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.8383, allocations: 7.953 kB / 1.033 GB, free: 4.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.674e-05/0.8383, allocations: 7.984 kB / 1.033 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.8383, allocations: 0 / 1.033 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.8384, allocations: 19.98 kB / 1.033 GB, free: 4.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.8384, allocations: 3.938 kB / 1.033 GB, free: 4.879 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.8384, allocations: 0 / 1.033 GB, free: 4.879 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.84, allocations: 498.8 kB / 1.034 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.8403, allocations: 252.3 kB / 1.034 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.295e-05/0.8404, allocations: 20 kB / 1.034 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.8408, allocations: 31.97 kB / 1.034 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.8408, allocations: 7.984 kB / 1.034 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-05/0.8409, allocations: 59.97 kB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004134/0.8413, allocations: 315.1 kB / 1.034 GB, free: 3.688 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8414, allocations: 7.938 kB / 1.034 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004084/0.8418, allocations: 67.98 kB / 1.034 GB, free: 3.613 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 (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.0002029/0.842, allocations: 131.2 kB / 1.034 GB, free: 3.477 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001249/0.8432, allocations: 484.1 kB / 1.035 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8432, allocations: 0 / 1.035 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006921/0.8439, allocations: 140.2 kB / 1.035 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.8444, allocations: 35.16 kB / 1.035 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.8461, allocations: 0.7028 MB / 1.036 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.8465, allocations: 0.7867 MB / 1.036 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.801e-05/0.8466, allocations: 13.42 kB / 1.036 GB, free: 1.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.8467, allocations: 19.44 kB / 1.036 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of SimCode: time 7.01e-07/0.8467, allocations: 0 / 1.036 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of Templates: time 0.0108/0.8575, allocations: 5.339 MB / 1.042 GB, free: 11.81 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=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/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