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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.306/2.306, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001166/0.001166, allocations: 179.3 kB / 498.1 MB, free: 5.742 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.777/1.777, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.001082/0.001081, allocations: 107.8 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004294/0.0004295, allocations: 10.44 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3966, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.6022, allocations: 151.9 MB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.6026, allocations: 79.89 kB / 1.371 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0145/0.6171, allocations: 4.586 MB / 1.376 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6171, allocations: 4 kB / 1.376 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.267e-05/0.6172, allocations: 0 / 1.376 GB, free: 5.504 MB / 0.8698 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.0008992/0.6181, allocations: 0.6605 MB / 1.376 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.6181, allocations: 12.03 kB / 1.376 GB, free: 4.746 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.6182, allocations: 31.72 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.6187, allocations: 258.5 kB / 1.377 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.6188, allocations: 12 kB / 1.377 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.6189, allocations: 19.94 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009145/0.6198, allocations: 213.5 kB / 1.377 GB, free: 4.18 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.6198, allocations: 4 kB / 1.377 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.6198, allocations: 3.984 kB / 1.377 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.6199, allocations: 0 / 1.377 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006984/0.6206, allocations: 107.9 kB / 1.377 GB, free: 4.066 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.621, allocations: 329.3 kB / 1.377 GB, free: 3.695 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.622, allocations: 182.5 kB / 1.378 GB, free: 3.508 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.622, allocations: 3.938 kB / 1.378 GB, free: 3.504 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008915/0.6229, allocations: 231 kB / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.6229, allocations: 0 / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of matching and sorting (n=16): time 0.002381/0.6253, allocations: 479.6 kB / 1.378 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/0.6254, allocations: 59.41 kB / 1.378 GB, free: 2.723 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.6257, allocations: 262 kB / 1.379 GB, free: 2.453 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.265e-05/0.6258, allocations: 37.7 kB / 1.379 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.796e-05/0.6259, allocations: 97.06 kB / 1.379 GB, free: 2.312 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.955e-05/0.626, allocations: 35.56 kB / 1.379 GB, free: 2.277 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.626, allocations: 11.98 kB / 1.379 GB, free: 2.266 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002068/0.6262, allocations: 326.8 kB / 1.379 GB, free: 1.938 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.6265, allocations: 87.95 kB / 1.379 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.6268, allocations: 142.9 kB / 1.379 GB, free: 1.691 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.6271, allocations: 161 kB / 1.379 GB, free: 1.523 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.6271, allocations: 0 / 1.379 GB, free: 1.523 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007722/0.6278, allocations: 410.1 kB / 1.38 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.63e-05/0.628, allocations: 71.39 kB / 1.38 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.628, allocations: 192 / 1.38 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.628, allocations: 8 kB / 1.38 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.6282, allocations: 19.98 kB / 1.38 GB, free: 0.9961 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.6282, allocations: 3.938 kB / 1.38 GB, free: 0.9922 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.6285, allocations: 47.81 kB / 1.38 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.225e-05/0.6286, allocations: 39.98 kB / 1.38 GB, free: 0.9062 MB / 0.8698 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 () * 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.0002468/0.6289, allocations: 181.5 kB / 1.38 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.6289, allocations: 35.58 kB / 1.38 GB, free: 0.6836 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.728e-05/0.629, allocations: 26.3 kB / 1.38 GB, free: 0.6562 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.629, allocations: 4 kB / 1.38 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.629, allocations: 0 / 1.38 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.629, allocations: 0 / 1.38 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.6312, allocations: 0.6975 MB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.6312, allocations: 4 kB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.772e-05/0.6313, allocations: 15.92 kB / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.6313, allocations: 4 kB / 1.381 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.6313, allocations: 19.97 kB / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.6313, allocations: 0 / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6313, allocations: 0 / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.6329, allocations: 461.6 kB / 1.381 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.6332, allocations: 168.6 kB / 1.382 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.6332, allocations: 15.98 kB / 1.382 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003808/0.6336, allocations: 27.97 kB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.6337, allocations: 11.98 kB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.6337, allocations: 39.98 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002081/0.634, allocations: 209.9 kB / 1.382 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.91e-07/0.634, allocations: 4 kB / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000352/0.6343, allocations: 55.92 kB / 1.382 GB, free: 14.85 MB / 0.8855 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) * 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.0002206/0.6345, allocations: 124.8 kB / 1.382 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001199/0.6358, allocations: 398.6 kB / 1.382 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6358, allocations: 3.938 kB / 1.382 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.6365, allocations: 124.3 kB / 1.382 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.6368, allocations: 27.28 kB / 1.383 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.6382, allocations: 0.4951 MB / 1.383 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.6386, allocations: 0.7445 MB / 1.384 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.662e-05/0.6387, allocations: 16.62 kB / 1.384 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.6388, allocations: 27.3 kB / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of SimCode: time 6.51e-07/0.6388, allocations: 0 / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of Templates: time 0.007521/0.6463, allocations: 3.946 MB / 1.388 GB, free: 8.883 MB / 0.8855 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