/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 154 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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin299
RA = 334.823, Dec = -3.7102
tmin = 316828801, tmax = 317088001
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='256796', job_status='RUN', time_executed='2021-09-28 09:03:17.586964', time_epoch_executed='1632844997.59' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256796/ft1_4FGL_J2219.2-0342_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256796/ft1_4FGL_J2219.2-0342_daily_bin299.fits outfile=/scratch/kocevski/256796/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin299.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=316828801.0 tmax=317088001.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.61
user 3.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.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/256796/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin299.fits evtable="EVENTS" outfile="/scratch/kocevski/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.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.53
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits" evtable="EVENTS" scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits sctable="SC_DATA" outfile=/scratch/kocevski/256796/ltcube_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.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/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits
.....................!
real 17.72
user 17.26
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/256796/ltcube_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.fits outfile=/scratch/kocevski/256796/expmap_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.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/256796/ltcube_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.fits
.....................!
real 193.50
user 187.28
sys 5.80

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/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits outfile=/scratch/kocevski/256796/cmap_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.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.63
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits outfile=/scratch/kocevski/256796/cmap_HighResolution_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/256796/ft2_4FGL_J2219.2-0342_daily_bin299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256796/Model_4FGL_J2219.2-0342_daily_bin299.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/256796/ft1_filtered_4FGL_J2219.2-0342_daily_bin299.fits.....................!
real 54.63
user 52.42
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.059       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1282       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35128E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11748E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55297E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1260       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .92163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .47675       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    22 'norm      '    10.141       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2090       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72255       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=   5138.068     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     3178 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .92719        .67112E-03** at limit **
   2  Prefactor     44.045        42.134        .60399E-04   -.56468E-05
   3  Prefactor     .10000E-03    14.433        .18142E-02** at limit **
   4  Prefactor     .10000E-03    17.934        .18142E-02** at limit **
   5  Prefactor     3.1270        5.1906        .20472E-03    .42705E-04
   6  Prefactor     5.7346        7.9978        .83866E-03    .56013E-04
   7  Prefactor     .10000E-03    11.356        .18142E-02** at limit **
   8  Prefactor     .10008E-03    146.67        .57711E-02** at limit **
   9  Prefactor     22.644        27.264        .84168E-04   -.25934E-04
  10  Prefactor     23.200        28.190        .83132E-04   -.35283E-04
  11  Prefactor     .10000E-03    33.529        .36285E-03** at limit **
  12  Prefactor     8.7367        26.671        .13514E-03   -.14974E-04
  13  Prefactor     .10001E-03    107.72        .41574E-02** at limit **
  14  Prefactor     .10000E-03    22.480        .18142E-02** at limit **
  15  Prefactor     4.1272        5.1443        .17067E-03   -.16047E-03
  16  norm          8.8158        4.1675        .95987E-04   -.37072E-04
  17  Prefactor     .10000E-03    62.158        .18142E-02** at limit **
  18  norm          .92221        1.1235        .87976E-03    .28637E-02
  19  Prefactor     .10000E-03    15.357        .18142E-02** at limit **
  20  norm          .47541        1.0283        .12209E-02   -.33374E-03
  21  Prefactor     10.792        16.980        .12199E-03   -.27400E-04
  22  norm          10.140        10.872        .12582E-03   -.10842E-05
  23  Normalizat    1.2093        .28434        .27462E-03   -.15756E-03
  24  Prefactor     .72240        .16119        .20394E-03   -.10775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.0453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12698
  Prefactor  = 5.73459
  Prefactor  = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 22.644
  Prefactor  = 23.2001
  Prefactor  = 0.0001
  Prefactor  = 8.73671
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 4.12724
  norm       = 8.81584
  Prefactor  = 0.0001
  norm       = 0.922206
  Prefactor  = 0.0001
  norm       = 0.475408
  Prefactor  = 10.7919
  norm       = 10.14
  Normalizat = 1.20931
  Prefactor  = 0.7224
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.068     FROM HESSE     STATUS=OK           379 CALLS     3557 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .92723        .13422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.045        42.122        .24160E-05   -1.4380    
   3  Prefactor     .10000E-03    14.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1270        5.1905        .81888E-05   -1.5354    
   6  Prefactor     5.7346        7.9956        .33546E-04   -1.5229    
   7  Prefactor     .10000E-03    11.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    150.91        .23084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.644        27.257        .33667E-05   -1.4756    
  10  Prefactor     23.200        28.182        .33253E-05   -1.4744    
  11  Prefactor     .10000E-03    33.531        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7367        26.661        .54058E-05   -1.5117    
  13  Prefactor     .10001E-03    110.17        .16630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1272        5.1353        .68269E-05   -1.5302    
  16  norm          8.8158        4.1674        .38395E-05   -1.5114    
  17  Prefactor     .10000E-03    62.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .92221        1.1230        .17595E-03   -1.5516    
  19  Prefactor     .10000E-03    15.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .47541        1.0266        .48838E-04   -1.5570    
  21  Prefactor     10.792        16.971        .48795E-05   -1.5051    
  22  norm          10.140        10.871        .50330E-05   -1.5071    
  23  Normalizat    1.2093        .28450        .54923E-04   -.86316    
  24  Prefactor     .72240        .16135        .81578E-05   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8162e-10
Minuit parameter uncertainties:
  1  1.10342e-05
  2  42.1503
  3  1.86718e-06
  4  5.41951e-06
  5  5.19126
  6  7.99707
  7  2.68212e-05
  8  0.00686307
  9  27.2722
  10  28.1981
  11  1.27217e-05
  12  26.6977
  13  0.00222698
  14  6.21984e-06
  15  5.13585
  16  4.16756
  17  5.22221e-06
  18  1.12304
  19  6.19416e-06
  20  1.02665
  21  16.9789
  22  10.8736
  23  0.284863
  24  0.161459
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.227e-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.224e-01  1.615e-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.209e+00  2.849e-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.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256796/likelihoodResults_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.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) = 5138.06803655
delta logL = -4.33780760432e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5138.06803653
delta logL = -4.33649047409e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96323E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6822       1.0000          .0000       10.000    
     3 'Normalizat'    1.2093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72241       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=   5138.068     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1776        .90716E-01** at limit **
   2  Index         2.6537        6.3203        .50000        .15235E-05
   3  Normalizat    1.2093        .19745E-02    .62086E-01   -.13742E-03
   4  Prefactor     .72240        .11691E-02    .42699E-01   -.17672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.65369
  Normalizat = 1.20931
  Prefactor  = 0.7224
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.068     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      257 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    379.49        .43805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6537        8.3116        .50000       -.48846    
   3  Normalizat    1.2093        .10655E-01    .27462E-03   -.86315    
   4  Prefactor     .72240        .63120E-02    .20394E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06117e-08
Minuit parameter uncertainties:
  1  0.00217274
  2  326.217
  3  0.0106553
  4  0.00631199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256796': 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) = 5138.06799316
delta logL = 1.25537553686e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.173e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.654e+00  3.262e+02  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.224e-01  6.312e-03  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.209e+00  1.066e-02  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/256796/cmap_HighResolution_316828801_317088001_4FGL_J2219.2-0342_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-28 09:13:52.960749', job_id='256796', GAL2='0.72', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632845632.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='299' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:13:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 256796: <4FGL_J2219.2-0342_daily_bin299> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin299> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:00:32 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:00: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 09:00:33 2021
Terminated at Tue Sep 28 09:13:53 2021
Results reported at Tue Sep 28 09:13:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin299 334.823 -3.7102 316828801 317088001 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 :                                   635.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

