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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1251
RA = 30.6862, Dec = 42.0714
tmin = 563587201, tmax = 563846401
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='39389', job_status='RUN', time_executed='2021-08-15 03:05:51.826221', time_epoch_executed='1629021951.83' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39389/ft1_4FGL_J0202.7+4204_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39389/ft1_4FGL_J0202.7+4204_daily_bin1251.fits outfile=/scratch/kocevski/39389/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1251.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=563587201.0 tmax=563846401.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 10.81
user 2.56
sys 6.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/39389/ltcube_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.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/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits
.....................!
real 25.89
user 15.02
sys 7.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/39389/ltcube_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.fits outfile=/scratch/kocevski/39389/expmap_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.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/39389/ltcube_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.fits
.....................!
real 207.08
user 186.27
sys 13.78

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/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits scfile=/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits outfile=/scratch/kocevski/39389/cmap_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.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 7.53
user 0.39
sys 6.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits scfile=/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits outfile=/scratch/kocevski/39389/cmap_HighResolution_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.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 7.76
user 0.38
sys 6.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/39389/ft2_4FGL_J0202.7+4204_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/39389/Model_4FGL_J0202.7+4204_daily_bin1251.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/39389/ft1_filtered_4FGL_J0202.7+4204_daily_bin1251.fits........!
real 41.43
user 13.12
sys 9.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    197.04       1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10917E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10334E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13268E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17836E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .16617E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38204E-03   1.0000         .10000E-03   10000.    
    15 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.022       1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9999.0       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1168       1.0000         .10000E-03   10000.    
    22 'norm      '    .12649E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .11960       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84128E-08   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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   98.96455     FROM MIGRAD    STATUS=FAILED       939 CALLS     4154 TOTAL
                     EDM=   .14E-03  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 36.7%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.973        29.593         .0000        .66833E-04
   2  Prefactor     30.402        134.10         .0000       -.16610E-04
   3  Prefactor     196.99        220.31         .0000       -.52076E-05
   4  norm          .10000E-03    7.7631         .0000    ** at limit **
   5  Prefactor     .10000E-03    130.91         .0000    ** at limit **
   6  Prefactor     .10000E-03    124.59         .0000    ** at limit **
   7  norm          .10000E-03    6.0424         .0000    ** at limit **
   8  norm          .10000E-03    5.0404         .0000    ** at limit **
   9  Prefactor     .10000E-03    204.79         .0000    ** at limit **
  10  Prefactor     .10001E-03    336.79         .0000    ** at limit **
  11  Prefactor     .10000E-03    722.28         .0000    ** at limit **
  12  Prefactor     .10168E-03    9930.2         .0000    ** at limit **
  13  norm          .10001E-03    357.08         .0000    ** at limit **
  14  Prefactor     .10000E-03    824.08         .0000    ** at limit **
  15  norm         10000.0        5705.0         .0000    ** at limit **
  16  Prefactor    10000.0        9989.3         .0000    ** at limit **
  17  norm         10000.0        7434.3         .0000    ** at limit **
  18  norm         10000.0        2294.2         .0000    ** at limit **
  19  Prefactor    10000.0        7932.8         .0000    ** at limit **
  20  norm         10000.0        8822.1         .0000    ** at limit **
  21  Prefactor     2405.6        8184.2         .0000       -.31265E-03
  22  norm          .10000E-03    60.962         .0000    ** at limit **
  23  Normalizat    .11985        .89635         .0000       -.38168E-05
  24  Prefactor     .67923E-11    .10937         .0000    ** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   98.96455     FROM SIMPLEX   STATUS=PROGRESS    1067 CALLS     5221 TOTAL
                     EDM=   .15E-04  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 36.7%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.973        29.593        .59114E-06   -1.4792    
   2  Prefactor     30.403        134.10        .65384E-06   -1.4605    
   3  Prefactor     196.99        220.31        .55345E-06   -1.2892    
   4  norm          .10000E-03    7.7631        .31187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    130.91        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.59        .41611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.0424        .40219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.0404        .13643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    204.79        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    336.79        .30448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    722.28        .12517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10168E-03    9930.2        .49791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    357.08        .29536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    824.08        .34081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        5705.0        .16158E-03    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9989.3        .14428E-03    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        7434.3        .37731E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        2294.2        .82271E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7932.8        .50515E-03    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        8822.1        .77165E-03    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2405.6        8184.2        .13487E-06   -.54554    
  22  norm          .10000E-03    60.962        .49553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .11985        .89635        .24570E-06   -1.3607    
  24  Prefactor     .67923E-11    .10937        .14597E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98.96400     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     5671 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.973        29.468        .12397E-05    .23428E-04
   2  Prefactor     30.403        133.40        .86106E-05   -.82064E-06
   3  Prefactor     196.99        218.33        .13816E-05   -.15128E-05
   4  norm          .10000E-03    7.6701       -.25767E-05** at limit **
   5  Prefactor     .10000E-03    124.45        .25564E-05** at limit **
   6  Prefactor     .10000E-03    118.76       -.27701E-05** at limit **
   7  norm          .10000E-03    6.0278        .86981E-08** at limit **
   8  norm          .10000E-03    5.0300       -.12689E-06** at limit **
   9  Prefactor     .10000E-03    190.58       -.97556E-05** at limit **
  10  Prefactor     .10001E-03    322.46        .45600E-05** at limit **
  11  Prefactor     .10004E-03    691.30        .11130E-04** at limit **
  12  Prefactor     .10000E-03    9793.7       -.37510E-06** at limit **
  13  norm          .10000E-03    339.07       -.22206E-04** at limit **
  14  Prefactor     .10009E-03    705.42        .31522E-04** at limit **
  15  norm         10000.0        6616.2       -.21270E-04** at limit **
  16  Prefactor    10000.0        6399.3       -.28573E-04    .51155E-05
  17  norm         10000.0        9920.8        .19244E-04** at limit **
  18  norm         10000.0        2294.3       -.81599E-05** at limit **
  19  Prefactor    10000.0        6852.7       -.34627E-03** at limit **
  20  norm         10000.0        9800.4        .12981E-03   -.12504E-04
  21  Prefactor    10000.0        8517.6       -.10478E-02** at limit **
  22  norm          .10000E-03    59.521        .38081E-05** at limit **
  23  Normalizat    .11983        .89456       -.30286E-04   -.65153E-06
  24  Prefactor     .16043E-11    .10819        .74718E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9733
  Prefactor  = 30.4028
  Prefactor  = 196.993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100093
  norm       = 10000
  Prefactor  = 9999.98
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.119828
  Prefactor  = 1.60427e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   98.96400     FROM HESSE     STATUS=OK           377 CALLS     6048 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.973        29.593        .11253E-04   -1.4792    
   2  Prefactor     30.403        134.10        .28984E-05   -1.4605    
   3  Prefactor     196.99        220.31        .28781E-04   -1.2892    
   4  norm          .10000E-03    7.7627        .54222E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    130.90        .22341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.59        .21789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.0424        .47886E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.0402        .43727E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    204.79        .27972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    336.79        .35950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    722.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9794.2        .40658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    357.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    824.09        .42569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        6619.9        .36713E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8164.7        .73123E-03    1.5736    
  17  norm         10000.0        9925.8        .41012E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        2294.6        .38852E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7451.0        .52616E-03    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        8880.0        .36400E-03    1.5694    
  21  Prefactor    10000.0        8610.9        .17774E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    60.962        .15225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .11983        .89654        .12238E-04   -1.3607    
  24  Prefactor     .16043E-11    .10937        .20223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34848e-08
