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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin1092
RA = 268.496, Dec = 24.7297
tmin = 522374401, tmax = 522633601
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='289685', job_status='RUN', time_executed='2021-09-18 21:35:51.712949', time_epoch_executed='1632026151.71' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289685

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289685/ft1_4FGL_J1753.9+2443_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289685/ft1_4FGL_J1753.9+2443_daily_bin1092.fits outfile=/scratch/kocevski/289685/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin1092.fits ra=268.496 dec=24.7297 rad=12.0 tmin=522374401.0 tmax=522633601.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 3.64
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.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/289685/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/289685/ft1_filtered_4FGL_J1753.9+2443_daily_bin1092.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289685/ft1_filtered_4FGL_J1753.9+2443_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/289685/ltcube_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.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/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits
.....................!
real 12.17
user 11.33
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289685/ft1_filtered_4FGL_J1753.9+2443_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/289685/ltcube_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.fits outfile=/scratch/kocevski/289685/expmap_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.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/289685/ltcube_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.fits
.....................!
real 190.44
user 185.15
sys 4.89

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/289685/ft1_filtered_4FGL_J1753.9+2443_daily_bin1092.fits scfile=/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits outfile=/scratch/kocevski/289685/cmap_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289685/ft1_filtered_4FGL_J1753.9+2443_daily_bin1092.fits scfile=/scratch/kocevski/289685/ft2_4FGL_J1753.9+2443_daily_bin1092.fits outfile=/scratch/kocevski/289685/cmap_HighResolution_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13379E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76529       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12678E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.090       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .21298E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1713       1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93420       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=   10079.77     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2092 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.037       -.64858E-05** at limit **
   2  norm          .76948        1.5571        .59263E-06    .13242E-02
   3  norm          .10000E-03    38.548       -.16027E-05** at limit **
   4  Prefactor     .10000E-03    33.727        .31739E-06** at limit **
   5  Prefactor     .10000E-03    19.778        .29452E-06** at limit **
   6  Prefactor     8.3429        42.628       -.46454E-05   -.10999E-05
   7  Prefactor     .22199        31.572        .23226E-05    .21003E-03
   8  Prefactor     54.321        65.015       -.51201E-05    .10249E-03
   9  Prefactor     .10000E-03    6.2635        .22534E-07** at limit **
  10  norm          .10000E-03    .49274        .16267E-07** at limit **
  11  norm          .10000E-03    72.654        .64837E-05** at limit **
  12  Prefactor     1.1721        11.081        .35381E-05   -.15868E-03
  13  norm          .10000E-03    3.7156        .54225E-07** at limit **
  14  Prefactor     .10000E-03    16.146        .30858E-07** at limit **
  15  Prefactor     2.4420        5.9459        .60227E-06   -.20017E-03
  16  Prefactor     .10000E-03    38.770        .15033E-05** at limit **
  17  norm          .10000E-03    21.642       -.48526E-07** at limit **
  18  Prefactor     .10000E-03    2.8239        .11237E-07** at limit **
  19  Normalizat    1.2649        .23240       -.34714E-05    .33710E-04
  20  Prefactor     .93424        .75973E-01    .40143E-06   -.34824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.769478
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.34288
  Prefactor  = 0.221991
  Prefactor  = 54.3212
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26491
  Prefactor  = 0.934238
 **********
 **   18 **HESSE 
 **********

 FCN=   10079.77     FROM HESSE     STATUS=OK           295 CALLS     2387 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76948        1.2092        .18471E-02   -1.5533    
   3  norm          .10000E-03    38.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3429        42.716        .13885E-03   -1.5130    
   7  Prefactor     .22199        37.205        .14444       -1.5614    
   8  Prefactor     54.321        69.314        .27269E-03   -1.4233    
   9  Prefactor     .10000E-03    6.4612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .49438        .68815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    72.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1721        10.905        .42391E-03   -1.5491    
  13  norm          .10000E-03    3.7229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4420        5.8709        .26176E-03   -1.5395    
  16  Prefactor     .10000E-03    39.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8302        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2649        .27103        .39796E-03   -.84620    
  20  Prefactor     .93424        .89410E-01    .15580E-03   -.94955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04674e-09
Minuit parameter uncertainties:
  1  0.000295271
  2  1.20928
  3  7.0636e-05
  4  3.52062e-05
  5  1.76652e-05
  6  37.7981
  7  5.75012
  8  69.4172
  9  2.63662e-05
  10  3.43052e-07
  11  0.000333435
  12  7.15163
  13  8.67801e-07
  14  8.68894e-06
  15  5.87224
  16  7.83101e-05
  17  1.39644e-06
  18  1.75825e-06
  19  0.271331
  20  0.0894243
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  2.637e-05  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.342e-01  8.942e-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.265e+00  2.713e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289685/likelihoodResults_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.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) = 10079.771505
delta logL = -0.000738772549084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10079.770764
delta logL = 2.27574855671e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1077       1.0000          .0000       10.000    
     3 'Normalizat'    1.2649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93423       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=   10079.77     FROM MIGRAD    STATUS=FAILED       115 CALLS      276 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50045E-03    1.9422        .84645E-01** at limit **
   2  Index         1.5074        6.7183        .50000       -.41689E-04
   3  Normalizat    1.2649        .32504E-02    .39796E-03   -.39480E-04
   4  Prefactor     .93424        .11208E-02    .15580E-03   -.73260E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10079.77     FROM SIMPLEX   STATUS=PROGRESS      93 CALLS      369 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37306        1.9422        .99992E-03   -.15251E-01
   2  Index         1.5631        6.7183        .66915E-02   -.41689E-04
   3  Normalizat    1.2649        .32504E-02    .35272E-04   -.39480E-04
   4  Prefactor     .93412        .11208E-02    .23286E-04   -.73260E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10079.77     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      453 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38065        39.498        .20153E-03    .16630E-03
   2  Index         1.5637        2.5517        .33444E-01    .88514E-04
   3  Normalizat    1.2654        .25669        .31837E-05    .14284E-05
   4  Prefactor     .93390        .88784E-01    .62322E-05    .38089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.380655
  Index      = 1.56367
  Normalizat = 1.26536
  Prefactor  = 0.933898
 **********
 **   18 **HESSE 
 **********

 FCN=   10079.77     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38065        31.738        .80612E-05   -1.5585    
   2  Index         1.5637        2.3418        .13378E-02   -.75772    
   3  Normalizat    1.2654        .25456        .63673E-06   -.84606    
   4  Prefactor     .93390        .87989E-01    .12464E-05   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24224e-09
Minuit parameter uncertainties:
  1  6.95449
  2  2.54499
  3  0.254813
  4  0.0880025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289685': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10079.7692089
delta logL = 0.00155735242333

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  3.807e-01  6.954e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.564e+00  2.545e+00  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.339e-01  8.800e-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.265e+00  2.548e-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/289685/cmap_HighResolution_522374401_522633601_4FGL_J1753.9+2443_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-18 21:50:51.820161', job_id='289685', GAL2='0.93', fit_tolerance='1e-08', EG2='1.27', EG='1.26', time_epoch_completed='1632027051.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.56e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1092' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 289685: <4FGL_J1753.9+2443_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin1092 268.496 24.7297 522374401 522633601 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 :                                   892.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             349.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

