Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.3/2.3, allocations: 393.5 MB / 408.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 179.9 kB / 0.4902 GB, free: 2.219 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.1 MB / 0.7992 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001034, allocations: 102.2 kB / 0.9396 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004569/0.0004569, allocations: 10.16 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.291, allocations: 143 MB / 1.229 GB, free: 85.42 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1931/0.4842, allocations: 153 MB / 1.379 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.4845, allocations: 75.95 kB / 1.379 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01716/0.5017, allocations: 5.352 MB / 1.384 GB, free: 6.793 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.432e-06/0.5017, allocations: 0 / 1.384 GB, free: 6.793 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.771e-05/0.5018, allocations: 4 kB / 1.384 GB, free: 6.789 MB / 0.8855 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.001088/0.5029, allocations: 0.688 MB / 1.385 GB, free: 6.012 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5029, allocations: 16.45 kB / 1.385 GB, free: 5.996 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.5031, allocations: 39.67 kB / 1.385 GB, free: 5.957 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.5035, allocations: 275.2 kB / 1.385 GB, free: 5.648 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/0.5036, allocations: 15.98 kB / 1.385 GB, free: 5.633 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.879e-05/0.5037, allocations: 20 kB / 1.385 GB, free: 5.613 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.5047, allocations: 234.2 kB / 1.385 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.5047, allocations: 0 / 1.385 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.5048, allocations: 11.94 kB / 1.385 GB, free: 5.367 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.5048, allocations: 3.938 kB / 1.385 GB, free: 5.363 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007934/0.5056, allocations: 123.9 kB / 1.385 GB, free: 5.242 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.5069, allocations: 0.5863 MB / 1.386 GB, free: 4.605 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.508, allocations: 202.4 kB / 1.386 GB, free: 4.398 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.508, allocations: 4 kB / 1.386 GB, free: 4.395 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009221/0.509, allocations: 223.2 kB / 1.386 GB, free: 4.164 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 2.295e-06/0.509, allocations: 4 kB / 1.386 GB, free: 4.16 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002542/0.5115, allocations: 487.1 kB / 1.387 GB, free: 3.68 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.5116, allocations: 71.39 kB / 1.387 GB, free: 3.598 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.512, allocations: 283.6 kB / 1.387 GB, free: 3.316 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.221e-05/0.5121, allocations: 37.7 kB / 1.387 GB, free: 3.273 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.5122, allocations: 97.03 kB / 1.387 GB, free: 3.176 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.5122, allocations: 39.55 kB / 1.387 GB, free: 3.137 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/0.5123, allocations: 11.94 kB / 1.387 GB, free: 3.125 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5124, allocations: 322.8 kB / 1.388 GB, free: 2.801 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.5127, allocations: 107.9 kB / 1.388 GB, free: 2.695 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.5131, allocations: 165.9 kB / 1.388 GB, free: 2.512 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.5134, allocations: 160.4 kB / 1.388 GB, free: 2.344 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5134, allocations: 4 kB / 1.388 GB, free: 2.34 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008434/0.5142, allocations: 443.1 kB / 1.388 GB, free: 1.891 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.113e-05/0.5143, allocations: 76.8 kB / 1.389 GB, free: 1.805 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.5144, allocations: 0 / 1.389 GB, free: 1.805 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.5144, allocations: 4 kB / 1.389 GB, free: 1.801 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.5146, allocations: 31.91 kB / 1.389 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.5146, allocations: 0 / 1.389 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.515, allocations: 40.16 kB / 1.389 GB, free: 1.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.071e-05/0.515, allocations: 43.97 kB / 1.389 GB, free: 1.688 MB / 0.8855 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 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.5153, allocations: 184.3 kB / 1.389 GB, free: 1.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/0.5154, allocations: 27.62 kB / 1.389 GB, free: 1.473 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.502e-05/0.5154, allocations: 34.36 kB / 1.389 GB, free: 1.434 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.5155, allocations: 0 / 1.389 GB, free: 1.434 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.5155, allocations: 7.938 kB / 1.389 GB, free: 1.426 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.5155, allocations: 3.984 kB / 1.389 GB, free: 1.422 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.5177, allocations: 0.7482 MB / 1.39 GB, free: 0.6172 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5177, allocations: 4 kB / 1.39 GB, free: 0.6133 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.582e-05/0.5177, allocations: 3.984 kB / 1.39 GB, free: 0.6094 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.5177, allocations: 4 kB / 1.39 GB, free: 0.6055 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/0.5178, allocations: 23.97 kB / 1.39 GB, free: 0.582 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5178, allocations: 4 kB / 1.39 GB, free: 0.5781 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5178, allocations: 0 / 1.39 GB, free: 0.5781 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.5195, allocations: 473.2 kB / 1.39 GB, free: 104 kB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.5197, allocations: 188.7 kB / 1.39 GB, free: 15.89 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.942e-05/0.5198, allocations: 15.94 kB / 1.39 GB, free: 15.88 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004136/0.5202, allocations: 39.97 kB / 1.39 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.5203, allocations: 11.92 kB / 1.39 GB, free: 15.83 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-05/0.5204, allocations: 43.97 kB / 1.39 GB, free: 15.79 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002174/0.5206, allocations: 227 kB / 1.391 GB, free: 15.56 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5206, allocations: 0 / 1.391 GB, free: 15.56 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003775/0.521, allocations: 59.94 kB / 1.391 GB, free: 15.5 MB / 0.9011 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002276/0.5212, allocations: 137.5 kB / 1.391 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001219/0.5224, allocations: 426.5 kB / 1.391 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5225, allocations: 8.375 kB / 1.391 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.5232, allocations: 119.9 kB / 1.391 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.5235, allocations: 25.72 kB / 1.391 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.525, allocations: 0.5541 MB / 1.392 GB, free: 14.19 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.5253, allocations: 0.7594 MB / 1.393 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 7.364e-05/0.5254, allocations: 13.42 kB / 1.393 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.5255, allocations: 19.42 kB / 1.393 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of SimCode: time 4.41e-07/0.5255, allocations: 0 / 1.393 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of Templates: time 0.00855/0.534, allocations: 4.335 MB / 1.397 GB, free: 9.086 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time