Minuit parameter uncertainties:
  1  29.6133
  2  128.189
  3  221.238
  4  6.16607e-05
  5  0.000150837
  6  0.000184068
  7  2.6121e-07
  8  2.47858e-06
  9  7.04028e-05
  10  0.00267944
  11  0.010488
  12  0.0059787
  13  0.000644121
  14  0.0177392
  15  0.275619
  16  323.36
  17  0.0131705
  18  0.00216906
  19  11.1434
  20  70.5192
  21  27.0655
  22  0.00015246
  23  0.641173
  24  8.39272e-07
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  5.979e-03  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:  1.604e-12  8.393e-07  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.198e-01  6.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.290236695849

TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.60e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39389/likelihoodResults_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.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) = 98.9642661684
delta logL = -0.000269398606136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 98.9642661684
delta logL = -0.000269398605468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1732       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=   98.96427     FROM MIGRAD    STATUS=CONVERGED     22 CALLS       86 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1732        3.4704        .50000        .36497E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 2.17323
 **********
 **   18 **HESSE 
 **********

 FCN=   98.96427     FROM HESSE     STATUS=OK            11 CALLS       97 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1732        3.4704        .50000       -.60086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33201e-13
Minuit parameter uncertainties:
  1  4.12424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39389': 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) = 98.9642661684
delta logL = -0.000269398605383

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  9.631e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
275        Index:  2.173e+00  4.124e+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:  6.324e-09  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.180e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/39389/cmap_HighResolution_563587201_563846401_4FGL_J0202.7+4204_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.60e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-15 03:13:53.197419', job_id='39389', GAL2='0.00', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1629022433.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.69e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1251' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 03:13:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 39389: <4FGL_J0202.7+4204_daily_bin1251> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1251> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 03:00:32 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 03:00:33 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:00:33 2021
Terminated at Sun Aug 15 03:13:55 2021
Results reported at Sun Aug 15 03:13:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1251 30.6862 42.0714 563587201 563846401 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 :                                   530.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            803 sec.

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

