/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 128 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin48
RA = 334.238, Dec = 24.3575
tmin = 251769601, tmax = 252028801
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='226205', job_status='RUN', time_executed='2021-09-28 07:18:22.083886', time_epoch_executed='1632838702.08' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226205/ft1_4FGL_J2216.9+2421_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226205/ft1_4FGL_J2216.9+2421_daily_bin48.fits outfile=/scratch/kocevski/226205/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin48.fits ra=334.238 dec=24.3575 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.24
user 1.99
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.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/226205/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.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.85
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/226205/ltcube_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits outfile=/scratch/kocevski/226205/expmap_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.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/226205/ltcube_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits
.....................!
real 189.69
user 184.74
sys 4.02

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/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits scfile=/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits outfile=/scratch/kocevski/226205/cmap_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits scfile=/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits outfile=/scratch/kocevski/226205/cmap_HighResolution_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226205/Model_4FGL_J2216.9+2421_daily_bin48.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/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits.....................!
real 126.91
user 124.84
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits', '/scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits', expMap='/scratch/kocevski/226205/expmap_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits', expCube='/scratch/kocevski/226205/ltcube_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226205/Model_4FGL_J2216.9+2421_daily_bin48.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/226205/ft1_filtered_4FGL_J2216.9+2421_daily_bin48.fits
Spacecraft file(s): /scratch/kocevski/226205/ft2_4FGL_J2216.9+2421_daily_bin48.fits
Exposure map: /scratch/kocevski/226205/expmap_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits
Exposure cube: /scratch/kocevski/226205/ltcube_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226205/Model_4FGL_J2216.9+2421_daily_bin48.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) = 7668.60314839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18269E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.735       1.0000         .10000E-03   10000.    
     5 'norm      '    .16538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.091       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    137.95       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.596       1.0000         .10000E-03   10000.    
    12 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5295       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.741       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68327       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0387       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=   7668.588     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2133 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    182.17        .25985E-04** at limit **
   2  norm          .10001E-03    1.1754        .20691E-05** at limit **
   3  Prefactor     15.034        8.5739        .11616E-06    .12836E-03
   4  Prefactor     42.648        34.764       -.20230E-04   -.26158E-03
   5  norm          .16650        .60428       -.90517E-06   -.96014E-03
   6  Prefactor     .10000E-03    21.541        .12928E-05** at limit **
   7  norm          1.3362        1.0041        .13056E-06   -.85255E-03
   8  Prefactor     19.094        17.374       -.36264E-06    .23444E-04
   9  norm          1.9220        3.2597       -.46527E-06   -.46327E-03
  10  Prefactor     137.92        105.30       -.28122E-04    .21982E-03
  11  Prefactor     13.598        12.797       -.12934E-05   -.33897E-04
  12  norm          .10004E-03    .44832        .48631E-06** at limit **
  13  Prefactor     4.5235        16.913       -.13362E-04   -.26871E-04
  14  norm          5.4629        2.2449       -.98260E-07    .28888E-04
  15  Prefactor     4.6315        19.591       -.13954E-05   -.39996E-04
  16  Prefactor     .10000E-03    6.5178       -.67980E-08** at limit **
  17  Prefactor     1.5091        .31429       -.50002E-07    .30946E-03
  18  Prefactor     14.743        13.617       -.89376E-06   -.65154E-04
  19  Normalizat    .68310        .24459        .10237E-04   -.38279E-03
  20  Prefactor     1.0387        .10891        .52846E-07   -.66439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.00010001
  Prefactor  = 15.0342
  Prefactor  = 42.6476
  norm       = 0.166503
  Prefactor  = 0.0001
  norm       = 1.33617
  Prefactor  = 19.0937
  norm       = 1.922
  Prefactor  = 137.917
  Prefactor  = 13.5978
  norm       = 0.000100036
  Prefactor  = 4.52348
  norm       = 5.46295
  Prefactor  = 4.63153
  Prefactor  = 0.0001
  Prefactor  = 1.50915
  Prefactor  = 14.7425
  Normalizat = 0.683097
  Prefactor  = 1.03873
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.588     FROM HESSE     STATUS=OK           309 CALLS     2442 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    7.4123        .17448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.034        8.5434        .10330E-03   -1.4932    
   4  Prefactor     42.648        34.366        .61324E-04   -1.4401    
   5  norm          .16650        .98962        .12090E-02   -1.5626    
   6  Prefactor     .10000E-03    21.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3362        .99628        .72170E-04   -1.5477    
   8  Prefactor     19.094        17.359        .91666E-04   -1.4834    
   9  norm          1.9220        3.2318        .19947E-03   -1.5431    
  10  Prefactor     137.92        104.04        .17147E-03   -1.3354    
  11  Prefactor     13.598        12.799        .10863E-03   -1.4970    
  12  norm          .10004E-03    .76833        .20857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5235        16.972        .18916E-03   -1.5283    
  14  norm          5.4629        2.2441        .81723E-04   -1.5240    
  15  Prefactor     4.6315        19.597        .18701E-03   -1.5278    
  16  Prefactor     .10000E-03    6.5432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5091        .31457        .21406E-04   -1.5462    
  18  Prefactor     14.743        13.599        .10432E-03   -1.4940    
  19  Normalizat    .68310        .26835        .42667E-03   -1.0456    
  20  Prefactor     1.0387        .12294        .16839E-03   -.91450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65928e-09
