/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 29 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin362
RA = 334.238, Dec = 24.3575
tmin = 333158401, tmax = 333417601
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='227650', job_status='RUN', time_executed='2021-09-28 07:21:37.487023', time_epoch_executed='1632838897.49' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227650

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227650/ft1_4FGL_J2216.9+2421_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227650/ft1_4FGL_J2216.9+2421_daily_bin362.fits outfile=/scratch/kocevski/227650/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin362.fits ra=334.238 dec=24.3575 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.81
user 5.82
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227650/ft1_filtered_4FGL_J2216.9+2421_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/227650/ltcube_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.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/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits
.....................!
real 11.51
user 11.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227650/ft1_filtered_4FGL_J2216.9+2421_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/227650/ltcube_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.fits outfile=/scratch/kocevski/227650/expmap_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.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/227650/ltcube_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.fits
.....................!
real 191.87
user 186.69
sys 4.81

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/227650/ft1_filtered_4FGL_J2216.9+2421_daily_bin362.fits scfile=/scratch/kocevski/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits outfile=/scratch/kocevski/227650/cmap_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227650/ft1_filtered_4FGL_J2216.9+2421_daily_bin362.fits scfile=/scratch/kocevski/227650/ft2_4FGL_J2216.9+2421_daily_bin362.fits outfile=/scratch/kocevski/227650/cmap_HighResolution_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.665       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
     7 'norm      '    .94666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.011       1.0000         .10000E-03   10000.    
     9 'norm      '    .49413E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .46987       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2846       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=   9057.807     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2060 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.590        120.32       -.76687E-04    .66851E-06
   2  norm          5.9752        3.5196        .12336E-05   -.33068E-03
   3  Prefactor     .10000E-03    4.0141       -.34980E-07** at limit **
   4  Prefactor     .10000E-03    40.311        .19774E-05** at limit **
   5  norm          2.1062        1.0181       -.10496E-06   -.28092E-03
   6  Prefactor     11.023        32.246       -.17073E-04   -.85228E-05
   7  norm          .94688        1.1939       -.28782E-06   -.20752E-02
   8  Prefactor     38.014        20.411        .10950E-05    .13343E-04
   9  norm          .10014E-03    3.8001        .27022E-05** at limit **
  10  Prefactor     .10000E-03    41.532       -.28811E-05** at limit **
  11  Prefactor     .10000E-03    10.144       -.28534E-05** at limit **
  12  norm          2.4131        1.4506       -.14788E-06   -.53585E-03
  13  Prefactor     .10000E-03    35.038        .18432E-05** at limit **
  14  norm          .12731        1.0156       -.54724E-06    .53693E-03
  15  Prefactor     .10000E-03    10.191        .12334E-05** at limit **
  16  Prefactor     11.551        13.534       -.45412E-06    .16201E-03
  17  Prefactor     .34410        .20195       -.21628E-07   -.48074E-03
  18  Prefactor     .10000E-03    3.2294       -.28438E-07** at limit **
  19  Normalizat    .46974        .29996       -.30455E-05   -.14600E-03
  20  Prefactor     1.2847        .13172        .21883E-05   -.50283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.5903
  norm       = 5.97524
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.10625
  Prefactor  = 11.023
  norm       = 0.946885
  Prefactor  = 38.0137
  norm       = 0.000100137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41313
  Prefactor  = 0.0001
  norm       = 0.127314
  Prefactor  = 0.0001
  Prefactor  = 11.5513
  Prefactor  = 0.344098
  Prefactor  = 0.0001
  Normalizat = 0.469745
  Prefactor  = 1.28471
 **********
 **   18 **HESSE 
 **********

 FCN=   9057.807     FROM HESSE     STATUS=OK           297 CALLS     2357 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.590        120.35        .21217E-03   -1.3812    
   2  norm          5.9752        3.4937        .12726E-03   -1.5219    
   3  Prefactor     .10000E-03    4.0401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1062        1.0135        .63891E-04   -1.5418    
   6  Prefactor     11.023        32.239        .12062E-03   -1.5044    
   7  norm          .94688        1.1411        .10787E-03   -1.5513    
   8  Prefactor     38.014        20.317        .65009E-04   -1.4474    
   9  norm          .10014E-03    13.231        .35064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4131        1.4281        .82715E-04   -1.5397    
  13  Prefactor     .10000E-03    35.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12731        8.0854        .17321E-02   -1.5637    
  15  Prefactor     .10000E-03    10.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.551        13.582        .11788E-03   -1.5028    
  17  Prefactor     .34410        .19569        .31269E-04   -1.5591    
  18  Prefactor     .10000E-03    3.2326        .16702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .46974        .27934        .56742E-03   -1.1384    
  20  Prefactor     1.2847        .12917        .16865E-03   -.83763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20482e-08
