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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin696
RA = 334.823, Dec = -3.7102
tmin = 419731201, tmax = 419990401
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='259464', job_status='RUN', time_executed='2021-09-28 09:11:51.731750', time_epoch_executed='1632845511.73' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259464/ft1_4FGL_J2219.2-0342_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259464/ft1_4FGL_J2219.2-0342_daily_bin696.fits outfile=/scratch/kocevski/259464/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin696.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=419731201.0 tmax=419990401.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 5.86
user 5.59
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.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/259464/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin696.fits evtable="EVENTS" outfile="/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/259464/ltcube_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.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/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/259464/ltcube_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits outfile=/scratch/kocevski/259464/expmap_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.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/259464/ltcube_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits
.....................!
real 189.49
user 185.15
sys 3.96

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/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits outfile=/scratch/kocevski/259464/cmap_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits outfile=/scratch/kocevski/259464/cmap_HighResolution_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259464/Model_4FGL_J2219.2-0342_daily_bin696.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/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits......................!
real 41.15
user 39.82
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits', '/scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits', expMap='/scratch/kocevski/259464/expmap_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits', expCube='/scratch/kocevski/259464/ltcube_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259464/Model_4FGL_J2219.2-0342_daily_bin696.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/259464/ft1_filtered_4FGL_J2219.2-0342_daily_bin696.fits
Spacecraft file(s): /scratch/kocevski/259464/ft2_4FGL_J2219.2-0342_daily_bin696.fits
Exposure map: /scratch/kocevski/259464/expmap_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits
Exposure cube: /scratch/kocevski/259464/ltcube_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259464/Model_4FGL_J2219.2-0342_daily_bin696.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) = 3748.40106668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92110       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.344       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .26152       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4086       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3748.335     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2740 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91914        2.3336       -.14182E-06   -.52160E-03
   2  Prefactor     .10000E-03    22.141        .27717E-05** at limit **
   3  Prefactor     .10000E-03    15.222       -.46723E-05** at limit **
   4  Prefactor     .10000E-03    160.86       -.33531E-04** at limit **
   5  Prefactor     .10000E-03    24.527        .56866E-05** at limit **
   6  Prefactor     .10000E-03    14.570       -.17101E-05** at limit **
   7  Prefactor     .10000E-03    11.510       -.18477E-05** at limit **
   8  Prefactor     .10000E-03    13.706        .66520E-05** at limit **
   9  Prefactor     2.8373        18.306       -.37898E-06   -.54611E-04
  10  Prefactor     .10000E-03    27.200       -.72729E-05** at limit **
  11  Prefactor     7.4535        18.520       -.12650E-05    .22727E-04
  12  Prefactor     .10000E-03    76.920       -.11849E-04** at limit **
  13  Prefactor     33.218        19.903        .63058E-06    .11429E-03
  14  Prefactor     .10000E-03    84.217        .18588E-04** at limit **
  15  Prefactor     .10000E-03    3.4373       -.13778E-06** at limit **
  16  norm          20.314        6.9937        .25215E-05    .11719E-03
  17  Prefactor     .10000E-03    141.54        .20795E-04** at limit **
  18  norm          .14975        .89270       -.37284E-06   -.70588E-03
  19  Prefactor     .10000E-03    6.3956       -.38305E-08** at limit **
  20  norm          .10000E-03    .46575        .64034E-08** at limit **
  21  Prefactor     .10000E-03    7.4332        .32526E-07** at limit **
  22  norm          15.335        16.250       -.11546E-05    .33385E-04
  23  Normalizat    .26266        .42513       -.10718E-04   -.78359E-04
  24  Prefactor     1.4080        .25524        .21458E-05    .26888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.919135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83731
  Prefactor  = 0.0001
  Prefactor  = 7.45349
  Prefactor  = 0.0001
  Prefactor  = 33.2178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3144
  Prefactor  = 0.0001
  norm       = 0.149748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3353
  Normalizat = 0.262656
  Prefactor  = 1.408
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.335     FROM HESSE     STATUS=OK           393 CALLS     3133 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91914        1.9665        .14291E-02   -1.5516    
   2  Prefactor     .10000E-03    22.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    159.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8373        18.245        .24142E-03   -1.5371    
  10  Prefactor     .10000E-03    27.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4535        17.789        .14672E-03   -1.5162    
  12  Prefactor     .10000E-03    77.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.218        19.470        .69508E-04   -1.4555    
  14  Prefactor     .10000E-03    83.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4495        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.314        6.9227        .88507E-04   -1.4806    
  17  Prefactor     .10000E-03    140.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14975        1.4319        .11028E-02   -1.5631    
  19  Prefactor     .10000E-03    6.3995        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .46755        .40790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4511        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.335        16.043        .10225E-03   -1.4925    
  23  Normalizat    .26266        .32757        .57166E-03   -1.2514    
  24  Prefactor     1.4080        .20421        .16912E-03   -.80150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27945e-09
