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.001528/0.001528, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.001704/0.001704, allocations: 191 kB / 17.29 MB, free: 5.516 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.474/2.474, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 70.31 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2951, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002626/0.2977, allocations: 1.524 MB / 1.028 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2989, allocations: 0.5423 MB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.858e-05/0.299, allocations: 0 / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.297e-05/0.2991, allocations: 11.86 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.2992, allocations: 31.7 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007583/0.3, allocations: 314.8 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005/0.3005, allocations: 0.5072 MB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.329e-05/0.3005, allocations: 4 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.3009, allocations: 267.6 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.3011, allocations: 147.6 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.253e-05/0.3012, allocations: 28 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.427e-05/0.3013, allocations: 28 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.3014, allocations: 115.7 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.3016, allocations: 187 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.302, allocations: 426.6 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.302, allocations: 0 / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.934e-06/0.302, allocations: 0 / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.302, allocations: 0 / 1.031 GB, free: 13.95 MB / 0.8106 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.001188/0.3032, allocations: 0.8625 MB / 1.032 GB, free: 13 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.3032, allocations: 8.031 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.3034, allocations: 48.56 kB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.3038, allocations: 314.2 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.3039, allocations: 16.38 kB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.578e-05/0.3039, allocations: 28.36 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000897/0.3048, allocations: 217.9 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3049, allocations: 192 / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.3049, allocations: 7.938 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3049, allocations: 0 / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007091/0.3056, allocations: 99.92 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003837/0.306, allocations: 389.2 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009607/0.307, allocations: 182.5 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.3077, allocations: 104.8 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.3077, allocations: 4 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008594/0.3086, allocations: 234.9 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.634e-06/0.3086, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002351/0.3109, allocations: 488.8 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.311, allocations: 67.38 kB / 1.034 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.3114, allocations: 405.9 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.3114, allocations: 41.69 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.3115, allocations: 93.45 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.3116, allocations: 39.55 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.3117, allocations: 125.3 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.3118, allocations: 326.8 kB / 1.035 GB, free: 9.652 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.3121, allocations: 119.9 kB / 1.035 GB, free: 9.535 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002749/0.3124, allocations: 170.9 kB / 1.035 GB, free: 9.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.3127, allocations: 271 kB / 1.035 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3128, allocations: 0 / 1.035 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007946/0.3136, allocations: 0.4888 MB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/0.3136, allocations: 98.11 kB / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3137, allocations: 0 / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3137, allocations: 4 kB / 1.036 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.3138, allocations: 23.86 kB / 1.036 GB, free: 8.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3139, allocations: 4 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004543/0.3143, allocations: 63.95 kB / 1.036 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/0.3144, allocations: 67.95 kB / 1.036 GB, free: 8.277 MB / 0.8106 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.0001965/0.3146, allocations: 193.7 kB / 1.036 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.3147, allocations: 43.47 kB / 1.036 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.432e-05/0.3148, allocations: 39.75 kB / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.3148, allocations: 0 / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3148, allocations: 3.984 kB / 1.036 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3148, allocations: 0 / 1.036 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.3169, allocations: 0.7437 MB / 1.037 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3169, allocations: 3.938 kB / 1.037 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.422e-05/0.3169, allocations: 4 kB / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3169, allocations: 0 / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.317, allocations: 23.97 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.317, allocations: 8 kB / 1.037 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.317, allocations: 4 kB / 1.037 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.3186, allocations: 475.2 kB / 1.037 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.3189, allocations: 196.5 kB / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.3189, allocations: 15.98 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004519/0.3194, allocations: 34.66 kB / 1.038 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.3194, allocations: 7.984 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.3195, allocations: 59.98 kB / 1.038 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002681/0.3198, allocations: 291.1 kB / 1.038 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3198, allocations: 7.875 kB / 1.038 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003455/0.3201, allocations: 71.98 kB / 1.038 GB, free: 5.98 MB / 0.8106 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.0001403/0.3203, allocations: 113.8 kB / 1.038 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001171/0.3215, allocations: 442.4 kB / 1.039 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3215, allocations: 0 / 1.039 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000702/0.3222, allocations: 120.3 kB / 1.039 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3226, allocations: 29.48 kB / 1.039 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.3239, allocations: 0.5435 MB / 1.039 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.3242, allocations: 0.7707 MB / 1.04 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.872e-05/0.3243, allocations: 21.06 kB / 1.04 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.3243, allocations: 19.44 kB / 1.04 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of SimCode: time 6.71e-07/0.3243, allocations: 0 / 1.04 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of Templates: time 0.008051/0.3324, allocations: 5.007 MB / 1.045 GB, free: 14.75 MB / 0.8262 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches