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.001359/0.00136, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001649/0.001649, allocations: 197 kB / 16.25 MB, free: 6.625 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.413/1.413, allocations: 222.9 MB / 239.9 MB, free: 4.445 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.625/2.625, allocations: 437 MB / 0.71 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 64.09 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.66/0.6613, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002857/0.6642, allocations: 1.804 MB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.6655, allocations: 0.6207 MB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.7e-05/0.6656, allocations: 0 / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.6657, allocations: 7.938 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.6658, allocations: 31.84 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007877/0.6666, allocations: 340.8 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005792/0.6672, allocations: 0.6321 MB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.6673, allocations: 28.89 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.6678, allocations: 375.1 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.668, allocations: 187 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.892e-05/0.6681, allocations: 44 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.6682, allocations: 40 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.6684, allocations: 127.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.6686, allocations: 222.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004951/0.6691, allocations: 0.6093 MB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6691, allocations: 0 / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6691, allocations: 0 / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.6691, allocations: 0 / 1.022 GB, free: 13.68 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.001247/0.6704, allocations: 0.9093 MB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.6704, allocations: 15.98 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.6706, allocations: 56.38 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.6709, allocations: 342 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/0.671, allocations: 16.56 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.319e-05/0.6711, allocations: 36.34 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.6722, allocations: 239.4 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.6722, allocations: 3.938 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/0.6722, allocations: 3.984 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.6723, allocations: 4 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008475/0.6731, allocations: 107.9 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.6745, allocations: 0.6837 MB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.6756, allocations: 182.5 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.6764, allocations: 112.8 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.6765, allocations: 0 / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.6775, allocations: 239 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.874e-06/0.6775, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.00272/0.6803, allocations: 499 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.6803, allocations: 59.41 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004544/0.6808, allocations: 445.8 kB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.364e-05/0.6809, allocations: 41.69 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.631e-05/0.681, allocations: 105.3 kB / 1.026 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.681, allocations: 31.61 kB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.6812, allocations: 145.3 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.6814, allocations: 330.7 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.6817, allocations: 139.9 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.682, allocations: 193.9 kB / 1.026 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003919/0.6824, allocations: 303 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.6824, allocations: 0 / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008956/0.6833, allocations: 0.5261 MB / 1.027 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.008e-05/0.6834, allocations: 101.2 kB / 1.027 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.6834, allocations: 8 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.6834, allocations: 4 kB / 1.027 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.6836, allocations: 19.92 kB / 1.027 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.6836, allocations: 4 kB / 1.027 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.6842, allocations: 59.89 kB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-05/0.6843, allocations: 71.91 kB / 1.028 GB, free: 7.383 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.0002559/0.6846, allocations: 216.8 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.6846, allocations: 35.53 kB / 1.028 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.6847, allocations: 47.78 kB / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.6847, allocations: 0 / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.6847, allocations: 0 / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.6847, allocations: 0 / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.687, allocations: 0.7909 MB / 1.029 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.6871, allocations: 3.938 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.943e-05/0.6871, allocations: 4 kB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.6871, allocations: 4 kB / 1.029 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-05/0.6872, allocations: 27.91 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.6872, allocations: 4 kB / 1.029 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6872, allocations: 0 / 1.029 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.689, allocations: 476.1 kB / 1.029 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.6893, allocations: 244.4 kB / 1.029 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.002e-05/0.6894, allocations: 23.92 kB / 1.029 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005115/0.6899, allocations: 24.84 kB / 1.029 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.69, allocations: 19.92 kB / 1.029 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.566e-05/0.6901, allocations: 51.98 kB / 1.029 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003076/0.6904, allocations: 323.1 kB / 1.03 GB, free: 5.016 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6904, allocations: 4 kB / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004372/0.6908, allocations: 67.98 kB / 1.03 GB, free: 4.945 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.0002185/0.691, allocations: 127.2 kB / 1.03 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001397/0.6925, allocations: 487 kB / 1.03 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.6925, allocations: 0 / 1.03 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008114/0.6933, allocations: 120.6 kB / 1.031 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.6937, allocations: 38.84 kB / 1.031 GB, free: 4.156 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.6954, allocations: 0.7195 MB / 1.031 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.6958, allocations: 0.7863 MB / 1.032 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.463e-05/0.6958, allocations: 13.42 kB / 1.032 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.6959, allocations: 19.44 kB / 1.032 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.6959, allocations: 0 / 1.032 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of Templates: time 0.01108/0.707, allocations: 5.615 MB / 1.038 GB, free: 12.87 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