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.001028/0.001028, allocations: 98.88 kB / 16.02 MB, free: 76 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.001289/0.001289, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.684/2.684, allocations: 443.2 MB / 0.7181 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003474, allocations: 12.66 kB / 0.8801 GB, free: 42.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2782, allocations: 155.2 MB / 1.032 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001521/0.2798, allocations: 1.203 MB / 1.033 GB, free: 3.594 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008867/0.2807, allocations: 451.8 kB / 1.033 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.863e-05/0.2808, allocations: 0 / 1.033 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.55e-05/0.2808, allocations: 3.938 kB / 1.033 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.744e-05/0.2809, allocations: 24.22 kB / 1.033 GB, free: 3.121 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005743/0.2815, allocations: 226.8 kB / 1.033 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.2818, allocations: 299.9 kB / 1.034 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.685e-05/0.2819, allocations: 7.984 kB / 1.034 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/0.2822, allocations: 210.3 kB / 1.034 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.2824, allocations: 135.5 kB / 1.034 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.2825, allocations: 8 kB / 1.034 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.812e-05/0.2825, allocations: 12 kB / 1.034 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.2826, allocations: 75.72 kB / 1.034 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.2828, allocations: 153 kB / 1.034 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.283, allocations: 211.8 kB / 1.035 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.283, allocations: 0 / 1.035 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.283, allocations: 0 / 1.035 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.283, allocations: 0 / 1.035 GB, free: 1.809 MB / 0.7794 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.0008694/0.2839, allocations: 0.6565 MB / 1.035 GB, free: 1.066 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2839, allocations: 12.03 kB / 1.035 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.502e-05/0.284, allocations: 31.62 kB / 1.035 GB, free: 1.023 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.2843, allocations: 262.3 kB / 1.035 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.2843, allocations: 11.98 kB / 1.035 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.564e-05/0.2844, allocations: 20 kB / 1.035 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009436/0.2854, allocations: 217.4 kB / 1.036 GB, free: 488 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.2854, allocations: 0 / 1.036 GB, free: 488 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.2854, allocations: 7.984 kB / 1.036 GB, free: 480 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2854, allocations: 0 / 1.036 GB, free: 480 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007681/0.2862, allocations: 107.9 kB / 1.036 GB, free: 372 kB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003357/0.2866, allocations: 321.2 kB / 1.036 GB, free: 0 / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.2876, allocations: 186.5 kB / 1.036 GB, free: 15.8 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007502/0.2884, allocations: 120.7 kB / 1.036 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.2884, allocations: 4 kB / 1.036 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00092/0.2893, allocations: 227 kB / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.2894, allocations: 0 / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002527/0.2919, allocations: 477 kB / 1.037 GB, free: 14.97 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.2919, allocations: 67.3 kB / 1.037 GB, free: 14.9 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.2922, allocations: 294.8 kB / 1.037 GB, free: 14.61 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.2923, allocations: 37.7 kB / 1.037 GB, free: 14.56 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.593e-05/0.2923, allocations: 93.12 kB / 1.038 GB, free: 14.46 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.2924, allocations: 39.61 kB / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.2925, allocations: 33.7 kB / 1.038 GB, free: 14.39 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2926, allocations: 318.8 kB / 1.038 GB, free: 14.07 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.2928, allocations: 91.89 kB / 1.038 GB, free: 13.98 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.293, allocations: 139.4 kB / 1.038 GB, free: 13.82 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.2933, allocations: 231 kB / 1.038 GB, free: 13.56 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.2933, allocations: 4 kB / 1.038 GB, free: 13.56 MB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00063/0.294, allocations: 396.6 kB / 1.039 GB, free: 13.15 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.871e-05/0.294, allocations: 77.11 kB / 1.039 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.294, allocations: 3.938 kB / 1.039 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.2941, allocations: 4 kB / 1.039 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.2942, allocations: 19.92 kB / 1.039 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.2943, allocations: 7.984 kB / 1.039 GB, free: 13.03 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/0.2947, allocations: 67.94 kB / 1.039 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.2948, allocations: 43.98 kB / 1.039 GB, free: 12.92 MB / 0.795 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.000184/0.295, allocations: 181.7 kB / 1.039 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.295, allocations: 27.62 kB / 1.039 GB, free: 12.71 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.066e-05/0.2951, allocations: 30.3 kB / 1.039 GB, free: 12.68 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2951, allocations: 4 kB / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2951, allocations: 0 / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2951, allocations: 3.938 kB / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.2972, allocations: 0.7068 MB / 1.04 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.2972, allocations: 4 kB / 1.04 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.004e-05/0.2972, allocations: 0 / 1.04 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.2972, allocations: 7.938 kB / 1.04 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.2973, allocations: 19.97 kB / 1.04 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2973, allocations: 0 / 1.04 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2973, allocations: 0 / 1.04 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.299, allocations: 472 kB / 1.04 GB, free: 11.4 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2992, allocations: 160.7 kB / 1.041 GB, free: 11.22 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.445e-05/0.2992, allocations: 15.94 kB / 1.041 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004634/0.2997, allocations: 39.95 kB / 1.041 GB, free: 11.17 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.2998, allocations: 15.86 kB / 1.041 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.239e-05/0.2998, allocations: 43.98 kB / 1.041 GB, free: 11.11 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001852/0.3, allocations: 209.9 kB / 1.041 GB, free: 10.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3, allocations: 0 / 1.041 GB, free: 10.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003151/0.3003, allocations: 44 kB / 1.041 GB, free: 10.86 MB / 0.795 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.0001405/0.3005, allocations: 121 kB / 1.041 GB, free: 10.73 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001167/0.3016, allocations: 382.8 kB / 1.041 GB, free: 10.34 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3017, allocations: 8.062 kB / 1.041 GB, free: 10.33 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007698/0.3024, allocations: 125.2 kB / 1.041 GB, free: 10.21 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.3028, allocations: 24.58 kB / 1.042 GB, free: 10.18 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3042, allocations: 0.5474 MB / 1.042 GB, free: 9.602 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3045, allocations: 0.7475 MB / 1.043 GB, free: 8.828 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.776e-05/0.3045, allocations: 15.44 kB / 1.043 GB, free: 8.812 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.3045, allocations: 0 / 1.043 GB, free: 8.812 MB / 0.795 GB Notification: Performance of Templates: time 0.004585/0.3091, allocations: 2.849 MB / 1.046 GB, free: 5.973 MB / 0.795 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