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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin72
RA = 334.823, Dec = -3.7102
tmin = 257990401, tmax = 258249601
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='255357', job_status='RUN', time_executed='2021-09-28 08:55:47.325710', time_epoch_executed='1632844547.33' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255357

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255357/ft1_4FGL_J2219.2-0342_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255357/ft1_4FGL_J2219.2-0342_daily_bin72.fits outfile=/scratch/kocevski/255357/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin72.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=257990401.0 tmax=258249601.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.40
user 1.24
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.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/255357/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/255357/ltcube_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.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/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits
.....................!
real 12.61
user 12.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/255357/ltcube_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.fits outfile=/scratch/kocevski/255357/expmap_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.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/255357/ltcube_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.fits
.....................!
real 189.72
user 184.74
sys 4.59

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/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits outfile=/scratch/kocevski/255357/cmap_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.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/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits outfile=/scratch/kocevski/255357/cmap_HighResolution_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.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/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/255357/ft2_4FGL_J2219.2-0342_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255357/Model_4FGL_J2219.2-0342_daily_bin72.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/255357/ft1_filtered_4FGL_J2219.2-0342_daily_bin72.fits.....................!
real 87.88
user 86.54
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .95684E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44685E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2422       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.158       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.025       1.0000         .10000E-03   10000.    
    20 'norm      '    .34986E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7055       1.0000         .10000E-03   10000.    
    22 'norm      '    13.132       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93628       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0215       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=   9739.891     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2754 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77970        .38276E-07** at limit **
   2  Prefactor     .10000E-03    18.864        .35731E-06** at limit **
   3  Prefactor     37.029        31.075       -.12717E-05   -.57888E-04
   4  Prefactor     12.756        34.785       -.56840E-05   -.63408E-04
   5  Prefactor     5.7593        4.9435        .67173E-06    .86456E-04
   6  Prefactor     5.0371        3.2058        .75217E-06   -.26951E-02
   7  Prefactor     .10000E-03    3.4147       -.19966E-07** at limit **
   8  Prefactor     4.4126        14.979        .10651E-05   -.11889E-05
   9  Prefactor     .10000E-03    9.1418        .17307E-05** at limit **
  10  Prefactor     .10000E-03    5.7920       -.61587E-07** at limit **
  11  Prefactor     .10000E-03    5.9057        .25255E-06** at limit **
  12  Prefactor     .10000E-03    10.110       -.16735E-05** at limit **
  13  Prefactor     .10001E-03    4.9252        .83573E-07** at limit **
  14  Prefactor     58.949        54.148        .73234E-05    .15581E-03
  15  Prefactor     7.2401        4.1713       -.22117E-06   -.21496E-03
  16  norm          3.5856        3.0612       -.23801E-06   -.17027E-03
  17  Prefactor     64.163        61.500        .35864E-05    .63251E-04
  18  norm          1.5404        .80310       -.17104E-07    .59455E-04
  19  Prefactor     22.031        16.795       -.38348E-06    .28655E-03
  20  norm          .10009E-03    .66020       -.24529E-06** at limit **
  21  Prefactor     3.7057        4.7197       -.24508E-06   -.12466E-04
  22  norm          13.134        10.751       -.12433E-08   -.16247E-04
  23  Normalizat    .93623        .17745       -.54456E-06    .33607E-04
  24  Prefactor     1.0215        .10480       -.11552E-08    .24053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.0287
  Prefactor  = 12.7558
  Prefactor  = 5.75927
  Prefactor  = 5.03713
  Prefactor  = 0.0001
  Prefactor  = 4.41258
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 58.9495
  Prefactor  = 7.24009
  norm       = 3.58559
  Prefactor  = 64.1627
  norm       = 1.54043
  Prefactor  = 22.0312
  norm       = 0.00010009
  Prefactor  = 3.70571
  norm       = 13.1341
  Normalizat = 0.93623
  Prefactor  = 1.02149
 **********
 **   18 **HESSE 
 **********

 FCN=   9739.891     FROM HESSE     STATUS=OK           413 CALLS     3167 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .79767        .85057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.029        31.110        .65860E-04   -1.4490    
   4  Prefactor     12.756        34.888        .11213E-03   -1.4994    
   5  Prefactor     5.7593        4.9380        .16737E-03   -1.5228    
   6  Prefactor     5.0371        5.7840        .89591E-03   -1.5259    
   7  Prefactor     .10000E-03    3.4332        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4126        14.976        .19167E-03   -1.5288    
   9  Prefactor     .10000E-03    9.2392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.987        .45790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    5.9169        .63957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.949        54.488        .52259E-04   -1.4171    
  15  Prefactor     7.2401        4.1776        .13887E-03   -1.5170    
  16  norm          3.5856        3.0587        .14921E-03   -1.5329    
  17  Prefactor     64.163        61.550        .50101E-04   -1.4104    
  18  norm          1.5404        .79866        .61937E-04   -1.5460    
  19  Prefactor     22.031        14.401        .85347E-04   -1.4769    
  20  norm          .10009E-03    8.6819        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7057        4.7152        .20979E-03   -1.5323    
  22  norm          13.134        10.772        .11053E-03   -1.4983    
  23  Normalizat    .93623        .21197        .31887E-03   -.95199    
  24  Prefactor     1.0215        .12440        .18845E-03   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52462e-08
Minuit parameter uncertainties:
  1  2.04451e-06
  2  2.84764e-05
  3  31.1232
  4  34.944
  5  4.93831
  6  5.78469
  7  1.17667e-06
  8  14.9891
  9  5.29444e-05
  10  0.000768728
  11  2.4244e-06
  12  5.33259e-05
  13  0.000425988
  14  54.5341
  15  4.17773
  16  3.05886
  17  61.6116
  18  0.798662
  19  14.4033
  20  0.00177136
  21  4.7157
  22  10.7737
  23  0.212161
  24  0.124439
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.260e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.021e+00  1.244e-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:  9.362e-01  2.122e-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: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255357/likelihoodResults_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.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) = 9739.89078569
delta logL = -6.74604470987e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9739.89078567
delta logL = -6.74373550282e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96310E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6822       1.0000          .0000       10.000    
     3 'Normalizat'    .93616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       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=   9739.891     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      221 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16044        .90717E-01** at limit **
   2  Index         2.6645        5.9166        .50000        .27185E-05
   3  Normalizat    .93623        .92430E-03    .72066E-01   -.71709E-04
   4  Prefactor     1.0215        .57097E-03    .41993E-01   -.74573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.66451
  Normalizat = 0.936229
  Prefactor  = 1.02149
 **********
 **   18 **HESSE 
 **********

 FCN=   9739.891     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      260 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    294.66        .61623E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6645        6.3181        .20000       -.48601    
   3  Normalizat    .93623        .36009E-01    .31887E-03   -.95199    
   4  Prefactor     1.0215        .21659E-01    .18845E-03   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.81544e-11
Minuit parameter uncertainties:
  1  0.0014327
  2  32.1037
  3  0.0360099
  4  0.0216595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255357': 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) = 9739.89071822
delta logL = 1.00390025182e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.433e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.665e+00  3.210e+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:  1.021e+00  2.166e-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:  9.362e-01  3.601e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/255357/cmap_HighResolution_257990401_258249601_4FGL_J2219.2-0342_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-28 09:09:39.857148', job_id='255357', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632845379.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='72' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 255357: <4FGL_J2219.2-0342_daily_bin72> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin72> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:29 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:30 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:30 2021
Terminated at Tue Sep 28 09:09:40 2021
Results reported at Tue Sep 28 09:09:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin72 334.823 -3.7102 257990401 258249601 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

