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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001848/0.001848, allocations: 108 kB / 15.6 MB, free: 132 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.002356/0.002356, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.734/2.734, allocations: 472.6 MB / 0.7451 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 67.75 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3174, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002794/0.3202, allocations: 1.518 MB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3216, allocations: 0.5482 MB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.014e-05/0.3217, allocations: 0 / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.518e-05/0.3218, allocations: 3.938 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.3219, allocations: 35.78 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000886/0.3228, allocations: 306.8 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005804/0.3234, allocations: 0.5033 MB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.795e-05/0.3235, allocations: 7.984 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.3239, allocations: 279.6 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000291/0.3242, allocations: 131.6 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.3243, allocations: 24 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.3245, allocations: 28 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3246, allocations: 115.7 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.3248, allocations: 191 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.3252, allocations: 422.9 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3253, allocations: 0 / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3253, allocations: 0 / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.3253, allocations: 0 / 1.072 GB, free: 6.301 MB / 0.8262 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.001303/0.3266, allocations: 0.8665 MB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3266, allocations: 12.03 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.3268, allocations: 52.45 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.3272, allocations: 310.2 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.118e-05/0.3273, allocations: 16.38 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.258e-05/0.3273, allocations: 36.28 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3284, allocations: 214 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3284, allocations: 192 / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.3285, allocations: 7.938 kB / 1.074 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3285, allocations: 0 / 1.074 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.3293, allocations: 103.9 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.3299, allocations: 385.2 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.331, allocations: 178.5 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008133/0.3319, allocations: 116.7 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.3319, allocations: 4 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.333, allocations: 221.1 kB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.074e-06/0.333, allocations: 0 / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002778/0.3357, allocations: 480.9 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.3358, allocations: 71.31 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.3364, allocations: 413.9 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.239e-05/0.3365, allocations: 45.69 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.3366, allocations: 89.45 kB / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.3366, allocations: 39.45 kB / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/0.3369, allocations: 137.2 kB / 1.076 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.3371, allocations: 322.8 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.3374, allocations: 119.9 kB / 1.076 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.3377, allocations: 166.9 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.3382, allocations: 281.2 kB / 1.077 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3382, allocations: 4 kB / 1.077 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009348/0.3392, allocations: 490.5 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.3393, allocations: 96.72 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3393, allocations: 3.984 kB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3393, allocations: 4 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.3395, allocations: 24.11 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3395, allocations: 4 kB / 1.077 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005723/0.3401, allocations: 67.72 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-05/0.3402, allocations: 63.97 kB / 1.077 GB, free: 0.6094 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.0002674/0.3405, allocations: 193.7 kB / 1.078 GB, free: 424 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/0.3406, allocations: 43.47 kB / 1.078 GB, free: 380 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.775e-05/0.3407, allocations: 43.73 kB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3407, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3407, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3407, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.3432, allocations: 0.7532 MB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3432, allocations: 0 / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.3432, allocations: 4 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3432, allocations: 3.984 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/0.3433, allocations: 23.97 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3433, allocations: 0 / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3433, allocations: 4 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.3452, allocations: 480.2 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.3455, allocations: 196.5 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.558e-05/0.3456, allocations: 12 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.3461, allocations: 31.97 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.3461, allocations: 7.984 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.82e-05/0.3462, allocations: 63.97 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003068/0.3465, allocations: 291.1 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3465, allocations: 0 / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004106/0.347, allocations: 67.98 kB / 1.08 GB, free: 14.32 MB / 0.8419 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.000187/0.3472, allocations: 121.5 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001409/0.3486, allocations: 442.5 kB / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.3486, allocations: 0 / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008198/0.3494, allocations: 125.8 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.35, allocations: 41.78 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.3516, allocations: 0.5439 MB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.352, allocations: 0.7746 MB / 1.082 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.77e-05/0.3521, allocations: 17.08 kB / 1.082 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.3521, allocations: 15.44 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of SimCode: time 5.31e-07/0.3521, allocations: 0 / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.01048/0.3626, allocations: 5.039 MB / 1.086 GB, free: 7.047 MB / 0.8419 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