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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1052
RA = 334.238, Dec = 24.3575
tmin = 512006401, tmax = 512265601
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='230321', job_status='RUN', time_executed='2021-09-28 07:32:44.433799', time_epoch_executed='1632839564.43' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230321/ft1_4FGL_J2216.9+2421_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230321/ft2_4FGL_J2216.9+2421_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230321/ft1_4FGL_J2216.9+2421_daily_bin1052.fits outfile=/scratch/kocevski/230321/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1052.fits ra=334.238 dec=24.3575 rad=12.0 tmin=512006401.0 tmax=512265601.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.59
user 3.35
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230321/ft1_filtered_4FGL_J2216.9+2421_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/230321/ft2_4FGL_J2216.9+2421_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/230321/ltcube_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.fits outfile=/scratch/kocevski/230321/expmap_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.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/230321/ltcube_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.fits
.....................!
real 189.96
user 184.59
sys 5.06

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/230321/ft1_filtered_4FGL_J2216.9+2421_daily_bin1052.fits scfile=/scratch/kocevski/230321/ft2_4FGL_J2216.9+2421_daily_bin1052.fits outfile=/scratch/kocevski/230321/cmap_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.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/230321/ft1_filtered_4FGL_J2216.9+2421_daily_bin1052.fits scfile=/scratch/kocevski/230321/ft2_4FGL_J2216.9+2421_daily_bin1052.fits outfile=/scratch/kocevski/230321/cmap_HighResolution_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
     2 'norm      '    .18480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13134       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13867E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .45689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6344       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7501       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2550       1.0000         .10000E-03   10000.    
    14 'norm      '    .35279       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8203       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7456       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5846       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69313       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=   11175.16     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2115 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.796        157.56        .12113E-06    .49509E-04
   2  norm          .18075        .84529       -.45228E-07    .17254E-03
   3  Prefactor     8.7774        5.6687        .29373E-07   -.10984E-03
   4  Prefactor     .10000E-03    16.008        .58511E-06** at limit **
   5  norm          .13112        .46239        .43696E-06   -.10317E-02
   6  Prefactor     .10000E-03    83.240        .16545E-06** at limit **
   7  norm          .45677        .78102        .39899E-06    .11650E-02
   8  Prefactor     6.6339        9.5751        .18545E-06   -.30126E-04
   9  norm          9.4821        5.6854       -.18072E-07   -.95644E-04
  10  Prefactor     .10000E-03    41.291       -.21382E-07** at limit **
  11  Prefactor     4.7475        12.842        .31616E-06   -.46467E-04
  12  norm          3.4618        1.4044       -.85335E-08   -.11689E-03
  13  Prefactor     9.2553        16.860        .22287E-05   -.41263E-04
  14  norm          .35283        1.4472        .21346E-05    .33274E-04
  15  Prefactor     21.005        21.505        .51359E-08   -.58627E-05
  16  Prefactor     6.8196        12.222       -.17215E-05   -.19660E-03
  17  Prefactor     5.1205        .49730        .14303E-08   -.79805E-03
  18  Prefactor     3.7458        8.0984        .54123E-06   -.32563E-04
  19  Normalizat    1.5848        .22401       -.10792E-06   -.29925E-03
  20  Prefactor     .69304        .93348E-01   -.10586E-05   -.28405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7959
  norm       = 0.180754
  Prefactor  = 8.77736
  Prefactor  = 0.0001
  norm       = 0.131125
  Prefactor  = 0.0001
  norm       = 0.45677
  Prefactor  = 6.63394
  norm       = 9.48206
  Prefactor  = 0.0001
  Prefactor  = 4.7475
  norm       = 3.46181
  Prefactor  = 9.25532
  norm       = 0.35283
  Prefactor  = 21.0047
  Prefactor  = 6.81964
  Prefactor  = 5.12053
  Prefactor  = 3.74585
  Normalizat = 1.58478
  Prefactor  = 0.693044
 **********
 **   18 **HESSE 
 **********

 FCN=   11175.16     FROM HESSE     STATUS=OK           307 CALLS     2422 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.796        155.20        .12243E-03   -1.5051    
   2  norm          .18075        3.4409        .18311E-02   -1.5623    
   3  Prefactor     8.7774        5.6589        .13530E-03   -1.5115    
   4  Prefactor     .10000E-03    16.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13112        .66622        .12435E-02   -1.5636    
   6  Prefactor     .10000E-03    83.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .45677        .68220        .11943E-02   -1.5573    
   8  Prefactor     6.6339        9.5664        .15579E-03   -1.5193    
   9  norm          9.4821        5.6734        .13014E-03   -1.5092    
  10  Prefactor     .10000E-03    41.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7475        12.900        .18461E-03   -1.5272    
  12  norm          3.4618        1.4043        .74122E-04   -1.5336    
  13  Prefactor     9.2553        16.755        .65869E-03   -1.5099    
  14  norm          .35283        1.3991        .22812E-03   -1.5589    
  15  Prefactor     21.005        21.522        .87392E-04   -1.4791    
  16  Prefactor     6.8196        12.026        .15363E-03   -1.5186    
  17  Prefactor     5.1205        .49906        .22189E-04   -1.5255    
  18  Prefactor     3.7458        8.0847        .20862E-03   -1.5321    
  19  Normalizat    1.5848        .26821        .34876E-03   -.75423    
  20  Prefactor     .69304        .11115        .21507E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46424e-08
