Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001317, 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.001589/0.001589, allocations: 194.6 kB / 16.26 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.588/1.588, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.515/2.515, allocations: 390.2 MB / 0.6643 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 76.08 kB / 0.8121 GB, free: 14.72 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8283/0.8301, allocations: 140.4 MB / 0.9491 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003256/0.8334, allocations: 1.792 MB / 0.9509 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.8351, allocations: 0.6251 MB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.188e-05/0.8352, allocations: 0 / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.8353, allocations: 13.05 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.8355, allocations: 23.98 kB / 0.9515 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007475/0.8363, allocations: 328.6 kB / 0.9518 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006499/0.8369, allocations: 0.6358 MB / 0.9525 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.8371, allocations: 46.91 kB / 0.9525 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004893/0.8376, allocations: 367 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.8378, allocations: 180.4 kB / 0.953 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.926e-05/0.8379, allocations: 41.78 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.51e-05/0.838, allocations: 40.72 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.8382, allocations: 133.6 kB / 0.9532 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.8384, allocations: 225.1 kB / 0.9535 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005459/0.839, allocations: 0.5992 MB / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.839, allocations: 0 / 0.954 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.076e-06/0.839, allocations: 5.109 kB / 0.954 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.839, allocations: 0 / 0.954 GB, free: 5.723 MB / 0.7169 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.001235/0.8403, allocations: 0.8995 MB / 0.9549 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.8403, allocations: 9.25 kB / 0.9549 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.8405, allocations: 59.61 kB / 0.955 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.8408, allocations: 336.4 kB / 0.9553 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/0.8409, allocations: 25.67 kB / 0.9553 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.346e-05/0.841, allocations: 27.31 kB / 0.9554 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.8421, allocations: 232.6 kB / 0.9556 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.8421, allocations: 3.938 kB / 0.9556 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.8421, allocations: 9.203 kB / 0.9556 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.8422, allocations: 6.469 kB / 0.9556 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008305/0.843, allocations: 115 kB / 0.9557 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.8442, allocations: 0.6807 MB / 0.9564 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.8453, allocations: 187.8 kB / 0.9566 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007809/0.8461, allocations: 117.3 kB / 0.9567 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.8461, allocations: 6.75 kB / 0.9567 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009975/0.8471, allocations: 227.6 kB / 0.9569 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.844e-06/0.8471, allocations: 0 / 0.9569 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002742/0.8499, allocations: 0.4952 MB / 0.9574 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.8499, allocations: 56.59 kB / 0.9574 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004361/0.8504, allocations: 448.6 kB / 0.9579 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.8504, allocations: 45.28 kB / 0.9579 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.716e-05/0.8505, allocations: 101.3 kB / 0.958 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.8506, allocations: 38.69 kB / 0.958 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.8508, allocations: 132.2 kB / 0.9582 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.788e-05/0.8509, allocations: 330 kB / 0.9585 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.8512, allocations: 140.2 kB / 0.9586 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.8515, allocations: 197.5 kB / 0.9588 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.8519, allocations: 307 kB / 0.9591 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.8519, allocations: 0.7188 kB / 0.9591 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008474/0.8527, allocations: 0.522 MB / 0.9596 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.336e-05/0.8528, allocations: 93.5 kB / 0.9597 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.8528, allocations: 1.062 kB / 0.9597 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.8529, allocations: 3.219 kB / 0.9597 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.853, allocations: 26.05 kB / 0.9597 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.8531, allocations: 3.375 kB / 0.9597 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.8536, allocations: 57.83 kB / 0.9598 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.55e-05/0.8537, allocations: 69.06 kB / 0.9598 GB, free: 1.488 MB / 0.7169 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.0002309/0.8539, allocations: 216.9 kB / 0.96 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.828e-05/0.854, allocations: 43.41 kB / 0.9601 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.947e-05/0.8541, allocations: 46.91 kB / 0.9601 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.8541, allocations: 1.562 kB / 0.9601 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.8541, allocations: 4 kB / 0.9601 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.8541, allocations: 0 / 0.9601 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.8563, allocations: 0.79 MB / 0.9609 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.8563, allocations: 3.938 kB / 0.9609 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-05/0.8563, allocations: 4.031 kB / 0.9609 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.8563, allocations: 1.062 kB / 0.9609 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.8564, allocations: 23.56 kB / 0.9609 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.8564, allocations: 1.156 kB / 0.9609 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8564, allocations: 0 / 0.9609 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.8582, allocations: 487.7 kB / 0.9614 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003112/0.8585, allocations: 243.4 kB / 0.9616 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.8586, allocations: 23.11 kB / 0.9617 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005229/0.8592, allocations: 35.19 kB / 0.9617 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.8592, allocations: 8.141 kB / 0.9617 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-05/0.8593, allocations: 57.44 kB / 0.9618 GB, free: 160 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00042/0.8598, allocations: 317.8 kB / 0.9621 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8598, allocations: 1.25 kB / 0.9621 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004839/0.8603, allocations: 75.8 kB / 0.9621 GB, free: 15.95 MB / 0.7325 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.0002693/0.8605, allocations: 125.2 kB / 0.9623 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001578/0.8621, allocations: 476.5 kB / 0.9627 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8622, allocations: 0.75 kB / 0.9627 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008712/0.863, allocations: 130.3 kB / 0.9628 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.8635, allocations: 42.48 kB / 0.9629 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.8655, allocations: 0.7173 MB / 0.9636 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.866, allocations: 0.7906 MB / 0.9643 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.048e-05/0.8661, allocations: 18.14 kB / 0.9644 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.8662, allocations: 14.31 kB / 0.9644 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of SimCode: time 1.142e-06/0.8662, allocations: 0 / 0.9644 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of Templates: time 0.01138/0.8776, allocations: 5.614 MB / 0.9699 GB, free: 11.12 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches