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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1494
RA = 30.6862, Dec = 42.0714
tmin = 626572801, tmax = 626832001
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='41123', job_status='RUN', time_executed='2021-08-15 03:09:25.463947', time_epoch_executed='1629022165.46' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41123

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41123/ft1_4FGL_J0202.7+4204_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41123/ft1_4FGL_J0202.7+4204_daily_bin1494.fits outfile=/scratch/kocevski/41123/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1494.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=626572801.0 tmax=626832001.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.58
user 2.75
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/41123/ltcube_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.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/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits
.....................!
real 17.70
user 15.04
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/41123/ltcube_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.fits outfile=/scratch/kocevski/41123/expmap_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.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/41123/ltcube_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.fits
.....................!
real 195.46
user 186.33
sys 6.48

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/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits scfile=/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits outfile=/scratch/kocevski/41123/cmap_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.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 4.94
user 0.39
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits scfile=/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits outfile=/scratch/kocevski/41123/cmap_HighResolution_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.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.13
user 0.39
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/41123/ft2_4FGL_J0202.7+4204_daily_bin1494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41123/Model_4FGL_J0202.7+4204_daily_bin1494.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/41123/ft1_filtered_4FGL_J0202.7+4204_daily_bin1494.fits......................!
real 50.57
user 30.68
sys 2.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.411       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    132.66       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.520       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10962E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .56114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8849       1.0000         .10000E-03   10000.    
    20 'norm      '    .10936E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13176       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3779       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1028       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90885       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=   1749.141     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     3766 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.041        25.184       -.23279E-06    .64863E-05
   2  Prefactor     .10000E-03    23.607       -.63319E-07** at limit **
   3  Prefactor     54.357        189.94        .57903E-06   -.77215E-06
   4  norm          7.9565        6.5444       -.49603E-07    .47275E-05
   5  Prefactor     .10000E-03    22.600       -.12112E-06** at limit **
   6  Prefactor     .10000E-03    37.655        .95904E-07** at limit **
   7  norm          .10000E-03    1.3697       -.18382E-07** at limit **
   8  norm          2.0056        1.5770       -.15877E-07    .30454E-04
   9  Prefactor     .10000E-03    21.046       -.22898E-06** at limit **
  10  Prefactor     .10000E-03    15.526       -.58612E-06** at limit **
  11  Prefactor     .10000E-03    62.343        .12153E-06** at limit **
  12  Prefactor     132.62        287.56        .69334E-05    .29685E-04
  13  norm          .10000E-03    18.215        .93601E-07** at limit **
  14  Prefactor     .10000E-03    24.880        .33447E-08** at limit **
  15  norm          36.513        44.734        .46480E-05    .52963E-03
  16  Prefactor     .10000E-03    55.536       -.32213E-06** at limit **
  17  norm          .10022E-03    7.0604       -.32550E-05** at limit **
  18  norm          .56084        1.4610       -.11391E-05   -.39311E-03
  19  Prefactor     5.9345        236.98       -.10679E-04    .27122E-04
  20  norm          .10000E-03    44.999       -.15960E-05** at limit **
  21  Prefactor     .10000E-03    9631.6       -.96467E-04** at limit **
  22  norm          1.3769        1917.2        .11456E-05    .15008E-05
  23  Normalizat    1.1028        .56255        .14570E-05    .67625E-04
  24  Prefactor     .90887        .19953        .18660E-07    .16828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0405
  Prefactor  = 0.0001
  Prefactor  = 54.3574
  norm       = 7.95648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.00563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 132.617
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 36.5127
  Prefactor  = 0.0001
  norm       = 0.000100225
  norm       = 0.560844
  Prefactor  = 5.93448
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37687
  Normalizat = 1.1028
  Prefactor  = 0.908874
 **********
 **   18 **HESSE 
 **********

 FCN=   1749.141     FROM HESSE     STATUS=OK           399 CALLS     4165 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.041        25.208        .89475E-04   -1.4812    
   2  Prefactor     .10000E-03    23.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.357        190.43        .54378E-04   -1.4232    
   4  norm          7.9565        6.5518        .93147E-04   -1.5144    
   5  Prefactor     .10000E-03    22.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3714        .47803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0056        1.5753        .44554E-04   -1.5425    
   9  Prefactor     .10000E-03    21.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.616        .16092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     132.62        287.01        .34962E-04   -1.3400    
  13  norm          .10000E-03    18.216        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.513        43.662        .66318E-04   -1.4499    
  16  Prefactor     .10000E-03    55.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10022E-03    26.405        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .56084        1.3579        .76667E-03   -1.5558    
  19  Prefactor     5.9345        255.91        .16554E-03   -1.5221    
  20  norm          .10000E-03    44.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    637.48        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3769        1978.2        .37096E-03   -1.5473    
  23  Normalizat    1.1028        .63263        .43685E-03   -.89662    
  24  Prefactor     .90887        .22581        .17464E-03   -.95832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32372e-09
Minuit parameter uncertainties:
  1  25.2213
  2  2.63434e-06
  3  192.626
  4  6.55234
  5  2.45963e-06
  6  2.16555e-05
  7  8.60091e-07
  8  1.57529
  9  1.23637e-06
  10  3.64714e-05
  11  2.20725e-05
  12  290.106
  13  7.69567e-06
  14  4.8856e-06
  15  43.7006
  16  1.43636e-05
  17  0.00487672
  18  1.35793
  19  78.3003
  20  0.00015934
  21  0.000988362
  22  108.173
  23  0.637053
  24  0.226039
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.326e+02  2.901e+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:  9.089e-01  2.260e-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.103e+00  6.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/41123/likelihoodResults_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.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) = 1749.14026128
delta logL = 0.00121791608831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1749.13961486
delta logL = 0.0018643389426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.45       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2422       1.0000          .0000       10.000    
     3 'Normalizat'    1.0986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90986       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=   1749.140     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      228 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.45        9308.7        .91297E-03    .10666E-03
   2  Index         2.2422        5.1287        .12190        .17592E-03
   3  Normalizat    1.0987        .24450        .98745E-01    .70464E-06
   4  Prefactor     .90981        .84837E-01    .45131E-01   -.10812E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.451
  Index      = 2.2422
  Normalizat = 1.09871
  Prefactor  = 0.909807
 **********
 **   18 **HESSE 
 **********

 FCN=   1749.140     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.45        343.13        .36519E-04   -1.3499    
   2  Index         2.2422        1.2178        .70622E-02   -.58423    
   3  Normalizat    1.0987        .59321        .43755E-03   -.89793    
   4  Prefactor     .90981        .21740        .17455E-03   -.95799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06453e-09
Minuit parameter uncertainties:
  1  349.001
  2  1.23577
  3  0.596858
  4  0.217604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41123': 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) = 1749.13961482
delta logL = 0.00186437772231

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.215e+02  3.490e+02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.242e+00  1.236e+00  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:  9.098e-01  2.176e-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.099e+00  5.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/41123/cmap_HighResolution_626572801_626832001_4FGL_J0202.7+4204_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-02', job_status='DONE', photon_flux_upper_limit='5.38e-07', time_completed='2021-08-15 03:18:18.109720', job_id='41123', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629022698.11', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.86e-03', ts2='0.27', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1494' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 03:18:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 41123: <4FGL_J0202.7+4204_daily_bin1494> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1494> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 03:06:37 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 03:06:50 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:06:50 2021
Terminated at Sun Aug 15 03:18:19 2021
Results reported at Sun Aug 15 03:18:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1494 30.6862 42.0714 626572801 626832001 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 :                                   473.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            702 sec.

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