Minuit parameter uncertainties:
  1  82.1252
  2  1.57696
  3  5.65921
  4  3.80186e-06
  5  0.590912
  6  0.000131798
  7  0.68221
  8  9.56857
  9  5.67375
  10  1.67768e-05
  11  12.908
  12  1.40429
  13  16.7631
  14  1.3992
  15  21.5304
  16  12.0306
  17  0.499063
  18  8.08704
  19  0.268448
  20  0.11119
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  6.634e+00  9.569e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  6.930e-01  1.112e-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:  1.585e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230321/likelihoodResults_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.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) = 11174.9352776
delta logL = 0.229480164982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11174.9156012
delta logL = 0.249156588741

Fit tolerance = 1e-08

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

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

 FCN=   11174.92     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      274 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9964        714.02        .31672E-02    .33475E-04
   2  Index         1.7467        5.5624        .27483       -.23625E-04
   3  Normalizat    1.5947        .16869        .78594E-01    .10793E-03
   4  Prefactor     .68950        .58870E-01    .42259E-01    .21563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99635
  Index      = 1.74668
  Normalizat = 1.59474
  Prefactor  = 0.689504
 **********
 **   18 **HESSE 
 **********

 FCN=   11174.92     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9964        12.055        .12669E-03   -1.5076    
   2  Index         1.7467        .66518        .14423E-01   -.70846    
   3  Normalizat    1.5947        .25008        .34782E-03   -.75150    
   4  Prefactor     .68950        .10769        .21552E-03   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95474e-11
Minuit parameter uncertainties:
  1  12.0578
  2  0.668627
  3  0.250279
  4  0.107726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230321': 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) = 11174.9155994
delta logL = 0.249158352461

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  9.996e+00  1.206e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.747e+00  6.686e-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:  6.895e-01  1.077e-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:  1.595e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 334.238 24.358
Photon Index (Free Index): 1.75 +/- 0.67
Photon Flux (Free Index): 1.06e-08 +/- 1.53e-08
Energy Flux (Free Index): 1.49e-05 +/- 2.62e-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/230321/cmap_HighResolution_512006401_512265601_4FGL_J2216.9+2421_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='2.49e-01', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-28 07:47:25.111187', photon_index_error2='0.67', photon_index2='1.75', ts='0.73', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='7.91e-08', energy_flux_error2='2.62e-05', EG='1.58', time_epoch_completed='1632840445.11', return_code='0', job_id='230321', GAL2='0.69', EG2='1.59', return_code2='0', photon_flux_error2='1.53e-08', ts2='1.23', photon_index='2.28' WHERE bin_id='1052' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 230321: <4FGL_J2216.9+2421_daily_bin1052> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1052> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 07:31:07 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:31:09 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:31:09 2021
Terminated at Tue Sep 28 07:47:25 2021
Results reported at Tue Sep 28 07:47:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1052 334.238 24.3575 512006401 512265601 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 :                                   878.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

