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.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.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.001175/0.001175, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001152/0.001152, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.18 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.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 68.58 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3599, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003902/0.3638, allocations: 1.733 MB / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.3655, allocations: 0.6295 MB / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.353e-05/0.3656, allocations: 0 / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.3657, allocations: 7.875 kB / 0.9535 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.3659, allocations: 35.78 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009494/0.3668, allocations: 359.2 kB / 0.9538 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007983/0.3677, allocations: 0.636 MB / 0.9545 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.3678, allocations: 33.09 kB / 0.9545 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003984/0.3682, allocations: 315.6 kB / 0.9548 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003003/0.3685, allocations: 155.5 kB / 0.9549 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.759e-05/0.3686, allocations: 43.94 kB / 0.955 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.987e-05/0.3687, allocations: 44 kB / 0.955 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.3689, allocations: 119.7 kB / 0.9551 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.3691, allocations: 219 kB / 0.9553 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006452/0.3698, allocations: 0.592 MB / 0.9559 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.3698, allocations: 4 kB / 0.9559 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.517e-06/0.3698, allocations: 0 / 0.9559 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.427e-05/0.3698, allocations: 0 / 0.9559 GB, free: 3.129 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.001806/0.3716, allocations: 0.9092 MB / 0.9568 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.3717, allocations: 12.03 kB / 0.9568 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.3719, allocations: 56.38 kB / 0.9569 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.3724, allocations: 334.1 kB / 0.9572 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.771e-05/0.3725, allocations: 24.36 kB / 0.9572 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/0.3726, allocations: 32.36 kB / 0.9573 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009964/0.3736, allocations: 235.7 kB / 0.9575 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3736, allocations: 192 / 0.9575 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.3737, allocations: 7.938 kB / 0.9575 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3737, allocations: 7.938 kB / 0.9575 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007236/0.3744, allocations: 115.9 kB / 0.9576 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3762, allocations: 0.6681 MB / 0.9583 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009602/0.3771, allocations: 182.5 kB / 0.9584 GB, free: 380 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006808/0.3778, allocations: 124.7 kB / 0.9586 GB, free: 252 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.3779, allocations: 0 / 0.9586 GB, free: 252 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009675/0.3788, allocations: 227.2 kB / 0.9588 GB, free: 12 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.743e-06/0.3789, allocations: 0 / 0.9588 GB, free: 12 kB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002386/0.3812, allocations: 0.4913 MB / 0.9592 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.3813, allocations: 59.41 kB / 0.9593 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005121/0.3818, allocations: 441.8 kB / 0.9597 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.3819, allocations: 45.62 kB / 0.9598 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.382, allocations: 109.3 kB / 0.9599 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.3821, allocations: 39.48 kB / 0.9599 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.3823, allocations: 141.3 kB / 0.96 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001935/0.3825, allocations: 326.8 kB / 0.9604 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.3828, allocations: 139.9 kB / 0.9605 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.3832, allocations: 193.4 kB / 0.9607 GB, free: 14 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.3836, allocations: 303.3 kB / 0.961 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3836, allocations: 0 / 0.961 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001103/0.3847, allocations: 0.5163 MB / 0.9615 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.385, allocations: 99.38 kB / 0.9616 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.385, allocations: 4 kB / 0.9616 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.385, allocations: 4 kB / 0.9616 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.3852, allocations: 23.91 kB / 0.9616 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3852, allocations: 4 kB / 0.9616 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/0.3857, allocations: 63.98 kB / 0.9617 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.351e-05/0.3858, allocations: 55.98 kB / 0.9617 GB, free: 12.87 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.0002794/0.3861, allocations: 216.3 kB / 0.9619 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.3861, allocations: 39.52 kB / 0.962 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.936e-05/0.3862, allocations: 43.8 kB / 0.962 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3862, allocations: 0 / 0.962 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3862, allocations: 4 kB / 0.962 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3863, allocations: 0 / 0.962 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.3884, allocations: 0.7911 MB / 0.9628 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3884, allocations: 0 / 0.9628 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.629e-05/0.3886, allocations: 15.92 kB / 0.9628 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3886, allocations: 4 kB / 0.9628 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.302e-05/0.3886, allocations: 19.98 kB / 0.9628 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.3886, allocations: 3.938 kB / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3886, allocations: 0 / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.3904, allocations: 482.5 kB / 0.9633 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.3908, allocations: 248.4 kB / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.49e-05/0.3908, allocations: 20 kB / 0.9635 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.3913, allocations: 31.91 kB / 0.9636 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.3913, allocations: 7.984 kB / 0.9636 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.3914, allocations: 63.97 kB / 0.9636 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003583/0.3918, allocations: 319.1 kB / 0.9639 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3918, allocations: 0 / 0.9639 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003906/0.3922, allocations: 67.98 kB / 0.964 GB, free: 10.42 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.0002878/0.3925, allocations: 124.2 kB / 0.9641 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001378/0.3939, allocations: 478.4 kB / 0.9646 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3939, allocations: 0 / 0.9646 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006989/0.3946, allocations: 123.8 kB / 0.9647 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.395, allocations: 41.61 kB / 0.9647 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.3968, allocations: 0.587 MB / 0.9653 GB, free: 9.031 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.3973, allocations: 0.794 MB / 0.9661 GB, free: 8.211 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.246e-05/0.3974, allocations: 21.41 kB / 0.9661 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.3975, allocations: 11.44 kB / 0.9661 GB, free: 8.18 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.3975, allocations: 7.938 kB / 0.9661 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of Templates: time 0.01034/0.4078, allocations: 5.402 MB / 0.9714 GB, free: 2.68 MB / 0.7481 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 -s cvode -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/jenkins1/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