Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 108.1 kB / 16.36 MB, free: 5.824 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.002293/0.002293, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.465/1.465, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 65.34 kB / 0.814 GB, free: 32.79 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3506, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.003539/0.3541, allocations: 1.737 MB / 0.9528 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.356, allocations: 0.6285 MB / 0.9535 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.3562, allocations: 0 / 0.9535 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.3564, allocations: 15.8 kB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.3566, allocations: 31.8 kB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.3577, allocations: 362.9 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0008096/0.3586, allocations: 0.636 MB / 0.9545 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3587, allocations: 33.09 kB / 0.9545 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004894/0.3592, allocations: 307.6 kB / 0.9548 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003892/0.3596, allocations: 161.8 kB / 0.9549 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.3597, allocations: 40 kB / 0.955 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3599, allocations: 44 kB / 0.955 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.36, allocations: 123.7 kB / 0.9551 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.3603, allocations: 215 kB / 0.9553 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006781/0.3609, allocations: 0.592 MB / 0.9559 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.361, allocations: 4 kB / 0.9559 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.3e-06/0.361, allocations: 0 / 0.9559 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.448e-05/0.361, allocations: 3.938 kB / 0.9559 GB, free: 3.102 MB / 0.7325 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.001546/0.3625, allocations: 0.9071 MB / 0.9568 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3626, allocations: 8.031 kB / 0.9568 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.3628, allocations: 64.36 kB / 0.9569 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.3633, allocations: 330.2 kB / 0.9572 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.3634, allocations: 20.36 kB / 0.9572 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.3635, allocations: 28.38 kB / 0.9572 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3645, allocations: 237.9 kB / 0.9575 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3645, allocations: 192 / 0.9575 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3646, allocations: 11.86 kB / 0.9575 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3646, allocations: 11.98 kB / 0.9575 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007475/0.3653, allocations: 111.9 kB / 0.9576 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.3667, allocations: 0.672 MB / 0.9583 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3677, allocations: 186.4 kB / 0.9584 GB, free: 348 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007235/0.3685, allocations: 112.8 kB / 0.9585 GB, free: 232 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.3685, allocations: 4 kB / 0.9586 GB, free: 228 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009523/0.3695, allocations: 231.2 kB / 0.9588 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 2.444e-06/0.3695, allocations: 0 / 0.9588 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of matching and sorting (n=16): time 0.002556/0.372, allocations: 499.8 kB / 0.9592 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.3721, allocations: 59.39 kB / 0.9593 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005255/0.3727, allocations: 449.8 kB / 0.9597 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 9.257e-05/0.3728, allocations: 45.69 kB / 0.9598 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 8.852e-05/0.3729, allocations: 101.3 kB / 0.9599 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.3729, allocations: 39.48 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.3731, allocations: 137.3 kB / 0.96 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3733, allocations: 330.8 kB / 0.9604 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002893/0.3736, allocations: 139.9 kB / 0.9605 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.3739, allocations: 185.9 kB / 0.9607 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.3743, allocations: 306.3 kB / 0.961 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3743, allocations: 0 / 0.961 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008712/0.3752, allocations: 0.5182 MB / 0.9615 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.101e-05/0.3753, allocations: 95.38 kB / 0.9616 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3753, allocations: 4 kB / 0.9616 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.3753, allocations: 0 / 0.9616 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.3755, allocations: 23.92 kB / 0.9616 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.3755, allocations: 12.17 kB / 0.9616 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.376, allocations: 59.8 kB / 0.9617 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3762, allocations: 59.98 kB / 0.9617 GB, free: 12.85 MB / 0.7481 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.0002858/0.3765, allocations: 216.3 kB / 0.9619 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.3765, allocations: 39.52 kB / 0.962 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.843e-05/0.3766, allocations: 47.78 kB / 0.962 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3766, allocations: 4 kB / 0.962 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3767, allocations: 0 / 0.962 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3767, allocations: 3.938 kB / 0.962 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.3788, allocations: 0.7911 MB / 0.9628 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3789, allocations: 0 / 0.9628 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.624e-05/0.3789, allocations: 4 kB / 0.9628 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3789, allocations: 0 / 0.9628 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.379, allocations: 23.97 kB / 0.9628 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.379, allocations: 3.938 kB / 0.9628 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.379, allocations: 0 / 0.9628 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.3806, allocations: 487.2 kB / 0.9633 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003391/0.381, allocations: 240.5 kB / 0.9635 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.864e-05/0.381, allocations: 16 kB / 0.9635 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.3815, allocations: 31.91 kB / 0.9636 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.3816, allocations: 19.92 kB / 0.9636 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.078e-05/0.3816, allocations: 59.97 kB / 0.9636 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003293/0.382, allocations: 315.1 kB / 0.9639 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.91e-07/0.382, allocations: 0 / 0.9639 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003929/0.3824, allocations: 67.98 kB / 0.964 GB, free: 10.4 MB / 0.7481 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.000201/0.3826, allocations: 128.2 kB / 0.9641 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001291/0.3839, allocations: 477.4 kB / 0.9646 GB, free: 9.781 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3839, allocations: 0 / 0.9646 GB, free: 9.781 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007159/0.3846, allocations: 127.8 kB / 0.9647 GB, free: 9.656 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.385, allocations: 36.16 kB / 0.9647 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.3867, allocations: 0.5905 MB / 0.9653 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.3872, allocations: 0.7901 MB / 0.9661 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.682e-05/0.3873, allocations: 17.42 kB / 0.9661 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.3873, allocations: 19.38 kB / 0.9661 GB, free: 8.156 MB / 0.7481 GB Notification: Performance of SimCode: time 4.11e-07/0.3873, allocations: 0 / 0.9661 GB, free: 8.156 MB / 0.7481 GB Notification: Performance of Templates: time 0.01019/0.3975, allocations: 5.421 MB / 0.9714 GB, free: 2.648 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches