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.0008496/0.0008494, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001185/0.001185, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 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.4 MB / 222.1 MB, free: 5.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3978/0.3978, allocations: 55.01 MB / 325.4 MB, free: 0.8359 MB / 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.000593/0.0005931, allocations: 16 kB / 396.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4238, allocations: 60.71 MB / 457.4 MB, free: 38.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Time.Examples.CalendarTime): time 0.001404/0.4252, allocations: 1.156 MB / 458.5 MB, free: 38.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007375/0.426, allocations: 392.6 kB / 458.9 MB, free: 38.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.776e-05/0.4261, allocations: 4.125 kB / 458.9 MB, free: 38.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.4261, allocations: 7.125 kB / 458.9 MB, free: 38.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.4262, allocations: 13.36 kB / 458.9 MB, free: 38.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005922/0.4268, allocations: 211.8 kB / 459.1 MB, free: 38.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.427, allocations: 223.6 kB / 459.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.495e-05/0.4271, allocations: 8.797 kB / 459.4 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002791/0.4274, allocations: 205.9 kB / 459.6 MB, free: 38.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.4276, allocations: 113.3 kB / 459.7 MB, free: 38.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.4276, allocations: 8.031 kB / 459.7 MB, free: 38.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.907e-05/0.4277, allocations: 9.969 kB / 459.7 MB, free: 38.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.681e-05/0.4277, allocations: 61.72 kB / 459.7 MB, free: 38.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.581e-05/0.4278, allocations: 58.95 kB / 459.8 MB, free: 38.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.428, allocations: 163.1 kB / 460 MB, free: 38.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.428, allocations: 0 / 460 MB, free: 38.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.428, allocations: 1.406 kB / 460 MB, free: 38.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.428, allocations: 0.5312 kB / 460 MB, free: 38.56 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.0008498/0.4289, allocations: 0.5648 MB / 460.5 MB, free: 38.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.4289, allocations: 9.406 kB / 460.5 MB, free: 38.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.429, allocations: 22.53 kB / 460.6 MB, free: 38.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.4293, allocations: 239.3 kB / 460.8 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.4293, allocations: 16.95 kB / 460.8 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.568e-05/0.4294, allocations: 15.59 kB / 460.8 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.4296, allocations: 147.3 kB / 461 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.4296, allocations: 0.7188 kB / 461 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.4297, allocations: 2.625 kB / 461 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4297, allocations: 1 kB / 461 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.4298, allocations: 46.09 kB / 461 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002524/0.4301, allocations: 289.6 kB / 461.3 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.4303, allocations: 131.8 kB / 461.4 MB, free: 37.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4304, allocations: 54.64 kB / 461.5 MB, free: 37.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.4304, allocations: 4.719 kB / 461.5 MB, free: 37.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003981/0.4309, allocations: 204.9 kB / 461.7 MB, free: 37.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.4309, allocations: 0 / 461.7 MB, free: 37.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0004963/0.4314, allocations: 258.9 kB / 461.9 MB, free: 37.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.4314, allocations: 63.33 kB / 462 MB, free: 37.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.4316, allocations: 230.7 kB / 462.2 MB, free: 37.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.4316, allocations: 37.8 kB / 462.3 MB, free: 37.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.561e-05/0.4317, allocations: 89.86 kB / 462.4 MB, free: 37.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.035e-05/0.4318, allocations: 43.95 kB / 462.4 MB, free: 37.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.4318, allocations: 10.12 kB / 462.4 MB, free: 37.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.493e-05/0.4319, allocations: 324.5 kB / 462.7 MB, free: 36.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.4321, allocations: 87.61 kB / 462.8 MB, free: 36.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.4323, allocations: 142.5 kB / 462.9 MB, free: 36.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.4326, allocations: 150.9 kB / 463.1 MB, free: 36.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.4326, allocations: 3.688 kB / 463.1 MB, free: 36.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006716/0.4333, allocations: 400.8 kB / 463.5 MB, free: 36.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.877e-05/0.4333, allocations: 74.92 kB / 463.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4333, allocations: 0 / 463.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.4334, allocations: 3.688 kB / 463.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.4335, allocations: 30.06 kB / 463.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.4336, allocations: 4.281 kB / 463.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.434, allocations: 81.39 kB / 463.7 MB, free: 36.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.477e-05/0.4341, allocations: 43.36 kB / 463.7 MB, free: 36.51 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 ($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.0001461/0.4342, allocations: 166 kB / 463.9 MB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.4343, allocations: 17 kB / 463.9 MB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.4343, allocations: 24.8 kB / 463.9 MB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4343, allocations: 6 kB / 463.9 MB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4344, allocations: 0 / 463.9 MB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4344, allocations: 0 / 463.9 MB, free: 36.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006852/0.4351, allocations: 0.5386 MB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4351, allocations: 3.422 kB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-05/0.4351, allocations: 5.688 kB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4351, allocations: 0 / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.4352, allocations: 16.69 kB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4352, allocations: 2.094 kB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4352, allocations: 7.234 kB / 464.5 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003411/0.4355, allocations: 311.5 kB / 464.8 MB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.4356, allocations: 143.6 kB / 464.9 MB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.713e-05/0.4357, allocations: 9.594 kB / 465 MB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.4359, allocations: 15.56 kB / 465 MB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.436, allocations: 18.03 kB / 465 MB, free: 35.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.436, allocations: 24.27 kB / 465 MB, free: 35.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001269/0.4361, allocations: 161.1 kB / 465.2 MB, free: 35.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4362, allocations: 0 / 465.2 MB, free: 35.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.4365, allocations: 45.06 kB / 465.2 MB, free: 35.73 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 (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.0001236/0.4366, allocations: 118.9 kB / 465.3 MB, free: 35.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004659/0.4371, allocations: 333.7 kB / 465.7 MB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4371, allocations: 2.969 kB / 465.7 MB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.4372, allocations: 67.06 kB / 465.7 MB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.4375, allocations: 21.81 kB / 465.7 MB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005087/0.438, allocations: 361.7 kB / 466.1 MB, free: 35.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.4382, allocations: 0.7275 MB / 466.8 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.4383, allocations: 32.97 kB / 466.9 MB, free: 34.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.918e-05/0.4384, allocations: 30.53 kB / 466.9 MB, free: 34.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4384, allocations: 0 / 466.9 MB, free: 34.57 MB / 382.1 MB Notification: Performance of Templates: time 0.006612/0.445, allocations: 3.56 MB / 470.4 MB, free: 34.3 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: