Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.0007665/0.0007666, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006292/0.006293, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.419/1.419, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9692/0.9692, allocations: 135.3 MB / 426.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 8.875 kB / 0.5076 GB, free: 4.801 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.178, allocations: 82.32 MB / 0.588 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001701/0.1797, allocations: 1.184 MB / 0.5891 GB, free: 1.453 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1808, allocations: 439.4 kB / 0.5895 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.184e-05/0.1809, allocations: 0 / 0.5895 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.13e-05/0.181, allocations: 3.938 kB / 0.5895 GB, free: 1.016 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.1811, allocations: 28.28 kB / 0.5896 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006402/0.1817, allocations: 226.6 kB / 0.5898 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.182, allocations: 291.9 kB / 0.5901 GB, free: 500 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.611e-05/0.1821, allocations: 4 kB / 0.5901 GB, free: 496 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.1824, allocations: 210.3 kB / 0.5903 GB, free: 288 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.1826, allocations: 115.6 kB / 0.5904 GB, free: 172 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.843e-05/0.1827, allocations: 12 kB / 0.5904 GB, free: 160 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.49e-05/0.1827, allocations: 12 kB / 0.5904 GB, free: 148 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1828, allocations: 79.77 kB / 0.5905 GB, free: 68 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.183, allocations: 145.1 kB / 0.5906 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.1833, allocations: 279.2 kB / 0.5909 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1833, allocations: 0 / 0.5909 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1833, allocations: 0 / 0.5909 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.1833, allocations: 0 / 0.5909 GB, free: 15.64 MB / 0.4981 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.001091/0.1844, allocations: 0.618 MB / 0.5915 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1845, allocations: 12.02 kB / 0.5915 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.602e-05/0.1846, allocations: 35.72 kB / 0.5915 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.1849, allocations: 246.4 kB / 0.5918 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.1849, allocations: 15.98 kB / 0.5918 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-05/0.185, allocations: 16 kB / 0.5918 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.1853, allocations: 145.5 kB / 0.5919 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1853, allocations: 3.938 kB / 0.5919 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.1854, allocations: 7.922 kB / 0.592 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1854, allocations: 8 kB / 0.592 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.1855, allocations: 47.97 kB / 0.592 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004158/0.1859, allocations: 317.2 kB / 0.5923 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.1862, allocations: 126.7 kB / 0.5924 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.1864, allocations: 65.14 kB / 0.5925 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1864, allocations: 0 / 0.5925 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004921/0.1869, allocations: 236 kB / 0.5927 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.1869, allocations: 0 / 0.5927 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005902/0.1875, allocations: 275.5 kB / 0.593 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.1876, allocations: 59.39 kB / 0.593 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.1879, allocations: 287 kB / 0.5933 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.1879, allocations: 41.7 kB / 0.5933 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.188, allocations: 89.05 kB / 0.5934 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.1881, allocations: 47.52 kB / 0.5935 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.827e-05/0.1881, allocations: 37.7 kB / 0.5935 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1883, allocations: 322.8 kB / 0.5938 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.1885, allocations: 96.17 kB / 0.5939 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.1888, allocations: 146.4 kB / 0.5941 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.1891, allocations: 243.1 kB / 0.5943 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1891, allocations: 0 / 0.5943 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006952/0.1898, allocations: 422 kB / 0.5947 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.6e-05/0.1899, allocations: 71.39 kB / 0.5948 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1899, allocations: 4 kB / 0.5948 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.1899, allocations: 16.11 kB / 0.5948 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.1901, allocations: 23.92 kB / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1901, allocations: 0 / 0.5948 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005413/0.1907, allocations: 71.8 kB / 0.5949 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.37e-05/0.1908, allocations: 55.98 kB / 0.5949 GB, free: 11.18 MB / 0.4981 GB 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.000198/0.191, allocations: 173.7 kB / 0.5951 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.191, allocations: 23.72 kB / 0.5951 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.363e-05/0.1911, allocations: 30.25 kB / 0.5951 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1911, allocations: 7.938 kB / 0.5951 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1911, allocations: 0 / 0.5951 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1911, allocations: 3.984 kB / 0.5951 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007951/0.1919, allocations: 0.5606 MB / 0.5957 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1919, allocations: 0 / 0.5957 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.192, allocations: 8 kB / 0.5957 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.192, allocations: 0 / 0.5957 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.192, allocations: 15.97 kB / 0.5957 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.192, allocations: 0 / 0.5957 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.192, allocations: 4 kB / 0.5957 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.1924, allocations: 329.3 kB / 0.596 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.1926, allocations: 164.5 kB / 0.5962 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.1927, allocations: 12 kB / 0.5962 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.1929, allocations: 15.98 kB / 0.5962 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.193, allocations: 15.97 kB / 0.5962 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.492e-05/0.193, allocations: 27.98 kB / 0.5963 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002048/0.1932, allocations: 209.9 kB / 0.5965 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1932, allocations: 0 / 0.5965 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003114/0.1935, allocations: 52 kB / 0.5965 GB, free: 9.457 MB / 0.4981 GB 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.0001703/0.1937, allocations: 122.5 kB / 0.5966 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005596/0.1943, allocations: 338.6 kB / 0.597 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1943, allocations: 0 / 0.597 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.1945, allocations: 73.78 kB / 0.597 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.1948, allocations: 24.81 kB / 0.597 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007389/0.1956, allocations: 474.9 kB / 0.5975 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1959, allocations: 0.7399 MB / 0.5982 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001421/0.1961, allocations: 37.42 kB / 0.5983 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1962, allocations: 35.42 kB / 0.5983 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1962, allocations: 0 / 0.5983 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of Templates: time 0.007991/0.2042, allocations: 4.002 MB / 0.6022 GB, free: 3.582 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)