/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 178 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1724.2+4005_daily_bin1229
RA = 261.051, Dec = 40.0891
tmin = 557884801, tmax = 558144001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='666569', job_status='RUN', time_executed='2021-09-17 08:28:30.431158', time_epoch_executed='1631892510.43' WHERE source_name='4FGL J1724.2+4005' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666569

Creating custom pfile directory:
/scratch/kocevski/666569/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=557884801.0 && nMetStart<558144001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=557884801.0 && nMetStart<558144001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666569/ft1_4FGL_J1724.2+4005_daily_bin1229.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=557884801.0 && nMetStart<558144001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666569/ft1_4FGL_J1724.2+4005_daily_bin1229.fits outfile=/scratch/kocevski/666569/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1229.fits ra=261.051 dec=40.0891 rad=12.0 tmin=557884801.0 tmax=558144001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.02
user 3.78
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/666569/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/666569/ltcube_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/666569/ltcube_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits outfile=/scratch/kocevski/666569/expmap_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/666569/ltcube_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits
.....................!
real 191.69
user 186.14
sys 5.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 216 point sources and 0 extended sources

Setting source of interest to:
4FGL J1724.2+4005 @ 261.051 40.0891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits outfile=/scratch/kocevski/666569/cmap_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=261.051 yref=40.0891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits outfile=/scratch/kocevski/666569/cmap_HighResolution_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=261.051 yref=40.0891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666569/Model_4FGL_J1724.2+4005_daily_bin1229.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits......................!
real 33.97
user 32.70
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits', '/scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits', expMap='/scratch/kocevski/666569/expmap_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits', expCube='/scratch/kocevski/666569/ltcube_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666569/Model_4FGL_J1724.2+4005_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.2+4005'

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  4.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/666569/ft1_filtered_4FGL_J1724.2+4005_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/666569/ft2_4FGL_J1724.2+4005_daily_bin1229.fits
Exposure map: /scratch/kocevski/666569/expmap_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits
Exposure cube: /scratch/kocevski/666569/ltcube_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666569/Model_4FGL_J1724.2+4005_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2753.33837194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2753.33610196

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6529       1.0000         .10000E-03   10000.    
     3 'norm      '    .10921E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23760       1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2043       1.0000         .10000E-03   10000.    
    15 'norm      '    .80470       1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
    19 'norm      '    21.535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    57.813       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11438E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.291       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    183.11       1.0000         .10000E-03   10000.    
    29 'norm      '    68.187       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.380       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .70736       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2753.336     FROM MIGRAD    STATUS=CONVERGED   1523 CALLS     5727 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2680        .15601E-02** at limit **
   2  norm          5.6531        1.2610        .20277E-04   -.15328E-02
   3  norm          .10000E-03    33.973        .18142E-02** at limit **
   4  Prefactor     69.222        115.16        .48231E-04   -.39223E-04
   5  Prefactor     .10000E-03    21.254        .18142E-02** at limit **
   6  norm          .10000E-03    116.46        .18142E-02** at limit **
   7  Prefactor     .10000E-03    5.4164        .11793E-02** at limit **
   8  Prefactor     6.3264        7.5732        .13040E-03   -.66596E-03
   9  Prefactor     .10000E-03    49.986        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.8980        .11340E-02** at limit **
  11  norm          .24020        13.491        .22534E-02   -.11739E-03
  12  norm          .10000E-03    4.7278        .11141E-02** at limit **
  13  Prefactor     .10000E-03    74.842        .18142E-02** at limit **
  14  norm          2.2089        2.8002        .95442E-04   -.48718E-04
  15  norm          .26441        74.539        .84955E-01    .86566E-04
  16  norm          .10000E-03    4.8449        .11267E-02** at limit **
  17  Prefactor     .10000E-03    56.628        .18142E-02** at limit **
  18  Prefactor     16.606        320.97        .98812E-04   -.34516E-06
  19  norm          21.610        24.838        .86313E-04    .66384E-04
  20  Prefactor     92.198        261.59        .21034E-03   -.18917E-04
  21  Prefactor     .10000E-03    56.402        .18142E-02** at limit **
  22  norm          57.814        76.147        .52762E-04    .18530E-05
  23  Prefactor     .10000E-03    158.08        .18142E-02** at limit **
  24  Prefactor     .10000E-03    168.39        .18142E-02** at limit **
  25  Prefactor     33.281        37.993        .69449E-04   -.15142E-04
  26  Prefactor     .10000E-03    32.757        .18142E-02** at limit **
  27  norm          .10000E-03    1.1917        .55744E-03** at limit **
  28  norm          183.08        187.62        .14917E-03   -.52204E-05
  29  norm          68.153        53.454        .48608E-04    .34124E-04
  30  Prefactor     13.375        13.945        .10950E-03   -.17650E-05
  31  Normalizat    .70737        .59603        .46164E-03   -.11402E-04
  32  Prefactor     .88203        .32351        .22934E-03   -.11218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.65308
  norm       = 0.0001
  Prefactor  = 69.2223
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.32638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.240196
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20889
  norm       = 0.264414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6056
  norm       = 21.6098
  Prefactor  = 92.1977
  Prefactor  = 0.0001
  norm       = 57.8144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2808
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 183.079
  norm       = 68.1529
  Prefactor  = 13.3748
  Normalizat = 0.707373
  Prefactor  = 0.882028
 **********
 **   18 **HESSE 
 **********

 FCN=   2753.336     FROM HESSE     STATUS=OK           637 CALLS     6364 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2680        .31201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6531        1.2609        .40553E-05   -1.5232    
   3  norm          .10000E-03    33.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.222        115.18        .96461E-05   -1.4042    
   5  Prefactor     .10000E-03    21.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    116.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4165        .23587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3264        7.5290        .52159E-05   -1.5205    
   9  Prefactor     .10000E-03    49.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8980        .22680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24020        13.375        .90135E-04   -1.5610    
  12  norm          .10000E-03    4.7278        .22282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    74.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2089        2.7983        .38177E-05   -1.5411    
  15  norm          .26441        59.483        .96415E-01   -1.5605    
  16  norm          .10000E-03    4.8450        .22533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.606        320.30        .39525E-05   -1.4893    
  19  norm          21.610        24.753        .34525E-05   -1.4778    
  20  Prefactor     92.198        260.81        .84136E-05   -1.3785    
  21  Prefactor     .10000E-03    56.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          57.814        76.146        .10552E-04   -1.4186    
  23  Prefactor     .10000E-03    158.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    168.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.281        38.001        .27780E-05   -1.4554    
  26  Prefactor     .10000E-03    32.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.1918        .11149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          183.08        187.61        .59670E-05   -1.2994    
  29  norm          68.153        53.446        .97216E-05   -1.4055    
  30  Prefactor     13.375        13.943        .43801E-05   -1.4976    
  31  Normalizat    .70737        .59661        .18466E-04   -1.0360    
  32  Prefactor     .88203        .32381        .45869E-04   -.96772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89495e-10
Minuit parameter uncertainties:
  1  1.04418e-05
  2  1.26092
  3  4.22668e-05
  4  115.553
  5  1.53003e-06
  6  0.000302411
  7  0.000124248
  8  7.53011
  9  3.09816e-05
  10  3.98621e-06
  11  3.58491
  12  7.98282e-07
  13  2.21467e-05
  14  2.79851
  15  7.93824
  16  3.52186e-06
  17  2.97918e-05
  18  146.774
  19  24.7652
  20  264.157
  21  3.84928e-05
  22  76.2749
  23  0.000153944
  24  0.000241535
  25  38.0289
  26  2.28051e-05
  27  2.0046e-06
  28  188.224
  29  53.4836
  30  13.9464
  31  0.602214
  32  0.32452
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2753.33596647

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  2.644e-01  7.938e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.820e-01  3.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  7.074e-01  6.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 261.051 40.089
Photon Flux Upper Limit: 3.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666569/likelihoodResults_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2753.33589157
delta logL = 7.48966531319e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2753.33367968
delta logL = 0.00228678742951

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6328       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7500       1.0000          .0000       5.0000    
     3 'Normalizat'    .70523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88112       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2753.334     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      370 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6737        8240.9        .82719E-02    .90225E-04
   2  alpha         2.7557        3.1867        .41415        .16501E-04
   3  Normalizat    .70186        .16552        .10448       -.21608E-04
   4  Prefactor     .88291        .88529E-01    .44764E-01   -.64487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67372
  alpha      = 2.75567
  Normalizat = 0.701855
  Prefactor  = 0.882914
 **********
 **   18 **HESSE 
 **********

 FCN=   2753.334     FROM HESSE     STATUS=OK            31 CALLS      401 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6737        143.01        .33088E-03   -1.5449    
   2  alpha         2.7557        3.6027        .89849E-01    .10245    
   3  Normalizat    .70186        .56463        .46330E-03   -1.0382    
   4  Prefactor     .88291        .31206        .22919E-03   -.96741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40794e-10
Minuit parameter uncertainties:
  1  31.0181
  2  5.84313
  3  0.569396
  4  0.312697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666569': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2753.33366072
delta logL = 0.0023057523299

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.674e+00  3.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.756e+00  5.843e+00  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.829e-01  3.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  7.019e-01  5.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 261.051 40.089

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/666569/cmap_HighResolution_557884801_558144001_4FGL_J1724.2+4005_daily_bin1229.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/666569

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-05', job_status='DONE', photon_flux_upper_limit='3.03e-07', time_completed='2021-09-17 08:40:13.073440', job_id='666569', GAL2='0.88', fit_tolerance='1e-08', EG2='0.70', EG='0.71', time_epoch_completed='1631893213.07', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.31e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1229' AND source_name='4FGL J1724.2+4005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 08:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 666569: <4FGL_J1724.2+4005_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1724.2+4005_daily_bin1229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 08:25:22 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 08:25:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 08:25:24 2021
Terminated at Fri Sep 17 08:40:13 2021
Results reported at Fri Sep 17 08:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.2+4005_daily_bin1229 261.051 40.0891 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.2+4005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

The output (if any) is above this job summary.

