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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin485
RA = 268.496, Dec = 24.7297
tmin = 365040001, tmax = 365299201
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='286733', job_status='RUN', time_executed='2021-09-18 21:25:25.741709', time_epoch_executed='1632025525.74' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286733

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286733/ft1_4FGL_J1753.9+2443_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286733/ft1_4FGL_J1753.9+2443_daily_bin485.fits outfile=/scratch/kocevski/286733/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin485.fits ra=268.496 dec=24.7297 rad=12.0 tmin=365040001.0 tmax=365299201.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286733/ft1_filtered_4FGL_J1753.9+2443_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/286733/ltcube_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.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/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits
.....................!
real 11.99
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286733/ft1_filtered_4FGL_J1753.9+2443_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/286733/ltcube_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.fits outfile=/scratch/kocevski/286733/expmap_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.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/286733/ltcube_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.fits
.....................!
real 190.21
user 184.52
sys 5.32

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/286733/ft1_filtered_4FGL_J1753.9+2443_daily_bin485.fits scfile=/scratch/kocevski/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits outfile=/scratch/kocevski/286733/cmap_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286733/ft1_filtered_4FGL_J1753.9+2443_daily_bin485.fits scfile=/scratch/kocevski/286733/ft2_4FGL_J1753.9+2443_daily_bin485.fits outfile=/scratch/kocevski/286733/cmap_HighResolution_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=268.496 yref=24.7297 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    131.65       1.0000         .10000E-03   10000.    
     4 'Prefactor '    66.713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4672       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5826       1.0000         .10000E-03   10000.    
    13 'norm      '    10.914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26936E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.251       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0528       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=   10515.02     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2037 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    110.80       -.17929E-06** at limit **
   2  norm          .10000E-03    1.4714       -.10959E-06** at limit **
   3  norm          131.69        108.63        .11326E-06    .26476E-04
   4  Prefactor     66.731        98.801        .10902E-05   -.80709E-05
   5  Prefactor     .10000E-03    13.759        .21825E-06** at limit **
   6  Prefactor     5.6971        143.61        .87407E-05   -.16248E-04
   7  Prefactor     .10000E-03    79.105        .19443E-04** at limit **
   8  Prefactor     6.6688        220.40       -.14089E-04   -.64942E-05
   9  Prefactor     5.4674        7.4324        .17612E-06   -.41728E-04
  10  norm          .10000E-03    .52703        .11297E-06** at limit **
  11  norm          .10000E-03    27.242       -.16049E-07** at limit **
  12  Prefactor     3.5822        3.9986        .67890E-06   -.10341E-03
  13  norm          10.913        9.0599        .27352E-07   -.10191E-04
  14  Prefactor     .10000E-03    11.102       -.80115E-07** at limit **
  15  Prefactor     .10000E-03    2.5740        .46420E-07** at limit **
  16  Prefactor     17.235        21.049        .29471E-06   -.28550E-04
  17  norm          .10000E-03    10.113       -.28096E-07** at limit **
  18  Prefactor     .10000E-03    6.3396       -.19971E-06** at limit **
  19  Normalizat    1.0198        .24778       -.24840E-05   -.19514E-04
  20  Prefactor     1.0529        .81723E-01    .77620E-06   -.36814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 131.692
  Prefactor  = 66.7307
  Prefactor  = 0.0001
  Prefactor  = 5.69713
  Prefactor  = 0.000100001
  Prefactor  = 6.66875
  Prefactor  = 5.46743
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.58218
  norm       = 10.9127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.235
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01981
  Prefactor  = 1.05286
 **********
 **   18 **HESSE 
 **********

 FCN=   10515.02     FROM HESSE     STATUS=OK           289 CALLS     2326 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4996        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          131.69        108.57        .17547E-03   -1.3408    
   4  Prefactor     66.731        99.216        .49139E-04   -1.4072    
   5  Prefactor     .10000E-03    13.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6971        141.82        .16809E-03   -1.5231    
   7  Prefactor     .10000E-03    80.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6688        221.18        .15688E-03   -1.5191    
   9  Prefactor     5.4674        7.4154        .17185E-03   -1.5240    
  10  norm          .10000E-03    .52919        .72690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    27.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5822        3.9862        .10489E-02   -1.5329    
  13  norm          10.913        9.0571        .12127E-03   -1.5047    
  14  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3073        .31375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.235        20.751        .96430E-04   -1.4877    
  17  norm          .10000E-03    10.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0198        .27907        .45342E-03   -.92370    
  20  Prefactor     1.0529        .92673E-01    .15430E-03   -.90988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49493e-10
