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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00644/0.00644, allocations: 101 kB / 15.73 MB, free: 6.445 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.001217/0.001217, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.629/2.629, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 65.73 kB / 0.9508 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3083, allocations: 140.4 MB / 1.088 GB, free: 1.516 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003152/0.3114, allocations: 1.506 MB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3129, allocations: 0.5435 MB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.483e-05/0.313, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.3131, allocations: 11.92 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.3133, allocations: 31.73 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3144, allocations: 315.2 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.315, allocations: 0.4917 MB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.17e-05/0.3151, allocations: 11.97 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005381/0.3156, allocations: 287.6 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.316, allocations: 139.6 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.718e-05/0.3161, allocations: 27.94 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.147e-05/0.3162, allocations: 28 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002674/0.3165, allocations: 115.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.3167, allocations: 183 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005104/0.3172, allocations: 426.4 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3173, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.953e-06/0.3173, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.3173, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 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.001474/0.3188, allocations: 0.8781 MB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3188, allocations: 12.03 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.319, allocations: 52.66 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.3194, allocations: 310.6 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/0.3195, allocations: 16.38 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-05/0.3196, allocations: 28.36 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3207, allocations: 222 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3207, allocations: 192 / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.3207, allocations: 7.938 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3207, allocations: 4 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008185/0.3216, allocations: 95.92 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/0.3221, allocations: 397.2 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.3233, allocations: 178.4 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/0.3241, allocations: 112.8 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.3241, allocations: 0 / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.3252, allocations: 227.1 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.744e-06/0.3252, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002832/0.328, allocations: 490.9 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.3281, allocations: 63.39 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/0.3286, allocations: 409.9 kB / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.3287, allocations: 41.69 kB / 1.095 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.3288, allocations: 93.45 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.3289, allocations: 39.72 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002851/0.3292, allocations: 133.4 kB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3293, allocations: 318.8 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.3296, allocations: 119.9 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.3299, allocations: 170.9 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/0.3304, allocations: 282.6 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.3304, allocations: 0 / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009346/0.3313, allocations: 484.7 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.3315, allocations: 92.88 kB / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.3315, allocations: 8.172 kB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.272e-05/0.3315, allocations: 4 kB / 1.097 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.3318, allocations: 27.86 kB / 1.097 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.3318, allocations: 7.938 kB / 1.097 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.3323, allocations: 55.84 kB / 1.097 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.697e-05/0.3324, allocations: 59.98 kB / 1.097 GB, free: 7.727 MB / 0.8575 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.0002744/0.3327, allocations: 201.7 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.3328, allocations: 39.7 kB / 1.097 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.266e-05/0.3329, allocations: 39.75 kB / 1.097 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.3329, allocations: 4 kB / 1.097 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3329, allocations: 0 / 1.097 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3329, allocations: 3.984 kB / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.3354, allocations: 0.7443 MB / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3354, allocations: 0 / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.387e-05/0.3355, allocations: 4 kB / 1.098 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.363e-06/0.3355, allocations: 8 kB / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.3355, allocations: 23.95 kB / 1.098 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3355, allocations: 0 / 1.098 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3355, allocations: 0 / 1.098 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.3374, allocations: 486.4 kB / 1.099 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/0.3377, allocations: 200.7 kB / 1.099 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.399e-05/0.3378, allocations: 12 kB / 1.099 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004918/0.3383, allocations: 35.89 kB / 1.099 GB, free: 5.836 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/0.3384, allocations: 15.98 kB / 1.099 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/0.3386, allocations: 51.98 kB / 1.099 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004426/0.339, allocations: 295.1 kB / 1.099 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.339, allocations: 0 / 1.099 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003833/0.3394, allocations: 67.98 kB / 1.099 GB, free: 5.418 MB / 0.8575 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.0002168/0.3396, allocations: 117.5 kB / 1.099 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.341, allocations: 438.5 kB / 1.1 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.3411, allocations: 4 kB / 1.1 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00081/0.3419, allocations: 124.2 kB / 1.1 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.3423, allocations: 34.91 kB / 1.1 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.3442, allocations: 0.5434 MB / 1.1 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.3447, allocations: 0.7708 MB / 1.101 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.734e-05/0.3448, allocations: 17.08 kB / 1.101 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.3448, allocations: 15.44 kB / 1.101 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.3448, allocations: 0 / 1.101 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of Templates: time 0.01141/0.3562, allocations: 5.021 MB / 1.106 GB, free: 14.16 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches