/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 7 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 = 7533
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1724.2+4005_daily_bin1216
RA = 261.051, Dec = 40.0891
tmin = 554515201, tmax = 554774401
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='666550', job_status='RUN', time_executed='2021-09-17 08:25:36.729573', time_epoch_executed='1631892336.73' WHERE source_name='4FGL J1724.2+4005' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666550/ft1_4FGL_J1724.2+4005_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666550/ft1_4FGL_J1724.2+4005_daily_bin1216.fits outfile=/scratch/kocevski/666550/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1216.fits ra=261.051 dec=40.0891 rad=12.0 tmin=554515201.0 tmax=554774401.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.19
user 3.96
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.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/666550/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/666550/ltcube_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.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/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/666550/ltcube_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits outfile=/scratch/kocevski/666550/expmap_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.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/666550/ltcube_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits
.....................!
real 190.15
user 185.28
sys 4.55

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/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits outfile=/scratch/kocevski/666550/cmap_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.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/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits outfile=/scratch/kocevski/666550/cmap_HighResolution_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666550/Model_4FGL_J1724.2+4005_daily_bin1216.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/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits.......................!
real 17.83
user 16.56
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits', '/scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits', expMap='/scratch/kocevski/666550/expmap_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits', expCube='/scratch/kocevski/666550/ltcube_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666550/Model_4FGL_J1724.2+4005_daily_bin1216.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/666550/ft1_filtered_4FGL_J1724.2+4005_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/666550/ft2_4FGL_J1724.2+4005_daily_bin1216.fits
Exposure map: /scratch/kocevski/666550/expmap_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits
Exposure cube: /scratch/kocevski/666550/ltcube_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666550/Model_4FGL_J1724.2+4005_daily_bin1216.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 582.32080201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 577.659344242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .25589       1.0000         .10000E-03   10000.    
     3 'norm      '    .18654E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    178.59       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28760       1.0000         .10000E-03   10000.    
     6 'norm      '    349.14       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0950       1.0000         .10000E-03   10000.    
    14 'norm      '    .27806E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .50063E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .11789E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5424       1.0000         .10000E-03   10000.    
    19 'norm      '    .58882E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    471.29       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8266       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5480       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .64706E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9544       1.0000         .10000E-03   10000.    
    27 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .13202       1.0000         .10000E-03   10000.    
    29 'norm      '    8.3827       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10350       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   577.5973     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      702 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.826       -.10255E-05** at limit **
   2  norm          .26099        .51194        .32002E-06   -.40719E-03
   3  norm          .10023E-03    219.96       -.87897E-04** at limit **
   4  Prefactor     181.24        35.643        .14727E-04    .27914E-01
   5  Prefactor     .10000E-03    111.30        .18688E-05** at limit **
   6  norm          317.42        335.38       -.18253E-04   -.11518E-01
   7  Prefactor     .10000E-03    2.8575       -.42832E-06** at limit **
   8  Prefactor     .10000E-03    5.1054       -.14596E-06** at limit **
   9  Prefactor     2.4410        1.0227         .0000         .0000    
  10  Prefactor     .18587E-03    155.70        .11585E-03** at limit **
  11  norm          .10000E-03    4.5913       -.57118E-07** at limit **
  12  norm          1.0706        1.2141         .0000         .0000    
  13  Prefactor     361.08        816.69        .22670E-03    .20505E-03
  14  norm          .10000E-03    32.561        .11500E-04** at limit **
  15  norm          .10000E-03    62.171        .41280E-06** at limit **
  16  norm          .10135E-03    1789.3        .68999E-05** at limit **
  17  Prefactor     1.8498        1.0422         .0000         .0000    
  18  Prefactor     .10003E-03    404.28        .40569E-04** at limit **
  19  norm          .10000E-03    35.893       -.44445E-06** at limit **
  20  Prefactor     .10060E-03    486.50        .55730E-05** at limit **
  21  Prefactor     506.77        150.10        .88991E-05   -.33339E-01
  22  norm          3.6247        1.0098         .0000         .0000    
  23  Prefactor     7.8266        1.0021         .0000         .0000    
  24  Prefactor     2.5480        1.0207         .0000         .0000    
  25  Prefactor     .10000E-03    49.870        .48601E-05** at limit **
  26  Prefactor     .32356E-03    6604.4        .25940E-03** at limit **
  27  norm          .10000E-03    3.8490        .68197E-06** at limit **
  28  norm          .10003E-03    368.74       -.57916E-04** at limit **
  29  norm          8.3827        1.0018         .0000         .0000    
  30  Prefactor     .10000E-03    132.07        .12547E-04** at limit **
  31  Normalizat    .10000E-01    1.0139       -.63925E-05** at limit **
  32  Prefactor     1.2882        .27036       -.11896E-04    .33128E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.260994
  norm       = 0.000100231
  Prefactor  = 181.241
  Prefactor  = 0.0001
  norm       = 317.422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44102
  Prefactor  = 0.000185872
  norm       = 0.0001
  norm       = 1.07056
  Prefactor  = 361.078
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 0.000101348
  Prefactor  = 1.84976
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 0.000100596
  Prefactor  = 506.766
  norm       = 3.62474
  Prefactor  = 7.82657
  Prefactor  = 2.54799
  Prefactor  = 0.0001
  Prefactor  = 0.000323559
  norm       = 0.0001
  norm       = 0.000100025
  norm       = 8.38269
  Prefactor  = 0.000100005
  Normalizat = 0.01
  Prefactor  = 1.2882
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   577.5973     FROM HESSE     STATUS=FAILED        41 CALLS      743 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .26099        .51095        .51920E-02   -1.5606    
   3  norm          .10023E-03    207.78        .91160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     181.24        100.44        .75508E-03   -1.3007    
   5  Prefactor     .10000E-03    111.38        .10371E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          317.42        343.32        .54477E-03   -1.2126    
   7  Prefactor     .10000E-03    2.8609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     562.15        559.60         .0000       -1.5395    
  10  Prefactor     .18587E-03    .21170E-01    .11585E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571       -.57118E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0706        1.2141         .0000       -1.5501    
  13  Prefactor     361.08        8.3077        .22670E-03   -1.1884    
  14  norm          .10000E-03    .28680        .11500E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .21485        .41280E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10135E-03    .26652        .68999E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8498        1.0422         .0000       -1.5436    
  18  Prefactor     .10003E-03    .18409        .40569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .21684       -.44445E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10060E-03    .31555        .55730E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     506.77        1.0350        .88991E-05   -1.1167    
  22  norm          3.6247        1.0098         .0000       -1.5327    
  23  Prefactor     7.8266        1.0021         .0000       -1.5148    
  24  Prefactor     2.5480        1.0207         .0000       -1.5389    
  25  Prefactor     .10000E-03    .21816        .48601E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .32356E-03    .13764        .25940E-03   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .20571        .68197E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10003E-03    .23342       -.57916E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.3827        1.0018         .0000       -1.5129    
  30  Prefactor     .10000E-03    .22695        .12547E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25764       -.63925E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.2882        1.0753       -.11896E-04   -.83658    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.22871e-10
