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.001791/0.001792, allocations: 103.3 kB / 16.27 MB, free: 6.414 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.00201/0.00201, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.401/1.401, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.548/2.548, allocations: 437.1 MB / 0.711 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 73.48 kB / 0.8699 GB, free: 2.117 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3172, allocations: 151.6 MB / 1.018 GB, free: 10.55 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003212/0.3205, allocations: 1.74 MB / 1.02 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3219, allocations: 0.6261 MB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.881e-05/0.322, allocations: 0 / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.3221, allocations: 11.86 kB / 1.02 GB, free: 8.164 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.3223, allocations: 35.78 kB / 1.02 GB, free: 8.129 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009445/0.3232, allocations: 363.7 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006595/0.3239, allocations: 0.6398 MB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.324, allocations: 33.09 kB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004358/0.3245, allocations: 299.7 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.3247, allocations: 151.5 kB / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.3248, allocations: 40 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.325, allocations: 44 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.3251, allocations: 127.6 kB / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.3254, allocations: 219 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.326, allocations: 0.6001 MB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.326, allocations: 0 / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.152e-06/0.326, allocations: 0 / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.326, allocations: 0 / 1.023 GB, free: 5.637 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.001412/0.3274, allocations: 0.9093 MB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3274, allocations: 16.81 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.3276, allocations: 56.45 kB / 1.024 GB, free: 4.566 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.328, allocations: 330.2 kB / 1.024 GB, free: 4.203 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.3281, allocations: 20.55 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.183e-05/0.3282, allocations: 28.38 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3292, allocations: 240 kB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3293, allocations: 3.938 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.3293, allocations: 0 / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3293, allocations: 4 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008136/0.3301, allocations: 115.9 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.3315, allocations: 0.6836 MB / 1.025 GB, free: 3.062 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.3326, allocations: 182.5 kB / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007791/0.3334, allocations: 120.8 kB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.3334, allocations: 4 kB / 1.025 GB, free: 2.75 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009668/0.3344, allocations: 227.4 kB / 1.026 GB, free: 2.516 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 2.194e-06/0.3344, allocations: 0 / 1.026 GB, free: 2.516 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002691/0.3371, allocations: 494.5 kB / 1.026 GB, free: 2.027 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3372, allocations: 63.41 kB / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000533/0.3377, allocations: 449.8 kB / 1.027 GB, free: 1.512 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.848e-05/0.3378, allocations: 41.69 kB / 1.027 GB, free: 1.465 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.3379, allocations: 101.3 kB / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/0.338, allocations: 47.47 kB / 1.027 GB, free: 1.312 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.3382, allocations: 137.3 kB / 1.027 GB, free: 1.172 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3384, allocations: 326.8 kB / 1.027 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.3387, allocations: 139.9 kB / 1.027 GB, free: 0.707 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.3391, allocations: 200 kB / 1.028 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004831/0.3395, allocations: 299.2 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3396, allocations: 0 / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009668/0.3405, allocations: 0.524 MB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.3406, allocations: 99.38 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.3407, allocations: 7.984 kB / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.3407, allocations: 4 kB / 1.028 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3409, allocations: 24.11 kB / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3409, allocations: 7.984 kB / 1.028 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.3414, allocations: 63.78 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.993e-05/0.3415, allocations: 63.92 kB / 1.029 GB, free: 15.35 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.0002738/0.3418, allocations: 208.3 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.3419, allocations: 39.53 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.926e-05/0.342, allocations: 47.78 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.342, allocations: 0 / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.342, allocations: 0 / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.342, allocations: 0 / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.3443, allocations: 0.7986 MB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3444, allocations: 4 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.724e-05/0.3444, allocations: 4 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3444, allocations: 0 / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.3445, allocations: 27.91 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3445, allocations: 0 / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3445, allocations: 0 / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.3464, allocations: 481 kB / 1.03 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.3467, allocations: 244.5 kB / 1.03 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.285e-05/0.3468, allocations: 19.94 kB / 1.03 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.3473, allocations: 31.97 kB / 1.03 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.3473, allocations: 7.984 kB / 1.03 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.509e-05/0.3474, allocations: 59.97 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003692/0.3478, allocations: 323 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3478, allocations: 0 / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004235/0.3482, allocations: 67.98 kB / 1.031 GB, free: 12.92 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.0002006/0.3484, allocations: 136 kB / 1.031 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.3499, allocations: 478.4 kB / 1.031 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.3499, allocations: 4 kB / 1.031 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008198/0.3508, allocations: 128.2 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004307/0.3512, allocations: 36.89 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.3529, allocations: 0.649 MB / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.3534, allocations: 0.7825 MB / 1.033 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.882e-05/0.3535, allocations: 23.42 kB / 1.033 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of SimCode: time 4e-07/0.3535, allocations: 0 / 1.033 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of Templates: time 0.00643/0.3599, allocations: 4.089 MB / 1.037 GB, free: 6.473 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