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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1074
RA = 334.823, Dec = -3.7102
tmin = 517708801, tmax = 517968001
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='260039', job_status='RUN', time_executed='2021-09-28 09:13:22.930588', time_epoch_executed='1632845602.93' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260039/ft1_4FGL_J2219.2-0342_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260039/ft1_4FGL_J2219.2-0342_daily_bin1074.fits outfile=/scratch/kocevski/260039/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1074.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=517708801.0 tmax=517968001.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.10
user 3.46
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.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/260039/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.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/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/260039/ltcube_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.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/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits
.....................!
real 11.81
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/260039/ltcube_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.fits outfile=/scratch/kocevski/260039/expmap_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.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/260039/ltcube_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.fits
.....................!
real 190.29
user 185.24
sys 4.68

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/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits outfile=/scratch/kocevski/260039/cmap_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits outfile=/scratch/kocevski/260039/cmap_HighResolution_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/260039/ft2_4FGL_J2219.2-0342_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260039/Model_4FGL_J2219.2-0342_daily_bin1074.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/260039/ft1_filtered_4FGL_J2219.2-0342_daily_bin1074.fits.....................!
real 66.92
user 65.54
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75113E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.8326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.143       1.0000         .10000E-03   10000.    
    20 'norm      '    .16986       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.1648       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85431       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1224       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6961.357     FROM MIGRAD    STATUS=FAILED      1026 CALLS     3310 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6462        .20593E-03** at limit **
   2  Prefactor     18.102        32.125        .94134E-04   -.38526E-04
   3  Prefactor     .10000E-03    129.66        .18142E-02** at limit **
   4  Prefactor     .10002E-03    41.324        .15344    ** at limit **
   5  Prefactor     .10000E-03    3.8515        .15946E-02** at limit **
   6  Prefactor     .10000E-03    2.4389        .12677E-02** at limit **
   7  Prefactor     .10000E-03    6.0083        .18142E-02** at limit **
   8  Prefactor     .10000E-03    10.937        .18142E-02** at limit **
   9  Prefactor     30.193        20.519        .72913E-04    .73283E-05
  10  Prefactor     9.6703        19.597        .12888E-03   -.61747E-05
  11  Prefactor     3.7010        9.8560        .20992E-03   -.23775E-04
  12  Prefactor     23.087        34.600        .83399E-04   -.17176E-04
  13  Prefactor     .10000E-03    12.797        .18142E-02** at limit **
  14  Prefactor     .10000E-03    31.179        .18142E-02** at limit **
  15  Prefactor     .10001E-03    6.9401        .22566E-02** at limit **
  16  norm          6.8320        4.1588        .12532E-03    .30282E-03
  17  Prefactor     .10000E-03    145.36        .18142E-02** at limit **
  18  norm          1.7347        1.1680        .71241E-04    .14570E-03
  19  Prefactor     64.268        88.118        .25053E-03   -.96791E-04
  20  norm          .16162        53.716        .15263E-02    .30472E-02
  21  Prefactor     .10000E-03    17.280        .18142E-02** at limit **
  22  norm          9.1649        9.4535        .13239E-03    .16831E-04
  23  Normalizat    .85441        .26555        .34692E-03    .47320E-04
  24  Prefactor     1.1224        .15605        .18846E-03    .20100E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6961.357     FROM SIMPLEX   STATUS=UNCHANGED   1233 CALLS     4543 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6462        .17126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.102        32.125        .10826E-05   -1.4857    
   3  Prefactor     .10000E-03    129.66        .12138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    41.324        .17878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8515        .27141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4389        .93992E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0083        .19937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.937        .23695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.193        20.519        .10671E-05   -1.4608    
  10  Prefactor     9.6703        19.597        .10975E-05   -1.5086    
  11  Prefactor     3.7010        9.8560        .11224E-05   -1.5323    
  12  Prefactor     23.087        34.600        .10778E-05   -1.4747    
  13  Prefactor     .10000E-03    12.797        .41508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.179        .38071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    6.9401        .11460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8320        4.1588        .11065E-05   -1.5185    
  17  Prefactor     .10000E-03    145.36        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7347        1.1680        .11253E-05   -1.5445    
  19  Prefactor     64.268        88.118        .10263E-05   -1.4103    
  20  norm          .16162        53.716        .11360E-05   -1.5628    
  21  Prefactor     .10000E-03    17.280        .31000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1649        9.4535        .11000E-05   -1.5102    
  23  Normalizat    .85441        .26555        .71437E-06   -.98081    
  24  Prefactor     1.1224        .15605        .64662E-06   -.88754    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6961.357     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     4931 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6462        .41186E-04** at limit **
   2  Prefactor     18.102        32.130        .37654E-05    .60385E-06
   3  Prefactor     .10000E-03    129.73        .36285E-03** at limit **
   4  Prefactor     .10002E-03    42.142        .15135    ** at limit **
   5  Prefactor     .10000E-03    3.8520        .31892E-03** at limit **
   6  Prefactor     .10000E-03    2.4392        .25354E-03** at limit **
   7  Prefactor     .10000E-03    6.0098        .36285E-03** at limit **
   8  Prefactor     .10000E-03    10.939        .36285E-03** at limit **
   9  Prefactor     30.193        20.519        .29165E-05    .23388E-05
  10  Prefactor     9.6703        19.593        .51552E-05    .13232E-05
  11  Prefactor     3.7010        9.8548        .83967E-05    .54158E-06
  12  Prefactor     23.087        34.596        .33360E-05    .68158E-06
  13  Prefactor     .10000E-03    12.808        .36285E-03** at limit **
  14  Prefactor     .10000E-03    31.179        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.9771        .45133E-03** at limit **
  16  norm          6.8320        4.1578        .50127E-05    .19958E-04
  17  Prefactor     .10000E-03    145.39        .36285E-03** at limit **
  18  norm          1.7347        1.1614        .28496E-05   -.23937E-05
  19  Prefactor     64.268        59.212        .10021E-04   -.10891E-04
  20  norm          .16163        24.308        .30527E-03    .81560E-05
  21  Prefactor     .10000E-03    17.294        .36285E-03** at limit **
  22  norm          9.1649        9.4531        .52955E-05    .42937E-06
  23  Normalizat    .85441        .26262        .13877E-04    .12944E-04
  24  Prefactor     1.1224        .15515        .37693E-04    .23828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.1023
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1933
  Prefactor  = 9.6703
  Prefactor  = 3.70101
  Prefactor  = 23.087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.83203
  Prefactor  = 0.0001
  norm       = 1.73474
  Prefactor  = 64.268
  norm       = 0.161625
  Prefactor  = 0.0001
  norm       = 9.16494
  Normalizat = 0.854411
  Prefactor  = 1.12238
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.357     FROM HESSE     STATUS=OK           383 CALLS     5314 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6462        .82373E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.102        31.980        .75308E-06   -1.4857    
   3  Prefactor     .10000E-03    129.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    41.905        .15193       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8520        .63783E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4392        .50709E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0098        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.939        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.193        20.614        .58331E-06   -1.4608    
  10  Prefactor     9.6703        19.639        .10310E-05   -1.5086    
  11  Prefactor     3.7010        9.8574        .16793E-05   -1.5323    
  12  Prefactor     23.087        34.865        .66719E-06   -1.4747    
  13  Prefactor     .10000E-03    12.808        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9785        .90266E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8320        4.1586        .10025E-05   -1.5185    
  17  Prefactor     .10000E-03    145.40        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7347        1.1609        .56992E-06   -1.5445    
  19  Prefactor     64.268        55.528        .20043E-05   -1.4103    
  20  norm          .16163        21.357        .12211E-04   -1.5628    
  21  Prefactor     .10000E-03    17.294        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1649        9.4592        .10591E-05   -1.5102    
  23  Normalizat    .85441        .26266        .27754E-05   -.98081    
  24  Prefactor     1.1224        .15510        .75386E-05   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78092e-12
