Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.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.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001258/0.001258, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.458/1.458, allocations: 222.9 MB / 240.6 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.731/2.731, allocations: 390.2 MB / 0.665 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 67.89 kB / 0.8127 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.66, allocations: 140.4 MB / 0.9498 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus): time 0.002291/0.6624, allocations: 1.584 MB / 0.9513 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.6634, allocations: 0.5419 MB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.567e-05/0.6634, allocations: 0 / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.146e-05/0.6635, allocations: 9.297 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.736e-05/0.6636, allocations: 22.86 kB / 0.9519 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006183/0.6643, allocations: 280.3 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.6647, allocations: 0.5072 MB / 0.9526 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.009e-05/0.6648, allocations: 8.359 kB / 0.9526 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.6652, allocations: 346.5 kB / 0.953 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.6654, allocations: 162.8 kB / 0.9531 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.637e-05/0.6655, allocations: 27.16 kB / 0.9531 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.222e-05/0.6656, allocations: 26.5 kB / 0.9532 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.6657, allocations: 124.4 kB / 0.9533 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.6659, allocations: 190.7 kB / 0.9535 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.6661, allocations: 321.8 kB / 0.9538 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6661, allocations: 0 / 0.9538 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.963e-06/0.6662, allocations: 1.344 kB / 0.9538 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.473e-06/0.6662, allocations: 0 / 0.9538 GB, free: 6.297 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001026/0.6672, allocations: 0.8754 MB / 0.9546 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.6672, allocations: 9.344 kB / 0.9546 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.6674, allocations: 50.12 kB / 0.9547 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.6677, allocations: 302.2 kB / 0.955 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.6677, allocations: 23.11 kB / 0.955 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.6678, allocations: 25.88 kB / 0.955 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.6688, allocations: 215.3 kB / 0.9552 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.6688, allocations: 5.344 kB / 0.9552 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.6689, allocations: 5.188 kB / 0.9552 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.6689, allocations: 4.984 kB / 0.9552 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008148/0.6697, allocations: 99.27 kB / 0.9553 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003387/0.6701, allocations: 395.9 kB / 0.9557 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.6712, allocations: 177.4 kB / 0.9559 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008019/0.672, allocations: 115.4 kB / 0.956 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.672, allocations: 1.688 kB / 0.956 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009911/0.673, allocations: 218.2 kB / 0.9562 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.074e-06/0.673, allocations: 0 / 0.9562 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002755/0.6758, allocations: 491 kB / 0.9567 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.6758, allocations: 72.52 kB / 0.9567 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.6762, allocations: 409 kB / 0.9571 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.6763, allocations: 41.94 kB / 0.9572 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.616e-05/0.6763, allocations: 96.31 kB / 0.9573 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.6764, allocations: 37.05 kB / 0.9573 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.6766, allocations: 132.5 kB / 0.9574 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.743e-05/0.6766, allocations: 321.6 kB / 0.9577 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.6769, allocations: 120.4 kB / 0.9579 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.6772, allocations: 175 kB / 0.958 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.6775, allocations: 283.6 kB / 0.9583 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.6775, allocations: 1.062 kB / 0.9583 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007791/0.6783, allocations: 494.5 kB / 0.9588 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.34e-05/0.6784, allocations: 87.06 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.6784, allocations: 2.375 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.6784, allocations: 2.875 kB / 0.9588 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.6786, allocations: 34.03 kB / 0.9589 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6786, allocations: 2.469 kB / 0.9589 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005309/0.6792, allocations: 58.61 kB / 0.9589 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.6793, allocations: 56.98 kB / 0.959 GB, free: 2.496 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.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.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.0001976/0.6795, allocations: 201.8 kB / 0.9592 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.6795, allocations: 40.34 kB / 0.9592 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.728e-05/0.6796, allocations: 36.16 kB / 0.9593 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.6796, allocations: 2.062 kB / 0.9593 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6796, allocations: 1.031 kB / 0.9593 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6796, allocations: 0 / 0.9593 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.6818, allocations: 0.7497 MB / 0.96 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.6818, allocations: 1.312 kB / 0.96 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.6818, allocations: 3.375 kB / 0.96 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.6818, allocations: 1.031 kB / 0.96 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.6819, allocations: 24.44 kB / 0.96 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.6819, allocations: 0 / 0.96 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.6819, allocations: 1.5 kB / 0.96 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.6837, allocations: 490 kB / 0.9605 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.6839, allocations: 196.2 kB / 0.9607 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.48e-05/0.684, allocations: 10.75 kB / 0.9607 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/0.6845, allocations: 37.36 kB / 0.9607 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.6845, allocations: 4.781 kB / 0.9607 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.906e-05/0.6846, allocations: 60.75 kB / 0.9608 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002556/0.6849, allocations: 295.2 kB / 0.9611 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6849, allocations: 0 / 0.9611 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003965/0.6853, allocations: 69.58 kB / 0.9611 GB, free: 1.078 MB / 0.7169 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.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,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.0001464/0.6854, allocations: 119 kB / 0.9612 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001275/0.6867, allocations: 441.7 kB / 0.9617 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6867, allocations: 0 / 0.9617 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008197/0.6876, allocations: 130.7 kB / 0.9618 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000372/0.6879, allocations: 33.61 kB / 0.9618 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.6895, allocations: 0.6996 MB / 0.9625 GB, free: 140 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.6899, allocations: 0.7785 MB / 0.9633 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.857e-05/0.6899, allocations: 18.3 kB / 0.9633 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.6899, allocations: 1.312 kB / 0.9633 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of Templates: time 0.006451/0.6964, allocations: 3.681 MB / 0.9669 GB, free: 13.38 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.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