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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1127
RA = 334.238, Dec = 24.3575
tmin = 531446401, tmax = 531705601
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='231415', job_status='RUN', time_executed='2021-09-28 07:35:39.008048', time_epoch_executed='1632839739.01' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231415/ft1_4FGL_J2216.9+2421_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231415/ft1_4FGL_J2216.9+2421_daily_bin1127.fits outfile=/scratch/kocevski/231415/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1127.fits ra=334.238 dec=24.3575 rad=12.0 tmin=531446401.0 tmax=531705601.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.63
user 3.38
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.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/231415/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1127.fits evtable="EVENTS" outfile="/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/231415/ltcube_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.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/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits
.....................!
real 12.13
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/231415/ltcube_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits outfile=/scratch/kocevski/231415/expmap_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.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/231415/ltcube_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits
.....................!
real 190.91
user 185.25
sys 5.27

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 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.
Added 159 point sources and 1 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 J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits outfile=/scratch/kocevski/231415/cmap_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.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=334.238 yref=24.3575 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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits outfile=/scratch/kocevski/231415/cmap_HighResolution_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.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=334.238 yref=24.3575 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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231415/Model_4FGL_J2216.9+2421_daily_bin1127.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits....................!
real 151.17
user 149.36
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits', '/scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits', expMap='/scratch/kocevski/231415/expmap_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits', expCube='/scratch/kocevski/231415/ltcube_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231415/Model_4FGL_J2216.9+2421_daily_bin1127.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231415/ft1_filtered_4FGL_J2216.9+2421_daily_bin1127.fits
Spacecraft file(s): /scratch/kocevski/231415/ft2_4FGL_J2216.9+2421_daily_bin1127.fits
Exposure map: /scratch/kocevski/231415/expmap_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits
Exposure cube: /scratch/kocevski/231415/ltcube_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231415/Model_4FGL_J2216.9+2421_daily_bin1127.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) = 9206.18860795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.853       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .95375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1184       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.074       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3714       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99807       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9206.144     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2050 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.849        79.569       -.33006E-05   -.65761E-04
   2  norm          2.6321        2.8950        .87058E-07   -.30945E-03
   3  Prefactor     7.6755        6.0455        .11148E-06   -.37713E-03
   4  Prefactor     .10000E-03    10.142        .26871E-06** at limit **
   5  norm          .95361        .74080        .12078E-07   -.26240E-03
   6  Prefactor     .10001E-03    86.801       -.11907E-04** at limit **
   7  norm          .46082        .94194        .76617E-07   -.66001E-03
   8  Prefactor     4.1177        6.7961        .15897E-05   -.10654E-02
   9  norm          1.9557        4.5034        .65557E-07   -.35200E-03
  10  Prefactor     7.3504        74.000        .14840E-05    .65976E-05
  11  Prefactor     13.074        11.522        .34873E-06    .63462E-04
  12  norm          1.2422        1.0474       -.76508E-08   -.11437E-02
  13  Prefactor     .10001E-03    83.555        .13656E-04** at limit **
  14  norm          1.8652        1.2576       -.84248E-08    .66605E-04
  15  Prefactor     11.941        21.289       -.35611E-06   -.22413E-04
  16  Prefactor     .10000E-03    7.0849        .85715E-07** at limit **
  17  Prefactor     .97560        .27550        .34678E-08   -.19206E-03
  18  Prefactor     7.3718        7.0632       -.12724E-06   -.48366E-04
  19  Normalizat    .99808        .22782       -.56478E-06   -.53893E-04
  20  Prefactor     1.0846        .10554        .80795E-07   -.13419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.8486
  norm       = 2.63206
  Prefactor  = 7.6755
  Prefactor  = 0.0001
  norm       = 0.953609
  Prefactor  = 0.000100013
  norm       = 0.460822
  Prefactor  = 4.11771
  norm       = 1.95573
  Prefactor  = 7.3504
  Prefactor  = 13.0736
  norm       = 1.24225
  Prefactor  = 0.00010001
  norm       = 1.86515
  Prefactor  = 11.9406
  Prefactor  = 0.0001
  Prefactor  = 0.975595
  Prefactor  = 7.37175
  Normalizat = 0.99808
  Prefactor  = 1.08463
 **********
 **   18 **HESSE 
 **********

 FCN=   9206.144     FROM HESSE     STATUS=OK           303 CALLS     2353 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.849        79.836        .24728E-03   -1.4083    
   2  norm          2.6321        2.8920        .16209E-03   -1.5383    
   3  Prefactor     7.6755        6.0967        .72374E-03   -1.5154    
   4  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95361        .70767        .69759E-03   -1.5513    
   6  Prefactor     .10001E-03    89.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .46082        .91651        .12710E-03   -1.5572    
   8  Prefactor     4.1177        10.015        .99320E-03   -1.5302    
   9  norm          1.9557        4.5312        .29674E-03   -1.5428    
  10  Prefactor     7.3504        74.011        .14795E-03   -1.5166    
  11  Prefactor     13.074        11.597        .11078E-03   -1.4985    
  12  norm          1.2422        1.0313        .86219E-04   -1.5485    
  13  Prefactor     .10001E-03    86.725        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8652        1.2635        .86114E-04   -1.5435    
  15  Prefactor     11.941        21.323        .11591E-03   -1.5017    
  16  Prefactor     .10000E-03    7.1475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .97560        .27504        .25566E-04   -1.5510    
  18  Prefactor     7.3718        7.0671        .14772E-03   -1.5165    
  19  Normalizat    .99808        .26246        .38685E-03   -.93095    
  20  Prefactor     1.0846        .12288        .17813E-03   -.89959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50478e-09
