/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 210 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1361
RA = 334.823, Dec = -3.7102
tmin = 592099201, tmax = 592358401
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='261535', job_status='RUN', time_executed='2021-09-28 09:19:29.958147', time_epoch_executed='1632845969.96' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261535/ft1_4FGL_J2219.2-0342_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits


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

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

Done.
real 3.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.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/261535/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.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/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/261535/ltcube_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.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/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits
.....................!
real 14.37
user 13.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/261535/ltcube_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.fits outfile=/scratch/kocevski/261535/expmap_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.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/261535/ltcube_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.fits
.....................!
real 190.68
user 185.48
sys 4.81

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/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits outfile=/scratch/kocevski/261535/cmap_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.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/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits outfile=/scratch/kocevski/261535/cmap_HighResolution_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/261535/ft2_4FGL_J2219.2-0342_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261535/Model_4FGL_J2219.2-0342_daily_bin1361.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/261535/ft1_filtered_4FGL_J2219.2-0342_daily_bin1361.fits.....................!
real 52.35
user 51.03
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7761       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.658       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .27942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.625       1.0000         .10000E-03   10000.    
    20 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .39540E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91061       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94425       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=   5254.110     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3256 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86146       -.16975E-07** at limit **
   2  Prefactor     .10000E-03    13.220       -.21195E-06** at limit **
   3  Prefactor     .10000E-03    35.307        .82025E-08** at limit **
   4  Prefactor     .10000E-03    28.028        .12817E-06** at limit **
   5  Prefactor     .10000E-03    2.4335       -.11142E-07** at limit **
   6  Prefactor     6.7761        8.9603       -.31008E-05    .26355E-03
   7  Prefactor     .10000E-03    8.3396       -.31593E-06** at limit **
   8  Prefactor     29.411        21.310        .26596E-07   -.82053E-05
   9  Prefactor     .10000E-03    4.7095       -.57280E-07** at limit **
  10  Prefactor     .10000E-03    7.0468        .42610E-07** at limit **
  11  Prefactor     49.656        23.582        .48379E-06    .67910E-04
  12  Prefactor     .10000E-03    10.997        .10907E-06** at limit **
  13  Prefactor     .10000E-03    5.5935       -.34086E-07** at limit **
  14  Prefactor     62.444        104.25        .81610E-06    .18907E-03
  15  Prefactor     .10000E-03    1.7925        .22976E-07** at limit **
  16  norm          3.7616        4.0346       -.71627E-07    .26510E-04
  17  Prefactor     .10001E-03    57.398       -.59536E-06** at limit **
  18  norm          .27933        1.1999       -.32338E-06    .85996E-04
  19  Prefactor     27.663        22.813       -.29289E-05   -.52391E-03
  20  norm          .10001E-03    1.5453       -.67527E-06** at limit **
  21  Prefactor     .10000E-03    4.7706        .66450E-07** at limit **
  22  norm          .10001E-03    102.86       -.21660E-04** at limit **
  23  Normalizat    .91077        .23645       -.98362E-07    .29334E-06
  24  Prefactor     .94415        .13360        .69566E-07    .51891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.77606
  Prefactor  = 0.0001
  Prefactor  = 29.4115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.6559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.4442
  Prefactor  = 0.0001
  norm       = 3.76165
  Prefactor  = 0.000100007
  norm       = 0.279331
  Prefactor  = 27.6626
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.000100006
  Normalizat = 0.910769
  Prefactor  = 0.944152
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.110     FROM HESSE     STATUS=OK           391 CALLS     3647 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86714        .65694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4422        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7761        8.9815        .77069E-03   -1.5187    
   7  Prefactor     .10000E-03    8.4386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.411        21.304        .73877E-04   -1.4623    
   9  Prefactor     .10000E-03    4.7136        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.656        23.666        .56908E-04   -1.4297    
  12  Prefactor     .10000E-03    11.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6372        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.444        104.93        .25377E-03   -1.4126    
  15  Prefactor     .10000E-03    1.8144        .94748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7616        4.0298        .14112E-03   -1.5320    
  17  Prefactor     .10001E-03    57.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27933        1.2286        .15076E-03   -1.5602    
  19  Prefactor     27.663        23.395        .76222E-04   -1.4656    
  20  norm          .10001E-03    10.662        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7782        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    104.54        .48152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91077        .28403        .31363E-03   -.96083    
  24  Prefactor     .94415        .16177        .18398E-03   -.94615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26458e-09
Minuit parameter uncertainties:
  1  1.84028e-07
  2  0.000189166
  3  7.20339e-05
  4  0.000208769
  5  1.37349e-06
  6  8.9833
  7  0.000124788
  8  21.3097
  9  2.52521e-05
  10  5.54342e-05
  11  23.6708
  12  0.000108836
  13  2.1471e-05
  14  105.239
  15  9.91425e-07
  16  4.03007
  17  0.00127283
  18  1.17148
  19  23.4029
  20  0.000473871
  21  3.04561e-05
  22  0.00159458
  23  0.284497
  24  0.161852
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.147e-05  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.442e-01  1.619e-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:  9.108e-01  2.845e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261535/likelihoodResults_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.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) = 5254.11128343
delta logL = -0.000845551455313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5254.11043799
delta logL = -1.15866896522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6624       1.0000          .0000       10.000    
     3 'Normalizat'    .91070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94420       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=   5254.110     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.973        .16997E-01** at limit **
   2  Index         2.2465        5.9539        .50000        .12083E-06
   3  Normalizat    .91077        .12405E-01    .31363E-03   -.19756E-03
   4  Prefactor     .94415        .74471E-02    .18398E-03   -.31249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24649
  Normalizat = 0.910768
  Prefactor  = 0.944151
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.110     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1130.1        .36683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2465        6.4340        .50000       -.58321    
   3  Normalizat    .91077        .10207        .12545E-04   -.96083    
   4  Prefactor     .94415        .61283E-01    .36797E-04   -.94615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52767e-09
Minuit parameter uncertainties:
  1  0.000559811
  2  1584.15
  3  0.102093
  4  0.0612875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261535': 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): 102
logL (Free Index) = 5254.11043627
delta logL = 1.60786203196e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.598e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.246e+00  1.584e+03  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.442e-01  6.129e-02  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:  9.108e-01  1.021e-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/261535/cmap_HighResolution_592099201_592358401_4FGL_J2219.2-0342_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-28 09:29:52.229275', job_id='261535', GAL2='0.94', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632846592.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1361' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 261535: <4FGL_J2219.2-0342_daily_bin1361> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1361> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:51 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:52 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:15:52 2021
Terminated at Tue Sep 28 09:29:53 2021
Results reported at Tue Sep 28 09:29:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1361 334.823 -3.7102 592099201 592358401 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

