/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 188 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin85
RA = 334.823, Dec = -3.7102
tmin = 261360001, tmax = 261619201
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='255380', job_status='RUN', time_executed='2021-09-28 08:58:48.629033', time_epoch_executed='1632844728.63' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255380

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255380/ft1_4FGL_J2219.2-0342_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255380/ft1_4FGL_J2219.2-0342_daily_bin85.fits outfile=/scratch/kocevski/255380/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin85.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.49
user 1.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/255380/ltcube_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.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/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits
.....................!
real 12.70
user 12.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/255380/ltcube_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.fits outfile=/scratch/kocevski/255380/expmap_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.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/255380/ltcube_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.fits
.....................!
real 190.82
user 185.53
sys 4.98

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/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits scfile=/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits outfile=/scratch/kocevski/255380/cmap_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.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/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits scfile=/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits outfile=/scratch/kocevski/255380/cmap_HighResolution_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/255380/ft2_4FGL_J2219.2-0342_daily_bin85.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255380/Model_4FGL_J2219.2-0342_daily_bin85.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/255380/ft1_filtered_4FGL_J2219.2-0342_daily_bin85.fits.....................!
real 61.43
user 60.07
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26309E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.08       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72856E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.244       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0307       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2519       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.489       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1091       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74266       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=   6419.896     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2716 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2847        .10128E-07** at limit **
   2  Prefactor     104.09        46.595        .12623E-05   -.36298E-05
   3  Prefactor     39.078        38.861       -.51088E-05   -.54137E-03
   4  Prefactor     8.2963        26.884        .97548E-07   -.40034E-05
   5  Prefactor     .10000E-03    1.8006       -.72506E-09** at limit **
   6  Prefactor     9.4428        7.7676       -.32590E-06   -.42983E-04
   7  Prefactor     6.0342        6.2524        .16043E-07   -.44050E-04
   8  Prefactor     .10000E-03    29.312       -.11187E-05** at limit **
   9  Prefactor     .10000E-03    3.7986        .79778E-07** at limit **
  10  Prefactor     .10000E-03    18.650        .26194E-06** at limit **
  11  Prefactor     4.2061        12.532        .91060E-05   -.32245E-03
  12  Prefactor     .10000E-03    10.898        .54608E-07** at limit **
  13  Prefactor     .10023E-03    7.1092        .72568E-06** at limit **
  14  Prefactor     32.242        51.588       -.14759E-05   -.28536E-04
  15  Prefactor     3.0192        4.9756        .35517E-06   -.39663E-03
  16  norm          1.2504        3.0981        .60346E-06   -.21784E-03
  17  Prefactor     .10000E-03    32.000        .16145E-05** at limit **
  18  norm          6.7291        1.5484       -.51153E-07   -.19971E-03
  19  Prefactor     .10000E-03    3.7630       -.51722E-07** at limit **
  20  norm          .10000E-03    .29809        .18631E-07** at limit **
  21  Prefactor     10.488        11.465        .12157E-06   -.12655E-04
  22  norm          .10000E-03    4.0285        .67423E-07** at limit **
  23  Normalizat    1.1095        .20844       -.18494E-05   -.12894E-03
  24  Prefactor     .74244        .11586        .48473E-06   -.31845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 104.088
  Prefactor  = 39.0784
  Prefactor  = 8.29626
  Prefactor  = 0.0001
  Prefactor  = 9.44276
  Prefactor  = 6.03424
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20615
  Prefactor  = 0.0001
  Prefactor  = 0.000100227
  Prefactor  = 32.242
  Prefactor  = 3.0192
  norm       = 1.25043
  Prefactor  = 0.000100001
  norm       = 6.72905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4883
  norm       = 0.0001
  Normalizat = 1.10951
  Prefactor  = 0.742439
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.896     FROM HESSE     STATUS=OK           397 CALLS     3113 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9170        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     104.09        45.612        .39414E-04   -1.3664    
   3  Prefactor     39.078        41.579        .64081E-04   -1.4457    
   4  Prefactor     8.2963        26.876        .13918E-03   -1.5132    
   5  Prefactor     .10000E-03    1.8019        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4428        7.7984        .13040E-03   -1.5093    
   7  Prefactor     6.0342        6.2528        .16345E-03   -1.5217    
   8  Prefactor     .10000E-03    29.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8009        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2061        12.838        .98170E-03   -1.5298    
  12  Prefactor     .10000E-03    10.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10023E-03    71.748        .37052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.242        51.561        .70565E-04   -1.4572    
  15  Prefactor     3.0192        4.5903        .19443E-03   -1.5360    
  16  norm          1.2504        3.0600        .20603E-03   -1.5484    
  17  Prefactor     .10000E-03    32.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7291        1.5499        .46339E-04   -1.5189    
  19  Prefactor     .10000E-03    3.7656        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .29994        .42707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.488        11.462        .12371E-03   -1.5060    
  22  norm          .10000E-03    4.0477        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1095        .25008        .27557E-03   -.89447    
  24  Prefactor     .74244        .13964        .19736E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27963e-09
Minuit parameter uncertainties:
  1  0.000210794
  2  45.6277
  3  41.6098
  4  26.9153
  5  7.27256e-07
  6  7.79922
  7  6.25351
  8  0.000259105
  9  4.72651e-06
  10  1.5142e-05
  11  12.8461
  12  2.37313e-06
  13  0.00808604
  14  51.6321
  15  4.59085
  16  3.06038
  17  0.000349044
  18  1.54992
  19  4.74101e-06
  20  2.17436e-07
  21  11.4645
  22  2.04492e-06
  23  0.250343
  24  0.139706
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.002e-04  8.086e-03  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.424e-01  1.397e-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.110e+00  2.503e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255380/likelihoodResults_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6419.89638432
delta logL = -6.55159601592e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6419.46729167
delta logL = 0.42902713265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57056       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0530       1.0000          .0000       10.000    
     3 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76562       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=   6419.467     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      459 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57003        11.174        .11556E-01    .14083E-02
   2  Index         5.0533        3.9349        .20137        .10127E-03
   3  Normalizat    1.0451        .40156E-01    .63953E-01   -.19853E-05
   4  Prefactor     .76562        .24134E-01    .43268E-01    .27598E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.570032
  Index      = 5.05334
  Normalizat = 1.04515
  Prefactor  = 0.765624
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.467     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      494 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57003        37.585        .68762E-03   -1.5557    
   2  Index         5.0533        6.9844        .93167E-02    .10669E-01
   3  Normalizat    1.0451        .16646        .28288E-03   -.91533    
   4  Prefactor     .76562        .98059E-01    .19460E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.55433e-11
Minuit parameter uncertainties:
  1  9.26261
  2  11.2625
  3  0.166548
  4  0.0980811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255380': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6419.46729159
delta logL = 0.429027211822

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.700e-01  9.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  5.053e+00  1.126e+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:  7.656e-01  9.808e-02  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.045e+00  1.665e-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/255380/cmap_HighResolution_261360001_261619201_4FGL_J2219.2-0342_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-28 09:09:47.394583', job_id='255380', GAL2='0.77', fit_tolerance='1e-08', EG2='1.05', EG='1.11', time_epoch_completed='1632845387.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='4.29e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='85' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 255380: <4FGL_J2219.2-0342_daily_bin85> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin85> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:31 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:33 2021
Terminated at Tue Sep 28 09:09:48 2021
Results reported at Tue Sep 28 09:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin85 334.823 -3.7102 261360001 261619201 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 :                                   659.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

