/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1249
RA = 30.6862, Dec = 42.0714
tmin = 563068801, tmax = 563328001
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='38245', job_status='RUN', time_executed='2021-08-15 03:02:44.176761', time_epoch_executed='1629021764.18' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38245/ft1_4FGL_J0202.7+4204_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38245/ft1_4FGL_J0202.7+4204_daily_bin1249.fits outfile=/scratch/kocevski/38245/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1249.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=563068801.0 tmax=563328001.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 9.84
user 3.25
sys 4.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.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/38245/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.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 6.81
user 0.34
sys 4.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/38245/ltcube_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.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/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits
.....................!
real 21.78
user 15.29
sys 5.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/38245/ltcube_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits outfile=/scratch/kocevski/38245/expmap_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.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/38245/ltcube_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits
.....................!
real 204.09
user 187.20
sys 11.54

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 176 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0202.7+4204 @ 30.6862 42.0714

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits outfile=/scratch/kocevski/38245/cmap_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.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=30.6862 yref=42.0714 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 5.60
user 0.39
sys 4.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits outfile=/scratch/kocevski/38245/cmap_HighResolution_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.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=30.6862 yref=42.0714 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 5.40
user 0.39
sys 4.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38245/Model_4FGL_J0202.7+4204_daily_bin1249.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits........................!
real 42.16
user 25.54
sys 7.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits', '/scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits', expMap='/scratch/kocevski/38245/expmap_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits', expCube='/scratch/kocevski/38245/ltcube_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38245/Model_4FGL_J0202.7+4204_daily_bin1249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0202.7+4204'

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.935e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38245/ft1_filtered_4FGL_J0202.7+4204_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/38245/ft2_4FGL_J0202.7+4204_daily_bin1249.fits
Exposure map: /scratch/kocevski/38245/expmap_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits
Exposure cube: /scratch/kocevski/38245/ltcube_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38245/Model_4FGL_J0202.7+4204_daily_bin1249.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) = 1391.06489074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.932       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9296       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.478       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10000.       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .19269       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1391.057     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     3275 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5708        .54564E-07** at limit **
   2  Prefactor     66.817        54.686        .36980E-05    .29703E-04
   3  Prefactor     61.933        61.326        .81602E-06    .10080E-04
   4  norm          6.9305        5.4066        .55199E-07    .40648E-04
   5  Prefactor     18.465        60.245        .37394E-05    .49710E-05
   6  Prefactor     .10000E-03    36.739        .96502E-07** at limit **
   7  norm          .10000E-03    1.2344        .21465E-07** at limit **
   8  norm          .10000E-03    .76819        .72952E-08** at limit **
   9  Prefactor     .10000E-03    128.00        .98095E-07** at limit **
  10  Prefactor     .56261        27.730        .47572E-05    .35255E-03
  11  Prefactor     .10000E-03    72.041        .39818E-06** at limit **
  12  Prefactor     .10000E-03    108.62       -.38466E-06** at limit **
  13  norm          .10000E-03    29.776        .24864E-07** at limit **
  14  Prefactor     .10000E-03    45.223       -.43216E-07** at limit **
  15  norm          .10000E-03    106.40       -.50009E-06** at limit **
  16  Prefactor     .10000E-03    156.53        .32432E-06** at limit **
  17  norm          .10000E-03    6.9035       -.18482E-08** at limit **
  18  norm          .10000E-03    1.1244        .38480E-07** at limit **
  19  Prefactor     .10000E-03    210.61        .11002E-05** at limit **
  20  norm          .10000E-03    173.05        .64526E-06** at limit **
  21  Prefactor     .10005E-03    1051.7       -.45059E-05** at limit **
  22  norm         10000.0        551.12        .14244E-05** at limit **
  23  Normalizat    .19331        .52776       -.50940E-04    .57645E-04
  24  Prefactor     .88804        .20040        .73907E-05    .14176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.8173
  Prefactor  = 61.933
  norm       = 6.93047
  Prefactor  = 18.4653
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.56261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 0.00010005
  norm       = 10000
  Normalizat = 0.193314
  Prefactor  = 0.888038
 **********
 **   18 **HESSE 
 **********

 FCN=   1391.057     FROM HESSE     STATUS=OK           383 CALLS     3658 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5761        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.817        55.335        .49095E-04   -1.4071    
   3  Prefactor     61.933        61.361        .50988E-04   -1.4132    
   4  norm          6.9305        5.4041        .71703E-04   -1.5181    
   5  Prefactor     18.465        60.910        .93175E-04   -1.4848    
   6  Prefactor     .10000E-03    36.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2350        .40471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .78913        .63657E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    128.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .56261        227.58        .32855E-02   -1.5558    
  11  Prefactor     .10000E-03    72.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    108.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    29.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    106.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    156.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.9097        .95693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1315        .38622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    210.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    173.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    1051.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        551.10        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .19331        .56027        .76786E-03   -1.2990    
  24  Prefactor     .88804        .20277        .14647E-03   -.96560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03885e-08
Minuit parameter uncertainties:
  1  1.22784e-05
  2  55.3778
  3  61.4237
  4  5.40452
  5  61.1165
  6  2.17277e-05
  7  1.26387e-06
  8  2.80687e-06
  9  0.000404443
  10  22.7162
  11  0.000330799
  12  0.000421873
  13  5.6901e-06
  14  4.00119e-05
  15  0.000117406
  16  0.000413716
  17  1.75102e-05
  18  1.19804e-06
  19  0.00136005
  20  0.000721072
  21  0.0148362
  22  0.00345907
  23  0.578003
  24  0.202938
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  4.219e-04  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.880e-01  2.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.933e-01  5.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 3.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38245/likelihoodResults_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.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) = 1391.05735214
delta logL = -4.37305450305e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1391.05730857
delta logL = -1.6710600903e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4225       1.0000          .0000       10.000    
     3 'Normalizat'    .19331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1391.057     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.019        .90712E-02** at limit **
   2  Index         2.3908        5.3697        .50000        .31984E-05
   3  Normalizat    .19331        .12734E-01    .17604        .23502E-04
   4  Prefactor     .88804        .51535E-02    .33144E-01   -.47138E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39081
  Normalizat = 0.193308
  Prefactor  = 0.888039
 **********
 **   18 **HESSE 
 **********

 FCN=   1391.057     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    434.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3908        6.6097        .50000       -.54900    
   3  Normalizat    .19331        .29307E-01    .76783E-03   -1.2990    
   4  Prefactor     .88804        .11700E-01    .14647E-03   -.96560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00705e-07
Minuit parameter uncertainties:
  1  0.000348605
  2  425.924
  3  0.0293098
  4  0.0117003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38245': 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) = 1391.05730854
delta logL = -1.29276486405e-07

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  3.486e-04  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.391e+00  4.259e+02  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.880e-01  1.170e-02  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.933e-01  2.931e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.686 42.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/38245/cmap_HighResolution_563068801_563328001_4FGL_J0202.7+4204_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-02', job_status='DONE', photon_flux_upper_limit='3.63e-07', time_completed='2021-08-15 03:11:26.696395', job_id='38245', GAL2='0.89', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1629022286.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1249' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 03:11:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 38245: <4FGL_J0202.7+4204_daily_bin1249> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 02:55:52 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 02:58:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 02:58:51 2021
Terminated at Sun Aug 15 03:11:28 2021
Results reported at Sun Aug 15 03:11:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1249 30.6862 42.0714 563068801 563328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            936 sec.

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

