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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1603
RA = 30.6862, Dec = 42.0714
tmin = 654825601, tmax = 655084801
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='912741', job_status='RUN', time_executed='2021-10-05 00:03:35.451196', time_epoch_executed='1633417415.45' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912741/ft1_4FGL_J0202.7+4204_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912741/ft1_4FGL_J0202.7+4204_daily_bin1603.fits outfile=/scratch/kocevski/912741/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1603.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=654825601.0 tmax=655084801.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 3.00
user 2.78
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.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/912741/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/912741/ltcube_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.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/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits
.....................!
real 12.49
user 12.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/912741/ltcube_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.fits outfile=/scratch/kocevski/912741/expmap_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.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/912741/ltcube_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.fits
.....................!
real 191.04
user 185.51
sys 5.14

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/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits outfile=/scratch/kocevski/912741/cmap_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.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 0.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits outfile=/scratch/kocevski/912741/cmap_HighResolution_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.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 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912741/ft2_4FGL_J0202.7+4204_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912741/Model_4FGL_J0202.7+4204_daily_bin1603.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/912741/ft1_filtered_4FGL_J0202.7+4204_daily_bin1603.fits.........................!
real 22.96
user 21.73
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    .43685E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    782.06       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11596E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18604E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0138       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.769       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5986       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .37110       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=   828.9311     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     3078 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9325.9        .12015E-04** at limit **
   2  Prefactor    10000.0        6855.9        .72768E-04** at limit **
   3  Prefactor    10000.0        5033.5        .72128E-04** at limit **
   4  norm         10000.0        6253.3        .25427E-04** at limit **
   5  Prefactor    10000.0        7092.0        .27239E-04** at limit **
   6  Prefactor    10000.0        9360.8        .49934E-05** at limit **
   7  norm          .10003E-03    1548.1       -.33024E-05** at limit **
   8  norm          782.25        510.29        .22895E-05    .25546E-04
   9  Prefactor     .10008E-03    472.69       -.56859E-05** at limit **
  10  Prefactor     .10000E-03    32.473        .50835E-07** at limit **
  11  Prefactor     .10002E-03    225.74        .29691E-05** at limit **
  12  Prefactor     .10000E-03    289.22        .11207E-05** at limit **
  13  norm          .10000E-03    32.148       -.65884E-07** at limit **
  14  Prefactor     .10000E-03    52.051        .11300E-06** at limit **
  15  norm          .10000E-03    20.570       -.15531E-07** at limit **
  16  Prefactor     .10000E-03    30.833        .94699E-07** at limit **
  17  norm          3.0134        2.8819       -.86741E-07   -.10503E-03
  18  norm          .10000E-03    .35734       -.50859E-07** at limit **
  19  Prefactor     .10000E-03    9.7599       -.26135E-06** at limit **
  20  norm          1.7599        27.954        .32935E-04   -.15975E-03
  21  Prefactor     .10000E-03    113.56       -.11179E-05** at limit **
  22  norm          10.767        9.8569        .40941E-06   -.61288E-04
  23  Normalizat    1.5983        .79590       -.82800E-05   -.23993E-04
  24  Prefactor     .37117        .21800       -.10279E-05   -.93149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100033
  norm       = 782.252
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75987
  Prefactor  = 0.000100002
  norm       = 10.7673
  Normalizat = 1.59831
  Prefactor  = 0.371169
 **********
 **   18 **HESSE 
 **********

 FCN=   828.9311     FROM HESSE     STATUS=OK           377 CALLS     3455 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9326.0        .20462E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6841.6        .18535E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        5031.5        .18528E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        6253.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7091.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        9360.9        .21275E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10003E-03    1548.0        .21223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          782.25        510.97        .74489E-04   -1.0039    
   9  Prefactor     .10008E-03    472.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.474        .16036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    225.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    289.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    32.148        .15955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.632        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.835        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0134        2.8791        .46029E-04   -1.5361    
  18  norm          .10000E-03    .35748        .16813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7636        .87879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7599        27.952        .14544E-02   -1.5443    
  21  Prefactor     .10000E-03    113.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.767        9.8748        .81402E-04   -1.5052    
  23  Normalizat    1.5983        .91855        .35517E-03   -.75052    
  24  Prefactor     .37117        .25209        .18788E-03   -1.1831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90546e-09
Minuit parameter uncertainties:
  1  0.23627
  2  2.76295
  3  2.32544
  4  0.134725
  5  0.200472
  6  0.0640685
  7  0.0145805
  8  514.102
  9  0.0126946
  10  2.99035e-05
  11  0.00447349
  12  0.00176246
  13  3.81876e-05
  14  7.80639e-05
  15  5.27011e-07
  16  5.28028e-05
  17  2.8792
  18  1.8111e-06
  19  4.2584e-05
  20  14.0348
  21  0.000988059
  22  9.87634
  23  0.928518
  24  0.252843
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  1.762e-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:  3.712e-01  2.528e-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.598e+00  9.285e-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: 1.08e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912741/likelihoodResults_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.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) = 828.931150981
delta logL = -1.63199133567e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 828.931134873
delta logL = -2.11437622966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15631E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4247       1.0000          .0000       10.000    
     3 'Normalizat'    1.5983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37116       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=   828.9311     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    253.41        .90712E-02** at limit **
   2  Index         2.3885        8.8003        .50000        .14349E-05
   3  Normalizat    1.5983        .22354E-01    .80249E-01   -.38352E-05
   4  Prefactor     .37117        .61196E-02    .37835E-01    .19596E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38853
  Normalizat = 1.5983
  Prefactor  = 0.371171
 **********
 **   18 **HESSE 
 **********

 FCN=   828.9311     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1220.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3885        7.9299        .50000       -.54954    
   3  Normalizat    1.5983        .50058E-01    .35517E-03   -.75052    
   4  Prefactor     .37117        .13712E-01    .18788E-03   -1.1831    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.51478e-08
Minuit parameter uncertainties:
  1  0.000465843
  2  817.779
  3  0.0500592
  4  0.0137118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912741': 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) = 828.931134719
delta logL = -5.82534767091e-08

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  4.658e-04  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.389e+00  8.178e+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.712e-01  1.371e-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.598e+00  5.006e-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/912741/cmap_HighResolution_654825601_655084801_4FGL_J0202.7+4204_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-02', job_status='DONE', photon_flux_upper_limit='1.08e-06', time_completed='2021-10-05 00:09:45.426610', job_id='912741', GAL2='0.37', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1633417785.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='-5.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1603' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 912741: <4FGL_J0202.7+4204_daily_bin1603> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:00:35 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:00:36 2021
Terminated at Tue Oct  5 00:09:45 2021
Results reported at Tue Oct  5 00:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1603 30.6862 42.0714 654825601 655084801 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 :                                   372.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            550 sec.

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

