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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin17
RA = 334.823, Dec = -3.7102
tmin = 243734401, tmax = 243993601
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='255276', job_status='RUN', time_executed='2021-09-28 08:57:36.269081', time_epoch_executed='1632844656.27' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255276/ft1_4FGL_J2219.2-0342_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255276/ft1_4FGL_J2219.2-0342_daily_bin17.fits outfile=/scratch/kocevski/255276/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin17.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=243734401.0 tmax=243993601.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 1.41
user 1.24
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.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/255276/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/255276/ltcube_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.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/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits
.....................!
real 12.57
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/255276/ltcube_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits outfile=/scratch/kocevski/255276/expmap_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.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/255276/ltcube_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits
.....................!
real 190.08
user 185.41
sys 4.32

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
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits outfile=/scratch/kocevski/255276/cmap_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.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.823 yref=-3.7102 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits outfile=/scratch/kocevski/255276/cmap_HighResolution_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.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.823 yref=-3.7102 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255276/Model_4FGL_J2219.2-0342_daily_bin17.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits.....................!
real 76.58
user 75.19
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits', '/scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits', expMap='/scratch/kocevski/255276/expmap_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits', expCube='/scratch/kocevski/255276/ltcube_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255276/Model_4FGL_J2219.2-0342_daily_bin17.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255276/ft1_filtered_4FGL_J2219.2-0342_daily_bin17.fits
Spacecraft file(s): /scratch/kocevski/255276/ft2_4FGL_J2219.2-0342_daily_bin17.fits
Exposure map: /scratch/kocevski/255276/expmap_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits
Exposure cube: /scratch/kocevski/255276/ltcube_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255276/Model_4FGL_J2219.2-0342_daily_bin17.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) = 8342.47609323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9503       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19175E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7988       1.0000         .10000E-03   10000.    
    16 'norm      '    18.372       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8342.472     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2759 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .97097        .35306E-01** at limit **
   2  Prefactor     .10000E-03    10.381        .90712E-02** at limit **
   3  Prefactor     21.930        34.699        .21389E-02   -.59775E-03
   4  Prefactor     6.4059        47.720        .39688E-02   -.42344E-03
   5  Prefactor     .10000E-03    5.2490        .90712E-02** at limit **
   6  Prefactor     2.9086        5.1226        .59586E-02    .28796E-02
   7  Prefactor     .10000E-03    5.6769        .90712E-02** at limit **
   8  Prefactor     .10000E-03    8.5389        .90712E-02** at limit **
   9  Prefactor     .10000E-03    4.6519        .90712E-02** at limit **
  10  Prefactor     7.9539        12.429        .35551E-02   -.48857E-03
  11  Prefactor     4.0627        11.899        .49969E-02    .10314E-02
  12  Prefactor     .10007E-03    13.645        .12564    ** at limit **
  13  Prefactor     7.7829        9.6635        .35940E-02    .38802E-03
  14  Prefactor     .10001E-03    187.69        .90712E-02** at limit **
  15  Prefactor     3.8007        4.1454        .51776E-02    .13834E-02
  16  norm          18.366        4.6933        .23360E-02   -.30267E-02
  17  Prefactor     .10000E-03    18.766        .90712E-02** at limit **
  18  norm          2.0994        1.0168        .71201E-02    .64980E-03
  19  Prefactor     .10000E-03    9.3681        .90712E-02** at limit **
  20  norm          .10441        .54107        .24471E-01    .28670E-02
  21  Prefactor     .10000E-03    2.9507        .90712E-02** at limit **
  22  norm          .10000E-03    20.885        .90712E-02** at limit **
  23  Normalizat    1.0594        .17693        .63141E-01    .14715E-03
  24  Prefactor     .78102        .99504E-01    .43471E-01    .15779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9295
  Prefactor  = 6.40589
  Prefactor  = 0.0001
  Prefactor  = 2.9086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.95386
  Prefactor  = 4.06272
  Prefactor  = 0.000100069
  Prefactor  = 7.78289
  Prefactor  = 0.000100012
  Prefactor  = 3.80066
  norm       = 18.366
  Prefactor  = 0.0001
  norm       = 2.09941
  Prefactor  = 0.0001
  norm       = 0.104411
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05944
  Prefactor  = 0.781017
 **********
 **   18 **HESSE 
 **********

 FCN=   8342.472     FROM HESSE     STATUS=OK           397 CALLS     3156 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5368        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.930        34.322        .85555E-04   -1.4771    
   4  Prefactor     6.4059        47.580        .15875E-03   -1.5202    
   5  Prefactor     .10000E-03    5.3110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9086        5.1090        .23834E-03   -1.5367    
   7  Prefactor     .10000E-03    5.7262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9539        12.423        .14220E-03   -1.5144    
  11  Prefactor     4.0627        11.904        .19987E-03   -1.5305    
  12  Prefactor     .10007E-03    90.772        .65076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7829        9.6068        .14376E-03   -1.5150    
  14  Prefactor     .10001E-03    188.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8007        4.1072        .17203E-03   -1.5318    
  16  norm          18.366        4.7079        .92930E-04   -1.4851    
  17  Prefactor     .10000E-03    18.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0994        1.0134        .61760E-04   -1.5418    
  19  Prefactor     .10000E-03    9.4128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10441        1.0359        .12959E-02   -1.5643    
  21  Prefactor     .10000E-03    2.9538        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0594        .21046        .27928E-03   -.91065    
  24  Prefactor     .78102        .11822        .19190E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45414e-08
