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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1482
RA = 334.823, Dec = -3.7102
tmin = 623462401, tmax = 623721601
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='262704', job_status='RUN', time_executed='2021-09-28 09:23:29.968296', time_epoch_executed='1632846209.97' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262704/ft1_4FGL_J2219.2-0342_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262704/ft1_4FGL_J2219.2-0342_daily_bin1482.fits outfile=/scratch/kocevski/262704/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1482.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=623462401.0 tmax=623721601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.68
user 2.48
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.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/262704/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/262704/ltcube_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.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/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits
.....................!
real 12.38
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/262704/ltcube_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.fits outfile=/scratch/kocevski/262704/expmap_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.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/262704/ltcube_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.fits
.....................!
real 195.15
user 189.43
sys 5.40

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/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits outfile=/scratch/kocevski/262704/cmap_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.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/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits outfile=/scratch/kocevski/262704/cmap_HighResolution_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/262704/ft2_4FGL_J2219.2-0342_daily_bin1482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262704/Model_4FGL_J2219.2-0342_daily_bin1482.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/262704/ft1_filtered_4FGL_J2219.2-0342_daily_bin1482.fits.....................!
real 30.71
user 29.43
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.446       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6145       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .58953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.552       1.0000         .10000E-03   10000.    
    22 'norm      '    32.133       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .41181       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95909       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=   2205.329     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2793 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3657       -.30403E-06** at limit **
   2  Prefactor     .10000E-03    53.523        .22301E-04** at limit **
   3  Prefactor     .10000E-03    23.218        .22780E-06** at limit **
   4  Prefactor     1.3056        1272.5       -.48211E-04   -.54391E-05
   5  Prefactor     .10000E-03    9.8442        .50248E-06** at limit **
   6  Prefactor     8.9236        10.941       -.11275E-05   -.95934E-04
   7  Prefactor     .10000E-03    12.178       -.31274E-06** at limit **
   8  Prefactor     .10000E-03    21.368        .28400E-06** at limit **
   9  Prefactor     28.141        43.102        .52290E-04    .28899E-04
  10  Prefactor     .10001E-03    34.109        .13465E-06** at limit **
  11  Prefactor     65.529        26.510       -.68730E-06    .13235E-04
  12  Prefactor     64.387        97.960       -.71360E-04   -.11167E-04
  13  Prefactor     .10000E-03    50.518       -.21830E-04** at limit **
  14  Prefactor     .10000E-03    159.63       -.69887E-05** at limit **
  15  Prefactor     28.435        14.612       -.17224E-05    .27709E-03
  16  norm          3.6097        6.2788       -.20682E-06   -.10269E-03
  17  Prefactor     .10000E-03    74.181       -.21459E-05** at limit **
  18  norm          .58693        1.8499       -.45568E-06   -.56254E-03
  19  Prefactor     .10000E-03    29.224       -.14790E-05** at limit **
  20  norm          8.3820        3.4464        .63816E-07    .99313E-04
  21  Prefactor     17.546        19.115       -.16908E-07    .46627E-05
  22  norm          32.118        43.465        .93208E-05   -.70002E-06
  23  Normalizat    .41209        .44204        .64638E-05    .50192E-04
  24  Prefactor     .95952        .23694       -.23605E-05    .25471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3056
  Prefactor  = 0.0001
  Prefactor  = 8.92359
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 28.141
  Prefactor  = 0.00010001
  Prefactor  = 65.5291
  Prefactor  = 64.387
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 28.4353
  norm       = 3.60966
  Prefactor  = 0.0001
  norm       = 0.586932
  Prefactor  = 0.0001
  norm       = 8.382
  Prefactor  = 17.5464
  norm       = 32.1178
  Normalizat = 0.412094
  Prefactor  = 0.959521
 **********
 **   18 **HESSE 
 **********

 FCN=   2205.329     FROM HESSE     STATUS=OK           395 CALLS     3188 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9239        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3056        1271.3        .34034E-03   -1.5479    
   5  Prefactor     .10000E-03    9.8305        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9236        10.787        .13407E-03   -1.5110    
   7  Prefactor     .10000E-03    12.203        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.141        42.973        .75453E-04   -1.4647    
  10  Prefactor     .10001E-03    34.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.529        26.331        .49571E-04   -1.4087    
  12  Prefactor     64.387        97.964        .24966E-03   -1.4101    
  13  Prefactor     .10000E-03    51.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    159.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.435        14.515        .75116E-04   -1.4641    
  16  norm          3.6097        6.2310        .14632E-03   -1.5328    
  17  Prefactor     .10000E-03    74.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .58693        1.8103        .10462E-03   -1.5555    
  19  Prefactor     .10000E-03    29.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3820        3.4310        .53277E-04   -1.5129    
  21  Prefactor     17.546        19.114        .95599E-04   -1.4870    
  22  norm          32.118        43.436        .70687E-04   -1.4574    
  23  Normalizat    .41209        .45327        .46283E-03   -1.1668    
  24  Prefactor     .95952        .25932        .18378E-03   -.94091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11225e-09
Minuit parameter uncertainties:
  1  9.83982e-05
  2  8.31508e-05
  3  2.18483e-05
  4  83.3189
  5  0.000115977
  6  10.7896
  7  0.000251486
  8  0.000282204
  9  43.0204
  10  0.00115734
  11  26.3354
  12  98.211
  13  0.000571423
  14  8.92739e-05
  15  14.5166
  16  6.23214
  17  1.11575e-05
  18  1.8105
  19  6.52278e-07
  20  3.43104
  21  19.1211
  22  43.4789
  23  0.457396
  24  0.259652
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.714e-04  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:  9.595e-01  2.597e-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:  4.121e-01  4.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 3.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262704/likelihoodResults_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.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): 102
logL (Free Index) = 2205.3293589
delta logL = -9.33036376409e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2205.32926595
delta logL = -3.61725597031e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8125       1.0000          .0000       10.000    
     3 'Normalizat'    .41209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95952       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=   2205.255     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      386 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9056        17.239        .18142E-01    .12217E-03
   2  Index         1.5555        .75969        .20000       -.31036E-04
   3  Normalizat    .42159        .42000        .46282E-03   -.44375E-04
   4  Prefactor     .94804        .25361        .18378E-03   -.75245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90564
  Index      = 1.55553
  Normalizat = 0.42159
  Prefactor  = 0.948045
 **********
 **   18 **HESSE 
 **********

 FCN=   2205.255     FROM HESSE     STATUS=OK            29 CALLS      415 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9056        20.055        .32178E-03   -1.5222    
   2  Index         1.5555        1.1559        .96774E-02   -.75996    
   3  Normalizat    .42159        .41991        .18513E-04   -1.1620    
   4  Prefactor     .94804        .25342        .36757E-04   -.94482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9452e-09
Minuit parameter uncertainties:
  1  20.0783
  2  1.17647
  3  0.423101
  4  0.253738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262704': 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) = 2205.25478899
delta logL = 0.0744766060748

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.906e+00  2.008e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.556e+00  1.176e+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:  9.480e-01  2.537e-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:  4.216e-01  4.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/262704/cmap_HighResolution_623462401_623721601_4FGL_J2219.2-0342_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', job_status='DONE', photon_flux_upper_limit='3.05e-07', time_completed='2021-09-28 09:30:38.850529', job_id='262704', GAL2='0.95', fit_tolerance='1e-08', EG2='0.42', EG='0.41', time_epoch_completed='1632846638.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.45e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1482' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 262704: <4FGL_J2219.2-0342_daily_bin1482> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1482> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:16 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:18 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:20:18 2021
Terminated at Tue Sep 28 09:30:39 2021
Results reported at Tue Sep 28 09:30:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1482 334.823 -3.7102 623462401 623721601 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 :                                   427.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