Minuit parameter uncertainties:
  1  0.000313022
  2  1.70556e-06
  3  108.739
  4  99.4629
  5  1.45973e-06
  6  57.001
  7  0.000510564
  8  77.1228
  9  7.41666
  10  3.24523e-07
  11  2.55959e-06
  12  3.98646
  13  9.05828
  14  1.23512e-06
  15  2.68022e-05
  16  20.7595
  17  1.03376e-07
  18  4.72151e-06
  19  0.279472
  20  0.0926872
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  5.467e+00  7.417e+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

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  1.053e+00  9.269e-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.020e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 268.496 24.730
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286733/likelihoodResults_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.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): 0
logL (Free Index) = 10514.4371148
delta logL = 0.578709381349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10514.3970382
delta logL = 0.618785982972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3952       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3674       1.0000          .0000       10.000    
     3 'Normalizat'    .95331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0645       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10514.40     FROM MIGRAD    STATUS=FAILED        98 CALLS      300 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3834        40.769        .18382E-03   -.48613E-04
   2  Index         3.3709        6.6400        .58440E-02    .12190E-02
   3  Normalizat    .95351        .26706        .46695E-03    .22399E-05
   4  Prefactor     1.0644        .85628E-01    .15349E-03    .14221E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10514.40     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      394 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3834        40.769        .10846E-03   -.48613E-04
   2  Index         3.3709        6.6400        .91746E-03    .12190E-02
   3  Normalizat    .95351        .26706        .38156E-03    .22399E-05
   4  Prefactor     1.0644        .85628E-01    .80856E-04    .14221E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10514.40     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      428 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3834        4.5666        .73526E-05   -.69270E-04
   2  Index         3.3709        1.4824        .11688E-02   -.64197E-05
   3  Normalizat    .95351        .27297        .18678E-04    .19477E-05
   4  Prefactor     1.0644        .92560E-01    .61394E-05    .12592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38337
  Index      = 3.37093
  Normalizat = 0.953509
  Prefactor  = 1.06444
 **********
 **   18 **HESSE 
 **********

 FCN=   10514.40     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3834        3.6683        .14705E-05   -1.5473    
   2  Index         3.3709        1.1974        .46752E-04   -.33187    
   3  Normalizat    .95351        .27070        .37356E-05   -.94605    
   4  Prefactor     1.0644        .91958E-01    .12279E-05   -.90611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21133e-13
Minuit parameter uncertainties:
  1  3.66886
  2  1.21054
  3  0.271086
  4  0.0919712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286733': 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) = 10514.3970323
delta logL = 0.618791887864

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.383e+00  3.669e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  3.371e+00  1.211e+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:  1.064e+00  9.197e-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:  9.535e-01  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 268.496 24.730
Photon Index (Free Index): 3.37 +/- 1.21
Photon Flux (Free Index): 8.71e-08 +/- 7.76e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.19e-05

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/286733/cmap_HighResolution_365040001_365299201_4FGL_J1753.9+2443_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='6.19e-01', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-18 21:40:36.069794', photon_index_error2='1.21', photon_index2='3.37', ts='0.79', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.19e-05', EG='1.02', time_epoch_completed='1632026436.07', return_code='0', job_id='286733', GAL2='1.06', EG2='0.95', return_code2='0', photon_flux_error2='7.76e-08', ts2='2.10', photon_index='2.20' WHERE bin_id='485' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 286733: <4FGL_J1753.9+2443_daily_bin485> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin485> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 21:25:12 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:25:14 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:25:14 2021
Terminated at Sat Sep 18 21:40:36 2021
Results reported at Sat Sep 18 21:40:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin485 268.496 24.7297 365040001 365299201 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 :                                   908.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

