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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1091
RA = 334.823, Dec = -3.7102
tmin = 522115201, tmax = 522374401
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='261109', job_status='RUN', time_executed='2021-09-28 09:15:25.868861', time_epoch_executed='1632845725.87' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261109/ft1_4FGL_J2219.2-0342_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261109/ft1_4FGL_J2219.2-0342_daily_bin1091.fits outfile=/scratch/kocevski/261109/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1091.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=522115201.0 tmax=522374401.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.71
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261109/ft1_filtered_4FGL_J2219.2-0342_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/261109/ltcube_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.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/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261109/ft1_filtered_4FGL_J2219.2-0342_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/261109/ltcube_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.fits outfile=/scratch/kocevski/261109/expmap_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.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/261109/ltcube_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.fits
.....................!
real 191.24
user 185.77
sys 5.16

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/261109/ft1_filtered_4FGL_J2219.2-0342_daily_bin1091.fits scfile=/scratch/kocevski/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits outfile=/scratch/kocevski/261109/cmap_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261109/ft1_filtered_4FGL_J2219.2-0342_daily_bin1091.fits scfile=/scratch/kocevski/261109/ft2_4FGL_J2219.2-0342_daily_bin1091.fits outfile=/scratch/kocevski/261109/cmap_HighResolution_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.163       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58753E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    134.75       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5113       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    123.29       1.0000         .10000E-03   10000.    
    20 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.041       1.0000         .10000E-03   10000.    
    22 'norm      '    13.885       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73376       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98197       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=   6521.844     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2862 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6102        .93886E-06** at limit **
   2  Prefactor     61.260        47.124        .12611E-05    .80989E-04
   3  Prefactor     .10000E-03    53.718        .23602E-05** at limit **
   4  Prefactor     47.506        45.143       -.21203E-06    .52474E-04
   5  Prefactor     .10000E-03    3.7700       -.16798E-06** at limit **
   6  Prefactor     .10000E-03    7.7256       -.34772E-05** at limit **
   7  Prefactor     .10000E-03    7.1179       -.25207E-06** at limit **
   8  Prefactor     .10016E-03    18.252       -.25813E-05** at limit **
   9  Prefactor     15.996        20.946       -.28768E-06    .11044E-03
  10  Prefactor     .10000E-03    12.104       -.12784E-05** at limit **
  11  Prefactor     .10000E-03    20.993       -.69590E-06** at limit **
  12  Prefactor     .10000E-03    14.829        .48641E-06** at limit **
  13  Prefactor     24.082        12.347       -.11868E-06    .79421E-04
  14  Prefactor     134.72        96.085        .80250E-06    .22448E-04
  15  Prefactor     7.5109        4.9791       -.92289E-07    .10423E-03
  16  norm          8.2814        4.7827       -.24688E-06    .17359E-03
  17  Prefactor     .10000E-03    75.162       -.42179E-05** at limit **
  18  norm          .10000E-03    .57981       -.17317E-06** at limit **
  19  Prefactor     123.30        35.297       -.35460E-06    .99249E-04
  20  norm          .10000E-03    1.8740        .92125E-08** at limit **
  21  Prefactor     17.042        13.235       -.81530E-07    .91539E-05
  22  norm          13.884        13.046       -.29199E-06    .14116E-04
  23  Normalizat    .73379        .22512        .16839E-05    .34093E-03
  24  Prefactor     .98200        .12531        .51366E-06    .68059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 61.2597
  Prefactor  = 0.0001
  Prefactor  = 47.506
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100159
  Prefactor  = 15.9959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0821
  Prefactor  = 134.718
  Prefactor  = 7.51095
  norm       = 8.28137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 123.296
  norm       = 0.0001
  Prefactor  = 17.0422
  norm       = 13.8837
  Normalizat = 0.733785
  Prefactor  = 0.981998
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.844     FROM HESSE     STATUS=OK           401 CALLS     3263 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2181        .20632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.260        47.256        .25653E-03   -1.4141    
   3  Prefactor     .10000E-03    53.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.506        45.024        .58180E-04   -1.4328    
   5  Prefactor     .10000E-03    3.7945        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.619        .31991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10016E-03    145.87        .62670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.996        20.891        .10017E-03   -1.4908    
  10  Prefactor     .10000E-03    12.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.082        12.340        .81625E-04   -1.4726    
  14  Prefactor     134.72        95.926        .17347E-03   -1.3381    
  15  Prefactor     7.5109        4.9732        .13608E-03   -1.5160    
  16  norm          8.2814        4.7761        .12407E-03   -1.5132    
  17  Prefactor     .10000E-03    74.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .89365        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     123.30        34.182        .36248E-04   -1.3483    
  20  norm          .10000E-03    1.8829        .21177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.042        13.233        .97021E-04   -1.4882    
  22  norm          13.884        13.053        .10749E-03   -1.4963    
  23  Normalizat    .73379        .25753        .36305E-03   -1.0257    
  24  Prefactor     .98200        .14636        .18892E-03   -.93332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80215e-09
