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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin736
RA = 334.823, Dec = -3.7102
tmin = 430099201, tmax = 430358401
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='259522', job_status='RUN', time_executed='2021-09-28 09:12:39.631387', time_epoch_executed='1632845559.63' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259522/ft1_4FGL_J2219.2-0342_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259522/ft1_4FGL_J2219.2-0342_daily_bin736.fits outfile=/scratch/kocevski/259522/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin736.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.12
user 10.76
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/259522/ltcube_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.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/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits
.....................!
real 11.11
user 10.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/259522/ltcube_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.fits outfile=/scratch/kocevski/259522/expmap_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.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/259522/ltcube_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.fits
.....................!
real 192.84
user 187.48
sys 5.05

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/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits scfile=/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits outfile=/scratch/kocevski/259522/cmap_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits scfile=/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits outfile=/scratch/kocevski/259522/cmap_HighResolution_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/259522/ft2_4FGL_J2219.2-0342_daily_bin736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259522/Model_4FGL_J2219.2-0342_daily_bin736.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/259522/ft1_filtered_4FGL_J2219.2-0342_daily_bin736.fits......................!
real 31.56
user 30.32
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12786E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.478       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24742E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11759       1.0000         .10000E-03   10000.    
    16 'norm      '    13.959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    122.16       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6821       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12220E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.988       1.0000         .10000E-03   10000.    
    22 'norm      '    6.8593       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67551       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0331       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=   2392.068     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2767 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3386        .90420E-07** at limit **
   2  Prefactor     13.839        50.492        .13393E-05   -.37539E-05
   3  Prefactor     2.4156        403.51       -.75450E-06   -.65592E-05
   4  Prefactor     43.964        88.531        .59911E-06   -.15907E-04
   5  Prefactor     .10000E-03    6.9296        .48299E-05** at limit **
   6  Prefactor     22.482        14.391        .26279E-06   -.10351E-04
   7  Prefactor     .10018E-03    18.903        .20844E-05** at limit **
   8  Prefactor     .10000E-03    42.722        .15610E-06** at limit **
   9  Prefactor     5.6504        16.939       -.33811E-07   -.20142E-04
  10  Prefactor     .10000E-03    30.189       -.56145E-06** at limit **
  11  Prefactor     16.018        22.749        .98760E-06    .13408E-04
  12  Prefactor     11.020        74.602        .11067E-05   -.67868E-05
  13  Prefactor     .10000E-03    11.191       -.31996E-06** at limit **
  14  Prefactor     .10000E-03    173.66       -.40060E-06** at limit **
  15  Prefactor     .90600E-01    7.1246        .15203E-05   -.42404E-03
  16  norm          13.969        9.0350        .33701E-06   -.10042E-03
  17  Prefactor     122.36        169.08        .29751E-07   -.93327E-06
  18  norm          1.6835        1.9161        .20235E-06    .26129E-03
  19  Prefactor     .10000E-03    98.719       -.19361E-05** at limit **
  20  norm          .10000E-03    1.9278       -.78715E-06** at limit **
  21  Prefactor     16.992        24.428        .52470E-06    .69592E-04
  22  norm          6.8540        16.458        .15093E-06    .78044E-05
  23  Normalizat    .67434        .41814       -.10086E-04   -.89951E-04
  24  Prefactor     1.0339        .22809        .39271E-05   -.29261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.8392
  Prefactor  = 2.41558
  Prefactor  = 43.9635
  Prefactor  = 0.000100002
  Prefactor  = 22.4816
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  Prefactor  = 5.65036
  Prefactor  = 0.0001
  Prefactor  = 16.0178
  Prefactor  = 11.0196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0905999
  norm       = 13.9689
  Prefactor  = 122.36
  norm       = 1.6835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9916
  norm       = 6.85402
  Normalizat = 0.674339
  Prefactor  = 1.03395
 **********
 **   18 **HESSE 
 **********

 FCN=   2392.068     FROM HESSE     STATUS=OK           407 CALLS     3174 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3578        .72929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.839        50.388        .10799E-03   -1.4964    
   3  Prefactor     2.4156        407.57        .26121E-03   -1.5397    
   4  Prefactor     43.964        88.292        .30295E-03   -1.4381    
   5  Prefactor     .10000E-03    7.4407        .13017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.482        14.382        .84484E-04   -1.4759    
   7  Prefactor     .10018E-03    107.96        .39202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6504        16.925        .16886E-03   -1.5233    
  10  Prefactor     .10000E-03    30.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.018        22.756        .10012E-03   -1.4907    
  12  Prefactor     11.020        74.695        .12046E-03   -1.5044    
  13  Prefactor     .10000E-03    11.227        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    173.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90600E-01    161.00        .22935E-02   -1.5648    
  16  norm          13.969        9.0522        .10687E-03   -1.4960    
  17  Prefactor     122.36        168.89        .18207E-03   -1.3491    
  18  norm          1.6835        1.8950        .69505E-04   -1.5448    
  19  Prefactor     .10000E-03    99.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8491        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.992        24.310        .97173E-04   -1.4883    
  22  norm          6.8540        16.454        .15319E-03   -1.5184    
  23  Normalizat    .67434        .44479        .36475E-03   -1.0491    
  24  Prefactor     1.0339        .24945        .17997E-03   -.91606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25545e-08
Minuit parameter uncertainties:
  1  2.88028e-06
  2  50.5438
  3  63.1949
  4  88.5567
  5  0.000253473
  6  14.3846
  7  0.00891885
  8  6.53336e-05
  9  16.939
  10  2.94943e-05
  11  22.7686
  12  57.4832
  13  2.81017e-05
  14  0.000232327
  15  7.65498
  16  9.05305
  17  169.563
  18  1.89508
  19  3.53083e-05
  20  6.71665e-05
  21  24.3239
  22  16.4649
  23  0.447196
  24  0.249732
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.810e-05  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.034e+00  2.497e-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:  6.743e-01  4.472e-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.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259522/likelihoodResults_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.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) = 2392.06840828
delta logL = -0.00042393820695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2392.06798484
delta logL = -4.94853793498e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6757       1.0000          .0000       10.000    
     3 'Normalizat'    .67447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2392.068     FROM MIGRAD    STATUS=FAILED        97 CALLS      249 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    907.62        .15999E-02** at limit **
   2  Index         2.4475        5.8918        .50000       -.91427E-07
   3  Normalizat    .67434        .84260E-01    .36479E-03   -.77445E-05
   4  Prefactor     1.0339        .50977E-01    .17996E-03   -.14378E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2392.068     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      423 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    907.62        .49742E-03** at limit **
   2  Index         2.4475        5.8918        .23367E-05   -.91427E-07
   3  Normalizat    .67434        .84260E-01    .12365E-06   -.77445E-05
   4  Prefactor     1.0339        .50977E-01    .36804E-07   -.14378E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2392.068     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      457 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6299.1        .31998E-03** at limit **
   2  Index         2.4504        5.3522        .50000       -.19077E-07
   3  Normalizat    .67434        .35509        .14592E-04   -.76354E-05
   4  Prefactor     1.0339        .21531        .35992E-04   -.14119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45044
  Normalizat = 0.674337
  Prefactor  = 1.03395
 **********
 **   18 **HESSE 
 **********

 FCN=   2392.068     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.120        .63996E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4504        5.9011        .50000       -.53508    
   3  Normalizat    .67434        .39811        .29183E-05   -1.0491    
   4  Prefactor     1.0339        .24157        .71985E-05   -.91606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43001e-12
Minuit parameter uncertainties:
  1  7.2349e-06
  2  241.567
  3  0.399825
  4  0.241828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259522': 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) = 2392.06798419
delta logL = 1.45341800817e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  7.235e-06  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.450e+00  2.416e+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:  1.034e+00  2.418e-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:  6.743e-01  3.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/259522/cmap_HighResolution_430099201_430358401_4FGL_J2219.2-0342_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-28 09:20:43.067041', job_id='259522', GAL2='1.03', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632846043.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='736' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 259522: <4FGL_J2219.2-0342_daily_bin736> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin736> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:22 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:23 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:23 2021
Terminated at Tue Sep 28 09:20:43 2021
Results reported at Tue Sep 28 09:20:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin736 334.823 -3.7102 430099201 430358401 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 :                                   481.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

