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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006583/0.006583, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001544/0.001545, allocations: 186.8 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.819/2.819, allocations: 461.9 MB / 0.7348 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 75.86 kB / 1.054 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3275, allocations: 157.4 MB / 1.208 GB, free: 9.754 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003259/0.3308, allocations: 1.515 MB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001488/0.3323, allocations: 0.536 MB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.3324, allocations: 0 / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.3325, allocations: 11.86 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.3327, allocations: 23.86 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3338, allocations: 314.1 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007873/0.3346, allocations: 0.511 MB / 1.211 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.254e-05/0.3346, allocations: 4 kB / 1.211 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006084/0.3352, allocations: 271.6 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.3357, allocations: 146 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3358, allocations: 28 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.844e-05/0.3359, allocations: 28 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.3361, allocations: 123.6 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.3364, allocations: 183 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.3369, allocations: 426.7 kB / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3369, allocations: 0 / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3369, allocations: 0 / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.037e-05/0.337, allocations: 0 / 1.212 GB, free: 5.652 MB / 0.9669 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.001482/0.3385, allocations: 0.8587 MB / 1.213 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.3385, allocations: 8.625 kB / 1.213 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.3387, allocations: 60.44 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.3392, allocations: 318.2 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.3392, allocations: 12.38 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.3393, allocations: 32.36 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.3403, allocations: 213.9 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3404, allocations: 192 / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.3404, allocations: 3.938 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.3404, allocations: 4 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007557/0.3412, allocations: 99.92 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004886/0.3417, allocations: 385.2 kB / 1.214 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3427, allocations: 182.5 kB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007426/0.3435, allocations: 104.8 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3435, allocations: 7.938 kB / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00095/0.3445, allocations: 231 kB / 1.214 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 2.074e-06/0.3445, allocations: 0 / 1.214 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002593/0.3471, allocations: 482 kB / 1.215 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.3472, allocations: 63.41 kB / 1.215 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.3476, allocations: 409.9 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.731e-05/0.3477, allocations: 41.7 kB / 1.215 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.3478, allocations: 97.33 kB / 1.215 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.3478, allocations: 43.55 kB / 1.215 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.3481, allocations: 129.2 kB / 1.215 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3482, allocations: 322.8 kB / 1.216 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.3485, allocations: 115.9 kB / 1.216 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.3488, allocations: 174.2 kB / 1.216 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.3492, allocations: 278.8 kB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3492, allocations: 3.938 kB / 1.216 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008145/0.35, allocations: 486.6 kB / 1.217 GB, free: 260 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.216e-05/0.3501, allocations: 91.31 kB / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3502, allocations: 0 / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.3502, allocations: 4 kB / 1.217 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3504, allocations: 31.91 kB / 1.217 GB, free: 120 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3504, allocations: 3.984 kB / 1.217 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.3509, allocations: 67.92 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.73e-05/0.351, allocations: 56.03 kB / 1.217 GB, free: 15.99 MB / 0.9825 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.3512, allocations: 193.7 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.3513, allocations: 43.47 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.303e-05/0.3513, allocations: 39.75 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3513, allocations: 3.984 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3514, allocations: 0 / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3514, allocations: 3.984 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.3537, allocations: 0.7512 MB / 1.218 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3537, allocations: 4 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.3537, allocations: 4 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3538, allocations: 0 / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.3538, allocations: 27.97 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3538, allocations: 0 / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3538, allocations: 4 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.3556, allocations: 479.2 kB / 1.218 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003044/0.3559, allocations: 196.5 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.529e-05/0.356, allocations: 8 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005011/0.3565, allocations: 36.7 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.3565, allocations: 7.938 kB / 1.219 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.632e-05/0.3566, allocations: 63.97 kB / 1.219 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002973/0.3569, allocations: 295 kB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3569, allocations: 4 kB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003996/0.3573, allocations: 67.98 kB / 1.219 GB, free: 13.69 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001493/0.3575, allocations: 120.9 kB / 1.219 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00133/0.3588, allocations: 434.4 kB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3589, allocations: 4.375 kB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007798/0.3596, allocations: 126.7 kB / 1.22 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.36, allocations: 25.48 kB / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.3615, allocations: 0.5474 MB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.3619, allocations: 0.7746 MB / 1.221 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.75e-05/0.362, allocations: 13.08 kB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.362, allocations: 15.44 kB / 1.221 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.362, allocations: 0 / 1.221 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of Templates: time 0.0097/0.3718, allocations: 5.131 MB / 1.226 GB, free: 6.324 MB / 0.9825 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches