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.007147/0.007147, allocations: 104 kB / 15.74 MB, free: 6.066 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.001652/0.001652, allocations: 192.6 kB / 16.67 MB, free: 5.977 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.652/2.652, allocations: 469.8 MB / 0.7425 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 71.83 kB / 1.065 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9529/0.9544, allocations: 159.1 MB / 1.221 GB, free: 2.332 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003255/0.9576, allocations: 1.508 MB / 1.222 GB, free: 0.8125 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.9591, allocations: 0.5462 MB / 1.223 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.73e-05/0.9592, allocations: 0 / 1.223 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.9594, allocations: 15.86 kB / 1.223 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.9595, allocations: 27.84 kB / 1.223 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.9609, allocations: 314.5 kB / 1.223 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0009327/0.9618, allocations: 487.4 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.54e-05/0.9619, allocations: 7.984 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005814/0.9625, allocations: 267.6 kB / 1.224 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004516/0.9629, allocations: 147.4 kB / 1.224 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.9631, allocations: 28 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.825e-05/0.9632, allocations: 28 kB / 1.224 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.9633, allocations: 115.7 kB / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.9636, allocations: 187 kB / 1.224 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.9642, allocations: 427.3 kB / 1.225 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.9642, allocations: 0 / 1.225 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9642, allocations: 0 / 1.225 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.9642, allocations: 0 / 1.225 GB, free: 14.26 MB / 0.9512 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.001501/0.9657, allocations: 0.8781 MB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.9657, allocations: 16.03 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.9659, allocations: 48.7 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.9663, allocations: 318.6 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.406e-05/0.9664, allocations: 16.38 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.576e-05/0.9664, allocations: 24.36 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.9675, allocations: 216.9 kB / 1.226 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.9675, allocations: 192 / 1.226 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.9675, allocations: 15.94 kB / 1.226 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.9675, allocations: 0 / 1.226 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008051/0.9683, allocations: 95.92 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004769/0.9688, allocations: 393.2 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.9699, allocations: 166.5 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007904/0.9707, allocations: 100.8 kB / 1.227 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.9707, allocations: 0 / 1.227 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.9717, allocations: 235 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.9717, allocations: 3.938 kB / 1.227 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.002685/0.9744, allocations: 487.3 kB / 1.227 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.9745, allocations: 55.41 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.9749, allocations: 413.9 kB / 1.228 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.358e-05/0.975, allocations: 41.69 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.975, allocations: 101.4 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.664e-05/0.9751, allocations: 39.69 kB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.9753, allocations: 125.5 kB / 1.228 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.9754, allocations: 322.8 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/0.9757, allocations: 127.8 kB / 1.229 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.976, allocations: 174.4 kB / 1.229 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003766/0.9764, allocations: 271.3 kB / 1.229 GB, free: 9.344 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.9764, allocations: 4 kB / 1.229 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007995/0.9772, allocations: 488.6 kB / 1.229 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-05/0.9773, allocations: 95.31 kB / 1.23 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.9773, allocations: 7.969 kB / 1.23 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.9773, allocations: 4 kB / 1.23 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.9775, allocations: 23.86 kB / 1.23 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.9775, allocations: 4 kB / 1.23 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004945/0.978, allocations: 64.03 kB / 1.23 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.49e-05/0.9781, allocations: 59.98 kB / 1.23 GB, free: 8.578 MB / 0.9512 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.0002381/0.9783, allocations: 201.3 kB / 1.23 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.9784, allocations: 43.7 kB / 1.23 GB, free: 8.336 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.263e-05/0.9784, allocations: 39.75 kB / 1.23 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.9784, allocations: 0 / 1.23 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.9785, allocations: 0 / 1.23 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.9785, allocations: 7.984 kB / 1.23 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.9807, allocations: 0.7443 MB / 1.231 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.9807, allocations: 4 kB / 1.231 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.449e-05/0.9807, allocations: 8 kB / 1.231 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.9807, allocations: 0 / 1.231 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.9808, allocations: 19.97 kB / 1.231 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.9808, allocations: 0 / 1.231 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.9808, allocations: 0 / 1.231 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.9825, allocations: 481.8 kB / 1.231 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.9828, allocations: 204.7 kB / 1.231 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.353e-05/0.9828, allocations: 8 kB / 1.231 GB, free: 6.746 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004854/0.9833, allocations: 35.89 kB / 1.231 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.9834, allocations: 11.98 kB / 1.231 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/0.9834, allocations: 55.92 kB / 1.232 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002789/0.9837, allocations: 299.1 kB / 1.232 GB, free: 6.348 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.9837, allocations: 0 / 1.232 GB, free: 6.348 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003458/0.9841, allocations: 75.92 kB / 1.232 GB, free: 6.273 MB / 0.9512 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.0001515/0.9842, allocations: 116.9 kB / 1.232 GB, free: 6.148 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001242/0.9854, allocations: 414.7 kB / 1.232 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.9854, allocations: 0 / 1.232 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007602/0.9862, allocations: 111.9 kB / 1.233 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.9866, allocations: 31.52 kB / 1.233 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.9881, allocations: 0.5538 MB / 1.233 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.9884, allocations: 0.7708 MB / 1.234 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.812e-05/0.9884, allocations: 13.08 kB / 1.234 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.9885, allocations: 15.44 kB / 1.234 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of SimCode: time 7.31e-07/0.9885, allocations: 0 / 1.234 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of Templates: time 0.008676/0.9972, allocations: 5.014 MB / 1.239 GB, free: 15.06 MB / 0.9669 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=480 -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