Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008508/0.008508, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001662/0.001662, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.582/1.582, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.09/3.09, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 64.12 kB / 1.054 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4636, allocations: 157.4 MB / 1.208 GB, free: 9.562 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.00347/0.4672, allocations: 1.736 MB / 1.209 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.4689, allocations: 0.6212 MB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.4691, allocations: 7.938 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.4692, allocations: 7.875 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.4694, allocations: 31.78 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.4705, allocations: 370.1 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009067/0.4715, allocations: 0.6282 MB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.4716, allocations: 33.08 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006534/0.4723, allocations: 315.6 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004314/0.4727, allocations: 159.3 kB / 1.212 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001447/0.4729, allocations: 44 kB / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.775e-05/0.473, allocations: 44 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.4731, allocations: 127.5 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.4734, allocations: 219 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006471/0.4741, allocations: 0.5919 MB / 1.213 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.4741, allocations: 4 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.754e-06/0.4741, allocations: 0 / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.256e-05/0.4741, allocations: 0 / 1.213 GB, free: 4.637 MB / 0.9669 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.001952/0.4761, allocations: 0.9092 MB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4761, allocations: 12.62 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.4763, allocations: 52.47 kB / 1.214 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005923/0.4769, allocations: 334.1 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.512e-05/0.477, allocations: 20.36 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.103e-05/0.4771, allocations: 32.36 kB / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.4782, allocations: 231.4 kB / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.4782, allocations: 192 / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.4782, allocations: 15.88 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.4782, allocations: 4 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007962/0.4791, allocations: 111.9 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.4808, allocations: 0.6797 MB / 1.215 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.4818, allocations: 186.5 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007275/0.4826, allocations: 116.8 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.4826, allocations: 0 / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001055/0.4837, allocations: 231.1 kB / 1.215 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 2.344e-06/0.4837, allocations: 0 / 1.215 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002656/0.4863, allocations: 0.4908 MB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.4864, allocations: 55.41 kB / 1.216 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006547/0.4871, allocations: 449.8 kB / 1.216 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.993e-05/0.4872, allocations: 41.7 kB / 1.216 GB, free: 476 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.4873, allocations: 105.4 kB / 1.217 GB, free: 368 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.716e-05/0.4874, allocations: 39.44 kB / 1.217 GB, free: 328 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.4876, allocations: 137.3 kB / 1.217 GB, free: 184 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002104/0.4878, allocations: 330.7 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.4881, allocations: 135.9 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/0.4885, allocations: 195.2 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.4889, allocations: 299.9 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.312e-05/0.489, allocations: 0 / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008678/0.4899, allocations: 0.5125 MB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.763e-05/0.49, allocations: 103.4 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.49, allocations: 0 / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.49, allocations: 4 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.4902, allocations: 23.92 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4902, allocations: 4.188 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005115/0.4907, allocations: 63.73 kB / 1.218 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.146e-05/0.4908, allocations: 59.97 kB / 1.218 GB, free: 14.38 MB / 0.9825 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.0003199/0.4911, allocations: 216.3 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.016e-05/0.4912, allocations: 39.53 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-05/0.4913, allocations: 43.8 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.4913, allocations: 3.984 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4913, allocations: 0 / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4913, allocations: 4 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.4936, allocations: 0.7937 MB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4936, allocations: 0 / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.83e-05/0.4937, allocations: 4 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4937, allocations: 0 / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.4937, allocations: 23.97 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4937, allocations: 3.938 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4937, allocations: 0 / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.4955, allocations: 483.2 kB / 1.22 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003873/0.4959, allocations: 240.4 kB / 1.22 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/0.496, allocations: 23.98 kB / 1.22 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.4965, allocations: 39.91 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.4966, allocations: 15.91 kB / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/0.4967, allocations: 55.98 kB / 1.22 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004338/0.4971, allocations: 323.1 kB / 1.221 GB, free: 12 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4971, allocations: 0 / 1.221 GB, free: 12 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000452/0.4976, allocations: 67.94 kB / 1.221 GB, free: 11.93 MB / 0.9825 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.000225/0.4978, allocations: 124 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00137/0.4992, allocations: 482.4 kB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4992, allocations: 0 / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007928/0.5, allocations: 118.9 kB / 1.221 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.5004, allocations: 49.3 kB / 1.221 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.5021, allocations: 0.5945 MB / 1.222 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.5025, allocations: 0.7863 MB / 1.223 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.61e-05/0.5026, allocations: 17.42 kB / 1.223 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.5027, allocations: 15.42 kB / 1.223 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of SimCode: time 7.71e-07/0.5027, allocations: 4 kB / 1.223 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of Templates: time 0.01012/0.5128, allocations: 5.529 MB / 1.228 GB, free: 4.059 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches