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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin1023
RA = 268.496, Dec = 24.7297
tmin = 504489601, tmax = 504748801
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='289529', job_status='RUN', time_executed='2021-09-18 21:35:39.373073', time_epoch_executed='1632026139.37' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289529

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289529/ft1_4FGL_J1753.9+2443_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289529/ft1_4FGL_J1753.9+2443_daily_bin1023.fits outfile=/scratch/kocevski/289529/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin1023.fits ra=268.496 dec=24.7297 rad=12.0 tmin=504489601.0 tmax=504748801.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.42
user 4.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.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/289529/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/289529/ltcube_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.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/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits
.....................!
real 11.96
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/289529/ltcube_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits outfile=/scratch/kocevski/289529/expmap_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.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/289529/ltcube_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits
.....................!
real 189.81
user 184.92
sys 4.29

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/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits scfile=/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits outfile=/scratch/kocevski/289529/cmap_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits scfile=/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits outfile=/scratch/kocevski/289529/cmap_HighResolution_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits', '/scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits', expMap='/scratch/kocevski/289529/expmap_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits', expCube='/scratch/kocevski/289529/ltcube_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289529/Model_4FGL_J1753.9+2443_daily_bin1023.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/289529/ft1_filtered_4FGL_J1753.9+2443_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/289529/ft2_4FGL_J1753.9+2443_daily_bin1023.fits
Exposure map: /scratch/kocevski/289529/expmap_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits
Exposure cube: /scratch/kocevski/289529/ltcube_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289529/Model_4FGL_J1753.9+2443_daily_bin1023.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) = 9494.71227045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.558       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20601E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9392       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .58649E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.715       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6505       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71459       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.

 FCN=   9494.597     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2048 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.542        25.535        .76492E-08    .10681E-04
   2  norm          .10000E-03    .62855        .18601E-07** at limit **
   3  norm          .10000E-03    25.025        .22396E-06** at limit **
   4  Prefactor     .10001E-03    53.026        .48946E-05** at limit **
   5  Prefactor     13.873        12.553       -.12677E-05   -.96710E-04
   6  Prefactor     .10000E-03    34.385       -.28082E-05** at limit **
   7  Prefactor     5.6132        50.867       -.10187E-04   -.12577E-03
   8  Prefactor     .10000E-03    126.72       -.99699E-05** at limit **
   9  Prefactor     .10000E-03    2.4691       -.13519E-06** at limit **
  10  norm          .10000E-03    .91713       -.19605E-06** at limit **
  11  norm          .10000E-03    34.959        .35908E-06** at limit **
  12  Prefactor     .10000E-03    1.3642        .15445E-07** at limit **
  13  norm          1.9384        6.8826       -.25586E-05   -.11112E-03
  14  Prefactor     11.832        40.341       -.38119E-06    .62326E-05
  15  Prefactor     6.0488        5.4000       -.22285E-06    .41011E-04
  16  Prefactor     .10000E-03    8.5928        .33022E-06** at limit **
  17  norm          .10002E-03    82.591        .25781E-04** at limit **
  18  Prefactor     17.717        10.252       -.12142E-06   -.40075E-04
  19  Normalizat    1.6504        .23335        .84664E-06   -.19899E-03
  20  Prefactor     .71462        .75928E-01    .26062E-06    .10149E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5424
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 13.8726
  Prefactor  = 0.000100001
  Prefactor  = 5.61317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93845
  Prefactor  = 11.8321
  Prefactor  = 6.0488
  Prefactor  = 0.0001
  norm       = 0.000100023
  Prefactor  = 17.7167
  Normalizat = 1.65036
  Prefactor  = 0.714621
 **********
 **   18 **HESSE 
 **********

 FCN=   9494.597     FROM HESSE     STATUS=OK           289 CALLS     2337 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.542        25.537        .82529E-04   -1.4737    
   2  norm          .10000E-03    .62935        .75439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    25.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    53.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.873        12.596        .53770E-03   -1.4963    
   6  Prefactor     .10000E-03    34.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6132        51.884        .17063E-03   -1.5234    
   8  Prefactor     .10000E-03    126.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4769        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .93790        .18196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    35.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3674        .11113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9384        6.9738        .29815E-03   -1.5430    
  14  Prefactor     11.832        40.531        .11644E-03   -1.5020    
  15  Prefactor     6.0488        5.3954        .16326E-03   -1.5216    
  16  Prefactor     .10000E-03    8.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    82.580        .63268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.717        10.235        .95160E-04   -1.4866    
  19  Normalizat    1.6504        .26345        .33508E-03   -.73637    
  20  Prefactor     .71462        .87181E-01    .16340E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72622e-09
Minuit parameter uncertainties:
  1  25.5484
  2  6.11114e-07
  3  3.19642e-05
  4  0.00125084
  5  12.5981
  6  0.000298556
  7  34.1701
  8  2.52495e-05
  9  3.15884e-06
  10  5.7899e-06
  11  9.74878e-05
  12  6.08236e-08
  13  6.97673
  14  40.625
  15  5.39585
  16  6.43971e-05
  17  0.00275619
  18  10.2357
  19  0.263677
  20  0.087198
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  3.159e-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:  7.146e-01  8.720e-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.650e+00  2.637e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289529/likelihoodResults_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.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) = 9494.59896587
delta logL = -0.00192057167806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9494.59704505
delta logL = 2.44566763286e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1827       1.0000          .0000       10.000    
     3 'Normalizat'    1.6504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71462       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=   9494.597     FROM MIGRAD    STATUS=FAILED        88 CALLS      244 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    29.001        .15132E-02** at limit **
   2  Index         2.1285        7.8708        .50000        .49505E-04
   3  Normalizat    1.6504        .19663E-01    .33508E-03    .13232E-04
   4  Prefactor     .71462        .66786E-02    .16340E-03    .72083E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9494.597     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      375 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    29.001        .31396E-03** at limit **
   2  Index         2.1285        7.8708        .41314E-03    .49505E-04
   3  Normalizat    1.6504        .19663E-01    .20648E-05    .13232E-04
   4  Prefactor     .71462        .66786E-02    .39016E-06    .72083E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9494.597     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      421 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.159        .30264E-02** at limit **
   2  Index         1.7147        6.3898        .50000        .84128E-07
   3  Normalizat    1.6504        .19972E-01    .13403E-04   -.40985E-03
   4  Prefactor     .71462        .67836E-02    .65358E-05   -.86763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71468
  Normalizat = 1.65037
  Prefactor  = 0.714617
 **********
 **   18 **HESSE 
 **********

 FCN=   9494.597     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.52        .60528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7147        5.8350        .50000       -.71692    
   3  Normalizat    1.6504        .45815E-01    .26806E-05   -.73636    
   4  Prefactor     .71462        .15564E-01    .13072E-05   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82992e-10
Minuit parameter uncertainties:
  1  0.000179682
  2  665.822
  3  0.045816
  4  0.0155643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289529': 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) = 9494.59704195
delta logL = 3.34310061589e-06

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.797e-04  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.715e+00  6.658e+02  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:  7.146e-01  1.556e-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.650e+00  4.582e-02  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/289529/cmap_HighResolution_504489601_504748801_4FGL_J1753.9+2443_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-18 21:50:21.167293', job_id='289529', GAL2='0.71', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632027021.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1023' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 289529: <4FGL_J1753.9+2443_daily_bin1023> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin1023> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 21:35:28 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:35:29 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:35:29 2021
Terminated at Sat Sep 18 21:50:21 2021
Results reported at Sat Sep 18 21:50:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin1023 268.496 24.7297 504489601 504748801 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 :                                   876.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