Minuit parameter uncertainties:
  1  0.0016503
  2  0.000533664
  3  8.54406
  4  34.3822
  5  0.811627
  6  9.2673e-06
  7  0.996293
  8  17.3637
  9  3.23206
  10  104.176
  11  12.8016
  12  0.000334784
  13  16.9899
  14  2.24414
  15  19.0644
  16  2.46225e-05
  17  0.314572
  18  13.6019
  19  0.268869
  20  0.122973
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.909e+01  1.736e+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.039e+00  1.230e-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:  6.831e-01  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.60e-05

TS (Fixed Index): 2.08
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226205/likelihoodResults_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.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) = 7668.5865579
delta logL = 0.00130373989941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7668.58603468
delta logL = 0.00182696039428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2323       1.0000          .0000       10.000    
     3 'Normalizat'    .68674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0377       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7668.586     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      273 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.652        20.608        .90350E-04   -.46809E-04
   2  Index         2.2324        .89397        .10381E-01    .32731E-03
   3  Normalizat    .68666        .25857        .42564E-03    .18777E-04
   4  Prefactor     1.0378        .12164        .16846E-03    .63773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.652
  Index      = 2.23236
  Normalizat = 0.686658
  Prefactor  = 1.03776
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.586     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.652        19.848        .36140E-05   -1.4821    
   2  Index         2.2324        .85977        .20762E-02   -.58659    
   3  Normalizat    .68666        .25801        .17025E-04   -1.0442    
   4  Prefactor     1.0378        .12155        .67386E-05   -.91481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05584e-11
Minuit parameter uncertainties:
  1  19.8551
  2  0.865996
  3  0.258464
  4  0.121585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226205': 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) = 7668.58603462
delta logL = 0.00182701763879

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.965e+01  1.986e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.232e+00  8.660e-01  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.038e+00  1.216e-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:  6.867e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.23 +/- 0.87
Photon Flux (Free Index): 4.27e-08 +/- 5.87e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.87e-05

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/226205/cmap_HighResolution_251769601_252028801_4FGL_J2216.9+2421_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='1.81e-05', photon_flux_error='4.12e-08', dlogl='1.83e-03', energy_flux='1.76e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-28 07:30:05.878348', photon_index_error2='0.87', photon_index2='2.23', ts='2.08', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.87e-05', EG='0.68', time_epoch_completed='1632839405.88', return_code='0', job_id='226205', GAL2='1.04', EG2='0.69', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.87e-08', ts2='2.07', photon_index='2.28' WHERE bin_id='48' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:30:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 226205: <4FGL_J2216.9+2421_daily_bin48> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin48> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:16:03 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:16:06 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:16:06 2021
Terminated at Tue Sep 28 07:30:08 2021
Results reported at Tue Sep 28 07:30:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin48 334.238 24.3575 251769601 252028801 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            845 sec.

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

