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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1445
RA = 334.823, Dec = -3.7102
tmin = 613872001, tmax = 614131201
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='261664', job_status='RUN', time_executed='2021-09-28 09:18:13.592570', time_epoch_executed='1632845893.59' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261664

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261664/ft1_4FGL_J2219.2-0342_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261664/ft1_4FGL_J2219.2-0342_daily_bin1445.fits outfile=/scratch/kocevski/261664/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1445.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.27
user 2.10
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/261664/ltcube_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.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/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits
.....................!
real 12.18
user 11.77
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/261664/ltcube_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.fits outfile=/scratch/kocevski/261664/expmap_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.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/261664/ltcube_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.fits
.....................!
real 189.42
user 184.39
sys 4.71

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/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits scfile=/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits outfile=/scratch/kocevski/261664/cmap_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.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/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits scfile=/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits outfile=/scratch/kocevski/261664/cmap_HighResolution_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/261664/ft2_4FGL_J2219.2-0342_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261664/Model_4FGL_J2219.2-0342_daily_bin1445.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/261664/ft1_filtered_4FGL_J2219.2-0342_daily_bin1445.fits.....................!
real 75.70
user 74.26
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48584E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.104       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.538       1.0000         .10000E-03   10000.    
    20 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .99218       1.0000         .10000E-03   10000.    
    22 'norm      '    81.332       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66747       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94923       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=   8426.706     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2778 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4519        2.4736       -.56815E-07   -.16131E-04
   2  Prefactor     41.911        36.550        .83668E-06    .36509E-04
   3  Prefactor     .10000E-03    12.443       -.25687E-06** at limit **
   4  Prefactor     11.858        32.337       -.37549E-06   -.28026E-05
   5  Prefactor     .10000E-03    2.7163        .31029E-07** at limit **
   6  Prefactor     7.3107        6.7883        .36555E-07    .42269E-05
   7  Prefactor     14.192        11.106        .36030E-06    .86197E-04
   8  Prefactor     10.683        12.384        .63164E-06    .59783E-04
   9  Prefactor     .10000E-03    6.0417        .40277E-07** at limit **
  10  Prefactor     .10000E-03    5.2858        .39704E-07** at limit **
  11  Prefactor     7.3977        10.190        .13375E-06    .20578E-04
  12  Prefactor     .10000E-03    13.299        .47379E-06** at limit **
  13  Prefactor     15.825        9.8123        .41740E-07    .31943E-04
  14  Prefactor     .10000E-03    15.577       -.28422E-06** at limit **
  15  Prefactor     .10000E-03    1.1930       -.38372E-07** at limit **
  16  norm          8.2582        3.7104        .11467E-06   -.82714E-04
  17  Prefactor     12.076        51.615       -.70309E-05   -.34646E-04
  18  norm          1.1011        .81965        .12548E-07    .38422E-03
  19  Prefactor     32.539        18.154        .23090E-05    .62303E-03
  20  norm          .10000E-03    1.1689       -.15221E-05** at limit **
  21  Prefactor     .98952        1.7365        .18585E-06   -.10212E-02
  22  norm          81.332        17.387       -.21159E-06   -.54418E-04
  23  Normalizat    .66760        .18871       -.12027E-07    .13880E-03
  24  Prefactor     .94914        .10574        .12233E-07    .23166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45191
  Prefactor  = 41.9109
  Prefactor  = 0.0001
  Prefactor  = 11.858
  Prefactor  = 0.0001
  Prefactor  = 7.31074
  Prefactor  = 14.1917
  Prefactor  = 10.6831
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.39768
  Prefactor  = 0.0001
  Prefactor  = 15.825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.25821
  Prefactor  = 12.0756
  norm       = 1.10108
  Prefactor  = 32.5386
  norm       = 0.000100002
  Prefactor  = 0.989524
  norm       = 81.3322
  Normalizat = 0.667599
  Prefactor  = 0.94914
 **********
 **   18 **HESSE 
 **********

 FCN=   8426.706     FROM HESSE     STATUS=OK           403 CALLS     3181 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4519        2.4714        .10055E-03   -1.5286    
   2  Prefactor     41.911        36.531        .61923E-04   -1.4412    
   3  Prefactor     .10000E-03    12.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.858        32.299        .11602E-03   -1.5019    
   5  Prefactor     .10000E-03    2.7378        .14752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3107        6.7929        .14834E-03   -1.5167    
   7  Prefactor     14.192        11.069        .10630E-03   -1.4954    
   8  Prefactor     10.683        12.381        .12257E-03   -1.5054    
   9  Prefactor     .10000E-03    6.0583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.418        .40360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3977        10.184        .14745E-03   -1.5164    
  12  Prefactor     .10000E-03    13.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.825        9.8251        .10068E-03   -1.4912    
  14  Prefactor     .10000E-03    15.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1973        .97769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2582        3.7150        .55505E-03   -1.5133    
  17  Prefactor     12.076        52.017        .11514E-03   -1.5013    
  18  norm          1.1011        .80457        .69360E-04   -1.5498    
  19  Prefactor     32.539        20.111        .70246E-04   -1.4566    
  20  norm          .10000E-03    2.0327        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98952        18.774        .26276E-02   -1.5509    
  22  norm          81.332        17.399        .44536E-04   -1.3902    
  23  Normalizat    .66760        .21711        .34924E-03   -1.0519    
  24  Prefactor     .94914        .12340        .18054E-03   -.94445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35208e-09
Minuit parameter uncertainties:
  1  2.47148
  2  36.5504
  3  1.38244e-05
  4  32.3467
  5  3.95206e-06
  6  6.79357
  7  11.0707
  8  12.3842
  9  1.30377e-05
  10  0.000534527
  11  10.1868
  12  1.74495e-06
  13  9.8261
  14  1.39218e-05
  15  3.32847e-06
  16  3.7151
  17  50.1991
  18  0.80458
  19  20.1148
  20  0.000121952
  21  8.62298
  22  17.3996
  23  0.217387
  24  0.123439
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.583e+01  9.826e+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.491e-01  1.234e-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.676e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.29e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.11e-05

TS (Fixed Index): 3.73
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261664/likelihoodResults_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.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) = 8425.43991831
delta logL = 1.26620875855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8425.41396795
delta logL = 1.29215912396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6432       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5402       1.0000          .0000       10.000    
     3 'Normalizat'    .58604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98988       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8425.414     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      300 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6352        29.768        .34176E-03   -.46890E-03
   2  Index         4.5423        4.1889        .55624E-02   -.29660E-04
   3  Normalizat    .58606        .18436        .37116E-03   -.13845E-04
   4  Prefactor     .98991        .11434        .17719E-03   -.10651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63518
  Index      = 4.54227
  Normalizat = 0.586055
  Prefactor  = 0.98991
 **********
 **   18 **HESSE 
 **********

 FCN=   8425.414     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6352        6.9654        .13670E-04   -1.5383    
   2  Index         4.5423        1.9074        .22250E-03   -.91674E-01
   3  Normalizat    .58606        .20903        .14846E-04   -1.0858    
   4  Prefactor     .98991        .12579        .70875E-05   -.93067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4828e-11
Minuit parameter uncertainties:
  1  6.96752
  2  1.95748
  3  0.209309
  4  0.125827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261664': 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) = 8425.413967
delta logL = 1.29216006794

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.635e+00  6.968e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.542e+00  1.957e+00  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.899e-01  1.258e-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:  5.861e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 4.54 +/- 1.96
Photon Flux (Free Index): 1.18e-07 +/- 5.82e-08
Energy Flux (Free Index): 1.64e-05 +/- 8.70e-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/261664/cmap_HighResolution_613872001_614131201_4FGL_J2219.2-0342_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='7.29e-08', energy_flux2='1.64e-05', photon_flux_error='4.52e-08', dlogl='1.29e+00', energy_flux='1.78e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 09:30:52.351462', photon_index_error2='1.96', photon_index2='4.54', ts='3.73', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='8.70e-06', EG='0.67', time_epoch_completed='1632846652.35', return_code='0', job_id='261664', GAL2='0.99', EG2='0.59', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.82e-08', ts2='6.68', photon_index='2.68' WHERE bin_id='1445' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 261664: <4FGL_J2219.2-0342_daily_bin1445> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1445> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:16:01 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:16:03 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:16:03 2021
Terminated at Tue Sep 28 09:30:53 2021
Results reported at Tue Sep 28 09:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1445 334.823 -3.7102 613872001 614131201 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 :                                   757.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