Minuit parameter uncertainties:
  1  3.38704e-06
  2  3.6409e-05
  3  34.3533
  4  34.9554
  5  4.22772e-05
  6  5.10972
  7  3.12297e-05
  8  1.32763e-05
  9  4.38401e-05
  10  12.4274
  11  11.9105
  12  0.00499797
  13  9.60873
  14  0.00298054
  15  4.10747
  16  4.70797
  17  0.000138637
  18  1.01342
  19  0.000110363
  20  0.657459
  21  3.79953e-05
  22  2.56358e-05
  23  0.210625
  24  0.11826
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.783e+00  9.609e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.810e-01  1.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.059e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255276/likelihoodResults_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.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) = 8342.46992482
delta logL = 0.00233559418484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8342.46694949
delta logL = 0.00531092734491

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8342.467     FROM MIGRAD    STATUS=FAILED       106 CALLS      270 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7111        202.01        .77395E-03   -.11807E-03
   2  Index         2.8871        5.5081        .14128E-01    .30873E-03
   3  Normalizat    1.0538        .32159        .27994E-03   -.13036E-03
   4  Prefactor     .78408        .19877        .19156E-03   -.87121E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8342.467     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      358 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7111        202.01        .28550E-03   -1.5190    
   2  Index         2.8871        5.5081        .26267E-02   -.43628    
   3  Normalizat    1.0538        .32159        .26951E-03   -.91250    
   4  Prefactor     .78408        .19877        .19025E-03   -1.0032    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8342.467     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      390 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7111        16.332        .30958E-04   -.13661E-03
   2  Index         2.8871        2.3645        .28257E-02   -.14894E-04
   3  Normalizat    1.0538        .20592        .11197E-04   -.12183E-03
   4  Prefactor     .78408        .12243        .76626E-05   -.81898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7111
  Index      = 2.88715
  Normalizat = 1.05377
  Prefactor  = 0.784083
 **********
 **   18 **HESSE 
 **********

 FCN=   8342.467     FROM HESSE     STATUS=OK            23 CALLS      413 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7111        15.145        .12383E-05   -1.5190    
   2  Index         2.8871        2.2066        .11303E-03   -.43628    
   3  Normalizat    1.0538        .20423        .22395E-05   -.91250    
   4  Prefactor     .78408        .12135        .15325E-05   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39606e-11
Minuit parameter uncertainties:
  1  15.1541
  2  2.30471
  3  0.204387
  4  0.121394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255276': 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) = 8342.46694893
delta logL = 0.00531147964466

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.711e+00  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.887e+00  2.305e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.841e-01  1.214e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.054e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.90
Ra Dec: 334.823 -3.710

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/255276/cmap_HighResolution_243734401_243993601_4FGL_J2219.2-0342_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-28 09:10:19.066463', job_id='255276', GAL2='0.78', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1632845419.07', return_code2='0', ts='0.90', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.31e-03', ts2='0.91', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='17' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:10:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 255276: <4FGL_J2219.2-0342_daily_bin17> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin17> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:23 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55: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 08:55:25 2021
Terminated at Tue Sep 28 09:10:19 2021
Results reported at Tue Sep 28 09:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin17 334.823 -3.7102 243734401 243993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

