Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") [: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 7.0.3-maint.7.0.x/package.mo): time 1.2/1.2, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009581/0.0009581, allocations: 192.4 kB / 316 MB, free: 3.488 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.035/1.035, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008179/0.0008179, allocations: 89.61 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.26e-06/5.27e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1388, allocations: 106.3 MB / 0.8845 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5483, allocations: 133.8 MB / 1.015 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.5486, allocations: 75.77 kB / 1.015 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01231/0.5609, allocations: 4.105 MB / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.217e-05/0.561, allocations: 4 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007848/0.5617, allocations: 0.583 MB / 1.02 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.5618, allocations: 8.031 kB / 1.02 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.501e-05/0.5619, allocations: 35.62 kB / 1.02 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.5622, allocations: 250.1 kB / 1.02 GB, free: 436 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.5622, allocations: 7.984 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.5623, allocations: 23.47 kB / 1.02 GB, free: 408 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001107/0.5624, allocations: 38.23 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.5626, allocations: 139.5 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.5627, allocations: 4 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.5627, allocations: 0 / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.5627, allocations: 4 kB / 1.02 GB, free: 248 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003345/0.563, allocations: 298.8 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.5632, allocations: 111.7 kB / 1.021 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.447e-05/0.5633, allocations: 51.16 kB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.5633, allocations: 8.375 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.5637, allocations: 174 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.322e-06/0.5637, allocations: 0 / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0003374/0.564, allocations: 170.4 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.5641, allocations: 67.38 kB / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.5643, allocations: 242.8 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.5643, allocations: 36.58 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.033e-05/0.5644, allocations: 93.03 kB / 1.022 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.571e-05/0.5645, allocations: 37.36 kB / 1.022 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/0.5645, allocations: 4 kB / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5646, allocations: 332.7 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.5648, allocations: 85.58 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.565, allocations: 134.9 kB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.5652, allocations: 81.5 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.5652, allocations: 0 / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004952/0.5657, allocations: 276.7 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.5657, allocations: 4 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.5657, allocations: 4 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.5657, allocations: 3.906 kB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.5659, allocations: 32.05 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.5659, allocations: 4 kB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.5663, allocations: 47.81 kB / 1.023 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.884e-05/0.5664, allocations: 59.78 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001496/0.5665, allocations: 139.1 kB / 1.023 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.5666, allocations: 27.62 kB / 1.023 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.113e-05/0.5666, allocations: 24.78 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5666, allocations: 4 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5667, allocations: 0 / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.5667, allocations: 3.984 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005839/0.5673, allocations: 487.1 kB / 1.023 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.5673, allocations: 3.938 kB / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/0.5673, allocations: 8 kB / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.5673, allocations: 0 / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.5674, allocations: 14.91 kB / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.5674, allocations: 4 kB / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5674, allocations: 0 / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000279/0.5677, allocations: 264.2 kB / 1.024 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.5678, allocations: 162.2 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.5679, allocations: 15.73 kB / 1.024 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.5681, allocations: 4 kB / 1.024 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.5681, allocations: 18.78 kB / 1.024 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.5682, allocations: 27.98 kB / 1.024 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001442/0.5683, allocations: 198.8 kB / 1.024 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003132/0.5686, allocations: 51.62 kB / 1.024 GB, free: 12.78 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0001277/0.5688, allocations: 120.7 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004071/0.5692, allocations: 260.6 kB / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5692, allocations: 0 / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.5693, allocations: 69.73 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.5695, allocations: 13.62 kB / 1.024 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005168/0.5701, allocations: 282.1 kB / 1.025 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.5705, allocations: 0.7974 MB / 1.025 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/0.5705, allocations: 0 / 1.025 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.006398/0.5769, allocations: 4.318 MB / 1.03 GB, free: 6.984 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.minute Variables in the result:calendarTime2016.day,calendarTime2016.daySampleStart,calendarTime2016.hour,calendarTime2016.hourSampleStart,calendarTime2016.minute,calendarTime2016.month,calendarTime2016.offset,calendarTime2016.outputUnixTimeStamp,calendarTime2016.timOff,calendarTime2016.timZon,calendarTime2016.year,calendarTime2016.yearRef,calendarTime2016.zerTim,time