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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001854/0.001854, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002085/0.002085, allocations: 194 kB / 16.53 MB, free: 6.391 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.628/1.628, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.138/3.138, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 65.08 kB / 0.9121 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4319, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.004151/0.4361, allocations: 1.734 MB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.4376, allocations: 0.636 MB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.833e-05/0.4377, allocations: 4 kB / 1.071 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.544e-05/0.4378, allocations: 11.81 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.4379, allocations: 31.78 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007529/0.4387, allocations: 373.9 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005844/0.4392, allocations: 0.6243 MB / 1.072 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.4394, allocations: 37.08 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003527/0.4397, allocations: 307.6 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.44, allocations: 151.5 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.4401, allocations: 40 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.907e-05/0.4402, allocations: 40 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.4403, allocations: 131.6 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.4406, allocations: 211 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005337/0.4411, allocations: 0.5962 MB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4411, allocations: 0 / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4411, allocations: 0 / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.4411, allocations: 0 / 1.073 GB, free: 5.48 MB / 0.8262 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.001287/0.4424, allocations: 0.9093 MB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.4425, allocations: 15.97 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.4426, allocations: 48.47 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.4431, allocations: 342.2 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.437e-05/0.4431, allocations: 16.56 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.119e-05/0.4432, allocations: 32.36 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4442, allocations: 240 kB / 1.075 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.4443, allocations: 3.938 kB / 1.075 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.4443, allocations: 3.984 kB / 1.075 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.4443, allocations: 4 kB / 1.075 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007777/0.4451, allocations: 115.8 kB / 1.075 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.4464, allocations: 0.6759 MB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.4475, allocations: 186.4 kB / 1.076 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007504/0.4483, allocations: 112.8 kB / 1.076 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.4483, allocations: 0 / 1.076 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.4494, allocations: 243.1 kB / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.764e-06/0.4494, allocations: 0 / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002685/0.4521, allocations: 0.4908 MB / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.4522, allocations: 59.41 kB / 1.076 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005066/0.4527, allocations: 437.9 kB / 1.077 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.442e-05/0.4527, allocations: 45.69 kB / 1.077 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.4529, allocations: 105.3 kB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.4529, allocations: 43.48 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.4531, allocations: 137.2 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4533, allocations: 330.8 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.4536, allocations: 135.9 kB / 1.078 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003594/0.454, allocations: 194.9 kB / 1.078 GB, free: 340 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.4544, allocations: 305.2 kB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4545, allocations: 0 / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001/0.4555, allocations: 0.522 MB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.4556, allocations: 92.94 kB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-05/0.4557, allocations: 7.984 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.4557, allocations: 4 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.4559, allocations: 23.92 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.4559, allocations: 4 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.4564, allocations: 59.98 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.923e-05/0.4565, allocations: 67.91 kB / 1.079 GB, free: 15.2 MB / 0.8419 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.0002642/0.4568, allocations: 220.3 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.4568, allocations: 35.53 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.598e-05/0.4569, allocations: 43.78 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.4569, allocations: 4 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.457, allocations: 0 / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.457, allocations: 0 / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.4592, allocations: 0.7964 MB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4592, allocations: 0 / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.4593, allocations: 4 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.4593, allocations: 4 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.4593, allocations: 23.91 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4593, allocations: 4 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4594, allocations: 0 / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.4611, allocations: 486.7 kB / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.4614, allocations: 236.5 kB / 1.081 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.4614, allocations: 23.92 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004389/0.4619, allocations: 27.97 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.4619, allocations: 11.98 kB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-05/0.462, allocations: 55.98 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004299/0.4624, allocations: 327.1 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4625, allocations: 0 / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003656/0.4628, allocations: 71.89 kB / 1.081 GB, free: 12.76 MB / 0.8419 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.0002482/0.4631, allocations: 128 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001358/0.4644, allocations: 488.7 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4645, allocations: 0 / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007539/0.4652, allocations: 123.8 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.4657, allocations: 38.09 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.4675, allocations: 0.6027 MB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.4679, allocations: 0.7902 MB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.703e-05/0.468, allocations: 17.42 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.4681, allocations: 11.44 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of SimCode: time 2.043e-06/0.4681, allocations: 0 / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of Templates: time 0.01055/0.4786, allocations: 5.455 MB / 1.089 GB, free: 4.949 MB / 0.8419 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