/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 217 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1608
RA = 334.823, Dec = -3.7102
tmin = 656121601, tmax = 656380801
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='483685', job_status='RUN', time_executed='2021-12-08 08:34:17.900956', time_epoch_executed='1638981257.9' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483685

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483685/ft1_4FGL_J2219.2-0342_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483685/ft1_4FGL_J2219.2-0342_daily_bin1608.fits outfile=/scratch/kocevski/483685/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1608.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=656121601.0 tmax=656380801.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.55
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/483685/ltcube_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.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/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits
.....................!
real 13.32
user 12.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/483685/ltcube_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.fits outfile=/scratch/kocevski/483685/expmap_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.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/483685/ltcube_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.fits
.....................!
real 191.72
user 187.01
sys 4.06

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/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits scfile=/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits outfile=/scratch/kocevski/483685/cmap_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits scfile=/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits outfile=/scratch/kocevski/483685/cmap_HighResolution_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/483685/ft2_4FGL_J2219.2-0342_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483685/Model_4FGL_J2219.2-0342_daily_bin1608.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/483685/ft1_filtered_4FGL_J2219.2-0342_daily_bin1608.fits.....................!
real 52.89
user 51.51
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6570       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    109.06       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.227       1.0000         .10000E-03   10000.    
    20 'norm      '    .18774E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18650       1.0000         .10000E-03   10000.    
    22 'norm      '    48.869       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54440       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0408       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=   5483.219     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     3253 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7103        2.1738       -.43678E-07   -.30301E-03
   2  Prefactor     39.939        41.553        .76754E-06   -.44077E-04
   3  Prefactor     .10000E-03    25.325        .58422E-06** at limit **
   4  Prefactor     2.8245        160.56        .83961E-04   -.90511E-05
   5  Prefactor     .10000E-03    4.1263       -.78407E-06** at limit **
   6  Prefactor     5.8303        9.0834       -.13775E-05   -.17010E-03
   7  Prefactor     31.796        18.153       -.33114E-06   -.46550E-04
   8  Prefactor     30.442        23.106       -.14348E-05   -.67910E-04
   9  Prefactor     .10000E-03    28.162       -.72573E-06** at limit **
  10  Prefactor     27.217        21.494        .23464E-05   -.20718E-04
  11  Prefactor     4.7452        15.089        .26450E-05   -.54548E-04
  12  Prefactor     12.285        26.078        .30125E-05   -.20722E-04
  13  Prefactor     32.518        15.730        .10909E-05    .14500E-04
  14  Prefactor     3.5664        221.78        .23743E-04    .13687E-05
  15  Prefactor     1.6577        4.2191       -.13517E-06   -.63759E-03
  16  norm          3.0185        2.9418        .29448E-06    .17253E-03
  17  Prefactor     109.05        95.419       -.13999E-04    .21404E-04
  18  norm          .10000E-03    .54356       -.22919E-07** at limit **
  19  Prefactor     32.191        23.118        .63520E-05    .11520E-02
  20  norm          .10000E-03    1.1706       -.14816E-05** at limit **
  21  Prefactor     .23345        11.879       -.86064E-06    .26852E-04
  22  norm          48.870        17.086        .95246E-06    .27893E-04
  23  Normalizat    .54446        .26771       -.44671E-05    .61740E-04
  24  Prefactor     1.0407        .14648       -.11608E-06    .19251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71031
  Prefactor  = 39.9392
  Prefactor  = 0.0001
  Prefactor  = 2.8245
  Prefactor  = 0.000100001
  Prefactor  = 5.83029
  Prefactor  = 31.7955
  Prefactor  = 30.4415
  Prefactor  = 0.0001
  Prefactor  = 27.2175
  Prefactor  = 4.74516
  Prefactor  = 12.2853
  Prefactor  = 32.5179
  Prefactor  = 3.56638
  Prefactor  = 1.65765
  norm       = 3.01849
  Prefactor  = 109.047
  norm       = 0.0001
  Prefactor  = 32.1905
  norm       = 0.000100004
  Prefactor  = 0.233451
  norm       = 48.8696
  Normalizat = 0.544463
  Prefactor  = 1.04067
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.219     FROM HESSE     STATUS=OK           411 CALLS     3664 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7103        2.1528        .11819E-03   -1.5446    
   2  Prefactor     39.939        41.440        .63428E-04   -1.4443    
   3  Prefactor     .10000E-03    25.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8245        152.82        .24366E-03   -1.5372    
   5  Prefactor     .10000E-03    4.1666        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8303        9.0707        .16634E-03   -1.5225    
   7  Prefactor     31.796        18.132        .71062E-04   -1.4580    
   8  Prefactor     30.442        23.079        .72621E-04   -1.4604    
   9  Prefactor     .10000E-03    28.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.217        21.435        .76786E-04   -1.4664    
  11  Prefactor     4.7452        15.041        .18474E-03   -1.5272    
  12  Prefactor     12.285        26.025        .11429E-03   -1.5007    
  13  Prefactor     32.518        15.622        .70270E-04   -1.4567    
  14  Prefactor     3.5664        220.62        .21416E-03   -1.5330    
  15  Prefactor     1.6577        4.1608        .22368E-03   -1.5450    
  16  norm          3.0185        2.9385        .11944E-03   -1.5360    
  17  Prefactor     109.05        94.757        .19256E-03   -1.3616    
  18  norm          .10000E-03    .55425        .53253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.191        21.256        .70583E-04   -1.4573    
  20  norm          .10000E-03    8.9293        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .23345        15.422        .80841E-01   -1.5611    
  22  norm          48.870        17.071        .57363E-04   -1.4309    
  23  Normalizat    .54446        .29301        .40055E-03   -1.1040    
  24  Prefactor     1.0407        .16501        .18038E-03   -.91386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48046e-09
