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.001291/0.001296, allocations: 105.1 kB / 15.99 MB, free: 6.355 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.001293/0.001293, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.415/1.415, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.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.579/2.579, allocations: 437.1 MB / 0.7107 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 64.5 kB / 0.8694 GB, free: 2.52 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2938, allocations: 151.6 MB / 1.018 GB, free: 10.96 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003271/0.2972, allocations: 1.812 MB / 1.019 GB, free: 9.133 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.2985, allocations: 0.6168 MB / 1.02 GB, free: 8.516 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.952e-05/0.2986, allocations: 4 kB / 1.02 GB, free: 8.512 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.2987, allocations: 3.938 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.2989, allocations: 31.84 kB / 1.02 GB, free: 8.477 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008894/0.2998, allocations: 333 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007765/0.3006, allocations: 0.6476 MB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.3007, allocations: 33.09 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005801/0.3013, allocations: 374.9 kB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/0.3017, allocations: 191 kB / 1.021 GB, free: 6.914 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.3018, allocations: 40 kB / 1.021 GB, free: 6.875 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.995e-05/0.3019, allocations: 40 kB / 1.022 GB, free: 6.836 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.302, allocations: 127.6 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.3023, allocations: 226.8 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004865/0.3028, allocations: 491.3 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3028, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3028, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.246e-05/0.3028, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 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.001641/0.3045, allocations: 0.9093 MB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3045, allocations: 20.81 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.3047, allocations: 52.47 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/0.3051, allocations: 326.2 kB / 1.024 GB, free: 4.578 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.3052, allocations: 28.55 kB / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.527e-05/0.3053, allocations: 28.36 kB / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.3064, allocations: 234 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3064, allocations: 3.938 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.3065, allocations: 4 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3065, allocations: 4 kB / 1.024 GB, free: 4.277 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.3073, allocations: 119.8 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.3087, allocations: 0.6758 MB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.3099, allocations: 186.5 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000795/0.3107, allocations: 112.8 kB / 1.025 GB, free: 3.129 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3107, allocations: 8 kB / 1.025 GB, free: 3.121 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001016/0.3117, allocations: 231.1 kB / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 4.619e-06/0.3117, allocations: 3.984 kB / 1.025 GB, free: 2.879 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002809/0.3145, allocations: 494.8 kB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3146, allocations: 63.39 kB / 1.026 GB, free: 2.316 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005963/0.3152, allocations: 449.8 kB / 1.026 GB, free: 1.875 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.784e-05/0.3153, allocations: 37.7 kB / 1.026 GB, free: 1.832 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3155, allocations: 105.3 kB / 1.026 GB, free: 1.723 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.3155, allocations: 39.48 kB / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002797/0.3158, allocations: 141.3 kB / 1.026 GB, free: 1.539 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.316, allocations: 326.8 kB / 1.027 GB, free: 1.211 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.3163, allocations: 147.8 kB / 1.027 GB, free: 1.066 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.3167, allocations: 194.4 kB / 1.027 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.3171, allocations: 298.7 kB / 1.027 GB, free: 0.5312 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3171, allocations: 0 / 1.027 GB, free: 0.5312 MB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009293/0.3181, allocations: 0.5218 MB / 1.028 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.3182, allocations: 103.3 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3182, allocations: 0 / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3182, allocations: 4 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.3184, allocations: 23.91 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3184, allocations: 8.188 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.319, allocations: 59.8 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.3191, allocations: 63.92 kB / 1.028 GB, free: 15.72 MB / 0.8106 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.0002682/0.3193, allocations: 212.3 kB / 1.028 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-05/0.3194, allocations: 39.52 kB / 1.028 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.838e-05/0.3195, allocations: 43.8 kB / 1.028 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.3195, allocations: 0 / 1.028 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3195, allocations: 0 / 1.028 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3195, allocations: 3.984 kB / 1.028 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.3219, allocations: 0.7908 MB / 1.029 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3219, allocations: 0 / 1.029 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.3219, allocations: 7.984 kB / 1.029 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3219, allocations: 4 kB / 1.029 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.366e-05/0.322, allocations: 23.92 kB / 1.029 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.322, allocations: 0 / 1.029 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.322, allocations: 3.984 kB / 1.029 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.3238, allocations: 478.2 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.3242, allocations: 244.5 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.559e-05/0.3243, allocations: 19.94 kB / 1.03 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.3248, allocations: 35.95 kB / 1.03 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.3248, allocations: 15.92 kB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.528e-05/0.3249, allocations: 59.97 kB / 1.03 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003717/0.3253, allocations: 319.1 kB / 1.03 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.91e-07/0.3253, allocations: 0 / 1.03 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000409/0.3257, allocations: 67.98 kB / 1.03 GB, free: 13.29 MB / 0.8106 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.0001951/0.3259, allocations: 123.8 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.3274, allocations: 490.7 kB / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3274, allocations: 0 / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008448/0.3283, allocations: 128.2 kB / 1.031 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.3287, allocations: 39.97 kB / 1.031 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.3306, allocations: 0.764 MB / 1.032 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.3311, allocations: 0.7825 MB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.3312, allocations: 23.44 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of SimCode: time 7.71e-07/0.3312, allocations: 0 / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of Templates: time 0.008257/0.3394, allocations: 4.08 MB / 1.037 GB, free: 6.742 MB / 0.8106 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time