Minuit parameter uncertainties:
  1  4.10455e-06
  2  0.510963
  3  0.0139025
  4  100.534
  5  0.000396598
  6  345.55
  7  7.88674e-07
  8  3.23496e-07
  9  1.02269
  10  0.00269662
  11  1.93104e-07
  12  1.21409
  13  8.3077
  14  6.48864e-05
  15  7.09895e-06
  16  0.00119865
  17  1.04221
  18  0.0001486
  19  1.12869e-06
  20  0.000867615
  21  1.03502
  22  1.00984
  23  1.00205
  24  1.02068
  25  7.01151e-06
  26  0.0110941
  27  2.91961e-07
  28  0.00015337
  29  1.00179
  30  6.5452e-05
  31  1.55834e-06
  32  1.09467
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 577.597345575

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.000e-04  7.099e-06  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:  1.288e+00  1.095e+00  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:  1.000e-02  1.558e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 261.051 40.089
Photon Flux Upper Limit: 1.31e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666550/likelihoodResults_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.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): 0
logL (Free Index) = 577.597422002
delta logL = -7.64263680821e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 577.597349457
delta logL = -3.88140495033e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10780E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5552       1.0000          .0000       5.0000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2882       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=   577.5973     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      278 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6363.1        .12674E-01** at limit **
   2  alpha         2.0229        2.5176        .18860        .91100E-08
   3  Normalizat    .10000E-01    .10857        .11817E-01** at limit **
   4  Prefactor     1.2882        .83885E-01    .18347E-03   -.27252E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.02288
  Normalizat = 0.01
  Prefactor  = 1.2882
 **********
 **   18 **HESSE 
 **********

 FCN=   577.5973     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    65.117        .18887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0229        3.8290        .75438E-02   -.19202    
   3  Normalizat    .10000E-01    1.0257        .23635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2882        .26151        .36694E-04   -.83659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68816e-10
Minuit parameter uncertainties:
  1  0.000465112
  2  1212.54
  3  4.17469e-05
  4  0.261773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666550': 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) = 577.597345543
delta logL = 3.23979065797e-08

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.000e-04  4.651e-04  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.023e+00  1.213e+03  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:  1.288e+00  2.618e-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:  1.000e-02  4.175e-05  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/666550/cmap_HighResolution_554515201_554774401_4FGL_J1724.2+4005_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-04', job_status='DONE', photon_flux_upper_limit='1.31e-06', time_completed='2021-09-17 08:31:27.240132', job_id='666550', GAL2='1.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631892687.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.29', dlogl='3.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1216' AND source_name='4FGL J1724.2+4005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 08:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 666550: <4FGL_J1724.2+4005_daily_bin1216> in cluster <slac> Done

Job <4FGL_J1724.2+4005_daily_bin1216> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 08:25:20 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 08:25:21 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:21 2021
Terminated at Fri Sep 17 08:31:27 2021
Results reported at Fri Sep 17 08:31:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.2+4005_daily_bin1216 261.051 40.0891 554515201 554774401 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 :                                   347.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             548.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   366 sec.
    Turnaround time :                            367 sec.

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

