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.001263/0.001263, allocations: 111.6 kB / 15.99 MB, free: 6.359 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.001222/0.001222, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.449/1.449, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.75/2.75, allocations: 469.8 MB / 0.7427 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 68.45 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.328, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003089/0.3311, allocations: 1.573 MB / 1.066 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.3325, allocations: 0.5384 MB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.744e-05/0.3326, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.776e-05/0.3327, allocations: 7.938 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.3328, allocations: 23.91 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008696/0.3337, allocations: 286.2 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006713/0.3344, allocations: 0.5111 MB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.624e-05/0.3345, allocations: 4 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005552/0.335, allocations: 335 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.3354, allocations: 171.2 kB / 1.067 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.248e-05/0.3355, allocations: 28 kB / 1.068 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.528e-05/0.3356, allocations: 24 kB / 1.068 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.3357, allocations: 123.6 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.336, allocations: 194.8 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.3364, allocations: 315.7 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3364, allocations: 4 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of FrontEnd: time 5.38e-06/0.3364, allocations: 3.938 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.519e-05/0.3364, allocations: 7.875 kB / 1.068 GB, free: 11 MB / 0.8419 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.001477/0.3379, allocations: 0.8704 MB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3379, allocations: 8.031 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.3381, allocations: 52.47 kB / 1.069 GB, free: 9.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.3385, allocations: 310.2 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.3386, allocations: 16.36 kB / 1.069 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/0.3386, allocations: 32.36 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.3397, allocations: 212.6 kB / 1.07 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.3398, allocations: 192 / 1.07 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.3398, allocations: 7.922 kB / 1.07 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3398, allocations: 4 kB / 1.07 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008167/0.3406, allocations: 99.86 kB / 1.07 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.3411, allocations: 385.2 kB / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.3423, allocations: 186.4 kB / 1.07 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007844/0.3431, allocations: 108.8 kB / 1.07 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.3431, allocations: 4 kB / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.3441, allocations: 223 kB / 1.071 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.054e-06/0.3441, allocations: 0 / 1.071 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002692/0.3468, allocations: 486.1 kB / 1.071 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.3469, allocations: 63.39 kB / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004727/0.3474, allocations: 417.9 kB / 1.071 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/0.3475, allocations: 37.7 kB / 1.072 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.887e-05/0.3475, allocations: 93.44 kB / 1.072 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.3476, allocations: 43.39 kB / 1.072 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.3478, allocations: 125.3 kB / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.348, allocations: 322.8 kB / 1.072 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.3483, allocations: 123.9 kB / 1.072 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/0.3486, allocations: 178.5 kB / 1.072 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/0.349, allocations: 275.2 kB / 1.073 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.349, allocations: 0 / 1.073 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009043/0.3499, allocations: 498.3 kB / 1.073 GB, free: 5.582 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.3501, allocations: 91.31 kB / 1.073 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3501, allocations: 4 kB / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3501, allocations: 0 / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.3503, allocations: 19.98 kB / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.3503, allocations: 12.12 kB / 1.073 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005246/0.3508, allocations: 59.78 kB / 1.073 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.905e-05/0.3509, allocations: 67.97 kB / 1.073 GB, free: 5.32 MB / 0.8419 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.0002522/0.3512, allocations: 189.8 kB / 1.074 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.3513, allocations: 43.41 kB / 1.074 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.3514, allocations: 55.61 kB / 1.074 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3514, allocations: 4 kB / 1.074 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3514, allocations: 0 / 1.074 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3514, allocations: 0 / 1.074 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.3537, allocations: 0.7391 MB / 1.074 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3537, allocations: 4 kB / 1.074 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.3538, allocations: 11.92 kB / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3538, allocations: 0 / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.3538, allocations: 19.98 kB / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.3538, allocations: 0 / 1.074 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3539, allocations: 3.984 kB / 1.074 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.3557, allocations: 474.7 kB / 1.075 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.356, allocations: 196.5 kB / 1.075 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.417e-05/0.3561, allocations: 15.98 kB / 1.075 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005347/0.3566, allocations: 31.97 kB / 1.075 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.3567, allocations: 11.98 kB / 1.075 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.074e-05/0.3568, allocations: 55.97 kB / 1.075 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003317/0.3571, allocations: 295.1 kB / 1.075 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3571, allocations: 0 / 1.075 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003923/0.3575, allocations: 60 kB / 1.075 GB, free: 3.043 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.000186/0.3577, allocations: 132.8 kB / 1.076 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.3591, allocations: 450.8 kB / 1.076 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3591, allocations: 0 / 1.076 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008051/0.3599, allocations: 119.9 kB / 1.076 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.3603, allocations: 29.38 kB / 1.076 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.362, allocations: 0.7055 MB / 1.077 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004339/0.3624, allocations: 0.7708 MB / 1.078 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.3625, allocations: 19.38 kB / 1.078 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.3625, allocations: 0 / 1.078 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of Templates: time 0.4755/0.838, allocations: 3.72 MB / 1.081 GB, free: 21.49 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches