/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 211 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1007
RA = 334.823, Dec = -3.7102
tmin = 500342401, tmax = 500601601
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='259935', job_status='RUN', time_executed='2021-09-28 09:14:38.747492', time_epoch_executed='1632845678.75' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259935/ft1_4FGL_J2219.2-0342_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259935/ft1_4FGL_J2219.2-0342_daily_bin1007.fits outfile=/scratch/kocevski/259935/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1007.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.89
user 4.47
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/259935/ltcube_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.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/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits
.....................!
real 11.99
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/259935/ltcube_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.fits outfile=/scratch/kocevski/259935/expmap_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.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/259935/ltcube_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.fits
.....................!
real 191.63
user 186.08
sys 5.20

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/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits scfile=/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits outfile=/scratch/kocevski/259935/cmap_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits scfile=/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits outfile=/scratch/kocevski/259935/cmap_HighResolution_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/259935/ft2_4FGL_J2219.2-0342_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259935/Model_4FGL_J2219.2-0342_daily_bin1007.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/259935/ft1_filtered_4FGL_J2219.2-0342_daily_bin1007.fits.....................!
real 53.05
user 51.65
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8649       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    94.772       1.0000         .10000E-03   10000.    
    20 'norm      '    20.079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.589       1.0000         .10000E-03   10000.    
    22 'norm      '    42.733       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64955       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=   4764.787     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     3300 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13501        1.4818        .36679E-06   -.27278E-03
   2  Prefactor     .10000E-03    9.2729        .21506E-08** at limit **
   3  Prefactor     .10000E-03    10.368       -.37109E-07** at limit **
   4  Prefactor     17.607        47.697       -.42505E-05   -.35507E-04
   5  Prefactor     .10000E-03    4.2439        .12494E-05** at limit **
   6  Prefactor     .10000E-03    7.4936       -.33598E-06** at limit **
   7  Prefactor     32.224        19.298        .83348E-07   -.21331E-04
   8  Prefactor     16.556        32.943        .11619E-05    .12190E-05
   9  Prefactor     .10000E-03    35.506        .45134E-07** at limit **
  10  Prefactor     16.544        30.329        .16303E-06   -.88045E-05
  11  Prefactor     23.724        17.284        .19512E-06   -.34358E-05
  12  Prefactor     2.8757        110.25       -.12301E-05   -.19635E-05
  13  Prefactor     .10000E-03    4.6477       -.56352E-07** at limit **
  14  Prefactor     .10000E-03    126.71       -.32139E-06** at limit **
  15  Prefactor     .10000E-03    2.3268       -.59871E-07** at limit **
  16  norm          9.1057        6.4994        .19010E-06    .82645E-05
  17  Prefactor     .10000E-03    47.672        .18950E-06** at limit **
  18  norm          2.0565        1.4733        .76272E-07    .71693E-04
  19  Prefactor     94.913        139.77        .31733E-05   -.11925E-04
  20  norm          20.067        11.147       -.81398E-06   -.23061E-03
  21  Prefactor     32.593        26.938        .18809E-06   -.11503E-06
  22  norm          42.736        24.497        .98843E-07   -.68042E-05
  23  Normalizat    1.4765        .31114       -.29544E-05    .51648E-04
  24  Prefactor     .64978        .16550        .24059E-05   -.84952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2239
  Prefactor  = 16.5557
  Prefactor  = 0.0001
  Prefactor  = 16.5442
  Prefactor  = 23.7241
  Prefactor  = 2.87575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.10566
  Prefactor  = 0.0001
  norm       = 2.05655
  Prefactor  = 94.9127
  norm       = 20.067
  Prefactor  = 32.5929
  norm       = 42.7364
  Normalizat = 1.47653
  Prefactor  = 0.649783
 **********
 **   18 **HESSE 
 **********

 FCN=   4764.787     FROM HESSE     STATUS=OK           403 CALLS     3703 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13501        3.1873        .15897E-02   -1.5635    
   2  Prefactor     .10000E-03    9.2744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.607        48.470        .95540E-04   -1.4868    
   5  Prefactor     .10000E-03    4.4243        .14139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.224        19.291        .70589E-04   -1.4572    
   8  Prefactor     16.556        32.795        .98438E-04   -1.4894    
   9  Prefactor     .10000E-03    35.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.544        30.330        .98494E-04   -1.4894    
  11  Prefactor     23.724        17.334        .82246E-04   -1.4733    
  12  Prefactor     2.8757        109.30        .24017E-03   -1.5369    
  13  Prefactor     .10000E-03    4.6537        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    127.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3387        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1057        6.5079        .13283E-03   -1.5104    
  17  Prefactor     .10000E-03    47.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0565        1.4749        .68594E-04   -1.5421    
  19  Prefactor     94.913        139.96        .41285E-04   -1.3756    
  20  norm          20.067        11.244        .80204E-04   -1.4812    
  21  Prefactor     32.593        26.933        .70191E-04   -1.4566    
  22  norm          42.736        24.540        .61325E-04   -1.4400    
  23  Normalizat    1.4765        .34470        .29483E-03   -.78440    
  24  Prefactor     .64978        .18223        .23725E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65566e-08
Minuit parameter uncertainties:
  1  1.31156
  2  1.12827e-06
  3  2.33903e-06
  4  48.579
  5  4.37311e-05
  6  6.1589e-06
  7  19.2943
  8  32.8311
  9  2.1654e-05
  10  30.3586
  11  17.3379
  12  35.5277
  13  1.15551e-06
  14  3.23383e-05
  15  1.19128e-06
  16  6.50843
  17  1.07186e-05
  18  1.47496
  19  140.45
  20  11.2449
  21  26.9426
  22  24.5454
  23  0.345245
  24  0.1824
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.156e-06  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:  6.498e-01  1.824e-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.477e+00  3.452e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259935/likelihoodResults_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.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) = 4764.78796981
delta logL = -0.0010147903422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4764.78695498
delta logL = 4.50081643066e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6704       1.0000          .0000       10.000    
     3 'Normalizat'    1.4765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64980       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=   4764.787     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.010        .14615E-01** at limit **
   2  Index         2.3224        8.0150        .50000        .26034E-07
   3  Normalizat    1.4765        .15683E-01    .29483E-03   -.36285E-04
   4  Prefactor     .64979        .88012E-02    .23725E-03   -.41690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32242
  Normalizat = 1.47652
  Prefactor  = 0.649785
 **********
 **   18 **HESSE 
 **********

 FCN=   4764.787     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    233.61        .15215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3224        8.7686        .50000       -.56512    
   3  Normalizat    1.4765        .49371E-01    .11793E-04   -.78440    
   4  Prefactor     .64979        .27707E-01    .94899E-05   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00065e-09
Minuit parameter uncertainties:
  1  0.000380815
  2  918.582
  3  0.0493727
  4  0.0277078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259935': 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) = 4764.78695407
delta logL = 9.52695700107e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.808e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.322e+00  9.186e+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:  6.498e-01  2.771e-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.477e+00  4.937e-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/259935/cmap_HighResolution_500342401_500601601_4FGL_J2219.2-0342_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 09:24:45.853328', job_id='259935', GAL2='0.65', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632846285.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='9.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1007' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 259935: <4FGL_J2219.2-0342_daily_bin1007> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1007> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:55 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:57 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:10:57 2021
Terminated at Tue Sep 28 09:24:46 2021
Results reported at Tue Sep 28 09:24:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1007 334.823 -3.7102 500342401 500601601 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 :                                   606.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