Minuit parameter uncertainties:
  1  9.16913e-05
  2  47.2845
  3  0.000225503
  4  45.0565
  5  3.4555e-07
  6  0.000413378
  7  3.86547e-06
  8  0.00964727
  9  20.9002
  10  2.34087e-05
  11  0.00013283
  12  3.36304e-05
  13  12.3417
  14  96.0368
  15  4.97343
  16  4.77634
  17  0.000232625
  18  8.13924e-06
  19  34.1875
  20  1.07813e-05
  21  13.2356
  22  13.0559
  23  0.257957
  24  0.146416
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.408e+01  1.234e+01  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.820e-01  1.464e-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:  7.338e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.72
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 5.68e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.39e-05

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): 0
logL (Free Index) = 6519.4051691
delta logL = 2.43886625815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6519.38146811
delta logL = 2.4625672522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.433       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7595       1.0000          .0000       10.000    
     3 'Normalizat'    .79747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95841       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=   6519.381     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.430        14.922       -.14451E-05   -.10911E-03
   2  Index         1.7594        .37914       -.89486E-05    .20361E-04
   3  Normalizat    .79748        .20874        .82426E-06    .45541E-04
   4  Prefactor     .95841        .12414       -.15656E-06    .62750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4305
  Index      = 1.75941
  Normalizat = 0.797475
  Prefactor  = 0.95841
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.381     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.430        14.599        .84569E-04   -1.4760    
   2  Index         1.7594        .37199        .57080E-02   -.70511    
   3  Normalizat    .79748        .24309        .34974E-03   -1.0016    
   4  Prefactor     .95841        .14524        .19090E-03   -.94129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01307e-09
Minuit parameter uncertainties:
  1  14.6013
  2  0.372589
  3  0.243424
  4  0.145294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261109': 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) = 6519.38146807
delta logL = 2.46256728846

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.243e+01  1.460e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.759e+00  3.726e-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:  9.584e-01  1.453e-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:  7.975e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.69
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.76 +/- 0.37
Photon Flux (Free Index): 5.10e-08 +/- 3.74e-08
Energy Flux (Free Index): 6.90e-05 +/- 5.67e-05

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/261109/cmap_HighResolution_522115201_522374401_4FGL_J2219.2-0342_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='6.90e-05', photon_flux_error='5.68e-08', dlogl='2.46e+00', energy_flux='2.71e-05', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-09-28 09:25:28.296838', photon_index_error2='0.37', photon_index2='1.76', ts='8.72', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.67e-05', EG='0.73', time_epoch_completed='1632846328.3', return_code='0', job_id='261109', GAL2='0.96', EG2='0.80', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='3.74e-08', ts2='13.69', photon_index='2.68' WHERE bin_id='1091' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 261109: <4FGL_J2219.2-0342_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1091 334.823 -3.7102 522115201 522374401 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 :                                   602.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             383.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            616 sec.

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

