Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime") translateModel(Annex60.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.001189/0.001189, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001246/0.001246, allocations: 187.3 kB / 16.25 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.1 MB / 222.1 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4397/0.4397, allocations: 54.92 MB / 324.4 MB, free: 224 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 59.91 kB / 394.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1442, allocations: 59.6 MB / 454.4 MB, free: 476 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Time.Examples.CalendarTime): time 0.228/0.3722, allocations: 1.505 MB / 455.9 MB, free: 38.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008575/0.3731, allocations: 402.3 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.3732, allocations: 2.594 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.189e-05/0.3733, allocations: 1.781 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.3735, allocations: 17.02 kB / 456.3 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00067/0.3741, allocations: 218 kB / 456.5 MB, free: 38.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.3744, allocations: 303.9 kB / 456.8 MB, free: 38.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.25e-05/0.3745, allocations: 6.859 kB / 456.9 MB, free: 38.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.3748, allocations: 218.5 kB / 457.1 MB, free: 38.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.3749, allocations: 111.7 kB / 457.2 MB, free: 38.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.375, allocations: 17.88 kB / 457.2 MB, free: 38.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.52e-05/0.3751, allocations: 18.34 kB / 457.2 MB, free: 38.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.629e-05/0.3752, allocations: 61.3 kB / 457.3 MB, free: 38.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.3753, allocations: 105.9 kB / 457.4 MB, free: 38.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.3755, allocations: 240.6 kB / 457.6 MB, free: 38.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.8e-05/0.3755, allocations: 3.469 kB / 457.6 MB, free: 38.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3756, allocations: 1.344 kB / 457.6 MB, free: 38.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.3756, allocations: 0 / 457.6 MB, free: 38.67 MB / 382.1 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.0009398/0.3765, allocations: 0.6281 MB / 458.2 MB, free: 38.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3766, allocations: 9.062 kB / 458.2 MB, free: 38.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.3766, allocations: 29.62 kB / 458.3 MB, free: 38.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.3768, allocations: 243.6 kB / 458.5 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.3769, allocations: 8.625 kB / 458.5 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.3769, allocations: 22.61 kB / 458.5 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.3772, allocations: 144.6 kB / 458.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.3772, allocations: 1.656 kB / 458.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.3772, allocations: 3.938 kB / 458.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3772, allocations: 2.875 kB / 458.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.3774, allocations: 47.81 kB / 458.7 MB, free: 37.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002296/0.3776, allocations: 300.1 kB / 459 MB, free: 37.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.3778, allocations: 121.6 kB / 459.2 MB, free: 37.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.378, allocations: 59.95 kB / 459.2 MB, free: 37.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.378, allocations: 2.719 kB / 459.2 MB, free: 37.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.3784, allocations: 202.2 kB / 459.4 MB, free: 37.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.234e-06/0.3784, allocations: 0 / 459.4 MB, free: 37.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.000503/0.3789, allocations: 268.8 kB / 459.7 MB, free: 37.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.3789, allocations: 62.78 kB / 459.7 MB, free: 37.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.3791, allocations: 223.6 kB / 460 MB, free: 37.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.3791, allocations: 35.17 kB / 460 MB, free: 37.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.3792, allocations: 87.89 kB / 460.1 MB, free: 37.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.3792, allocations: 51.64 kB / 460.1 MB, free: 37.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.3794, allocations: 98.27 kB / 460.2 MB, free: 37.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.219e-05/0.3795, allocations: 322.2 kB / 460.5 MB, free: 36.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.3797, allocations: 90.31 kB / 460.6 MB, free: 36.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.3799, allocations: 141.3 kB / 460.8 MB, free: 36.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.3801, allocations: 245.3 kB / 461 MB, free: 36.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3801, allocations: 1.719 kB / 461 MB, free: 36.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005585/0.3807, allocations: 396.7 kB / 461.4 MB, free: 36.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.3808, allocations: 80.52 kB / 461.5 MB, free: 36.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.3808, allocations: 4.438 kB / 461.5 MB, free: 36.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3808, allocations: 3.625 kB / 461.5 MB, free: 36.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.381, allocations: 27.97 kB / 461.5 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.381, allocations: 2.469 kB / 461.5 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.3814, allocations: 65.53 kB / 461.6 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.558e-05/0.3815, allocations: 42.33 kB / 461.6 MB, free: 36.55 MB / 382.1 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 (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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.3816, allocations: 159.3 kB / 461.8 MB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.3817, allocations: 22.84 kB / 461.8 MB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.3817, allocations: 27.16 kB / 461.8 MB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3817, allocations: 6.781 kB / 461.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3818, allocations: 0 / 461.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3818, allocations: 3.188 kB / 461.8 MB, free: 36.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000598/0.3824, allocations: 0.532 MB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3824, allocations: 3.938 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-05/0.3824, allocations: 10.52 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3824, allocations: 5.453 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.3825, allocations: 10.03 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3825, allocations: 4.688 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3825, allocations: 2.453 kB / 462.4 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.3828, allocations: 314.8 kB / 462.7 MB, free: 35.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.838e-05/0.3829, allocations: 147.4 kB / 462.8 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.383, allocations: 12.48 kB / 462.9 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.3832, allocations: 9.719 kB / 462.9 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.3832, allocations: 18.58 kB / 462.9 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.3833, allocations: 21.78 kB / 462.9 MB, free: 35.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.153e-05/0.3834, allocations: 165 kB / 463.1 MB, free: 35.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3834, allocations: 0 / 463.1 MB, free: 35.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.3837, allocations: 47.25 kB / 463.1 MB, free: 35.77 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.682e-05/0.3838, allocations: 114.1 kB / 463.2 MB, free: 35.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004426/0.3842, allocations: 351.2 kB / 463.6 MB, free: 35.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3842, allocations: 0 / 463.6 MB, free: 35.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.3844, allocations: 72.27 kB / 463.6 MB, free: 35.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.3847, allocations: 24.22 kB / 463.7 MB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.3852, allocations: 385.6 kB / 464 MB, free: 35.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001385/0.3854, allocations: 0.7204 MB / 464.8 MB, free: 34.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.3855, allocations: 38.23 kB / 464.8 MB, free: 34.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3856, allocations: 32.53 kB / 464.8 MB, free: 34.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3856, allocations: 0 / 464.8 MB, free: 34.54 MB / 382.1 MB Notification: Performance of Templates: time 0.00555/0.3911, allocations: 3.776 MB / 468.6 MB, free: 34.29 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.sim & ./Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe 2>&1)