Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001152/0.001152, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001541/0.001541, allocations: 198.1 kB / 16.14 MB, free: 6.688 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.43/1.43, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7931/0.7931, allocations: 132.2 MB / 422.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 0.5011 GB, free: 9.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1844, allocations: 80.2 MB / 0.5794 GB, free: 9.254 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002977/0.1874, allocations: 1.527 MB / 0.5809 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1886, allocations: 458.7 kB / 0.5813 GB, free: 7.266 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.215e-05/0.1887, allocations: 0 / 0.5813 GB, free: 7.266 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.827e-05/0.1888, allocations: 3.938 kB / 0.5813 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.549e-05/0.1889, allocations: 24.22 kB / 0.5814 GB, free: 7.238 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005973/0.1895, allocations: 222.3 kB / 0.5816 GB, free: 7.023 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.1899, allocations: 283.9 kB / 0.5819 GB, free: 6.746 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.19, allocations: 15.98 kB / 0.5819 GB, free: 6.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003281/0.1903, allocations: 214.3 kB / 0.5821 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1905, allocations: 123.6 kB / 0.5822 GB, free: 6.402 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.827e-05/0.1906, allocations: 15.94 kB / 0.5822 GB, free: 6.387 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.1907, allocations: 8 kB / 0.5822 GB, free: 6.379 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.1908, allocations: 71.78 kB / 0.5823 GB, free: 6.309 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.191, allocations: 123.3 kB / 0.5824 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.1913, allocations: 275.3 kB / 0.5827 GB, free: 5.918 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1913, allocations: 0 / 0.5827 GB, free: 5.918 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1913, allocations: 0 / 0.5827 GB, free: 5.918 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1913, allocations: 4 kB / 0.5827 GB, free: 5.914 MB / 494.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.001334/0.1926, allocations: 0.6997 MB / 0.5833 GB, free: 5.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1927, allocations: 12.02 kB / 0.5834 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1928, allocations: 31.72 kB / 0.5834 GB, free: 5.098 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.1931, allocations: 258.3 kB / 0.5836 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.1932, allocations: 11.98 kB / 0.5836 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.1932, allocations: 16 kB / 0.5837 GB, free: 4.777 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.1937, allocations: 157.5 kB / 0.5838 GB, free: 4.617 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1937, allocations: 3.938 kB / 0.5838 GB, free: 4.613 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.1938, allocations: 7.984 kB / 0.5838 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1938, allocations: 3.984 kB / 0.5838 GB, free: 4.602 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.1939, allocations: 46.72 kB / 0.5839 GB, free: 4.559 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004211/0.1944, allocations: 309.3 kB / 0.5842 GB, free: 4.207 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.1947, allocations: 130.7 kB / 0.5843 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1948, allocations: 57.2 kB / 0.5843 GB, free: 4.012 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.1948, allocations: 8 kB / 0.5844 GB, free: 4.004 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006038/0.1955, allocations: 222.9 kB / 0.5846 GB, free: 3.777 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.1955, allocations: 0 / 0.5846 GB, free: 3.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007518/0.1962, allocations: 273.1 kB / 0.5848 GB, free: 3.504 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.1963, allocations: 67.28 kB / 0.5849 GB, free: 3.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.1965, allocations: 287 kB / 0.5852 GB, free: 3.145 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.1966, allocations: 33.7 kB / 0.5852 GB, free: 3.105 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1968, allocations: 93.14 kB / 0.5853 GB, free: 3.012 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.1968, allocations: 43.44 kB / 0.5853 GB, free: 2.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.197, allocations: 109.7 kB / 0.5854 GB, free: 2.852 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000389/0.1974, allocations: 322.8 kB / 0.5857 GB, free: 2.527 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.1976, allocations: 96.17 kB / 0.5858 GB, free: 2.434 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003583/0.198, allocations: 155.3 kB / 0.586 GB, free: 2.262 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004812/0.1985, allocations: 243.6 kB / 0.5862 GB, free: 1.992 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1985, allocations: 0 / 0.5862 GB, free: 1.992 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000716/0.1992, allocations: 426.3 kB / 0.5866 GB, free: 1.559 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.665e-05/0.1993, allocations: 71.39 kB / 0.5867 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1993, allocations: 0 / 0.5867 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1993, allocations: 7.938 kB / 0.5867 GB, free: 1.469 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.1995, allocations: 27.91 kB / 0.5867 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.1995, allocations: 4 kB / 0.5867 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.2001, allocations: 63.92 kB / 0.5868 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.349e-05/0.2002, allocations: 51.98 kB / 0.5868 GB, free: 1.324 MB / 494.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.000186/0.2004, allocations: 173.7 kB / 0.587 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.2004, allocations: 23.72 kB / 0.587 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.611e-05/0.2005, allocations: 30.25 kB / 0.5871 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2005, allocations: 7.938 kB / 0.5871 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2005, allocations: 4 kB / 0.5871 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2005, allocations: 0 / 0.5871 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008689/0.2014, allocations: 0.5655 MB / 0.5876 GB, free: 468 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2014, allocations: 0 / 0.5876 GB, free: 468 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.598e-05/0.2014, allocations: 11.98 kB / 0.5876 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2014, allocations: 0 / 0.5876 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.2015, allocations: 11.98 kB / 0.5876 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2015, allocations: 0 / 0.5876 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2015, allocations: 3.938 kB / 0.5876 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006022/0.2021, allocations: 329.2 kB / 0.588 GB, free: 96 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.2023, allocations: 156.6 kB / 0.5881 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.785e-05/0.2024, allocations: 15.97 kB / 0.5881 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.2026, allocations: 15.98 kB / 0.5881 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.2027, allocations: 11.98 kB / 0.5881 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-05/0.2027, allocations: 27.98 kB / 0.5882 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001821/0.2029, allocations: 209.9 kB / 0.5884 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2029, allocations: 0 / 0.5884 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000346/0.2033, allocations: 51.98 kB / 0.5884 GB, free: 15.59 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.0001373/0.2034, allocations: 116.9 kB / 0.5885 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005443/0.204, allocations: 338.6 kB / 0.5889 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.204, allocations: 0 / 0.5889 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.2042, allocations: 75.89 kB / 0.5889 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.2045, allocations: 27.34 kB / 0.589 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007628/0.2053, allocations: 467.8 kB / 0.5894 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006291/0.2059, allocations: 0.7399 MB / 0.5901 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001458/0.2061, allocations: 45.36 kB / 0.5902 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.2064, allocations: 35.42 kB / 0.5902 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of SimCode: time 1.793e-06/0.2064, allocations: 0 / 0.5902 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of Templates: time 0.008115/0.2145, allocations: 4.024 MB / 0.5941 GB, free: 9.703 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)