Minuit parameter uncertainties:
  1  120.682
  2  3.49378
  3  8.30339e-06
  4  0.000802018
  5  1.01356
  6  32.2903
  7  1.14112
  8  20.321
  9  0.00269808
  10  1.64543e-05
  11  1.37666e-05
  12  1.42813
  13  2.69116e-05
  14  2.02866
  15  2.28042e-06
  16  13.5859
  17  0.195686
  18  9.00742e-07
  19  0.28018
  20  0.129205
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.801e+01  2.032e+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.285e+00  1.292e-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:  4.697e-01  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.03e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.87e-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) = 9057.7467896
delta logL = 0.0597824613396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9057.74329752
delta logL = 0.0632745440616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.919       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1215       1.0000          .0000       10.000    
     3 'Normalizat'    .48277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2801       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=   9057.743     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      307 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.872        30.134        .59821E-04   -.16344E-04
   2  Index         2.1200        .45836        .68219E-02    .27810E-04
   3  Normalizat    .48294        .27006        .55991E-03   -.56853E-04
   4  Prefactor     1.2802        .12774        .16889E-03   -.38100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.8716
  Index      = 2.11999
  Normalizat = 0.482944
  Prefactor  = 1.28021
 **********
 **   18 **HESSE 
 **********

 FCN=   9057.743     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.872        29.061        .23928E-05   -1.4367    
   2  Index         2.1200        .44169        .27288E-03   -.61383    
   3  Normalizat    .48294        .26983        .22396E-04   -1.1321    
   4  Prefactor     1.2802        .12767        .67556E-05   -.83898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95599e-11
Minuit parameter uncertainties:
  1  29.0697
  2  0.44255
  3  0.270564
  4  0.127697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227650': 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) = 9057.74328017
delta logL = 0.0632918894335

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.487e+01  2.907e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.120e+00  4.426e-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.280e+00  1.277e-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:  4.829e-01  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.12 +/- 0.44
Photon Flux (Free Index): 8.10e-08 +/- 5.14e-08
Energy Flux (Free Index): 4.26e-05 +/- 3.35e-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/227650/cmap_HighResolution_333158401_333417601_4FGL_J2216.9+2421_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.03e-08', energy_flux2='4.26e-05', photon_flux_error='4.83e-08', dlogl='6.33e-02', energy_flux='3.51e-05', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-28 07:33:32.318119', photon_index_error2='0.44', photon_index2='2.12', ts='5.95', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='3.35e-05', EG='0.47', time_epoch_completed='1632839612.32', return_code='0', job_id='227650', GAL2='1.28', EG2='0.48', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='5.14e-08', ts2='6.06', photon_index='2.28' WHERE bin_id='362' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:33:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 227650: <4FGL_J2216.9+2421_daily_bin362> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin362> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:20:50 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:20:52 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:20:52 2021
Terminated at Tue Sep 28 07:33:32 2021
Results reported at Tue Sep 28 07:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin362 334.238 24.3575 333158401 333417601 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

