Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.011/0.011, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001348/0.001348, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.506/1.506, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.753/2.753, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 63.41 kB / 0.9509 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3875, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.00445/0.392, allocations: 1.738 MB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001982/0.394, allocations: 0.6221 MB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.98e-05/0.3941, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.3943, allocations: 11.86 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.3945, allocations: 35.78 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.3957, allocations: 365.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008256/0.3965, allocations: 0.636 MB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.3967, allocations: 33.09 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.3971, allocations: 303.6 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003048/0.3974, allocations: 171.5 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.285e-05/0.3975, allocations: 40 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.016e-05/0.3976, allocations: 40 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.3978, allocations: 123.6 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002399/0.398, allocations: 219 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006901/0.3987, allocations: 0.5995 MB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3987, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.695e-06/0.3987, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.3988, 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.00147/0.4002, allocations: 0.9248 MB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.4003, allocations: 8.031 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.4004, allocations: 52.7 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005251/0.401, allocations: 342.4 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.774e-05/0.401, allocations: 20.36 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.4011, allocations: 32.36 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.4022, allocations: 231.9 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4023, allocations: 4.188 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.4023, allocations: 11.92 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.4023, allocations: 0 / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000858/0.4032, allocations: 119.8 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.4047, allocations: 0.6721 MB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.4059, allocations: 182.4 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008137/0.4067, allocations: 119.9 kB / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.4068, allocations: 7.984 kB / 1.095 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.4079, allocations: 225.9 kB / 1.096 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.675e-06/0.408, allocations: 0 / 1.096 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002981/0.4109, allocations: 0.4895 MB / 1.096 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002355/0.4112, allocations: 67.34 kB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006586/0.4119, allocations: 441.9 kB / 1.097 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.412, allocations: 45.69 kB / 1.097 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.4121, allocations: 101.4 kB / 1.097 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.291e-05/0.4122, allocations: 47.67 kB / 1.097 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.4125, allocations: 133.4 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0003208/0.4129, allocations: 326.8 kB / 1.097 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.4132, allocations: 139.9 kB / 1.097 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.4136, allocations: 186.9 kB / 1.098 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004951/0.4141, allocations: 306.5 kB / 1.098 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.4141, allocations: 4 kB / 1.098 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001011/0.4151, allocations: 0.5107 MB / 1.098 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.4153, allocations: 95.38 kB / 1.098 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.4153, allocations: 4 kB / 1.098 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.4153, allocations: 4.188 kB / 1.098 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.4155, allocations: 27.91 kB / 1.098 GB, free: 6.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.4155, allocations: 4 kB / 1.098 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006289/0.4162, allocations: 59.78 kB / 1.099 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.4163, allocations: 63.98 kB / 1.099 GB, free: 6.289 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.0004747/0.4168, allocations: 228.2 kB / 1.099 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-05/0.4169, allocations: 47.7 kB / 1.099 GB, free: 6.012 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.703e-05/0.417, allocations: 35.8 kB / 1.099 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.417, allocations: 4 kB / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.417, allocations: 0 / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.417, allocations: 0 / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.4198, allocations: 0.7873 MB / 1.1 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.4198, allocations: 0 / 1.1 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.4199, allocations: 7.984 kB / 1.1 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4199, allocations: 0 / 1.1 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.4199, allocations: 19.98 kB / 1.1 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.4199, allocations: 3.938 kB / 1.1 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.4199, allocations: 7.984 kB / 1.1 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.4219, allocations: 486.1 kB / 1.1 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003849/0.4223, allocations: 248.6 kB / 1.1 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.41e-05/0.4224, allocations: 12 kB / 1.1 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005343/0.423, allocations: 39.89 kB / 1.1 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.423, allocations: 8 kB / 1.1 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.566e-05/0.4231, allocations: 59.97 kB / 1.101 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000342/0.4234, allocations: 315.1 kB / 1.101 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.294e-06/0.4234, allocations: 0 / 1.101 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004441/0.4239, allocations: 75.92 kB / 1.101 GB, free: 3.836 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.0002228/0.4241, allocations: 128 kB / 1.101 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001624/0.4257, allocations: 478.4 kB / 1.101 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4258, allocations: 4 kB / 1.101 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008965/0.4267, allocations: 128.2 kB / 1.102 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.4271, allocations: 36.08 kB / 1.102 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.4289, allocations: 0.5982 MB / 1.102 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.4294, allocations: 0.7864 MB / 1.103 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.498e-05/0.4294, allocations: 21.41 kB / 1.103 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.4295, allocations: 11.44 kB / 1.103 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/0.4295, allocations: 0 / 1.103 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of Templates: time 0.01151/0.441, allocations: 5.419 MB / 1.108 GB, free: 12.07 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches