Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.998/1.998, allocations: 387.2 MB / 394.5 MB, free: 4.562 MB / 306.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 169.3 kB / 487 MB, free: 11.13 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.3 MB / 0.7819 GB, free: 4.023 MB / 0.5497 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008677/0.0008677, allocations: 103.5 kB / 0.9213 GB, free: 5.102 MB / 0.6903 GB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.093e-06, allocations: 0 / 1.066 GB, free: 141.2 MB / 0.7216 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.256, allocations: 142.3 MB / 1.205 GB, free: 14.87 MB / 0.7372 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6941/0.9502, allocations: 151.1 MB / 1.353 GB, free: 1.137 MB / 0.8153 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.9505, allocations: 71.91 kB / 1.353 GB, free: 1.066 MB / 0.8153 GB Notification: Performance of FrontEnd: time 0.01427/0.9648, allocations: 4.251 MB / 1.357 GB, free: 12.83 MB / 0.8309 GB Notification: Performance of Transformations before backend: time 2.011e-05/0.9648, allocations: 4 kB / 1.357 GB, free: 12.83 MB / 0.8309 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.0009152/0.9658, allocations: 0.6288 MB / 1.358 GB, free: 12.12 MB / 0.8309 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.9658, allocations: 8.031 kB / 1.358 GB, free: 12.11 MB / 0.8309 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.966, allocations: 35.7 kB / 1.358 GB, free: 12.07 MB / 0.8309 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.9664, allocations: 255.2 kB / 1.358 GB, free: 11.79 MB / 0.8309 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.9665, allocations: 8 kB / 1.358 GB, free: 11.78 MB / 0.8309 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.9665, allocations: 16 kB / 1.358 GB, free: 11.76 MB / 0.8309 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001537/0.9667, allocations: 39.98 kB / 1.358 GB, free: 11.72 MB / 0.8309 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.967, allocations: 149.5 kB / 1.358 GB, free: 11.57 MB / 0.8309 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.967, allocations: 0 / 1.358 GB, free: 11.57 MB / 0.8309 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.967, allocations: 8 kB / 1.358 GB, free: 11.56 MB / 0.8309 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.967, allocations: 3.906 kB / 1.358 GB, free: 11.56 MB / 0.8309 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004028/0.9675, allocations: 298 kB / 1.358 GB, free: 11.23 MB / 0.8309 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.9676, allocations: 94.56 kB / 1.359 GB, free: 11.13 MB / 0.8309 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.9678, allocations: 52.84 kB / 1.359 GB, free: 11.07 MB / 0.8309 GB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.9678, allocations: 4 kB / 1.359 GB, free: 11.07 MB / 0.8309 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.9681, allocations: 163.2 kB / 1.359 GB, free: 10.9 MB / 0.8309 GB Notification: Performance of pre-optimization done (n=16): time 1.522e-06/0.9681, allocations: 3.938 kB / 1.359 GB, free: 10.89 MB / 0.8309 GB Notification: Performance of matching and sorting (n=16): time 0.0004268/0.9686, allocations: 184.9 kB / 1.359 GB, free: 10.71 MB / 0.8309 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.9686, allocations: 55.41 kB / 1.359 GB, free: 10.64 MB / 0.8309 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.9689, allocations: 255.3 kB / 1.359 GB, free: 10.39 MB / 0.8309 GB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.9689, allocations: 33.7 kB / 1.359 GB, free: 10.35 MB / 0.8309 GB Notification: Performance of collectInitialEqns (initialization): time 6.664e-05/0.969, allocations: 85.14 kB / 1.359 GB, free: 10.26 MB / 0.8309 GB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.9691, allocations: 47.53 kB / 1.359 GB, free: 10.21 MB / 0.8309 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.9691, allocations: 0 / 1.359 GB, free: 10.21 MB / 0.8309 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.9693, allocations: 322.8 kB / 1.36 GB, free: 9.891 MB / 0.8309 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.9695, allocations: 79.97 kB / 1.36 GB, free: 9.812 MB / 0.8309 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.9697, allocations: 123 kB / 1.36 GB, free: 9.672 MB / 0.8309 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.9698, allocations: 76.55 kB / 1.36 GB, free: 9.598 MB / 0.8309 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.9698, allocations: 0 / 1.36 GB, free: 9.598 MB / 0.8309 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005028/0.9703, allocations: 267.7 kB / 1.36 GB, free: 9.332 MB / 0.8309 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.9704, allocations: 4 kB / 1.36 GB, free: 9.328 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.9704, allocations: 4 kB / 1.36 GB, free: 9.324 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.9704, allocations: 8.172 kB / 1.36 GB, free: 9.316 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.9706, allocations: 19.98 kB / 1.36 GB, free: 9.297 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.9706, allocations: 7.938 kB / 1.36 GB, free: 9.289 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.9709, allocations: 47.69 kB / 1.36 GB, free: 9.242 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.971, allocations: 47.98 kB / 1.36 GB, free: 9.195 MB / 0.8309 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.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (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.0001452/0.9712, allocations: 120 kB / 1.36 GB, free: 9.07 MB / 0.8309 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.9712, allocations: 27.72 kB / 1.36 GB, free: 9.043 MB / 0.8309 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.9713, allocations: 29.95 kB / 1.36 GB, free: 9.012 MB / 0.8309 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.9713, allocations: 0 / 1.36 GB, free: 9.012 MB / 0.8309 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.9713, allocations: 3.906 kB / 1.36 GB, free: 9.008 MB / 0.8309 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9713, allocations: 0 / 1.36 GB, free: 9.008 MB / 0.8309 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007054/0.9721, allocations: 0.4988 MB / 1.361 GB, free: 8.465 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.9721, allocations: 0 / 1.361 GB, free: 8.465 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.852e-05/0.9721, allocations: 4 kB / 1.361 GB, free: 8.461 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.9721, allocations: 7.922 kB / 1.361 GB, free: 8.453 MB / 0.8309 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.9722, allocations: 11.98 kB / 1.361 GB, free: 8.441 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.9722, allocations: 0 / 1.361 GB, free: 8.441 MB / 0.8309 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.9722, allocations: 0 / 1.361 GB, free: 8.441 MB / 0.8309 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000327/0.9725, allocations: 283 kB / 1.361 GB, free: 8.148 MB / 0.8309 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.9727, allocations: 156.6 kB / 1.361 GB, free: 7.977 MB / 0.8309 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.9728, allocations: 15.98 kB / 1.361 GB, free: 7.961 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.9732, allocations: 35.97 kB / 1.361 GB, free: 7.926 MB / 0.8309 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.9733, allocations: 8 kB / 1.361 GB, free: 7.918 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-05/0.9733, allocations: 47.91 kB / 1.362 GB, free: 7.871 MB / 0.8309 GB Notification: Performance of sort global known variables: time 0.0001691/0.9735, allocations: 203.1 kB / 1.362 GB, free: 7.676 MB / 0.8309 GB Notification: Performance of remove unused functions: time 0.0003103/0.9738, allocations: 48 kB / 1.362 GB, free: 7.629 MB / 0.8309 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.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.0001807/0.974, allocations: 126.5 kB / 1.362 GB, free: 7.5 MB / 0.8309 GB Notification: Performance of simCode: created initialization part: time 0.000454/0.9745, allocations: 243.3 kB / 1.362 GB, free: 7.25 MB / 0.8309 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.9745, allocations: 0 / 1.362 GB, free: 7.25 MB / 0.8309 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.9746, allocations: 63.92 kB / 1.362 GB, free: 7.188 MB / 0.8309 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.9749, allocations: 24.8 kB / 1.362 GB, free: 7.164 MB / 0.8309 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.9756, allocations: 269.2 kB / 1.362 GB, free: 6.875 MB / 0.8309 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.976, allocations: 0.7664 MB / 1.363 GB, free: 6.082 MB / 0.8309 GB Notification: Performance of SimCode: time 2.41e-07/0.976, allocations: 4 kB / 1.363 GB, free: 6.078 MB / 0.8309 GB Notification: Performance of Templates: time 0.007073/0.9831, allocations: 3.944 MB / 1.367 GB, free: 2.129 MB / 0.8309 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_9_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