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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin626
RA = 334.823, Dec = -3.7102
tmin = 401587201, tmax = 401846401
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='258320', job_status='RUN', time_executed='2021-09-28 09:09:30.972981', time_epoch_executed='1632845370.97' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258320

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258320/ft1_4FGL_J2219.2-0342_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258320/ft1_4FGL_J2219.2-0342_daily_bin626.fits outfile=/scratch/kocevski/258320/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin626.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=401587201.0 tmax=401846401.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 4.19
user 3.95
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258320/ft1_filtered_4FGL_J2219.2-0342_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/258320/ltcube_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.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/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits
.....................!
real 12.04
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258320/ft1_filtered_4FGL_J2219.2-0342_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/258320/ltcube_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.fits outfile=/scratch/kocevski/258320/expmap_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.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/258320/ltcube_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.fits
.....................!
real 192.55
user 186.84
sys 5.35

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/258320/ft1_filtered_4FGL_J2219.2-0342_daily_bin626.fits scfile=/scratch/kocevski/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits outfile=/scratch/kocevski/258320/cmap_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258320/ft1_filtered_4FGL_J2219.2-0342_daily_bin626.fits scfile=/scratch/kocevski/258320/ft2_4FGL_J2219.2-0342_daily_bin626.fits outfile=/scratch/kocevski/258320/cmap_HighResolution_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1208       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.603       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3650       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   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 '    3.2659       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67403       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0485       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=   7999.454     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2682 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8678        1.5693        .21620E-07    .16147E-04
   2  Prefactor     69.650        38.351       -.77617E-06   -.15486E-03
   3  Prefactor     33.761        32.391        .95599E-07    .56602E-05
   4  Prefactor     .10000E-03    19.336        .91180E-06** at limit **
   5  Prefactor     2.5881        4.4875        .29670E-06   -.86468E-04
   6  Prefactor     3.5369        3.0467        .52861E-08   -.13469E-04
   7  Prefactor     .10000E-03    12.347       -.67358E-06** at limit **
   8  Prefactor     .10000E-03    5.8479        .18867E-06** at limit **
   9  Prefactor     .10000E-03    3.7180        .88891E-08** at limit **
  10  Prefactor     .10000E-03    9.9156        .15551E-05** at limit **
  11  Prefactor     7.1218        7.7112        .10967E-06   -.29289E-04
  12  Prefactor     .10000E-03    7.5140       -.46136E-06** at limit **
  13  Prefactor     .10000E-03    12.559       -.11516E-05** at limit **
  14  Prefactor     26.597        58.462       -.19175E-05   -.58280E-04
  15  Prefactor     3.3640        2.8196       -.13492E-08    .32816E-04
  16  norm          3.1332        2.9531        .15537E-06   -.85275E-04
  17  Prefactor     .10000E-03    36.896       -.43623E-06** at limit **
  18  norm          .10000E-03    .19695       -.12986E-09** at limit **
  19  Prefactor     .10000E-03    2.6387        .17751E-09** at limit **
  20  norm          .10000E-03    .18915       -.54344E-08** at limit **
  21  Prefactor     3.2657        4.3616        .12555E-05   -.50869E-03
  22  norm          .10000E-03    4.6541       -.34026E-07** at limit **
  23  Normalizat    .67396        .17444        .12498E-06    .69878E-05
  24  Prefactor     1.0485        .10779       -.10605E-06    .46622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86779
  Prefactor  = 69.65
  Prefactor  = 33.7607
  Prefactor  = 0.0001
  Prefactor  = 2.58813
  Prefactor  = 3.53686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.12178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5974
  Prefactor  = 3.36396
  norm       = 3.13316
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.26574
  norm       = 0.0001
  Normalizat = 0.673963
  Prefactor  = 1.04848
 **********
 **   18 **HESSE 
 **********

 FCN=   7999.454     FROM HESSE     STATUS=OK           391 CALLS     3073 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8678        1.5651        .98822E-04   -1.5435    
   2  Prefactor     69.650        38.921        .48097E-04   -1.4037    
   3  Prefactor     33.761        32.382        .68967E-04   -1.4545    
   4  Prefactor     .10000E-03    19.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5881        4.4746        .24222E-03   -1.5386    
   6  Prefactor     3.5369        3.0465        .14038E-03   -1.5332    
   7  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7224        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1218        7.7186        .15032E-03   -1.5174    
  12  Prefactor     .10000E-03    7.5826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.597        59.124        .77670E-04   -1.4676    
  15  Prefactor     3.3640        2.8064        .13130E-03   -1.5341    
  16  norm          3.1332        2.9405        .13686E-03   -1.5354    
  17  Prefactor     .10000E-03    37.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .19700        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6405        .14189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .18978        .37982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2657        4.5914        .11108E-02   -1.5347    
  22  norm          .10000E-03    4.6978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67396        .20369        .32546E-03   -1.0493    
  24  Prefactor     1.0485        .12665        .17026E-03   -.91131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52242e-10
Minuit parameter uncertainties:
  1  1.5651
  2  38.9347
  3  32.3986
  4  0.000185424
  5  4.47515
  6  3.04664
  7  8.90017e-05
  8  1.90617e-05
  9  2.22839e-07
  10  0.000196533
  11  7.71972
  12  5.72907e-05
  13  0.000162085
  14  59.255
  15  2.80652
  16  2.94061
  17  0.00011934
  18  1.49179e-08
  19  5.5427e-08
  20  9.70011e-08
  21  4.5919
  22  5.32432e-06
  23  0.203922
  24  0.126681
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.621e-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:  1.048e+00  1.267e-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:  6.740e-01  2.039e-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: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258320/likelihoodResults_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.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) = 7999.45479075
delta logL = -0.00036245128922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7999.45442903
delta logL = -7.34368768462e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12968E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7297       1.0000          .0000       10.000    
     3 'Normalizat'    .67404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0484       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=   7999.454     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      256 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    6293.8        .36285E-02** at limit **
   2  Index         2.7854        6.0196        .50000       -.35658E-04
   3  Normalizat    .67396        .76743E-01    .32546E-03    .19596E-04
   4  Prefactor     1.0485        .48975E-01    .17026E-03    .67773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.78544
  Normalizat = 0.673963
  Prefactor  = 1.04848
 **********
 **   18 **HESSE 
 **********

 FCN=   7999.454     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    20.350        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7854        6.3927        .50000       -.45884    
   3  Normalizat    .67396        .19426        .13018E-04   -1.0493    
   4  Prefactor     1.0485        .12553        .34053E-04   -.91131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8436e-09
Minuit parameter uncertainties:
  1  0.00136495
  2  4.95619
  3  0.194458
  4  0.125563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258320': 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) = 7999.45442748
delta logL = 8.14368831925e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.365e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.785e+00  4.956e+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:  1.048e+00  1.256e-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:  6.740e-01  1.945e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/258320/cmap_HighResolution_401587201_401846401_4FGL_J2219.2-0342_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-28 09:21:55.616827', job_id='258320', GAL2='1.05', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632846115.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='626' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 258320: <4FGL_J2219.2-0342_daily_bin626> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin626> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:45 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:05:45 2021
Terminated at Tue Sep 28 09:21:56 2021
Results reported at Tue Sep 28 09:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin626 334.823 -3.7102 401587201 401846401 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 :                                   744.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