Minuit parameter uncertainties:
  1  2.1529
  2  41.4698
  3  2.8226e-05
  4  41.6631
  5  0.000148816
  6  9.0728
  7  18.1354
  8  23.0857
  9  0.000128178
  10  21.441
  11  15.0531
  12  26.0493
  13  15.6244
  14  56.318
  15  4.16156
  16  2.93866
  17  94.8886
  18  2.38213e-06
  19  21.2615
  20  0.000379646
  21  3.79507
  22  17.0725
  23  0.293843
  24  0.165093
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.252e+01  1.562e+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:  1.041e+00  1.651e-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:  5.445e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.91
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 7.19e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.76e-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) = 5481.88180327
delta logL = 1.33756896838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.80246364
delta logL = 1.41690859465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.111       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9650       1.0000          .0000       10.000    
     3 'Normalizat'    .62819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99890       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=   5481.802     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.111        18.436        .15822E-02   -.44189E-02
   2  Index         1.9651        .30954        .13545       -.61756E-04
   3  Normalizat    .62834        .23003        .84572E-01    .26072E-04
   4  Prefactor     .99881        .13971        .46253E-01   -.56922E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1111
  Index      = 1.96511
  Normalizat = 0.628342
  Prefactor  = 0.998814
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.802     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.111        19.444        .63290E-04   -1.4440    
   2  Index         1.9651        .35432        .55211E-02   -.65225    
   3  Normalizat    .62834        .26651        .37458E-03   -1.0679    
   4  Prefactor     .99881        .16186        .18343E-03   -.92769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85962e-08
Minuit parameter uncertainties:
  1  19.4467
  2  0.354796
  3  0.267055
  4  0.161936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483685': 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) = 5481.80246341
delta logL = 1.41690883131

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.011e+01  1.945e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.965e+00  3.548e-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.988e-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:  6.283e-01  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.70
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.97 +/- 0.35
Photon Flux (Free Index): 1.00e-07 +/- 5.94e-08
Energy Flux (Free Index): 7.58e-05 +/- 5.32e-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/483685/cmap_HighResolution_656121601_656380801_4FGL_J2219.2-0342_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='7.58e-05', photon_flux_error='7.19e-08', dlogl='1.42e+00', energy_flux='3.66e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-12-08 08:44:06.028740', photon_index_error2='0.35', photon_index2='1.97', ts='7.91', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='5.32e-05', EG='0.54', time_epoch_completed='1638981846.03', return_code='0', job_id='483685', GAL2='1.00', EG2='0.63', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.94e-08', ts2='10.70', photon_index='2.68' WHERE bin_id='1608' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:44:06 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 483685: <4FGL_J2219.2-0342_daily_bin1608> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1608> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:30:19 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:30:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:30:34 2021
Terminated at Wed Dec  8 08:44:06 2021
Results reported at Wed Dec  8 08:44:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1608 334.823 -3.7102 656121601 656380801 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            827 sec.

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

