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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin144
RA = 268.496, Dec = 24.7297
tmin = 276652801, tmax = 276912001
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='282690', job_status='RUN', time_executed='2021-09-18 21:10:50.862552', time_epoch_executed='1632024650.86' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282690

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282690/ft1_4FGL_J1753.9+2443_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282690/ft1_4FGL_J1753.9+2443_daily_bin144.fits outfile=/scratch/kocevski/282690/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin144.fits ra=268.496 dec=24.7297 rad=12.0 tmin=276652801.0 tmax=276912001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.57
user 4.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/282690/ltcube_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits outfile=/scratch/kocevski/282690/expmap_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.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/282690/ltcube_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits
.....................!
real 191.28
user 185.83
sys 5.15

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/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits scfile=/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits outfile=/scratch/kocevski/282690/cmap_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits scfile=/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits outfile=/scratch/kocevski/282690/cmap_HighResolution_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.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/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282690/Model_4FGL_J1753.9+2443_daily_bin144.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/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits....................!
real 93.72
user 92.36
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits', '/scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits', expMap='/scratch/kocevski/282690/expmap_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits', expCube='/scratch/kocevski/282690/ltcube_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282690/Model_4FGL_J1753.9+2443_daily_bin144.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/282690/ft1_filtered_4FGL_J1753.9+2443_daily_bin144.fits
Spacecraft file(s): /scratch/kocevski/282690/ft2_4FGL_J1753.9+2443_daily_bin144.fits
Exposure map: /scratch/kocevski/282690/expmap_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits
Exposure cube: /scratch/kocevski/282690/ltcube_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282690/Model_4FGL_J1753.9+2443_daily_bin144.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11359.8797939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10134E-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 '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55293       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1522       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4192       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .52109       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2442       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=   11359.80     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1768 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    160.73        .92075E-05** at limit **
   2  norm          .10000E-03    .99085       -.15303E-07** at limit **
   3  norm          .10001E-03    89.497       -.70430E-05** at limit **
   4  Prefactor     .10000E-03    20.523        .27386E-05** at limit **
   5  Prefactor     .10000E-03    7.6874       -.42105E-07** at limit **
   6  Prefactor     .10000E-03    32.274       -.15783E-05** at limit **
   7  Prefactor     .10000E-03    9.1607       -.11860E-06** at limit **
   8  Prefactor     .10000E-03    17.703        .11628E-05** at limit **
   9  Prefactor     .54578        10.432       -.73263E-05   -.40367E-03
  10  norm          2.1522        1.5931        .10451E-06   -.52959E-03
  11  norm          .10000E-03    16.678       -.18049E-05** at limit **
  12  Prefactor     .10000E-03    5.9162        .16184E-06** at limit **
  13  norm          .10000E-03    2.6600       -.38444E-07** at limit **
  14  Prefactor     .10000E-03    24.691       -.40531E-05** at limit **
  15  Prefactor     1.5284        4.6545       -.18495E-05    .45260E-03
  16  Prefactor     6.4229        21.871        .26812E-05    .16807E-03
  17  norm          .10000E-03    13.434        .71560E-07** at limit **
  18  Prefactor     .10009E-03    19.198       -.10136E-04** at limit **
  19  Normalizat    .52104        .24276       -.41652E-06    .45520E-04
  20  Prefactor     1.2442        .88038E-01    .18219E-06    .91546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.545782
  norm       = 2.15224
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.52837
  Prefactor  = 6.42294
  norm       = 0.0001
  Prefactor  = 0.000100089
  Normalizat = 0.521041
  Prefactor  = 1.24416
 **********
 **   18 **HESSE 
 **********

 FCN=   11359.80     FROM HESSE     STATUS=OK           287 CALLS     2055 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    164.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0033        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    91.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .54578        15.869        .41365E-02   -1.5560    
  10  norm          2.1522        1.5966        .56336E-03   -1.5415    
  11  norm          .10000E-03    16.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6620        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5284        4.7594        .34546E-03   -1.5461    
  16  Prefactor     6.4229        21.716        .15841E-03   -1.5201    
  17  norm          .10000E-03    13.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    35.748        .46632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .52104        .24214        .57658E-03   -1.1145    
  20  Prefactor     1.2442        .89599E-01    .14352E-03   -.84983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60797e-09
Minuit parameter uncertainties:
  1  0.00286656
  2  1.48746e-07
  3  0.00180868
  4  0.000355366
  5  1.14213e-06
  6  0.000251494
  7  1.13976e-05
  8  0.000137497
  9  5.88712
  10  1.59666
  11  0.000207993
  12  2.92271e-05
  13  4.17493e-06
  14  0.000541014
  15  4.76062
  16  21.7425
  17  1.34555e-05
  18  0.00357138
  19  0.242629
  20  0.0896101
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  5.458e-01  5.887e+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.244e+00  8.961e-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:  5.210e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 268.496 24.730
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282690/likelihoodResults_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.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) = 11359.7879355
delta logL = 0.0157632073242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11359.7614182
delta logL = 0.0422804405043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3666       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8170       1.0000          .0000       10.000    
     3 'Normalizat'    .52307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2426       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=   11359.76     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      223 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3515        106.63        .66591E-02    .34036E-03
   2  Index         1.8171        1.1096        .48899        .27159E-04
   3  Normalizat    .52306        .21578E-01    .12977        .10451E-03
   4  Prefactor     1.2426        .79921E-02    .33694E-01    .66631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.35148
  Index      = 1.81709
  Normalizat = 0.523063
  Prefactor  = 1.24258
 **********
 **   18 **HESSE 
 **********

 FCN=   11359.76     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3515        8.3998        .26636E-03   -1.5401    
   2  Index         1.8171        1.0212        .78612E-02   -.69006    
   3  Normalizat    .52306        .23787        .57552E-03   -1.1136    
   4  Prefactor     1.2426        .89503E-01    .14360E-03   -.85031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01812e-11
Minuit parameter uncertainties:
  1  8.40398
  2  1.03348
  3  0.238331
  4  0.0895142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282690': 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) = 11359.7614164
delta logL = 0.0422822944456

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  2.351e+00  8.404e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.817e+00  1.033e+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.243e+00  8.951e-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:  5.231e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/282690/cmap_HighResolution_276652801_276912001_4FGL_J1753.9+2443_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-18 21:26:08.720166', job_id='282690', GAL2='1.24', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632025568.72', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.23e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='144' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 282690: <4FGL_J1753.9+2443_daily_bin144> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin144 268.496 24.7297 276652801 276912001 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 :                                   914.41 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             365.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

