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.006941/0.006941, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001468/0.001468, allocations: 185.2 kB / 16.67 MB, free: 6.352 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.631/1.631, allocations: 222.9 MB / 240.4 MB, free: 4.359 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.745/2.745, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 64.48 kB / 0.9509 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3729, allocations: 140.4 MB / 1.088 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003929/0.3769, allocations: 1.746 MB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001731/0.3787, allocations: 0.6182 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.3788, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.379, allocations: 19.86 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.3792, allocations: 31.78 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.3804, allocations: 366.6 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007979/0.3812, allocations: 0.6282 MB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.3813, allocations: 41.06 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005405/0.3819, allocations: 307.6 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003883/0.3823, allocations: 155.5 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.3824, allocations: 44 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.208e-05/0.3825, allocations: 40 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.3827, allocations: 127.6 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.3829, allocations: 211 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.3835, allocations: 0.5997 MB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3836, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.795e-06/0.3836, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.528e-05/0.3836, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 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.001603/0.3852, allocations: 0.9132 MB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3852, allocations: 8.031 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.3854, allocations: 56.45 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.3859, allocations: 334.1 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.386, allocations: 24.36 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.263e-05/0.3861, allocations: 24.38 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.3871, allocations: 242 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3872, allocations: 192 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.3872, allocations: 11.92 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3872, allocations: 4 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008446/0.3881, allocations: 107.9 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3898, allocations: 0.672 MB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3909, allocations: 186.5 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007648/0.3917, allocations: 116.8 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.3918, allocations: 0 / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.3928, allocations: 233.2 kB / 1.096 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 5.129e-06/0.3928, allocations: 3.984 kB / 1.096 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002674/0.3955, allocations: 0.4891 MB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3956, allocations: 63.39 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000503/0.3961, allocations: 441.8 kB / 1.097 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.75e-05/0.3962, allocations: 45.69 kB / 1.097 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.3963, allocations: 105.3 kB / 1.097 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.3964, allocations: 35.55 kB / 1.097 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.3966, allocations: 141.3 kB / 1.097 GB, free: 8.102 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3968, allocations: 330.8 kB / 1.097 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.3971, allocations: 127.9 kB / 1.097 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.3974, allocations: 194.9 kB / 1.098 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.3978, allocations: 304.7 kB / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.3978, allocations: 0 / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008479/0.3987, allocations: 0.5162 MB / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.259e-05/0.3988, allocations: 101.1 kB / 1.098 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3988, allocations: 0 / 1.098 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.3988, allocations: 4 kB / 1.098 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.399, allocations: 23.98 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.399, allocations: 3.938 kB / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/0.3995, allocations: 67.72 kB / 1.098 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/0.3996, allocations: 55.98 kB / 1.099 GB, free: 6.309 MB / 0.8575 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.0002709/0.3999, allocations: 220.3 kB / 1.099 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.831e-05/0.4, allocations: 39.53 kB / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.016e-05/0.4001, allocations: 43.78 kB / 1.099 GB, free: 6 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.4001, allocations: 0 / 1.099 GB, free: 6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4001, allocations: 0 / 1.099 GB, free: 6 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4001, allocations: 4 kB / 1.099 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.4024, allocations: 0.7904 MB / 1.1 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4024, allocations: 0 / 1.1 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.863e-05/0.4025, allocations: 7.938 kB / 1.1 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4025, allocations: 0 / 1.1 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/0.4025, allocations: 19.97 kB / 1.1 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.4025, allocations: 3.938 kB / 1.1 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4025, allocations: 8 kB / 1.1 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.4043, allocations: 475.2 kB / 1.1 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.4046, allocations: 248.5 kB / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.4047, allocations: 16 kB / 1.1 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004903/0.4052, allocations: 35.91 kB / 1.1 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.4053, allocations: 7.984 kB / 1.1 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/0.4053, allocations: 55.97 kB / 1.1 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003136/0.4057, allocations: 319.1 kB / 1.101 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.834e-06/0.4057, allocations: 0 / 1.101 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004256/0.4061, allocations: 75.92 kB / 1.101 GB, free: 3.871 MB / 0.8575 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.0001978/0.4063, allocations: 143.8 kB / 1.101 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.4077, allocations: 474.4 kB / 1.101 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4077, allocations: 0 / 1.101 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008106/0.4086, allocations: 124.3 kB / 1.102 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004289/0.409, allocations: 32.09 kB / 1.102 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.4107, allocations: 0.6037 MB / 1.102 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.4111, allocations: 0.7864 MB / 1.103 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.616e-05/0.4111, allocations: 17.36 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.729e-05/0.4112, allocations: 15.44 kB / 1.103 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.4112, allocations: 0 / 1.103 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of Templates: time 0.01145/0.4227, allocations: 5.418 MB / 1.108 GB, free: 12.1 MB / 0.8731 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