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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1324
RA = 334.823, Dec = -3.7102
tmin = 582508801, tmax = 582768001
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='261475', job_status='RUN', time_executed='2021-09-28 09:18:10.911641', time_epoch_executed='1632845890.91' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261475

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261475/ft1_4FGL_J2219.2-0342_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261475/ft2_4FGL_J2219.2-0342_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261475/ft1_4FGL_J2219.2-0342_daily_bin1324.fits outfile=/scratch/kocevski/261475/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1324.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=582508801.0 tmax=582768001.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.68
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261475/ft1_filtered_4FGL_J2219.2-0342_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/261475/ft2_4FGL_J2219.2-0342_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/261475/ltcube_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.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/261475/ft2_4FGL_J2219.2-0342_daily_bin1324.fits
.....................!
real 13.34
user 12.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261475/ft1_filtered_4FGL_J2219.2-0342_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/261475/ft2_4FGL_J2219.2-0342_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/261475/ltcube_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.fits outfile=/scratch/kocevski/261475/expmap_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.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/261475/ltcube_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.fits
.....................!
real 189.67
user 185.20
sys 4.11

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

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261475/ft1_filtered_4FGL_J2219.2-0342_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/261475/ft2_4FGL_J2219.2-0342_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261475/Model_4FGL_J2219.2-0342_daily_bin1324.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/261475/ft1_filtered_4FGL_J2219.2-0342_daily_bin1324.fits.....................!
real 59.84
user 58.45
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12265E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5517       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.676       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4818       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4607       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3694       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.512       1.0000         .10000E-03   10000.    
    22 'norm      '    35.896       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87427       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=   6221.260     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2677 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80915        .29596E-07** at limit **
   2  Prefactor     .10000E-03    70.073        .12334E-06** at limit **
   3  Prefactor     .10000E-03    33.907       -.83477E-06** at limit **
   4  Prefactor     59.540        50.437        .58484E-06   -.40206E-05
   5  Prefactor     .10000E-03    3.6578        .48973E-08** at limit **
   6  Prefactor     .10000E-03    8.6068        .12205E-06** at limit **
   7  Prefactor     .10000E-03    5.4089        .14567E-06** at limit **
   8  Prefactor     .10000E-03    5.4648        .17498E-06** at limit **
   9  Prefactor     1.5105        25.250        .87760E-05    .13095E-04
  10  Prefactor     .10000E-03    11.604        .43835E-06** at limit **
  11  Prefactor     .10000E-03    11.010        .52401E-06** at limit **
  12  Prefactor     .10000E-03    18.928       -.26249E-07** at limit **
  13  Prefactor     4.5580        9.4830       -.41781E-06    .24521E-04
  14  Prefactor     42.682        80.901       -.12191E-05    .41921E-05
  15  Prefactor     .10000E-03    5.4252       -.15883E-05** at limit **
  16  norm          .10000E-03    3.2068       -.12204E-05** at limit **
  17  Prefactor     8.2842        282.55        .33592E-04   -.15068E-04
  18  norm          2.4607        1.5210       -.18270E-08   -.28165E-04
  19  Prefactor     .10000E-03    29.368        .91237E-06** at limit **
  20  norm          3.3690        2.0065       -.44231E-07   -.76252E-04
  21  Prefactor     13.513        12.373        .38211E-07   -.45893E-05
  22  norm          35.899        18.224        .23681E-07   -.37528E-05
  23  Normalizat    1.4093        .23334        .13039E-05   -.30269E-05
  24  Prefactor     .87434        .13529       -.18506E-05    .63294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.5404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55801
  Prefactor  = 42.682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.28424
  norm       = 2.46074
  Prefactor  = 0.0001
  norm       = 3.36899
  Prefactor  = 13.5126
  norm       = 35.8992
  Normalizat = 1.40927
  Prefactor  = 0.874341
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.260     FROM HESSE     STATUS=OK           391 CALLS     3068 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81291        .69283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.540        50.424        .51992E-04   -1.4163    
   5  Prefactor     .10000E-03    3.6682        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4243        .17913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4679        .18008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5105        25.682        .17409E-02   -1.5462    
  10  Prefactor     .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5580        9.4604        .18869E-03   -1.5281    
  14  Prefactor     42.682        80.971        .61366E-04   -1.4400    
  15  Prefactor     .10000E-03    5.6726        .35878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3080        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2842        287.88        .13765E-03   -1.5132    
  18  norm          2.4607        1.5189        .72798E-04   -1.5394    
  19  Prefactor     .10000E-03    29.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3690        2.0029        .82031E-04   -1.5341    
  21  Prefactor     13.513        12.369        .54483E-03   -1.4973    
  22  norm          35.899        18.258        .66890E-04   -1.4509    
  23  Normalizat    1.4093        .27738        .28581E-03   -.80361    
  24  Prefactor     .87434        .15880        .21021E-03   -.97044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72066e-10
Minuit parameter uncertainties:
  1  5.85012e-07
  2  5.0174e-05
  3  3.0594e-05
  4  50.4604
  5  8.55968e-08
  6  1.55952e-05
  7  3.00002e-06
  8  6.90989e-07
  9  12.4625
  10  5.84661e-06
  11  3.05146e-06
  12  1.24093e-05
  13  9.46352
  14  81.1811
  15  8.46336e-05
  16  5.58697e-05
  17  98.1864
  18  1.51889
  19  1.7825e-05
  20  2.00296
  21  12.3718
  22  18.2605
  23  0.277677
  24  0.158879
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.558e+00  9.464e+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:  8.743e-01  1.589e-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.409e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261475/likelihoodResults_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.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) = 6220.97189703
delta logL = 0.288016681444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6220.95929247
delta logL = 0.300621244623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7320       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8708       1.0000          .0000       10.000    
     3 'Normalizat'    1.3724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88772       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=   6220.959     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      276 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7316        9.1640        .14710E-03   -.51201E-03
   2  Index         3.8711        2.3878        .10359E-01   -.67848E-04
   3  Normalizat    1.3723        .27074        .28898E-03   -.21640E-03
   4  Prefactor     .88776        .15953        .20876E-03   -.20484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73158
  Index      = 3.8711
  Normalizat = 1.37234
  Prefactor  = 0.887761
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.959     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7316        6.1812        .58841E-05   -1.5377    
   2  Index         3.8711        1.6480        .41436E-03   -.22774    
   3  Normalizat    1.3723        .27105        .57796E-04   -.81432    
   4  Prefactor     .88776        .15952        .41751E-04   -.96570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67988e-10
Minuit parameter uncertainties:
  1  6.18267
  2  1.68121
  3  0.271335
  4  0.159602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261475': 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) = 6220.95929242
delta logL = 0.300621298696

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.732e+00  6.183e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.871e+00  1.681e+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:  8.878e-01  1.596e-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.372e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/261475/cmap_HighResolution_582508801_582768001_4FGL_J2219.2-0342_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-28 09:28:53.818334', job_id='261475', GAL2='0.89', fit_tolerance='1e-08', EG2='1.37', EG='1.41', time_epoch_completed='1632846533.82', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.01e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1324' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 261475: <4FGL_J2219.2-0342_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1324 334.823 -3.7102 582508801 582768001 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

