Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001823/0.001823, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002065/0.002065, allocations: 191.7 kB / 16.25 MB, free: 6.633 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.863/2.863, allocations: 469.8 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 71.23 kB / 0.908 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3016, allocations: 159.2 MB / 1.063 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003023/0.3046, allocations: 1.56 MB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3059, allocations: 0.5462 MB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.306, allocations: 0 / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.3061, allocations: 3.938 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.3063, allocations: 27.91 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.3071, allocations: 281.8 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000567/0.3077, allocations: 0.5072 MB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.3077, allocations: 8 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.3082, allocations: 339 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.3085, allocations: 167.2 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.683e-05/0.3085, allocations: 28 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.3086, allocations: 24 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.3088, allocations: 123.6 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.309, allocations: 194.8 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004992/0.3095, allocations: 430.9 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3095, allocations: 4 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3095, allocations: 0 / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.3096, allocations: 4 kB / 1.068 GB, free: 10.43 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.001348/0.3109, allocations: 0.8665 MB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.311, allocations: 15.91 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.3111, allocations: 56.41 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.3115, allocations: 310.3 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.3116, allocations: 16.36 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.028e-05/0.3116, allocations: 28.38 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.3127, allocations: 215.1 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3127, allocations: 192 / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.3128, allocations: 3.938 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3128, allocations: 4 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007996/0.3136, allocations: 107.8 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005058/0.3141, allocations: 385.2 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3152, allocations: 178.4 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007643/0.3159, allocations: 112.8 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.316, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.317, allocations: 223.1 kB / 1.07 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.317, allocations: 4 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002752/0.3198, allocations: 487 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.3198, allocations: 63.41 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004577/0.3203, allocations: 409.9 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.268e-05/0.3204, allocations: 45.69 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.028e-05/0.3205, allocations: 93.42 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.172e-05/0.3206, allocations: 43.45 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.3208, allocations: 129.3 kB / 1.071 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.321, allocations: 318.8 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.3213, allocations: 123.9 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.3216, allocations: 169.9 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.322, allocations: 275.3 kB / 1.072 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.322, allocations: 0 / 1.072 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009112/0.323, allocations: 492.6 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.555e-05/0.3231, allocations: 95.25 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3231, allocations: 4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3231, allocations: 4.188 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.3233, allocations: 23.97 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.3233, allocations: 11.92 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.3238, allocations: 59.73 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/0.3239, allocations: 59.98 kB / 1.073 GB, free: 4.758 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.0002638/0.3242, allocations: 201.8 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.3243, allocations: 39.47 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.139e-05/0.3244, allocations: 39.75 kB / 1.073 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3244, allocations: 4 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3244, allocations: 0 / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3244, allocations: 11.91 kB / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.3268, allocations: 0.7444 MB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3268, allocations: 0 / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.94e-05/0.3269, allocations: 4 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3269, allocations: 0 / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.3269, allocations: 27.91 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.327, allocations: 0 / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.327, allocations: 0 / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.3288, allocations: 480.5 kB / 1.074 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.3291, allocations: 196.5 kB / 1.074 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.556e-05/0.3292, allocations: 12 kB / 1.074 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006525/0.3299, allocations: 35.95 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.33, allocations: 7.984 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.349e-05/0.33, allocations: 59.92 kB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003274/0.3304, allocations: 295.1 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3304, allocations: 0 / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000441/0.3308, allocations: 67.98 kB / 1.075 GB, free: 2.465 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.000192/0.331, allocations: 128.8 kB / 1.075 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001403/0.3324, allocations: 444.7 kB / 1.075 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3325, allocations: 0 / 1.075 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008423/0.3333, allocations: 124.3 kB / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3337, allocations: 30.73 kB / 1.076 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.3354, allocations: 0.6657 MB / 1.076 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.3358, allocations: 0.7708 MB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.528e-05/0.3359, allocations: 17.08 kB / 1.077 GB, free: 220 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.3359, allocations: 11.44 kB / 1.077 GB, free: 208 kB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3359, allocations: 4 kB / 1.077 GB, free: 204 kB / 0.8262 GB Notification: Performance of Templates: time 0.01017/0.3461, allocations: 5.195 MB / 1.082 GB, free: 10.9 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches