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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1385
RA = 334.823, Dec = -3.7102
tmin = 598320001, tmax = 598579201
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='261571', job_status='RUN', time_executed='2021-09-28 09:16:04.759778', time_epoch_executed='1632845764.76' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261571/ft1_4FGL_J2219.2-0342_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261571/ft1_4FGL_J2219.2-0342_daily_bin1385.fits outfile=/scratch/kocevski/261571/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1385.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=598320001.0 tmax=598579201.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.39
user 3.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261571/ft1_filtered_4FGL_J2219.2-0342_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/261571/ltcube_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.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/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits
.....................!
real 18.37
user 17.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261571/ft1_filtered_4FGL_J2219.2-0342_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/261571/ltcube_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.fits outfile=/scratch/kocevski/261571/expmap_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.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/261571/ltcube_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.fits
.....................!
real 194.97
user 189.05
sys 5.50

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/261571/ft1_filtered_4FGL_J2219.2-0342_daily_bin1385.fits scfile=/scratch/kocevski/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits outfile=/scratch/kocevski/261571/cmap_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.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.57
user 0.40
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261571/ft1_filtered_4FGL_J2219.2-0342_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/261571/ft2_4FGL_J2219.2-0342_daily_bin1385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261571/Model_4FGL_J2219.2-0342_daily_bin1385.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/261571/ft1_filtered_4FGL_J2219.2-0342_daily_bin1385.fits.....................!
real 90.56
user 88.82
sys 1.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7908       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25675E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .40531E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.219       1.0000         .10000E-03   10000.    
    18 'norm      '    .74191       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.0713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.491       1.0000         .10000E-03   10000.    
    22 'norm      '    37.882       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85842       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94520       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=   9724.614     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2747 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .83822       -.12627E-06** at limit **
   2  Prefactor     .10000E-03    17.786       -.45245E-05** at limit **
   3  Prefactor     .10000E-03    10.889       -.17385E-05** at limit **
   4  Prefactor     45.001        44.865       -.18088E-04   -.33913E-04
   5  Prefactor     .10000E-03    4.0153        .70154E-06** at limit **
   6  Prefactor     8.7900        5.5649       -.27020E-06    .40351E-04
   7  Prefactor     1.3769        2.3938        .56258E-06   -.11590E-02
   8  Prefactor     .10000E-03    7.6831        .14440E-05** at limit **
   9  Prefactor     17.690        18.044       -.13247E-05    .40688E-04
  10  Prefactor     7.0930        16.149        .56423E-06    .33342E-04
  11  Prefactor     .10000E-03    11.850       -.11432E-06** at limit **
  12  Prefactor     2.6280        22.297       -.36162E-05   -.81763E-05
  13  Prefactor     6.8737        7.4855       -.90011E-07    .37517E-03
  14  Prefactor     .10000E-03    14.272        .46049E-05** at limit **
  15  Prefactor     .10007E-03    1.0940       -.83403E-06** at limit **
  16  norm          .10000E-03    .90520       -.21166E-06** at limit **
  17  Prefactor     27.221        44.110        .25000E-05    .68265E-04
  18  norm          .74188        .55027       -.39494E-07   -.58731E-04
  19  Prefactor     .10000E-03    16.339        .23276E-05** at limit **
  20  norm          5.0706        1.3817       -.66421E-07   -.22880E-03
  21  Prefactor     15.491        8.9910       -.14155E-06    .57411E-05
  22  norm          37.880        12.499       -.89643E-06    .34253E-04
  23  Normalizat    .85855        .16810        .23730E-05    .26007E-03
  24  Prefactor     .94515        .97871E-01    .26283E-08    .56387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0008
  Prefactor  = 0.000100001
  Prefactor  = 8.79
  Prefactor  = 1.37691
  Prefactor  = 0.0001
  Prefactor  = 17.6903
  Prefactor  = 7.09298
  Prefactor  = 0.0001
  Prefactor  = 2.62796
  Prefactor  = 6.87371
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  norm       = 0.000100003
  Prefactor  = 27.2211
  norm       = 0.741881
  Prefactor  = 0.0001
  norm       = 5.07061
  Prefactor  = 15.4907
  norm       = 37.8802
  Normalizat = 0.858553
  Prefactor  = 0.945151
 **********
 **   18 **HESSE 
 **********

 FCN=   9724.614     FROM HESSE     STATUS=OK           405 CALLS     3152 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.979        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.001        44.907        .59756E-04   -1.4365    
   5  Prefactor     .10000E-03    4.0784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7900        5.5824        .13519E-03   -1.5115    
   7  Prefactor     1.3769        13.444        .18547E-02   -1.5473    
   8  Prefactor     .10000E-03    7.7096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.690        18.047        .95223E-04   -1.4867    
  10  Prefactor     7.0930        16.028        .15062E-03   -1.5175    
  11  Prefactor     .10000E-03    12.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6280        22.298        .25145E-03   -1.5384    
  13  Prefactor     6.8737        7.3424        .15306E-03   -1.5184    
  14  Prefactor     .10000E-03    14.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    9.2120        .19260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.845        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.221        43.865        .76787E-04   -1.4664    
  18  norm          .74188        .54480        .61155E-04   -1.5536    
  19  Prefactor     .10000E-03    16.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0706        1.3782        .58124E-04   -1.5258    
  21  Prefactor     15.491        8.9907        .10176E-03   -1.4921    
  22  norm          37.880        12.512        .65119E-04   -1.4476    
  23  Normalizat    .85855        .19683        .31079E-03   -.97932    
  24  Prefactor     .94515        .11703        .18396E-03   -.94581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5765e-08
Minuit parameter uncertainties:
  1  0.000608351
  2  3.59309e-05
  3  7.64563e-06
  4  44.941
  5  0.000146524
  6  5.58272
  7  8.60698
  8  3.6717e-05
  9  18.0525
  10  16.0373
  11  6.17203e-05
  12  15.3173
  13  7.34334
  14  4.65008e-06
  15  0.0015839
  16  0.000495765
  17  43.9174
  18  0.544802
  19  8.10735e-06
  20  1.37824
  21  8.99151
  22  12.5126
  23  0.196994
  24  0.117057
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.874e+00  7.343e+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:  9.452e-01  1.171e-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:  8.586e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 7.73e-06 +/- 8.26e-06

TS (Fixed Index): 1.15
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261571/likelihoodResults_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.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) = 9724.59751053
delta logL = 0.016917683588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9724.59455831
delta logL = 0.0198699061548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4453       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5123       1.0000          .0000       10.000    
     3 'Normalizat'    .86325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94296       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=   9724.595     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4451        8.2386        .14698E-03    .10132E-03
   2  Index         2.5118        .83237        .13775E-01    .25616E-04
   3  Normalizat    .86324        .18826        .31001E-03   -.29536E-03
   4  Prefactor     .94298        .11632        .18414E-03   -.23834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44513
  Index      = 2.51177
  Normalizat = 0.863242
  Prefactor  = 0.942975
 **********
 **   18 **HESSE 
 **********

 FCN=   9724.595     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4451        8.1006        .58794E-05   -1.5162    
   2  Index         2.5118        .81847        .55101E-03   -.52088    
   3  Normalizat    .86324        .18839        .12400E-04   -.97764    
   4  Prefactor     .94298        .11637        .36827E-04   -.94655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01247e-10
Minuit parameter uncertainties:
  1  8.1018
  2  0.823408
  3  0.188535
  4  0.1164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261571': 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) = 9724.59455811
delta logL = 0.0198701078662

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.445e+00  8.102e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.512e+00  8.234e-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:  9.430e-01  1.164e-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:  8.632e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.51 +/- 0.82
Photon Flux (Free Index): 2.89e-08 +/- 3.49e-08
Energy Flux (Free Index): 8.30e-06 +/- 9.24e-06

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/261571/cmap_HighResolution_598320001_598579201_4FGL_J2219.2-0342_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='8.30e-06', photon_flux_error='3.38e-08', dlogl='1.99e-02', energy_flux='7.73e-06', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-28 09:30:39.040489', photon_index_error2='0.82', photon_index2='2.51', ts='1.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.24e-06', EG='0.86', time_epoch_completed='1632846639.04', return_code='0', job_id='261571', GAL2='0.94', EG2='0.86', return_code2='0', energy_flux_error='8.26e-06', photon_flux_error2='3.49e-08', ts2='1.18', photon_index='2.68' WHERE bin_id='1385' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:39 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1385 334.823 -3.7102 598320001 598579201 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 :                                   875.00 sec.
    Max Memory :                                 1216 MB
    Average Memory :                             313.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

