/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 219 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1753.9+2443_daily_bin73
RA = 268.496, Dec = 24.7297
tmin = 258249601, tmax = 258508801
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='282571', job_status='RUN', time_executed='2021-09-18 21:14:18.392026', time_epoch_executed='1632024858.39' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282571

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282571/ft1_4FGL_J1753.9+2443_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282571/ft1_4FGL_J1753.9+2443_daily_bin73.fits outfile=/scratch/kocevski/282571/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin73.fits ra=268.496 dec=24.7297 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.18
user 0.98
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282571/ft1_filtered_4FGL_J1753.9+2443_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/282571/ltcube_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.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/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits
.....................!
real 9.69
user 9.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282571/ft1_filtered_4FGL_J1753.9+2443_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/282571/ltcube_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.fits outfile=/scratch/kocevski/282571/expmap_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.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/282571/ltcube_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.fits
.....................!
real 189.38
user 184.98
sys 4.05

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/282571/ft1_filtered_4FGL_J1753.9+2443_daily_bin73.fits scfile=/scratch/kocevski/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits outfile=/scratch/kocevski/282571/cmap_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.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.51
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282571/ft1_filtered_4FGL_J1753.9+2443_daily_bin73.fits scfile=/scratch/kocevski/282571/ft2_4FGL_J1753.9+2443_daily_bin73.fits outfile=/scratch/kocevski/282571/cmap_HighResolution_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0071       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
    17 'norm      '    16.282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98382       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=   7958.380     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1969 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.497        .63881E-05** at limit **
   2  norm          .10000E-03    1.5178       -.43173E-08** at limit **
   3  norm          .10000E-03    30.626        .10945E-04** at limit **
   4  Prefactor     .10000E-03    24.164       -.68280E-05** at limit **
   5  Prefactor     .10000E-03    6.3342        .36327E-06** at limit **
   6  Prefactor     .10000E-03    14.135       -.64221E-05** at limit **
   7  Prefactor     17.632        28.125       -.43761E-05    .66656E-04
   8  Prefactor     .10000E-03    40.514       -.25606E-04** at limit **
   9  Prefactor     .10000E-03    2.1125        .55350E-09** at limit **
  10  norm          3.0072        2.1225       -.14636E-06   -.11675E-02
  11  norm          .10000E-03    32.144        .10091E-04** at limit **
  12  Prefactor     .10000E-03    8.8814       -.93545E-05** at limit **
  13  norm          .10000E-03    2.7903       -.45112E-07** at limit **
  14  Prefactor     .10000E-03    34.740        .39460E-05** at limit **
  15  Prefactor     .10000E-03    3.6738       -.19955E-06** at limit **
  16  Prefactor     17.666        26.619        .49207E-05   -.10275E-05
  17  norm          16.283        29.922        .19393E-05   -.44421E-04
  18  Prefactor     .10000E-03    9.7976        .13000E-04** at limit **
  19  Normalizat    1.0806        .24696       -.34948E-06    .22409E-04
  20  Prefactor     .98382        .85062E-01   -.70015E-07   -.13514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00723
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.666
  norm       = 16.2834
  Prefactor  = 0.0001
  Normalizat = 1.08061
  Prefactor  = 0.983822
 **********
 **   18 **HESSE 
 **********

 FCN=   7958.380     FROM HESSE     STATUS=OK           283 CALLS     2252 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5396        .10731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.632        28.102        .95371E-04   -1.4868    
   8  Prefactor     .10000E-03    40.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1145        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0072        2.1242        .53192E-03   -1.5361    
  11  norm          .10000E-03    32.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7911        .14552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6947        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.666        26.628        .95301E-04   -1.4867    
  17  norm          16.283        29.918        .99258E-04   -1.4901    
  18  Prefactor     .10000E-03    9.8708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0806        .27861        .40880E-03   -.90377    
  20  Prefactor     .98382        .96270E-01    .14964E-03   -.93271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08818e-10
Minuit parameter uncertainties:
  1  8.78128e-07
  2  6.15379e-07
  3  9.54166e-07
  4  5.02224e-06
  5  4.12718e-06
  6  7.8461e-06
  7  28.1232
  8  0.000109481
  9  7.91237e-07
  10  2.1243
  11  1.27204e-05
  12  8.90055e-05
  13  6.36016e-06
  14  1.28626e-06
  15  3.22444e-05
  16  26.6455
  17  29.9453
  18  8.58662e-05
  19  0.278989
  20  0.0962871
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  7.912e-07  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:  9.838e-01  9.629e-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.081e+00  2.790e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282571/likelihoodResults_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.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) = 7958.38266339
delta logL = -0.0022401399483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7958.3804227
delta logL = 5.49541255168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1745       1.0000          .0000       10.000    
     3 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98383       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=   7958.380     FROM MIGRAD    STATUS=FAILED        89 CALLS      247 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.7792        .13018E-02** at limit **
   2  Index         2.1478        6.0452        .50000        .96065E-04
   3  Normalizat    1.0806        .26941        .40880E-03    .15296E-05
   4  Prefactor     .98382        .95489E-01    .14964E-03   -.19753E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7958.380     FROM SIMPLEX   STATUS=UNCHANGED    119 CALLS      366 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2.7792        .25792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1478        6.0452        .44257E-03   -.60703    
   3  Normalizat    1.0806        .26941        .52154E-04   -.90377    
   4  Prefactor     .98382        .95489E-01    .22300E-04   -.93271    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7958.380     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      414 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.047        .26036E-02** at limit **
   2  Index         1.5078        9.2458        .50000       -.32667E-06
   3  Normalizat    1.0806        .33408E-01    .16352E-04    .30174E-04
   4  Prefactor     .98382        .11817E-01    .59858E-05    .44823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.50784
  Normalizat = 1.08061
  Prefactor  = 0.983822
 **********
 **   18 **HESSE 
 **********

 FCN=   7958.380     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      441 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    351.44        .52072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5078        5.3001        .50000       -.77320    
   3  Normalizat    1.0806        .78043E-01    .32704E-05   -.90377    
   4  Prefactor     .98382        .27600E-01    .11972E-05   -.93271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89191e-09
Minuit parameter uncertainties:
  1  0.000458395
  2  1237.26
  3  0.0780517
  4  0.0276008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282571': 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) = 7958.38041482
delta logL = 8.43760608404e-06

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  4.584e-04  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.508e+00  1.237e+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:  9.838e-01  2.760e-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.081e+00  7.805e-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/282571/cmap_HighResolution_258249601_258508801_4FGL_J1753.9+2443_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-18 21:26:51.018099', job_id='282571', GAL2='0.98', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632025611.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='73' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 282571: <4FGL_J1753.9+2443_daily_bin73> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin73> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 21:10:30 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:10:31 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:10:31 2021
Terminated at Sat Sep 18 21:26:51 2021
Results reported at Sat Sep 18 21:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin73 268.496 24.7297 258249601 258508801 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 :                                   754.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             281.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

