Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009882/0.0009884, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00953/0.00953, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.489/1.489, allocations: 223.3 MB / 240.3 MB, free: 5.238 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.681/2.681, allocations: 437.8 MB / 0.7121 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003504, allocations: 8 kB / 0.8729 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7306/0.731, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002072/0.7332, allocations: 1.448 MB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001481/0.7347, allocations: 0.6908 MB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.396e-05/0.7348, allocations: 0 / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.228e-05/0.7349, allocations: 3.938 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.735, allocations: 31.78 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008078/0.7358, allocations: 343.5 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006471/0.7365, allocations: 0.5345 MB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.7366, allocations: 24.91 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004874/0.7371, allocations: 311.1 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.7374, allocations: 163.2 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.446e-05/0.7375, allocations: 16 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.326e-05/0.7375, allocations: 12 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.7377, allocations: 123.6 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002383/0.7379, allocations: 224.5 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005407/0.7385, allocations: 0.5701 MB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.7385, allocations: 3.938 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7385, allocations: 7.938 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.7385, allocations: 0 / 1.027 GB, free: 11.39 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.001121/0.7396, allocations: 0.777 MB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7397, allocations: 11.98 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.7398, allocations: 56.47 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.7402, allocations: 326.2 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.7403, allocations: 28.55 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.7404, allocations: 32.28 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.7415, allocations: 251.6 kB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.7415, allocations: 3.938 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.7415, allocations: 8 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7415, allocations: 0 / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008158/0.7423, allocations: 127.9 kB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.7436, allocations: 0.6758 MB / 1.03 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.7448, allocations: 202.5 kB / 1.03 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007907/0.7456, allocations: 128.8 kB / 1.03 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.7456, allocations: 0 / 1.03 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009611/0.7466, allocations: 247 kB / 1.03 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.7466, allocations: 0 / 1.03 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002668/0.7492, allocations: 0.5181 MB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.7493, allocations: 67.39 kB / 1.031 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.7497, allocations: 441.8 kB / 1.031 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.606e-05/0.7498, allocations: 41.7 kB / 1.031 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.7499, allocations: 97.44 kB / 1.031 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.75, allocations: 47.44 kB / 1.031 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.434e-05/0.7501, allocations: 45.69 kB / 1.031 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.7502, allocations: 322.8 kB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.7505, allocations: 135.9 kB / 1.032 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.7508, allocations: 201.9 kB / 1.032 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/0.7512, allocations: 302.6 kB / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.7512, allocations: 0 / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008597/0.7521, allocations: 0.5163 MB / 1.033 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.053e-05/0.7522, allocations: 99.38 kB / 1.033 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.7522, allocations: 0 / 1.033 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.7522, allocations: 4 kB / 1.033 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.7523, allocations: 19.92 kB / 1.033 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.7524, allocations: 7.984 kB / 1.033 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/0.7529, allocations: 68.05 kB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-05/0.7529, allocations: 59.92 kB / 1.033 GB, free: 5.25 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.000236/0.7532, allocations: 223 kB / 1.033 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.7533, allocations: 43.52 kB / 1.033 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.441e-05/0.7533, allocations: 47.73 kB / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.7533, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.7533, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.7534, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.7555, allocations: 0.8125 MB / 1.034 GB, free: 4.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.7556, allocations: 4 kB / 1.034 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-05/0.7556, allocations: 7.984 kB / 1.034 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/0.7556, allocations: 8 kB / 1.034 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.7557, allocations: 23.92 kB / 1.034 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.7557, allocations: 0 / 1.034 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.7557, allocations: 3.938 kB / 1.034 GB, free: 4.016 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.7575, allocations: 494.8 kB / 1.035 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.7578, allocations: 248.4 kB / 1.035 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.952e-05/0.7578, allocations: 27.88 kB / 1.035 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.7583, allocations: 35.95 kB / 1.035 GB, free: 3.191 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.7584, allocations: 4 kB / 1.035 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.7584, allocations: 59.97 kB / 1.035 GB, free: 3.129 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003039/0.7587, allocations: 319.1 kB / 1.035 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7588, allocations: 4 kB / 1.035 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003364/0.7591, allocations: 71.89 kB / 1.035 GB, free: 2.746 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.0001975/0.7593, allocations: 131.2 kB / 1.036 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001377/0.7607, allocations: 478.5 kB / 1.036 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.7607, allocations: 0 / 1.036 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008286/0.7615, allocations: 146.7 kB / 1.036 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.762, allocations: 35.42 kB / 1.036 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.7635, allocations: 0.7341 MB / 1.037 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.7639, allocations: 0.7828 MB / 1.038 GB, free: 380 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.308e-05/0.7639, allocations: 13.42 kB / 1.038 GB, free: 364 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.764, allocations: 23.44 kB / 1.038 GB, free: 344 kB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.764, allocations: 0 / 1.038 GB, free: 344 kB / 0.7794 GB Notification: Performance of Templates: time 0.009578/0.7736, allocations: 5.409 MB / 1.043 GB, free: 10.83 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches