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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1549
RA = 30.6862, Dec = 42.0714
tmin = 640828801, tmax = 641088001
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='41206', job_status='RUN', time_executed='2021-08-15 03:10:58.783229', time_epoch_executed='1629022258.78' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41206/ft1_4FGL_J0202.7+4204_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41206/ft1_4FGL_J0202.7+4204_daily_bin1549.fits outfile=/scratch/kocevski/41206/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1549.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=640828801.0 tmax=641088001.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 5.72
user 2.95
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.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/41206/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.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 2.54
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/41206/ltcube_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.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/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits
.....................!
real 17.80
user 14.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/41206/ltcube_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits outfile=/scratch/kocevski/41206/expmap_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.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/41206/ltcube_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits
.....................!
real 205.28
user 188.11
sys 4.58

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/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits outfile=/scratch/kocevski/41206/cmap_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.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 2.14
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits outfile=/scratch/kocevski/41206/cmap_HighResolution_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.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 2.22
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41206/Model_4FGL_J0202.7+4204_daily_bin1549.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/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits.......................!
real 44.47
user 25.30
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits', '/scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits', expMap='/scratch/kocevski/41206/expmap_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits', expCube='/scratch/kocevski/41206/ltcube_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/41206/Model_4FGL_J0202.7+4204_daily_bin1549.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/41206/ft1_filtered_4FGL_J0202.7+4204_daily_bin1549.fits
Spacecraft file(s): /scratch/kocevski/41206/ft2_4FGL_J0202.7+4204_daily_bin1549.fits
Exposure map: /scratch/kocevski/41206/expmap_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits
Exposure cube: /scratch/kocevski/41206/ltcube_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/41206/Model_4FGL_J0202.7+4204_daily_bin1549.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) = 1063.40612906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.1995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .95291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    10000.       1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .34872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1061.925     FROM MIGRAD    STATUS=CONVERGED    292 CALLS     3355 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.332        9.3320        .16818E-05   -.79273E-02
   2  Prefactor     47.903        1.4133       -.41915E-07   -.36412E-03
   3  Prefactor     .10026E-03    69.125        .22519E-05** at limit **
   4  norm          7.2005        5.4731       -.67368E-08   -.21860E-03
   5  Prefactor     .10002E-03    36.816        .90539E-06** at limit **
   6  Prefactor     .10004E-03    42.563       -.13986E-05** at limit **
   7  norm          .10000E-03    1.6727        .10281E-07** at limit **
   8  norm          2.9521        1.6948        .14135E-07    .12347E-03
   9  Prefactor     .10000E-03    21.464       -.42430E-07** at limit **
  10  Prefactor     .10000E-03    7.1659        .14022E-07** at limit **
  11  Prefactor     .12154E-03    110.47        .18180E-05** at limit **
  12  Prefactor     .10040E-03    78.192       -.85892E-06** at limit **
  13  norm          .10241E-03    20.908        .58600E-05** at limit **
  14  Prefactor     .20562E-03    217.65        .19482E-04** at limit **
  15  norm         10000.0        57.180       -.96114E-05** at limit **
  16  Prefactor    10000.0        2.0824       -.18629E-05** at limit **
  17  norm         10000.0        88.397        .66820E-05** at limit **
  18  norm          .10000E-03    8.2302       -.25670E-08** at limit **
  19  Prefactor    10000.0        66.621       -.97981E-05** at limit **
  20  norm         10000.0        9.1402       -.39001E-05** at limit **
  21  Prefactor    10000.0        .63409       -.88387E-06   -.14189E-03
  22  norm          .10000E-03    9.9341       -.28772E-07** at limit **
  23  Normalizat    .10000E-01    .78747E-01    .12366E-06** at limit **
  24  Prefactor     .34874        .95047E-01   -.27875E-06    .65311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3321
  Prefactor  = 47.9028
  Prefactor  = 0.000100255
  norm       = 7.20052
  Prefactor  = 0.000100021
  Prefactor  = 0.000100037
  norm       = 0.0001
  norm       = 2.95211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000121537
  Prefactor  = 0.000100404
  norm       = 0.000102414
  Prefactor  = 0.000205623
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.348744
 **********
 **   18 **HESSE 
 **********

 FCN=   1061.925     FROM HESSE     STATUS=OK           429 CALLS     3784 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.332        12.119        .31164E-02   -1.5065    
   2  Prefactor     47.903        39.303        .14485E-02   -1.4323    
   3  Prefactor     .10026E-03    72.773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2005        5.4831        .37374E-02   -1.5171    
   5  Prefactor     .10002E-03    36.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    42.784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9521        1.6940        .59089E-02   -1.5364    
   9  Prefactor     .10000E-03    21.463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12154E-03    216.12        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10040E-03    95.520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10241E-03    727.28        .10397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .20562E-03    630.27        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        637.36        .10025E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6692.9        .10526E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        157.68        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.2278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        522.18        .99496E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        825.02        .10589E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0       10000.0        .95437E-02    1.5694    
  22  norm          .10000E-03    9.9372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .78292E-01    .12801       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .34874        .96806E-01    .37507E-01   -1.1951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55517e-07
Minuit parameter uncertainties:
  1  12.1221
  2  39.3245
  3  0.0086311
  4  5.48348
  5  0.00176286
  6  0.00252491
  7  2.70405e-06
  8  1.69406
  9  4.39325e-05
  10  7.61531e-06
  11  0.136946
  12  0.0124379
  13  0.0848566
  14  0.52161
  15  0.0725381
  16  1.96239
  17  0.0416496
  18  1.38077e-06
  19  0.0747121
  20  0.103371
  21  21.9071
  22  1.84903e-05
  23  2.23729e-07
  24  0.0968508
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.004e-04  1.244e-02  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:  3.487e-01  9.685e-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.000e-02  2.237e-07  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.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/41206/likelihoodResults_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.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) = 1061.92531558
delta logL = -4.97820401506e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1061.92526674
delta logL = -9.41494135986e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20431E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3486       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34874       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1061.925     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10255E-03    39.088        .18142E-01** at limit **
   2  Index         2.2729        5.0235        .50000        .49160E-05
   3  Normalizat    .10000E-01    .76982E-04    .27974E-02** at limit **
   4  Prefactor     .34874        .27965E-02    .15553E-03    .13157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102549
  Index      = 2.27287
  Normalizat = 0.01
  Prefactor  = 0.348744
 **********
 **   18 **HESSE 
 **********

 FCN=   1061.925     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10255E-03    241.32        .28524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2729        8.3113        .50000       -.57690    
   3  Normalizat    .10000E-01    .48096E-03    .55948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34874        .69900E-02    .62214E-05   -1.1951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09009e-10
Minuit parameter uncertainties:
  1  0.0498083
  2  283.486
  3  4.27223e-09
  4  0.00699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41206': 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) = 1061.92526591
delta logL = -1.14662043416e-07

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.025e-04  4.981e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.273e+00  2.835e+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:  3.487e-01  6.990e-03  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.000e-02  4.272e-09  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/41206/cmap_HighResolution_640828801_641088001_4FGL_J0202.7+4204_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', job_status='DONE', photon_flux_upper_limit='3.71e-07', time_completed='2021-08-15 03:19:05.911590', job_id='41206', GAL2='0.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629022745.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='-1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1549' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 03:19:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 41206: <4FGL_J0202.7+4204_daily_bin1549> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1549> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 03:06:43 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 03:07:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 03:07:40 2021
Terminated at Sun Aug 15 03:19:08 2021
Results reported at Sun Aug 15 03:19:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1549 30.6862 42.0714 640828801 641088001 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 :                                   417.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            745 sec.

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

