Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.62/2.62, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000539/0.0005391, allocations: 8 kB / 0.8707 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8394/0.84, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001623/0.8417, allocations: 1.18 MB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008241/0.8425, allocations: 391.2 kB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.8426, allocations: 0 / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.933e-05/0.8426, allocations: 3.938 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.8427, allocations: 23.95 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.8433, allocations: 218.4 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.8436, allocations: 155.7 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.086e-05/0.8436, allocations: 11.98 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002327/0.8439, allocations: 163.6 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.8441, allocations: 131.7 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.786e-05/0.8441, allocations: 12 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.396e-05/0.8442, allocations: 8 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.8443, allocations: 79.78 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.439e-05/0.8444, allocations: 65.58 kB / 1.023 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.8446, allocations: 209.5 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8446, allocations: 0 / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.557e-06/0.8446, allocations: 3.938 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.8446, allocations: 3.938 kB / 1.023 GB, free: 14.44 MB / 0.7794 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.0009136/0.8455, allocations: 0.6586 MB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.8456, allocations: 15.98 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.851e-05/0.8457, allocations: 31.62 kB / 1.024 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.846, allocations: 250.5 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.466e-05/0.8461, allocations: 19.94 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.912e-05/0.8461, allocations: 20 kB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009139/0.8471, allocations: 209.5 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.8471, allocations: 0 / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.8471, allocations: 3.984 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.8471, allocations: 0 / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007029/0.8478, allocations: 115.9 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.8482, allocations: 317.3 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009548/0.8491, allocations: 186.5 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.8492, allocations: 3.953 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008741/0.8501, allocations: 223.2 kB / 1.025 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.664e-06/0.8501, allocations: 0 / 1.025 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.00227/0.8523, allocations: 481 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.8524, allocations: 59.39 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.8527, allocations: 294.9 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.8527, allocations: 41.7 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.8528, allocations: 93.11 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.931e-05/0.8529, allocations: 39.5 kB / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.8529, allocations: 11.98 kB / 1.026 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.853, allocations: 314.8 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.8532, allocations: 91.94 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.8535, allocations: 137.8 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.8537, allocations: 151.4 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.8537, allocations: 3.953 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006386/0.8544, allocations: 388.8 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.77e-05/0.8545, allocations: 75.39 kB / 1.027 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.8545, allocations: 0 / 1.027 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.8545, allocations: 4 kB / 1.027 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.8547, allocations: 31.81 kB / 1.027 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.8547, allocations: 3.984 kB / 1.027 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.8552, allocations: 71.81 kB / 1.028 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.446e-05/0.8552, allocations: 39.98 kB / 1.028 GB, free: 9.816 MB / 0.7794 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.0001999/0.8555, allocations: 175.1 kB / 1.028 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.8555, allocations: 23.72 kB / 1.028 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.96e-05/0.8556, allocations: 34.3 kB / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.8556, allocations: 0 / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.8556, allocations: 3.953 kB / 1.028 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.8556, allocations: 11.94 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.8577, allocations: 0.7078 MB / 1.029 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.8577, allocations: 0 / 1.029 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-05/0.8577, allocations: 4 kB / 1.029 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.8577, allocations: 4 kB / 1.029 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.8578, allocations: 19.92 kB / 1.029 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8578, allocations: 0 / 1.029 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.8578, allocations: 4 kB / 1.029 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.8594, allocations: 466.9 kB / 1.029 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.8596, allocations: 156.7 kB / 1.029 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.8596, allocations: 12 kB / 1.029 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.8601, allocations: 47.91 kB / 1.029 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.8601, allocations: 7.984 kB / 1.029 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.8602, allocations: 39.98 kB / 1.029 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002024/0.8604, allocations: 209.9 kB / 1.029 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8604, allocations: 0 / 1.029 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003106/0.8607, allocations: 44 kB / 1.029 GB, free: 7.773 MB / 0.7794 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.0001867/0.8609, allocations: 125 kB / 1.03 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001107/0.862, allocations: 386.5 kB / 1.03 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.862, allocations: 384 / 1.03 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.8627, allocations: 138.2 kB / 1.03 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.863, allocations: 22.36 kB / 1.03 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.8643, allocations: 0.491 MB / 1.031 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.8646, allocations: 0.7443 MB / 1.031 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.687e-05/0.8647, allocations: 17.08 kB / 1.031 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.687e-05/0.8647, allocations: 11.44 kB / 1.031 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.8647, allocations: 0 / 1.031 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of Templates: time 0.006439/0.8712, allocations: 3.528 MB / 1.035 GB, free: 2.27 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches