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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin217
RA = 268.496, Dec = 24.7297
tmin = 295574401, tmax = 295833601
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='283903', job_status='RUN', time_executed='2021-09-18 21:15:32.238032', time_epoch_executed='1632024932.24' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283903

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283903/ft1_4FGL_J1753.9+2443_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283903/ft1_4FGL_J1753.9+2443_daily_bin217.fits outfile=/scratch/kocevski/283903/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin217.fits ra=268.496 dec=24.7297 rad=12.0 tmin=295574401.0 tmax=295833601.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 2.35
user 2.15
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.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/283903/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin217.fits evtable="EVENTS" outfile="/scratch/kocevski/283903/ft1_filtered_4FGL_J1753.9+2443_daily_bin217.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283903/ft1_filtered_4FGL_J1753.9+2443_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/283903/ltcube_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.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/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits
.....................!
real 12.45
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283903/ft1_filtered_4FGL_J1753.9+2443_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/283903/ltcube_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.fits outfile=/scratch/kocevski/283903/expmap_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.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/283903/ltcube_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.fits
.....................!
real 190.11
user 184.73
sys 5.00

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/283903/ft1_filtered_4FGL_J1753.9+2443_daily_bin217.fits scfile=/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits outfile=/scratch/kocevski/283903/cmap_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283903/ft1_filtered_4FGL_J1753.9+2443_daily_bin217.fits scfile=/scratch/kocevski/283903/ft2_4FGL_J1753.9+2443_daily_bin217.fits outfile=/scratch/kocevski/283903/cmap_HighResolution_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .19199E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15690E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .66343       1.0000         .10000E-03   10000.    
    11 'norm      '    42.995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34430E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71275       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0096       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.

 FCN=   10615.05     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2085 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    84.266        .90712E-02** at limit **
   2  norm          .10000E-03    1.4035        .43178E-01** at limit **
   3  norm          .10047E-03    272.28        .10133E-01** at limit **
   4  Prefactor     .10000E-03    45.621        .90712E-02** at limit **
   5  Prefactor     19.570        13.405        .22635E-02    .53491E-04
   6  Prefactor     .10007E-03    231.24        .90712E-02** at limit **
   7  Prefactor     .10000E-03    18.464        .90712E-02** at limit **
   8  Prefactor     .10000E-03    33.490        .90712E-02** at limit **
   9  Prefactor     .10000E-03    1.9841        .90712E-02** at limit **
  10  norm          .66424        1.7099        .11921E-01    .21237E-02
  11  norm          42.993        46.920        .15285E-02    .26976E-03
  12  Prefactor     .10000E-03    1.8165        .90712E-02** at limit **
  13  norm          5.1105        5.7240        .44470E-02   -.68335E-03
  14  Prefactor     22.264        29.388        .21222E-02    .29227E-04
  15  Prefactor     2.7668        4.0441        .61211E-02    .92587E-03
  16  Prefactor     .10007E-03    11.585        .11880    ** at limit **
  17  norm          .10000E-03    10.628        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.5435        .90712E-02** at limit **
  19  Normalizat    .71288        .21279        .10486        .59157E-04
  20  Prefactor     1.0096        .74830E-01    .31957E-01   -.58800E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 0.000100467
  Prefactor  = 0.0001
  Prefactor  = 19.5698
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.664242
  norm       = 42.9928
  Prefactor  = 0.0001
  norm       = 5.11048
  Prefactor  = 22.2643
  Prefactor  = 2.76677
  Prefactor  = 0.000100074
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.712876
  Prefactor  = 1.00958
 **********
 **   18 **HESSE 
 **********

 FCN=   10615.05     FROM HESSE     STATUS=OK           291 CALLS     2376 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    84.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8243        .23714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10047E-03    280.13        .40530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.570        13.399        .90540E-04   -1.4823    
   6  Prefactor     .10007E-03    237.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9896        .14172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .66424        1.6585        .20731E-03   -1.5545    
  11  norm          42.993        46.880        .61139E-04   -1.4396    
  12  Prefactor     .10000E-03    1.8278        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1105        5.6991        .88940E-03   -1.5256    
  14  Prefactor     22.264        29.432        .84890E-04   -1.4764    
  15  Prefactor     2.7668        3.9046        .23349E-03   -1.5375    
  16  Prefactor     .10007E-03    98.634        .64360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71288        .22973        .46487E-03   -1.0339    
  20  Prefactor     1.0096        .82059E-01    .14122E-03   -.92411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23165e-09
Minuit parameter uncertainties:
  1  0.00254948
  2  4.82794e-08
  3  0.0229819
  4  4.57408e-05
  5  13.4009
  6  0.00807295
  7  3.62611e-08
  8  1.58759e-05
  9  1.22035e-08
  10  1.65864
  11  46.9204
  12  1.85921e-07
  13  5.69972
  14  29.451
  15  3.90501
  16  0.0054273
  17  2.72841e-07
  18  2.09265e-07
  19  0.23004
  20  0.0820696
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.220e-08  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:  1.010e+00  8.207e-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:  7.129e-01  2.300e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283903/likelihoodResults_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.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) = 10615.047986
delta logL = -0.00239243136639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10615.0455947
delta logL = -1.12507404992e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1721       1.0000          .0000       10.000    
     3 'Normalizat'    .71303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0095       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=   10615.05     FROM MIGRAD    STATUS=FAILED        92 CALLS      248 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    19.338        .14625E-02** at limit **
   2  Index         2.1084        8.9222        .50000        .96172E-04
   3  Normalizat    .71288        .15729E-01    .46487E-03   -.30814E-04
   4  Prefactor     1.0096        .56545E-02    .14122E-03   -.74869E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10615.05     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      370 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    19.338        .30978E-03** at limit **
   2  Index         2.1084        8.9222        .51891E-02    .96172E-04
   3  Normalizat    .71288        .15729E-01    .37297E-04   -.30814E-04
   4  Prefactor     1.0096        .56545E-02    .70615E-05   -.74869E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10615.05     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      420 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.377        .29250E-02** at limit **
   2  Index         1.6426        7.3610        .50000        .34015E-07
   3  Normalizat    .71288        .15934E-01    .18595E-04    .63437E-03
   4  Prefactor     1.0096        .57284E-02    .56488E-05    .20561E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64265
  Normalizat = 0.712879
  Prefactor  = 1.00958
 **********
 **   18 **HESSE 
 **********

 FCN=   10615.05     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      449 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.34        .58500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6426        5.6217        .50000       -.73619    
   3  Normalizat    .71288        .35962E-01    .37190E-05   -1.0339    
   4  Prefactor     1.0096        .12929E-01    .11298E-05   -.92411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50792e-10
Minuit parameter uncertainties:
  1  9.06527e-06
  2  446.906
  3  0.035963
  4  0.0129291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283903': 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) = 10615.0455862
delta logL = 7.3628834798e-06

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  9.065e-06  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.643e+00  4.469e+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:  1.010e+00  1.293e-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:  7.129e-01  3.596e-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/283903/cmap_HighResolution_295574401_295833601_4FGL_J1753.9+2443_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-18 21:30:58.980510', job_id='283903', GAL2='1.01', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632025858.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='217' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:30:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 283903: <4FGL_J1753.9+2443_daily_bin217> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin217> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 21:15:17 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:15: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:15:19 2021
Terminated at Sat Sep 18 21:30:59 2021
Results reported at Sat Sep 18 21:30:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin217 268.496 24.7297 295574401 295833601 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 :                                   918.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

