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.001008/0.001008, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.803/2.803, allocations: 462.7 MB / 0.7371 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 5.219 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3276, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001663/0.3293, allocations: 1.238 MB / 1.061 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.3306, allocations: 0.5846 MB / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.055e-05/0.3306, allocations: 0 / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.725e-05/0.3307, allocations: 7.922 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.3308, allocations: 31.84 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.3315, allocations: 279.5 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003901/0.3319, allocations: 451.3 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.063e-05/0.3319, allocations: 4 kB / 1.062 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003808/0.3323, allocations: 307 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.3326, allocations: 167.2 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.3327, allocations: 16 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.3327, allocations: 12 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.3329, allocations: 115.6 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.3331, allocations: 208.5 kB / 1.063 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.3334, allocations: 307.6 kB / 1.063 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3334, allocations: 0 / 1.063 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3334, allocations: 0 / 1.063 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.3334, allocations: 0 / 1.063 GB, free: 1.289 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.0009688/0.3344, allocations: 0.7589 MB / 1.064 GB, free: 452 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3344, allocations: 11.97 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.3345, allocations: 52.47 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.3348, allocations: 314.1 kB / 1.064 GB, free: 32 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.3349, allocations: 20.36 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.513e-05/0.335, allocations: 32.36 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009772/0.336, allocations: 220.9 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.336, allocations: 192 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.336, allocations: 7.922 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3361, allocations: 4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008007/0.3369, allocations: 111.9 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.3373, allocations: 385.3 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.3384, allocations: 202.4 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007668/0.3391, allocations: 120.8 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3392, allocations: 0 / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000946/0.3401, allocations: 237.5 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.3401, allocations: 0 / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002575/0.3427, allocations: 0.5125 MB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.3428, allocations: 59.41 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003806/0.3432, allocations: 413.8 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.3432, allocations: 41.7 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.3433, allocations: 93.44 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.3433, allocations: 47.47 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-05/0.3434, allocations: 33.7 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3435, allocations: 326.8 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002511/0.3438, allocations: 123.9 kB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.3441, allocations: 165.9 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.3445, allocations: 278.6 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3445, allocations: 0 / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007946/0.3453, allocations: 0.4888 MB / 1.068 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.939e-05/0.3454, allocations: 96.66 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3454, allocations: 4 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3454, allocations: 0 / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.3456, allocations: 23.92 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3456, allocations: 4 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.3461, allocations: 71.97 kB / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.3462, allocations: 59.98 kB / 1.068 GB, free: 11.7 MB / 0.8262 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.0002012/0.3464, allocations: 193.7 kB / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.3464, allocations: 39.47 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.3465, allocations: 43.73 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-06/0.3465, allocations: 8 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3465, allocations: 3.938 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3465, allocations: 0 / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.3487, allocations: 0.7618 MB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3487, allocations: 0 / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.29e-05/0.3487, allocations: 7.984 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.3487, allocations: 4 kB / 1.069 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.3488, allocations: 23.97 kB / 1.069 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3488, allocations: 0 / 1.069 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3488, allocations: 0 / 1.069 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.3505, allocations: 494.7 kB / 1.07 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.3508, allocations: 204.5 kB / 1.07 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.532e-05/0.3508, allocations: 12 kB / 1.07 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.3513, allocations: 39.97 kB / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.3513, allocations: 11.98 kB / 1.07 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.638e-05/0.3514, allocations: 55.97 kB / 1.07 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002641/0.3517, allocations: 295.1 kB / 1.07 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3517, allocations: 0 / 1.07 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003223/0.352, allocations: 64 kB / 1.07 GB, free: 9.375 MB / 0.8262 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.0001429/0.3522, allocations: 120.9 kB / 1.07 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001244/0.3534, allocations: 453.2 kB / 1.071 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3534, allocations: 4.125 kB / 1.071 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007998/0.3542, allocations: 127.9 kB / 1.071 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.3546, allocations: 29.48 kB / 1.071 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.3561, allocations: 0.7243 MB / 1.072 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.3565, allocations: 0.771 MB / 1.072 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.3565, allocations: 19.42 kB / 1.072 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3565, allocations: 0 / 1.072 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of Templates: time 0.005698/0.3622, allocations: 3.715 MB / 1.076 GB, free: 3.289 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 -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