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


Performing analysis on: 4FGL_J2202.7+4216_daily_bin808
RA = 330.695, Dec = 42.2821
tmin = 448761601, tmax = 449020801
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='138383', job_status='RUN', time_executed='2021-09-28 02:25:36.120860', time_epoch_executed='1632821136.12' WHERE source_name='4FGL J2202.7+4216' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138383/ft1_4FGL_J2202.7+4216_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138383/ft1_4FGL_J2202.7+4216_daily_bin808.fits outfile=/scratch/kocevski/138383/ft1_filteredMKT_4FGL_J2202.7+4216_daily_bin808.fits ra=330.695 dec=42.2821 rad=12.0 tmin=448761601.0 tmax=449020801.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.80
user 5.57
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.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/138383/ft1_filteredMKT_4FGL_J2202.7+4216_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/138383/ltcube_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.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/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits
.....................!
real 11.56
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/138383/ltcube_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits outfile=/scratch/kocevski/138383/expmap_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.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/138383/ltcube_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits
.....................!
real 190.17
user 185.12
sys 4.70

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 Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 189 point sources and 7 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 J2202.7+4216 @ 330.695 42.2821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits outfile=/scratch/kocevski/138383/cmap_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.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=330.695 yref=42.2821 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits outfile=/scratch/kocevski/138383/cmap_HighResolution_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.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=330.695 yref=42.2821 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138383/Model_4FGL_J2202.7+4216_daily_bin808.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits.....................!
real 159.75
user 158.25
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits', '/scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits', expMap='/scratch/kocevski/138383/expmap_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits', expCube='/scratch/kocevski/138383/ltcube_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138383/Model_4FGL_J2202.7+4216_daily_bin808.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2202.7+4216'

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  2.143e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/138383/ft1_filtered_4FGL_J2202.7+4216_daily_bin808.fits
Spacecraft file(s): /scratch/kocevski/138383/ft2_4FGL_J2202.7+4216_daily_bin808.fits
Exposure map: /scratch/kocevski/138383/expmap_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits
Exposure cube: /scratch/kocevski/138383/ltcube_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138383/Model_4FGL_J2202.7+4216_daily_bin808.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) = 7155.85157998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3219       1.0000         .10000E-03   10000.    
     5 'norm      '    .45399       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.308       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .88459       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .89460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7155.846     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1302 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8700        16.894       -.54235E-06    .46295E-05
   2  Prefactor     .10000E-03    3.4489        .62630E-07** at limit **
   3  Prefactor     .10000E-03    3.6741        .15027E-07** at limit **
   4  norm          1.3221        1.7725        .82348E-06    .11604E-02
   5  norm          .44723        18.124       -.96865E-05    .19192E-03
   6  norm          4.9525        2.4253        .49994E-07    .35593E-04
   7  Prefactor     .10000E-03    21.098        .34332E-05** at limit **
   8  Prefactor     .10000E-03    16.264       -.23806E-05** at limit **
   9  Prefactor     .10000E-03    119.55        .38278E-05** at limit **
  10  Prefactor     .10000E-03    7.8361        .85425E-07** at limit **
  11  norm          13.307        10.037       -.33439E-06    .33518E-04
  12  Prefactor     13.652        53.829        .10645E-04    .48127E-04
  13  Prefactor     .10000E-03    31.796       -.32487E-05** at limit **
  14  Normalizat    .88449        .39854       -.26915E-05   -.26718E-04
  15  Prefactor     .89462        .59525E-01   -.13620E-06   -.31761E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.86998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32209
  norm       = 0.447231
  norm       = 4.95251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3065
  Prefactor  = 13.6522
  Prefactor  = 0.0001
  Normalizat = 0.884486
  Prefactor  = 0.894616
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.846     FROM HESSE     STATUS=OK           182 CALLS     1484 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8700        16.864        .13457E-03   -1.5112    
   2  Prefactor     .10000E-03    3.4592        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6778        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3221        1.7886        .12290E-03   -1.5478    
   5  norm          .44723        19.729        .37053E-02   -1.5574    
   6  norm          4.9525        2.4214        .88280E-04   -1.5263    
   7  Prefactor     .10000E-03    21.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    119.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.307        10.021        .10980E-03   -1.4978    
  12  Prefactor     13.652        54.643        .10838E-03   -1.4969    
  13  Prefactor     .10000E-03    32.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .88449        .39430        .79864E-03   -.97007    
  15  Prefactor     .89462        .60115E-01    .12454E-03   -.96329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22888e-09
