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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1008
RA = 334.823, Dec = -3.7102
tmin = 500601601, tmax = 500860801
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='259937', job_status='RUN', time_executed='2021-09-28 09:11:10.087065', time_epoch_executed='1632845470.09' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259937/ft1_4FGL_J2219.2-0342_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259937/ft1_4FGL_J2219.2-0342_daily_bin1008.fits outfile=/scratch/kocevski/259937/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1008.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=500601601.0 tmax=500860801.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.09
user 4.88
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/259937/ltcube_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.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/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits
.....................!
real 12.23
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/259937/ltcube_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.fits outfile=/scratch/kocevski/259937/expmap_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.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/259937/ltcube_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.fits
.....................!
real 189.81
user 185.66
sys 3.84

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/259937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1008.fits scfile=/scratch/kocevski/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits outfile=/scratch/kocevski/259937/cmap_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/259937/ft2_4FGL_J2219.2-0342_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259937/Model_4FGL_J2219.2-0342_daily_bin1008.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/259937/ft1_filtered_4FGL_J2219.2-0342_daily_bin1008.fits.....................!
real 44.73
user 43.49
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17933E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18336E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28514E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    94.123       1.0000         .10000E-03   10000.    
    20 'norm      '    25.222       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35957E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .11109E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93763       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=   3837.494     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2771 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9557        3.4530        .62781E-06    .48558E-03
   2  Prefactor     .10008E-03    1076.7       -.12612E-04** at limit **
   3  Prefactor     .10000E-03    14.916       -.13427E-06** at limit **
   4  Prefactor     .10000E-03    35.766       -.43146E-06** at limit **
   5  Prefactor     .10000E-03    5.3118       -.14286E-06** at limit **
   6  Prefactor     .56276        7.7936       -.23624E-05    .58784E-03
   7  Prefactor     2.7327        44.242        .32084E-05    .58875E-04
   8  Prefactor     .10000E-03    11.558       -.10692E-06** at limit **
   9  Prefactor     .63185        30.879       -.11346E-05    .65530E-05
  10  Prefactor     .10000E-03    43.452       -.57243E-07** at limit **
  11  Prefactor     .10000E-03    10.255       -.73942E-07** at limit **
  12  Prefactor     4.9207        76.567        .55987E-06    .18801E-05
  13  Prefactor     .10000E-03    10.343       -.68376E-08** at limit **
  14  Prefactor     .10000E-03    186.16       -.10000E-05** at limit **
  15  Prefactor     .10000E-03    3.5751       -.97501E-07** at limit **
  16  norm          .10000E-03    4.5811        .11320E-06** at limit **
  17  Prefactor     .10003E-03    1059.0        .55474E-05** at limit **
  18  norm          .10000E-03    1.5368        .37638E-06** at limit **
  19  Prefactor     94.441        177.31        .44307E-06   -.77839E-04
  20  norm          25.190        14.882       -.61799E-06   -.44013E-03
  21  Prefactor     .10003E-03    290.03        .72105E-05** at limit **
  22  norm          .10000E-03    25.253       -.14912E-06** at limit **
  23  Normalizat    1.1472        .34858        .84061E-05    .13204E-03
  24  Prefactor     .93765        .19654       -.51945E-05    .63492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95568
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.562763
  Prefactor  = 2.73266
  Prefactor  = 0.0001
  Prefactor  = 0.631848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.92069
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010003
  norm       = 0.000100004
  Prefactor  = 94.4409
  norm       = 25.1903
  Prefactor  = 0.000100031
  norm       = 0.0001
  Normalizat = 1.14716
  Prefactor  = 0.937653
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.494     FROM HESSE     STATUS=OK           405 CALLS     3176 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9557        3.4930        .14155E-03   -1.5428    
   2  Prefactor     .10008E-03    81.117        .13202       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3374        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56276        26.574        .26620E-02   -1.5558    
   7  Prefactor     2.7327        44.376        .24378E-03   -1.5377    
   8  Prefactor     .10000E-03    11.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63185        283.16        .60026E-02   -1.5549    
  10  Prefactor     .10000E-03    43.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9207        76.766        .18125E-03   -1.5264    
  13  Prefactor     .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    186.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5963        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6478        .12963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    1064.5        .19883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.538        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     94.441        177.54        .20713E-03   -1.3761    
  20  norm          25.190        14.863        .79764E-04   -1.4704    
  21  Prefactor     .10003E-03    307.23        .39247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    25.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1472        .35514        .31756E-03   -.88252    
  24  Prefactor     .93765        .19894        .20161E-03   -.94838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65572e-09
Minuit parameter uncertainties:
  1  3.49337
  2  0.00525665
  3  1.10032e-05
  4  6.45081e-05
  5  6.45455e-07
  6  7.73729
  7  22.043
  8  1.22811e-06
  9  26.8784
  10  9.7241e-05
  11  2.44974e-05
  12  38.9304
  13  7.25757e-06
  14  0.000671691
  15  1.05697e-06
  16  1.0642e-05
  17  0.0115755
  18  0.000398745
  19  178.55
  20  14.8648
  21  0.00621278
  22  4.82111e-06
  23  0.355889
  24  0.199098
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  7.258e-06  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.377e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.147e+00  3.559e-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: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259937/likelihoodResults_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.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) = 3837.49408241
delta logL = -0.000458055112631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3837.49362522
delta logL = -8.6341469796e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3837.494     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1233.7        .90712E-02** at limit **
   2  Index         2.7345        8.4855        .50000       -.23498E-04
   3  Normalizat    1.1472        .96018E-01    .71765E-01    .39628E-04
   4  Prefactor     .93765        .55784E-01    .45486E-01    .37849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.73452
  Normalizat = 1.14716
  Prefactor  = 0.937655
 **********
 **   18 **HESSE 
 **********

 FCN=   3837.494     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7345        5.9994        .50000       -.47024    
   3  Normalizat    1.1472        .32596        .31757E-03   -.88252    
   4  Prefactor     .93765        .19069        .20161E-03   -.94837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78225e-10
Minuit parameter uncertainties:
  1  0.000435632
  2  7.35416
  3  0.326538
  4  0.190821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259937': 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) = 3837.49362409
delta logL = 2.68711119134e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.356e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.735e+00  7.354e+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.377e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.147e+00  3.265e-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/259937/cmap_HighResolution_500601601_500860801_4FGL_J2219.2-0342_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-28 09:19:50.858280', job_id='259937', GAL2='0.94', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632845990.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1008' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 259937: <4FGL_J2219.2-0342_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1008 334.823 -3.7102 500601601 500860801 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 :                                   520.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            536 sec.

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

