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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1431
RA = 334.823, Dec = -3.7102
tmin = 610243201, tmax = 610502401
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='261643', job_status='RUN', time_executed='2021-09-28 09:18:34.864421', time_epoch_executed='1632845914.86' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261643/ft1_4FGL_J2219.2-0342_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261643/ft1_4FGL_J2219.2-0342_daily_bin1431.fits outfile=/scratch/kocevski/261643/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1431.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=610243201.0 tmax=610502401.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.94
user 3.73
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261643/ft1_filtered_4FGL_J2219.2-0342_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/261643/ltcube_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.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/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits
.....................!
real 13.13
user 12.58
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261643/ft1_filtered_4FGL_J2219.2-0342_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/261643/ltcube_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.fits outfile=/scratch/kocevski/261643/expmap_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.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/261643/ltcube_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.fits
.....................!
real 190.30
user 185.45
sys 4.46

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261643/ft1_filtered_4FGL_J2219.2-0342_daily_bin1431.fits scfile=/scratch/kocevski/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits outfile=/scratch/kocevski/261643/cmap_HighResolution_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261643/ft1_filtered_4FGL_J2219.2-0342_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/261643/ft2_4FGL_J2219.2-0342_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261643/Model_4FGL_J2219.2-0342_daily_bin1431.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/261643/ft1_filtered_4FGL_J2219.2-0342_daily_bin1431.fits.....................!
real 57.76
user 56.44
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47880       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.083       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7480       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.500       1.0000         .10000E-03   10000.    
    22 'norm      '    13.569       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78052       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=   5755.939     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2710 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4372        .63353E-07** at limit **
   2  Prefactor     .10000E-03    15.210        .51004E-05** at limit **
   3  Prefactor     .10000E-03    21.476       -.53951E-05** at limit **
   4  Prefactor     .10000E-03    19.117        .75313E-05** at limit **
   5  Prefactor     .10000E-03    2.0617        .55373E-07** at limit **
   6  Prefactor     4.1439        6.6852       -.67288E-06   -.39431E-03
   7  Prefactor     .10000E-03    6.8954       -.17420E-06** at limit **
   8  Prefactor     .10000E-03    10.608        .11066E-05** at limit **
   9  Prefactor     30.374        18.928        .15182E-05    .20628E-04
  10  Prefactor     .10000E-03    8.2050       -.18329E-06** at limit **
  11  Prefactor     9.1883        14.518       -.82208E-06   -.88175E-04
  12  Prefactor     .10000E-03    14.018       -.63730E-05** at limit **
  13  Prefactor     .57788        9.5165        .22876E-05   -.83011E-03
  14  Prefactor     .10000E-03    39.235        .15850E-04** at limit **
  15  Prefactor     .10000E-03    1.1617        .48572E-07** at limit **
  16  norm          .18386        1.8093       -.71124E-06    .12984E-03
  17  Prefactor     .10000E-03    64.658       -.81172E-05** at limit **
  18  norm          2.4718        1.4933       -.26577E-06   -.33644E-03
  19  Prefactor     18.095        53.910        .23438E-04    .23452E-04
  20  norm          4.7435        4.1175       -.28579E-05    .89522E-03
  21  Prefactor     14.498        12.893       -.49197E-06   -.29250E-04
  22  norm          13.568        15.489       -.47366E-06   -.66187E-04
  23  Normalizat    1.2662        .22982       -.12311E-05   -.65628E-04
  24  Prefactor     .78061        .12835        .32670E-06   -.19671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.14394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3739
  Prefactor  = 0.0001
  Prefactor  = 9.18825
  Prefactor  = 0.000100001
  Prefactor  = 0.577878
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.183855
  Prefactor  = 0.000100001
  norm       = 2.47184
  Prefactor  = 18.0951
  norm       = 4.74355
  Prefactor  = 14.4981
  norm       = 13.5684
  Normalizat = 1.26623
  Prefactor  = 0.780614
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.939     FROM HESSE     STATUS=OK           399 CALLS     3109 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4797        .17755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0643        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1439        6.7235        .19810E-03   -1.5301    
   7  Prefactor     .10000E-03    6.9395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.374        18.934        .72730E-04   -1.4605    
  10  Prefactor     .10000E-03    8.2277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1883        14.582        .13224E-03   -1.5102    
  12  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57788        42.205        .42376E-02   -1.5556    
  14  Prefactor     .10000E-03    39.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1645        .79818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18386        13.352        .19337E-02   -1.5622    
  17  Prefactor     .10000E-03    64.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4718        1.4879        .68542E-04   -1.5394    
  19  Prefactor     18.095        55.284        .94187E-04   -1.4857    
  20  norm          4.7435        4.2558        .76330E-04   -1.5272    
  21  Prefactor     14.498        12.893        .10519E-03   -1.4946    
  22  norm          13.568        15.541        .10874E-03   -1.4971    
  23  Normalizat    1.2662        .27627        .27598E-03   -.84580    
  24  Prefactor     .78061        .15499        .20268E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10858e-08
Minuit parameter uncertainties:
  1  1.60777e-06
  2  0.000174343
  3  0.00021233
  4  0.00028746
  5  5.94877e-07
  6  6.72475
  7  1.0581e-05
  8  3.31088e-05
  9  18.9379
  10  2.19053e-05
  11  14.5874
  12  0.000200321
  13  9.88347
  14  0.000864764
  15  1.11205e-06
  16  3.13343
  17  0.000553659
  18  1.48796
  19  55.4413
  20  4.25603
  21  12.8955
  22  15.5456
  23  0.276589
  24  0.155075
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.779e-01  9.883e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.806e-01  1.551e-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.266e+00  2.766e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261643/likelihoodResults_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.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): 0
logL (Free Index) = 5755.93519871
delta logL = 0.00411472500491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.93161799
delta logL = 0.00769544471495

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5755.932     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      262 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4472        20.478        .36414E-03   -.47518E-04
   2  Index         2.3178        2.1658        .19047E-01   -.16331E-04
   3  Normalizat    1.2669        .25709        .27593E-03   -.10490E-03
   4  Prefactor     .77919        .15350        .20285E-03   -.81097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44722
  Index      = 2.31779
  Normalizat = 1.26686
  Prefactor  = 0.779188
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.932     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4472        19.987        .14566E-04   -1.5467    
   2  Index         2.3178        2.1444        .76187E-03   -.56621    
   3  Normalizat    1.2669        .25734        .11037E-04   -.84561    
   4  Prefactor     .77919        .15357        .81140E-05   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42647e-11
Minuit parameter uncertainties:
  1  10.7606
  2  2.24943
  3  0.257596
  4  0.153651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261643': 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) = 5755.93160091
delta logL = 0.00771252671711

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.447e+00  1.076e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.318e+00  2.249e+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:  7.792e-01  1.537e-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.267e+00  2.576e-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/261643/cmap_HighResolution_610243201_610502401_4FGL_J2219.2-0342_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 09:29:01.361158', job_id='261643', GAL2='0.78', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632846541.36', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.71e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1431' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 261643: <4FGL_J2219.2-0342_daily_bin1431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1431 334.823 -3.7102 610243201 610502401 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 :                                   625.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

