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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 100.5 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.001329/0.00133, allocations: 177.3 kB / 15.94 MB, free: 228 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.523/1.523, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.394/2.394, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004563/0.0004563, allocations: 19.98 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9499/0.9504, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001612/0.9521, allocations: 1.171 MB / 0.9546 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008931/0.953, allocations: 390.6 kB / 0.955 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.7e-05/0.953, allocations: 5.438 kB / 0.955 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.387e-05/0.9531, allocations: 7.875 kB / 0.955 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.9532, allocations: 23.39 kB / 0.955 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.9539, allocations: 220 kB / 0.9553 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.9541, allocations: 161.6 kB / 0.9554 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.359e-05/0.9542, allocations: 4.5 kB / 0.9554 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.9544, allocations: 162.4 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.9547, allocations: 132.3 kB / 0.9557 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.9547, allocations: 13.38 kB / 0.9557 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.122e-05/0.9548, allocations: 9.844 kB / 0.9557 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.9549, allocations: 74.66 kB / 0.9558 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.158e-05/0.955, allocations: 70.2 kB / 0.9559 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.9553, allocations: 210.3 kB / 0.9561 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9553, allocations: 0 / 0.9561 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.996e-06/0.9553, allocations: 7.938 kB / 0.9561 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.9553, allocations: 1.031 kB / 0.9561 GB, free: 6.195 MB / 0.7169 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.000933/0.9562, allocations: 0.6594 MB / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.9563, allocations: 9.938 kB / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.9564, allocations: 30.22 kB / 0.9567 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.9568, allocations: 258.1 kB / 0.957 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.9568, allocations: 16.23 kB / 0.957 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/0.9569, allocations: 18.5 kB / 0.957 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000969/0.9579, allocations: 208 kB / 0.9572 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.9579, allocations: 5.203 kB / 0.9572 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.9579, allocations: 3.984 kB / 0.9572 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.9579, allocations: 10.64 kB / 0.9572 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000725/0.9587, allocations: 104.7 kB / 0.9573 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003726/0.959, allocations: 312.8 kB / 0.9576 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.9601, allocations: 186.3 kB / 0.9578 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.9601, allocations: 5.562 kB / 0.9578 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009005/0.961, allocations: 221.4 kB / 0.958 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.415e-06/0.961, allocations: 0 / 0.958 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002438/0.9635, allocations: 482.3 kB / 0.9585 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.9635, allocations: 68.84 kB / 0.9586 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/0.9638, allocations: 293.5 kB / 0.9588 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.9639, allocations: 35.52 kB / 0.9589 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.964, allocations: 90.52 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.879e-05/0.964, allocations: 37.36 kB / 0.959 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.964, allocations: 12.12 kB / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.791e-05/0.9641, allocations: 321.6 kB / 0.9593 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.9643, allocations: 93.03 kB / 0.9594 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.9645, allocations: 132.4 kB / 0.9595 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.9648, allocations: 150.5 kB / 0.9597 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.9648, allocations: 4.75 kB / 0.9597 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000645/0.9654, allocations: 388.4 kB / 0.96 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.9655, allocations: 76.5 kB / 0.9601 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.9655, allocations: 1.031 kB / 0.9601 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.9656, allocations: 3.188 kB / 0.9601 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.9657, allocations: 26.36 kB / 0.9601 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.9658, allocations: 3 kB / 0.9602 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.9662, allocations: 67.8 kB / 0.9602 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.9663, allocations: 40.05 kB / 0.9603 GB, free: 2.988 MB / 0.7169 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.0002066/0.9666, allocations: 174.7 kB / 0.9604 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.702e-05/0.9666, allocations: 27.59 kB / 0.9604 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.263e-05/0.9667, allocations: 32.52 kB / 0.9605 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.9667, allocations: 1.125 kB / 0.9605 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.9667, allocations: 0.875 kB / 0.9605 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.9667, allocations: 0 / 0.9605 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.9688, allocations: 0.7177 MB / 0.9612 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.9688, allocations: 0 / 0.9612 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.562e-05/0.9689, allocations: 11.81 kB / 0.9612 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.9689, allocations: 1.094 kB / 0.9612 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.9689, allocations: 20.09 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.9689, allocations: 1.5 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.9689, allocations: 0 / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.9706, allocations: 472.6 kB / 0.9617 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.9708, allocations: 161.8 kB / 0.9618 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.731e-05/0.9709, allocations: 13.59 kB / 0.9618 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00044/0.9713, allocations: 35.98 kB / 0.9619 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.9714, allocations: 7.906 kB / 0.9619 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.081e-05/0.9715, allocations: 42.97 kB / 0.9619 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002015/0.9717, allocations: 208 kB / 0.9621 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9717, allocations: 0 / 0.9621 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003639/0.972, allocations: 54.03 kB / 0.9622 GB, free: 1.676 MB / 0.7169 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.0001592/0.9722, allocations: 123 kB / 0.9623 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001129/0.9733, allocations: 395.7 kB / 0.9627 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.9733, allocations: 0 / 0.9627 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.9741, allocations: 127.5 kB / 0.9628 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.9744, allocations: 26.36 kB / 0.9628 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.9757, allocations: 498.7 kB / 0.9633 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.9759, allocations: 0.7512 MB / 0.964 GB, free: 196 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.784e-05/0.976, allocations: 16.23 kB / 0.964 GB, free: 184 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/0.976, allocations: 18.84 kB / 0.964 GB, free: 176 kB / 0.7169 GB Notification: Performance of SimCode: time 1.934e-06/0.9761, allocations: 0 / 0.964 GB, free: 176 kB / 0.7169 GB Notification: Performance of Templates: time 0.007865/0.9839, allocations: 3.523 MB / 0.9675 GB, free: 14.36 MB / 0.7325 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) Reference file matches