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.0015/0.0015, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.751/1.751, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4422/0.4422, allocations: 54.94 MB / 324.7 MB, free: 15.92 MB / 270.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.001905/0.001905, allocations: 71.89 kB / 395.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1493, allocations: 59.59 MB / 454.9 MB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Time.Examples.CalendarTime): time 0.2799/0.4292, allocations: 1.433 MB / 456.4 MB, free: 39.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009702/0.4302, allocations: 405.8 kB / 456.7 MB, free: 39.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.471e-05/0.4304, allocations: 1.531 kB / 456.8 MB, free: 39.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.892e-05/0.4304, allocations: 10.59 kB / 456.8 MB, free: 39.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.4306, allocations: 16.8 kB / 456.8 MB, free: 39.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.4313, allocations: 244.5 kB / 457 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.4316, allocations: 294 kB / 457.3 MB, free: 38.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.87e-05/0.4317, allocations: 12.34 kB / 457.3 MB, free: 38.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.432, allocations: 190.8 kB / 457.5 MB, free: 38.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.4321, allocations: 96.36 kB / 457.6 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-05/0.4322, allocations: 18.78 kB / 457.6 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.709e-05/0.4323, allocations: 17.62 kB / 457.6 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.709e-05/0.4324, allocations: 61.84 kB / 457.7 MB, free: 38.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.4325, allocations: 98.16 kB / 457.8 MB, free: 38.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.4328, allocations: 244.5 kB / 458 MB, free: 38.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4328, allocations: 0 / 458 MB, free: 38.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4328, allocations: 0 / 458 MB, free: 38.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.4328, allocations: 0 / 458 MB, free: 38.86 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.001073/0.4339, allocations: 0.6316 MB / 458.7 MB, free: 38.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.4339, allocations: 12.73 kB / 458.7 MB, free: 38.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.855e-05/0.434, allocations: 29.5 kB / 458.7 MB, free: 38.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.4343, allocations: 242.1 kB / 458.9 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.4343, allocations: 9.5 kB / 458.9 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.258e-05/0.4344, allocations: 22.08 kB / 459 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.4347, allocations: 136.3 kB / 459.1 MB, free: 38.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4347, allocations: 3.562 kB / 459.1 MB, free: 38.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.4347, allocations: 11.78 kB / 459.1 MB, free: 38.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4348, allocations: 1.75 kB / 459.1 MB, free: 38.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.4349, allocations: 43.44 kB / 459.2 MB, free: 38.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002674/0.4352, allocations: 290.4 kB / 459.4 MB, free: 37.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.4354, allocations: 126.6 kB / 459.6 MB, free: 37.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.4356, allocations: 55.31 kB / 459.6 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.4356, allocations: 5.375 kB / 459.6 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004377/0.436, allocations: 199.9 kB / 459.8 MB, free: 37.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.4361, allocations: 2.562 kB / 459.8 MB, free: 37.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005385/0.4366, allocations: 269 kB / 460.1 MB, free: 37.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.4366, allocations: 64.84 kB / 460.1 MB, free: 37.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.4368, allocations: 220.2 kB / 460.4 MB, free: 37.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.4369, allocations: 42.41 kB / 460.4 MB, free: 37.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.4369, allocations: 88.7 kB / 460.5 MB, free: 37.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.437, allocations: 45.47 kB / 460.5 MB, free: 37.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.4371, allocations: 96.73 kB / 460.6 MB, free: 37.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.4372, allocations: 323.7 kB / 460.9 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.4374, allocations: 90.47 kB / 461 MB, free: 37.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.4376, allocations: 144.3 kB / 461.2 MB, free: 37.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.4379, allocations: 238.9 kB / 461.4 MB, free: 36.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.4379, allocations: 2.969 kB / 461.4 MB, free: 36.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000581/0.4385, allocations: 402 kB / 461.8 MB, free: 36.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.026e-05/0.4385, allocations: 74.86 kB / 461.9 MB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.4386, allocations: 0 / 461.9 MB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.51e-05/0.4386, allocations: 6.938 kB / 461.9 MB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.4388, allocations: 31.42 kB / 461.9 MB, free: 36.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4388, allocations: 9.641 kB / 461.9 MB, free: 36.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/0.4393, allocations: 57.45 kB / 462 MB, free: 36.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.4394, allocations: 40.72 kB / 462 MB, free: 36.73 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.0001698/0.4396, allocations: 164.6 kB / 462.2 MB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.4396, allocations: 25.53 kB / 462.2 MB, free: 36.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.4397, allocations: 23.33 kB / 462.2 MB, free: 36.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4397, allocations: 6.719 kB / 462.2 MB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4397, allocations: 3.531 kB / 462.2 MB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4397, allocations: 0 / 462.2 MB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006814/0.4404, allocations: 0.5345 MB / 462.8 MB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4404, allocations: 3.938 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.4405, allocations: 9 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4405, allocations: 2.625 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.4405, allocations: 13.06 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.4405, allocations: 4.562 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4405, allocations: 2.906 kB / 462.8 MB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.4409, allocations: 308.7 kB / 463.1 MB, free: 36.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.441, allocations: 147 kB / 463.3 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.4411, allocations: 14.19 kB / 463.3 MB, free: 36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.4413, allocations: 7.781 kB / 463.3 MB, free: 36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.4413, allocations: 18.72 kB / 463.3 MB, free: 36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.4414, allocations: 24.47 kB / 463.3 MB, free: 36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.4415, allocations: 165.6 kB / 463.5 MB, free: 35.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4415, allocations: 0 / 463.5 MB, free: 35.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.4418, allocations: 47.19 kB / 463.5 MB, free: 35.89 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 0.000121/0.4419, allocations: 116.4 kB / 463.6 MB, free: 35.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004954/0.4424, allocations: 347.2 kB / 464 MB, free: 35.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4424, allocations: 6.812 kB / 464 MB, free: 35.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.4426, allocations: 71.83 kB / 464.1 MB, free: 35.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.4429, allocations: 27.09 kB / 464.1 MB, free: 35.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005673/0.4435, allocations: 321.5 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.4437, allocations: 0.7287 MB / 465.1 MB, free: 34.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.4438, allocations: 29.14 kB / 465.2 MB, free: 34.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.745e-05/0.4439, allocations: 29.59 kB / 465.2 MB, free: 34.65 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4439, allocations: 0 / 465.2 MB, free: 34.65 MB / 382.1 MB Notification: Performance of Templates: time 0.006758/0.4507, allocations: 3.738 MB / 468.9 MB, free: 34.39 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)