Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Time.Examples.CalendarTime.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00281/0.00281, allocations: 189.4 kB / 15.77 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.759/0.759, allocations: 82.93 MB / 99.42 MB, free: 3.332 MB / 74.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.396/2.396, allocations: 205.4 MB / 325.4 MB, free: 4.27 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 90.8 kB / 393.6 MB, free: 68 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004757/0.0004759, allocations: 12 kB / 471.5 MB, free: 66.73 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.08923, allocations: 67.46 MB / 0.5263 GB, free: 15.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Time.Examples.CalendarTime): time 0.001954/0.09122, allocations: 1.163 MB / 0.5275 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009731/0.09223, allocations: 392.8 kB / 0.5279 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.09229, allocations: 0 / 0.5279 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.708e-05/0.09234, allocations: 7.922 kB / 0.5279 GB, free: 13.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.09246, allocations: 15.98 kB / 0.5279 GB, free: 13.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.09325, allocations: 216.9 kB / 0.5281 GB, free: 13.45 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.09351, allocations: 147.8 kB / 0.5282 GB, free: 13.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.112e-05/0.09358, allocations: 7.984 kB / 0.5282 GB, free: 13.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003053/0.09389, allocations: 167.6 kB / 0.5284 GB, free: 13.13 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.09415, allocations: 123.7 kB / 0.5285 GB, free: 13.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.399e-05/0.09423, allocations: 11.94 kB / 0.5285 GB, free: 13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.925e-05/0.09431, allocations: 12 kB / 0.5285 GB, free: 12.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.09444, allocations: 75.78 kB / 0.5286 GB, free: 12.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.766e-05/0.09456, allocations: 69.58 kB / 0.5287 GB, free: 12.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.09486, allocations: 207.8 kB / 0.5289 GB, free: 12.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.557e-06/0.09488, allocations: 0 / 0.5289 GB, free: 12.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.83e-06/0.09489, allocations: 0 / 0.5289 GB, free: 12.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.236e-06/0.09491, allocations: 0 / 0.5289 GB, free: 12.64 MB / 378.7 MB 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.00121/0.09612, allocations: 0.618 MB / 0.5295 GB, free: 11.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.09618, allocations: 8.031 kB / 0.5295 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.0963, allocations: 35.72 kB / 0.5295 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.0967, allocations: 250.5 kB / 0.5298 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.09676, allocations: 12 kB / 0.5298 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.09684, allocations: 15.94 kB / 0.5298 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.09725, allocations: 157.5 kB / 0.5299 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.656e-06/0.09727, allocations: 0 / 0.5299 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.09731, allocations: 0 / 0.5299 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.523e-06/0.09733, allocations: 4 kB / 0.5299 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.09753, allocations: 43.97 kB / 0.53 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.098, allocations: 313.4 kB / 0.5303 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.09841, allocations: 122.7 kB / 0.5304 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.09845, allocations: 4 kB / 0.5304 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006205/0.09909, allocations: 224 kB / 0.5306 GB, free: 10.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 3.087e-06/0.09911, allocations: 0 / 0.5306 GB, free: 10.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007993/0.09991, allocations: 276.3 kB / 0.5309 GB, free: 10.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.09999, allocations: 59.41 kB / 0.5309 GB, free: 10.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003959/0.1004, allocations: 290.8 kB / 0.5312 GB, free: 10.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.992e-05/0.1005, allocations: 37.7 kB / 0.5312 GB, free: 9.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.308e-05/0.1006, allocations: 97.12 kB / 0.5313 GB, free: 9.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.736e-05/0.1007, allocations: 39.52 kB / 0.5314 GB, free: 9.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.1007, allocations: 8 kB / 0.5314 GB, free: 9.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1009, allocations: 322.8 kB / 0.5317 GB, free: 9.516 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.1012, allocations: 96.17 kB / 0.5318 GB, free: 9.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.1016, allocations: 146.4 kB / 0.5319 GB, free: 9.254 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.102, allocations: 152.9 kB / 0.5321 GB, free: 9.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.102, allocations: 0 / 0.5321 GB, free: 9.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001034/0.103, allocations: 419 kB / 0.5325 GB, free: 8.668 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-05/0.1031, allocations: 79.36 kB / 0.5325 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.529e-06/0.1032, allocations: 0 / 0.5325 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.1032, allocations: 7.953 kB / 0.5326 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.1034, allocations: 31.91 kB / 0.5326 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.1035, allocations: 7.938 kB / 0.5326 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/0.1041, allocations: 71.8 kB / 0.5327 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.1042, allocations: 51.98 kB / 0.5327 GB, free: 8.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002821/0.1045, allocations: 177.7 kB / 0.5329 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.1046, allocations: 23.72 kB / 0.5329 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.04e-05/0.1047, allocations: 34.23 kB / 0.5329 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.594e-06/0.1047, allocations: 0 / 0.5329 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.471e-06/0.1047, allocations: 3.953 kB / 0.5329 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.312e-06/0.1047, allocations: 4 kB / 0.5329 GB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.1059, allocations: 0.5606 MB / 0.5335 GB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.725e-06/0.1059, allocations: 0 / 0.5335 GB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.611e-05/0.106, allocations: 7.984 kB / 0.5335 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.106, allocations: 7.953 kB / 0.5335 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.106, allocations: 15.92 kB / 0.5335 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.885e-06/0.106, allocations: 0 / 0.5335 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.839e-06/0.1061, allocations: 0 / 0.5335 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006254/0.1067, allocations: 328.8 kB / 0.5338 GB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.1069, allocations: 148.7 kB / 0.534 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.107, allocations: 15.94 kB / 0.534 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002817/0.1073, allocations: 15.98 kB / 0.534 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.46e-05/0.1074, allocations: 11.98 kB / 0.534 GB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.1075, allocations: 35.97 kB / 0.5341 GB, free: 6.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000276/0.1078, allocations: 205.9 kB / 0.5342 GB, free: 6.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.17e-07/0.1078, allocations: 4 kB / 0.5343 GB, free: 6.727 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004604/0.1083, allocations: 47.98 kB / 0.5343 GB, free: 6.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001787/0.1085, allocations: 125.2 kB / 0.5344 GB, free: 6.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007634/0.1092, allocations: 341.5 kB / 0.5347 GB, free: 6.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.568e-06/0.1093, allocations: 0 / 0.5347 GB, free: 6.195 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.1095, allocations: 71.91 kB / 0.5348 GB, free: 6.125 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.1098, allocations: 17.25 kB / 0.5348 GB, free: 6.105 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000935/0.1107, allocations: 438.9 kB / 0.5352 GB, free: 5.648 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.1112, allocations: 0.7516 MB / 0.536 GB, free: 4.871 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002247/0.1115, allocations: 41.36 kB / 0.536 GB, free: 4.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.1116, allocations: 35.42 kB / 0.5361 GB, free: 4.797 MB / 378.7 MB Notification: Performance of SimCode: time 1.762e-06/0.1117, allocations: 0 / 0.5361 GB, free: 4.797 MB / 378.7 MB Notification: Performance of Templates: time 0.01061/0.1223, allocations: 3.94 MB / 0.5399 GB, free: 0.8789 MB / 378.7 MB