Minuit parameter uncertainties:
  1  79.966
  2  2.89216
  3  6.09719
  4  2.05857e-05
  5  0.707676
  6  0.00216589
  7  0.91654
  8  10.0195
  9  4.53195
  10  46.7229
  11  11.5986
  12  1.03131
  13  0.00188603
  14  1.26353
  15  21.3361
  16  4.41332e-06
  17  0.275041
  18  7.06789
  19  0.262802
  20  0.122909
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.118e+00  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.085e+00  1.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.981e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231415/likelihoodResults_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.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) = 9206.14329812
delta logL = 0.00062913489819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9206.14316608
delta logL = 0.000761178245739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9560       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3353       1.0000          .0000       10.000    
     3 'Normalizat'    .99747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9206.143     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      204 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9372        16.158         .0000        .37650E-02
   2  Index         2.3303        1.6805         .0000        .77898E-03
   3  Normalizat    .99765        .21727         .0000        .28795E-05
   4  Prefactor     1.0847        .10421         .0000        .38433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93717
  Index      = 2.33031
  Normalizat = 0.997646
  Prefactor  = 1.08475
 **********
 **   18 **HESSE 
 **********

 FCN=   9206.143     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9372        11.185        .10140E-02   -1.5311    
   2  Index         2.3303        1.2011        .48322E-02   -.56325    
   3  Normalizat    .99765        .25054        .38692E-03   -.93109    
   4  Prefactor     1.0847        .12041        .17812E-03   -.89956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48707e-11
Minuit parameter uncertainties:
  1  11.1907
  2  1.21789
  3  0.250839
  4  0.120445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231415': 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) = 9206.14314791
delta logL = 0.000779345911724

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.937e+00  1.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.330e+00  1.218e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.085e+00  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.976e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 334.238 24.358

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/231415/cmap_HighResolution_531446401_531705601_4FGL_J2216.9+2421_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-28 07:48:45.080596', job_id='231415', GAL2='1.08', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632840525.08', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.79e-04', ts2='0.21', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1127' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:48:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 231415: <4FGL_J2216.9+2421_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:35:23 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:35:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:35:25 2021
Terminated at Tue Sep 28 07:48:45 2021
Results reported at Tue Sep 28 07:48:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1127 334.238 24.3575 531446401 531705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2216.9+2421 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