Minuit parameter uncertainties:
  1  6.25474e-09
  2  32.0107
  3  4.57906e-08
  4  0.00167619
  5  8.50918e-09
  6  3.82282e-08
  7  2.35232e-08
  8  3.14571e-08
  9  20.6193
  10  19.6516
  11  9.86173
  12  34.8962
  13  1.6081e-06
  14  4.09554e-07
  15  3.53331e-06
  16  4.15882
  17  5.73442e-06
  18  1.16091
  19  55.5729
  20  3.716
  21  4.46537e-07
  22  9.46071
  23  0.263055
  24  0.155165
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.608e-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:  1.122e+00  1.552e-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:  8.544e-01  2.631e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260039/likelihoodResults_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.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) = 6961.35712907
delta logL = -0.000372475707991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.35675659
delta logL = 1.27138264361e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7422       1.0000          .0000       10.000    
     3 'Normalizat'    .85463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       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=   6961.357     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      219 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    18.151        .90712E-01** at limit **
   2  Index         2.8177        5.4389        .50000       -.48851E-04
   3  Normalizat    .85441        .10784E-01    .78372E-01    .47164E-04
   4  Prefactor     1.1224        .66565E-02    .36796E-01    .15696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.81773
  Normalizat = 0.854411
  Prefactor  = 1.12238
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.357     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    6292.6        .34220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8177        6.3349        .50000       -.45165    
   3  Normalizat    .85441        .81135E-01    .34691E-03   -.98081    
   4  Prefactor     1.1224        .49831E-01    .18847E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05332e-06
Minuit parameter uncertainties:
  1  0.0175756
  2  54.0604
  3  0.0811468
  4  0.0498333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260039': 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) = 6961.3567552
delta logL = 1.40220890898e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.758e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.818e+00  5.406e+01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.122e+00  4.983e-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:  8.544e-01  8.115e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/260039/cmap_HighResolution_517708801_517968001_4FGL_J2219.2-0342_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 09:27:25.361500', job_id='260039', GAL2='1.12', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632846445.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1074' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 260039: <4FGL_J2219.2-0342_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1074> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:11:02 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:11:04 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:11:04 2021
Terminated at Tue Sep 28 09:27:26 2021
Results reported at Tue Sep 28 09:27:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1074 334.823 -3.7102 517708801 517968001 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 :                                   840.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

