Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.729/1.729, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0008995/0.0008995, allocations: 188 kB / 490.8 MB, free: 1.949 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.077/1.077, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0008172/0.000817, allocations: 97.77 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.722e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1711, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4598/0.631, allocations: 152.1 MB / 1.36 GB, free: 17.32 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000169/0.6312, allocations: 69.27 kB / 1.36 GB, free: 17.32 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01351/0.6447, allocations: 4.994 MB / 1.365 GB, free: 17.01 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.6447, allocations: 4.344 kB / 1.365 GB, free: 17.01 MB / 0.823 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.0006189/0.6453, allocations: 0.6444 MB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.781e-05/0.6454, allocations: 8.125 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.13e-05/0.6455, allocations: 44.52 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.6458, allocations: 273.5 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.6458, allocations: 12.89 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.6459, allocations: 20.48 kB / 1.366 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001271/0.646, allocations: 59.02 kB / 1.366 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.6462, allocations: 165 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.6463, allocations: 1 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.6463, allocations: 2.547 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.6463, allocations: 6.188 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006832/0.647, allocations: 0.548 MB / 1.367 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.6471, allocations: 116.5 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.999e-05/0.6472, allocations: 55.39 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.6473, allocations: 2.984 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000185/0.6475, allocations: 166.8 kB / 1.367 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.6475, allocations: 0 / 1.367 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003485/0.6478, allocations: 188.5 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.944e-05/0.6479, allocations: 62.31 kB / 1.367 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.6481, allocations: 276.8 kB / 1.368 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.6481, allocations: 34.44 kB / 1.368 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.6482, allocations: 98.05 kB / 1.368 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.6482, allocations: 31.64 kB / 1.368 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.6483, allocations: 9.391 kB / 1.368 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.219e-05/0.6484, allocations: 327.5 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.6485, allocations: 93.34 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.6487, allocations: 148.6 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.6489, allocations: 78.62 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.6489, allocations: 1.312 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004905/0.6494, allocations: 284 kB / 1.369 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.6494, allocations: 6.078 kB / 1.369 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.6494, allocations: 6.281 kB / 1.369 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.6494, allocations: 6.344 kB / 1.369 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.6496, allocations: 27.42 kB / 1.369 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.6496, allocations: 3.531 kB / 1.369 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.6499, allocations: 40 kB / 1.369 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.65, allocations: 43.86 kB / 1.369 GB, free: 30.97 MB / 0.8386 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 () * 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.0001142/0.6501, allocations: 132.1 kB / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.6501, allocations: 28.84 kB / 1.369 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.156e-05/0.6502, allocations: 32.38 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.6502, allocations: 1.031 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.6502, allocations: 0.9688 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.6502, allocations: 1.547 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.6508, allocations: 0.5366 MB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.6508, allocations: 0 / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.6508, allocations: 9.734 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.6508, allocations: 0 / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.6509, allocations: 20.17 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.6509, allocations: 1.375 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6509, allocations: 0 / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000294/0.6512, allocations: 291.2 kB / 1.37 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.6514, allocations: 192.3 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.6515, allocations: 21.28 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.6519, allocations: 34.09 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.636e-05/0.6519, allocations: 6.547 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.652, allocations: 47.64 kB / 1.37 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001707/0.6521, allocations: 216.5 kB / 1.37 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003015/0.6524, allocations: 46.7 kB / 1.37 GB, free: 30.18 MB / 0.8386 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) * 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.0001415/0.6526, allocations: 128 kB / 1.371 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004012/0.653, allocations: 273.9 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.653, allocations: 4.312 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.615e-05/0.6531, allocations: 70.42 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.6534, allocations: 34.34 kB / 1.371 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005206/0.6539, allocations: 305.6 kB / 1.371 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.6542, allocations: 0.7783 MB / 1.372 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/0.6542, allocations: 1.312 kB / 1.372 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.006881/0.6611, allocations: 4.259 MB / 1.376 GB, free: 28.73 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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