/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 4 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1753.9+2443_daily_bin378
RA = 268.496, Dec = 24.7297
tmin = 337305601, tmax = 337564801
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='285348', job_status='RUN', time_executed='2021-09-18 21:20:30.307021', time_epoch_executed='1632025230.31' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285348/ft1_4FGL_J1753.9+2443_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285348/ft1_4FGL_J1753.9+2443_daily_bin378.fits outfile=/scratch/kocevski/285348/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin378.fits ra=268.496 dec=24.7297 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.61
user 7.31
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.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/285348/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin378.fits evtable="EVENTS" outfile="/scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.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/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/285348/ltcube_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.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/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits
.....................!
real 11.59
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/285348/ltcube_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits outfile=/scratch/kocevski/285348/expmap_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.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/285348/ltcube_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits
.....................!
real 190.25
user 185.07
sys 4.86

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 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J1753.9+2443 @ 268.496 24.7297

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits outfile=/scratch/kocevski/285348/cmap_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.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=268.496 yref=24.7297 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/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits outfile=/scratch/kocevski/285348/cmap_HighResolution_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.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=268.496 yref=24.7297 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285348/Model_4FGL_J1753.9+2443_daily_bin378.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/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits.....................!
real 76.64
user 75.32
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits', '/scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits', expMap='/scratch/kocevski/285348/expmap_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits', expCube='/scratch/kocevski/285348/ltcube_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/285348/Model_4FGL_J1753.9+2443_daily_bin378.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1753.9+2443'

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.200e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/285348/ft1_filtered_4FGL_J1753.9+2443_daily_bin378.fits
Spacecraft file(s): /scratch/kocevski/285348/ft2_4FGL_J1753.9+2443_daily_bin378.fits
Exposure map: /scratch/kocevski/285348/expmap_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits
Exposure cube: /scratch/kocevski/285348/ltcube_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/285348/Model_4FGL_J1753.9+2443_daily_bin378.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) = 8812.52839174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9606       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3050       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8965       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5037       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+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=   8812.499     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     2351 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.053        .18142E-02** at limit **
   2  norm          2.9596        3.5038        .18551E-03   -.18508E-04
   3  norm          .10000E-03    27.630        .18142E-02** at limit **
   4  Prefactor     .10000E-03    41.595        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.6748        .18142E-02** at limit **
   6  Prefactor     53.950        61.413        .27328E-03   -.93186E-05
   7  Prefactor     .25857        44.940        .14898        .91070E-04
   8  Prefactor     .10000E-03    48.584        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.4562        .14361E-02** at limit **
  10  norm          1.3066        1.6641        .13417E-03   -.21302E-03
  11  norm          .10000E-03    29.428        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.8744        .12538E-02** at limit **
  13  norm          6.8123        7.6317        .15375E-03   -.34162E-04
  14  Prefactor     .10000E-03    81.737        .18142E-02** at limit **
  15  Prefactor     7.6020        4.8746        .14546E-03   -.44393E-04
  16  Prefactor     .10000E-03    20.073        .18142E-02** at limit **
  17  norm          .10000E-03    14.711        .18142E-02** at limit **
  18  Prefactor     4.8933        12.786        .90886E-03   -.82858E-04
  19  Normalizat    1.5047        .29525        .38293E-03   -.11252E-03
  20  Prefactor     .89139        .98005E-01    .16477E-03   -.13112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.95957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.9499
  Prefactor  = 0.258572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30656
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.81226
  Prefactor  = 0.0001
  Prefactor  = 7.60204
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.8933
  Normalizat = 1.50471
  Prefactor  = 0.891386
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.499     FROM HESSE     STATUS=OK           281 CALLS     2632 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9596        3.5037        .74203E-05   -1.5364    
   3  norm          .10000E-03    27.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.950        61.412        .10931E-04   -1.4238    
   7  Prefactor     .25857        45.432        .14802       -1.5606    
   8  Prefactor     .10000E-03    48.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4562        .28723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3066        1.6641        .53668E-05   -1.5479    
  11  norm          .10000E-03    29.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8744        .25076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8123        7.6317        .61499E-05   -1.5186    
  14  Prefactor     .10000E-03    81.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6020        4.8744        .58184E-05   -1.5156    
  16  Prefactor     .10000E-03    20.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8933        12.782        .36355E-04   -1.5266    
  19  Normalizat    1.5047        .29547        .15317E-04   -.77646    
  20  Prefactor     .89139        .98076E-01    .32955E-04   -.96443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78944e-10
Minuit parameter uncertainties:
  1  9.63174e-05
  2  3.50398
  3  4.97411e-05
  4  6.8718e-05
  5  1.6316e-06
  6  61.4841
  7  6.85887
  8  9.87081e-05
  9  3.82124e-06
  10  1.66415
  11  4.73822e-06
  12  9.7745e-07
  13  7.63279
  14  0.000160485
  15  4.87464
  16  2.3751e-05
  17  7.9705e-06
  18  12.7892
  19  0.295814
  20  0.0980953
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  3.821e-06  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.200e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  8.914e-01  9.810e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.505e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 268.496 24.730
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285348/likelihoodResults_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.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) = 8812.50111018
delta logL = -0.00193165081328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8812.49917825
delta logL = 2.86701833829e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1814       1.0000          .0000       10.000    
     3 'Normalizat'    1.5047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8812.499     FROM MIGRAD    STATUS=FAILED        91 CALLS      245 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10556E-03    4.4910        .14567E-01** at limit **
   2  Index         1.7961        7.3024        .50000        .18967E-04
   3  Normalizat    1.5047        .80396E-02    .38291E-03   -.20011E-04
   4  Prefactor     .89139        .27705E-02    .16477E-03   -.42225E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8812.499     FROM SIMPLEX   STATUS=PROGRESS      97 CALLS      342 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    4.4910        .24845E-03** at limit **
   2  Index         1.7517        7.3024        .16492E-01    .18967E-04
   3  Normalizat    1.5046        .80396E-02    .34629E-04   -.20011E-04
   4  Prefactor     .89135        .27705E-02    .18941E-04   -.42225E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8812.499     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      384 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    149.66        .16065E-02** at limit **
   2  Index         1.6521        5.5387        .50000        .24210E-05
   3  Normalizat    1.5047        .48434E-01    .15316E-04    .35005E-03
   4  Prefactor     .89138        .16690E-01    .32955E-04   -.39769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 1.65213
  Normalizat = 1.50472
  Prefactor  = 0.891382
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.499     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      413 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    535.07        .32130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6521        5.8104        .50000       -.73364    
   3  Normalizat    1.5047        .12083        .30633E-05   -.77646    
   4  Prefactor     .89138        .41602E-01    .65910E-05   -.96443    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.74551e-09
Minuit parameter uncertainties:
  1  0.00756064
  2  1730.24
  3  0.120854
  4  0.0416035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285348': 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): 102
logL (Free Index) = 8812.49917407
delta logL = 4.46710691904e-06

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  7.561e-03  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.652e+00  1.730e+03  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  8.914e-01  4.160e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.505e+00  1.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 268.496 24.730

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/285348/cmap_HighResolution_337305601_337564801_4FGL_J1753.9+2443_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-18 21:35:00.512754', job_id='285348', GAL2='0.89', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632026100.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='378' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:35:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 285348: <4FGL_J1753.9+2443_daily_bin378> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin378> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 21:20:18 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:20:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 21:20:19 2021
Terminated at Sat Sep 18 21:35:01 2021
Results reported at Sat Sep 18 21:35:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin378 268.496 24.7297 337305601 337564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1753.9+2443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   865.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