Minuit parameter uncertainties:
  1  16.873
  2  9.32677e-06
  3  3.98949e-07
  4  1.78871
  5  5.94233
  6  2.42147
  7  0.000123421
  8  5.41931e-05
  9  0.000302673
  10  1.24862e-05
  11  10.0219
  12  54.7132
  13  0.000217714
  14  0.395591
  15  0.0601198
Done.

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

Extracting fit parameters...

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  4.953e+00  2.421e+00  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  2.143e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.946e-01  6.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.845e-01  3.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.71
Ra Dec: 330.695 42.282
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.25e-07 +/- 1.59e-07
Energy Flux (Fixed Index): 1.49e-04 +/- 7.27e-05

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) = 7155.26139071
delta logL = 0.584843172518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7155.22778318
delta logL = 0.618450706209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6786       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6339       1.0000          .0000       5.0000    
     3 'Normalizat'    .94725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7155.228     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6783        2.5292        .46513E-02    .78468E-03
   2  alpha         1.6338        .35155        .31273       -.39048E-04
   3  Normalizat    .94725        .37565        .17415        .30503E-04
   4  Prefactor     .89230        .58770E-01    .28222E-01   -.14088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67826
  alpha      = 1.6338
  Normalizat = 0.947248
  Prefactor  = 0.892303
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.228     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6783        2.8241        .47168E-03   -1.5275    
   2  alpha         1.6338        .44575        .12106E-01   -.35381    
   3  Normalizat    .94725        .37828        .77562E-03   -.94819    
   4  Prefactor     .89230        .59585E-01    .12472E-03   -.96411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60011e-12
Minuit parameter uncertainties:
  1  2.82417
  2  0.448483
  3  0.379354
  4  0.0595893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138383': 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) = 7155.22778315
delta logL = 0.61845072942

Extracting fit parameters...

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  4.678e+00  2.824e+00  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  1.634e+00  4.485e-01  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.923e-01  5.959e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  9.472e-01  3.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.89
Ra Dec: 330.695 42.282
Photon Index (Free Index): 1.63 +/- 0.45
Photon Flux (Free Index): 1.91e-07 +/- 1.49e-07
Energy Flux (Free Index): 2.60e-04 +/- 2.12e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/138383/cmap_HighResolution_448761601_449020801_4FGL_J2202.7+4216_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-07', energy_flux2='2.60e-04', photon_flux_error='1.59e-07', dlogl='6.18e-01', energy_flux='1.49e-04', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-09-28 02:36:27.105391', photon_index_error2='0.45', photon_index2='1.63', ts='11.71', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.12e-04', EG='0.88', time_epoch_completed='1632821787.11', return_code='0', job_id='138383', GAL2='0.89', EG2='0.95', return_code2='0', energy_flux_error='7.27e-05', photon_flux_error2='1.49e-07', ts2='12.89', photon_index='2.14' WHERE bin_id='808' AND source_name='4FGL J2202.7+4216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 02:36:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 138383: <4FGL_J2202.7+4216_daily_bin808> in cluster <slac> Done

Job <4FGL_J2202.7+4216_daily_bin808> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:25:20 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:25:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:25:22 2021
Terminated at Tue Sep 28 02:36:27 2021
Results reported at Tue Sep 28 02:36:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2202.7+4216_daily_bin808 330.695 42.2821 448761601 449020801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2202.7+4216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             375.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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