Minuit parameter uncertainties:
  1  1.96666
  2  2.03357e-05
  3  6.54093e-06
  4  0.000185649
  5  3.93261e-05
  6  0.000126465
  7  1.51107e-05
  8  1.22437e-05
  9  14.3961
  10  7.3491e-05
  11  17.8013
  12  0.000107219
  13  19.4736
  14  0.000146775
  15  1.95636e-05
  16  6.92301
  17  0.000437592
  18  0.92584
  19  1.45724e-06
  20  2.56737e-07
  21  4.15553e-06
  22  16.0472
  23  0.329996
  24  0.204331
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.322e+01  1.947e+01  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:  1.408e+00  2.043e-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:  2.627e-01  3.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 8.96e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 2.19e-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) = 3748.1171694
delta logL = 0.217887062578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3748.10634543
delta logL = 0.228711033165

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3748.106     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.048        22.218        .81662E-04    .29236E-04
   2  Index         3.1435        .78194        .53234E-02    .23019E-03
   3  Normalizat    .22544        .31695        .61495E-03   -.33184E-05
   4  Prefactor     1.4251        .20497        .16821E-03    .33557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0482
  Index      = 3.14352
  Normalizat = 0.225444
  Prefactor  = 1.42512
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.106     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.048        21.078        .32665E-05   -1.4727    
   2  Index         3.1435        .74152        .10647E-02   -.38040    
   3  Normalizat    .22544        .31631        .24598E-04   -1.2760    
   4  Prefactor     1.4251        .20452        .67283E-05   -.79659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75153e-12
Minuit parameter uncertainties:
  1  21.0844
  2  0.744706
  3  0.318873
  4  0.204637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259464': 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) = 3748.10634185
delta logL = 0.228714614254

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.405e+01  2.108e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.144e+00  7.447e-01  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:  1.425e+00  2.046e-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:  2.254e-01  3.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.14 +/- 0.74
Photon Flux (Free Index): 1.84e-07 +/- 1.07e-07
Energy Flux (Free Index): 3.44e-05 +/- 1.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/259464/cmap_HighResolution_419731201_419990401_4FGL_J2219.2-0342_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='3.44e-05', photon_flux_error='8.96e-08', dlogl='2.29e-01', energy_flux='3.74e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-28 09:19:57.573294', photon_index_error2='0.74', photon_index2='3.14', ts='4.70', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.26', time_epoch_completed='1632845997.57', return_code='0', job_id='259464', GAL2='1.43', EG2='0.23', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='1.07e-07', ts2='5.26', photon_index='2.68' WHERE bin_id='696' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 259464: <4FGL_J2219.2-0342_daily_bin696> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin696> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:17 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:10:19 2021
Terminated at Tue Sep 28 09:20:00 2021
Results reported at Tue Sep 28 09:20:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin696 334.823 -3.7102 419731201 419990401 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 :                                   486.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            583 sec.

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

