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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1512
RA = 334.823, Dec = -3.7102
tmin = 631238401, tmax = 631497601
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='262750', job_status='RUN', time_executed='2021-09-28 09:21:19.302531', time_epoch_executed='1632846079.3' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262750/ft1_4FGL_J2219.2-0342_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262750/ft1_4FGL_J2219.2-0342_daily_bin1512.fits outfile=/scratch/kocevski/262750/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1512.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=631238401.0 tmax=631497601.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.74
user 2.54
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/262750/ltcube_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.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/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits
.....................!
real 12.42
user 12.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/262750/ltcube_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.fits outfile=/scratch/kocevski/262750/expmap_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.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/262750/ltcube_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.fits
.....................!
real 191.62
user 185.97
sys 5.30

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/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits scfile=/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits outfile=/scratch/kocevski/262750/cmap_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits scfile=/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits outfile=/scratch/kocevski/262750/cmap_HighResolution_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/262750/ft2_4FGL_J2219.2-0342_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262750/Model_4FGL_J2219.2-0342_daily_bin1512.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/262750/ft1_filtered_4FGL_J2219.2-0342_daily_bin1512.fits.....................!
real 72.95
user 71.53
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13741E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26820E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13710E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14193E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.162       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.797       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5659       1.0000         .10000E-03   10000.    
    16 'norm      '    .34265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    152.93       1.0000         .10000E-03   10000.    
    18 'norm      '    .37773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.303       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2785       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    32.239       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54836       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2755       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=   8056.453     FROM MIGRAD    STATUS=CONVERGED   1014 CALLS     3786 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68246        .72257E-03** at limit **
   2  Prefactor     .10001E-03    55.759        .18142E-02** at limit **
   3  Prefactor     .10001E-03    20.429        .14225    ** at limit **
   4  Prefactor     .10139E-03    45.318        .16514    ** at limit **
   5  Prefactor     .10000E-03    9.3076        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.3658        .36285E-03** at limit **
   7  Prefactor     .10015E-03    11.773        .72525E-01** at limit **
   8  Prefactor     .10009E-03    122.99        .51459E-02** at limit **
   9  Prefactor     4.6836        15.063        .18600E-03   -.12176E-03
  10  Prefactor     19.145        22.707        .91498E-04   -.15705E-03
  11  Prefactor     41.808        17.102        .62005E-04    .39054E-04
  12  Prefactor     .10000E-03    31.445        .18142E-02** at limit **
  13  Prefactor     .10000E-03    2.4726        .13764E-02** at limit **
  14  Prefactor     .10000E-03    58.968        .18142E-02** at limit **
  15  Prefactor     1.5664        2.1266        .14887E-03   -.21001E-03
  16  norm          .34443        6.0308        .20726E-02    .12819E-02
  17  Prefactor     152.99        86.120        .16298E-03    .62082E-04
  18  norm          .37834        .81740        .11555E-03    .28295E-03
  19  Prefactor     34.270        40.846        .68420E-04   -.24921E-03
  20  norm          2.2811        3.0417        .93386E-04   -.66567E-03
  21  Prefactor     .10001E-03    24.152        .35438E-02** at limit **
  22  norm          32.247        14.155        .70570E-04    .23681E-04
  23  Normalizat    .54817        .25191        .41972E-03    .59319E-05
  24  Prefactor     1.2754        .14793        .17691E-03   -.16906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100006
  Prefactor  = 0.000101387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.000100092
  Prefactor  = 4.68356
  Prefactor  = 19.145
  Prefactor  = 41.8079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56638
  norm       = 0.344433
  Prefactor  = 152.989
  norm       = 0.378338
  Prefactor  = 34.2702
  norm       = 2.28111
  Prefactor  = 0.000100007
  norm       = 32.2471
  Normalizat = 0.548167
  Prefactor  = 1.27538
 **********
 **   18 **HESSE 
 **********

 FCN=   8056.453     FROM HESSE     STATUS=OK           405 CALLS     4191 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .68248        .14451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    55.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    20.365        .14271       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10139E-03    46.224        .16292       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3663        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10015E-03    10.265        .79862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    125.60        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6836        15.057        .74399E-05   -1.5275    
  10  Prefactor     19.145        22.693        .36599E-05   -1.4833    
  11  Prefactor     41.808        17.101        .24802E-05   -1.4414    
  12  Prefactor     .10000E-03    31.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4727        .27528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5664        2.1265        .59547E-05   -1.5458    
  16  norm          .34443        5.9905        .82905E-04   -1.5591    
  17  Prefactor     152.99        85.945        .65192E-05   -1.3228    
  18  norm          .37834        .81732        .46221E-05   -1.5585    
  19  Prefactor     34.270        40.893        .13684E-04   -1.4536    
  20  norm          2.2811        3.0453        .37354E-05   -1.5406    
  21  Prefactor     .10001E-03    24.628        .70877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          32.247        14.153        .28228E-05   -1.4572    
  23  Normalizat    .54817        .25181        .16789E-04   -1.1023    
  24  Prefactor     1.2754        .14795        .35382E-04   -.84042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64301e-09
Minuit parameter uncertainties:
  1  3.77647e-06
  2  0.0011323
  3  0.000714887
  4  0.0160269
  5  3.26141e-05
  6  5.79475e-05
  7  0.00251441
  8  0.00681413
  9  15.0692
  10  22.7032
  11  17.103
  12  5.49442e-05
  13  5.88745e-06
  14  9.84264e-05
  15  2.12658
  16  2.87277
  17  86.0154
  18  0.817348
  19  40.9261
  20  3.0455
  21  0.000816133
  22  14.1543
  23  0.252341
  24  0.147999
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.887e-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:  1.275e+00  1.480e-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.482e-01  2.523e-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: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262750/likelihoodResults_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.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) = 8056.45525657
delta logL = -0.00191260485917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8056.45334392
delta logL = 4.64369804831e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6690       1.0000          .0000       10.000    
     3 'Normalizat'    .54816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2754       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=   8056.453     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.060        .13862E-01** at limit **
   2  Index         2.2435        6.1208        .50000       -.13579E-05
   3  Normalizat    .54817        .11939E-01    .41973E-03    .67011E-04
   4  Prefactor     1.2754        .74655E-02    .17691E-03    .16645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24349
  Normalizat = 0.548166
  Prefactor  = 1.27538
 **********
 **   18 **HESSE 
 **********

 FCN=   8056.453     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.04        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2435        8.7438        .50000       -.58393    
   3  Normalizat    .54817        .38174E-01    .16789E-04   -1.1023    
   4  Prefactor     1.2754        .23871E-01    .35382E-04   -.84042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.56202e-08
Minuit parameter uncertainties:
  1  0.000222598
  2  723.53
  3  0.0381759
  4  0.023871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262750': 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) = 8056.4533415
delta logL = 2.46611489274e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.226e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.243e+00  7.235e+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.275e+00  2.387e-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:  5.482e-01  3.818e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/262750/cmap_HighResolution_631238401_631497601_4FGL_J2219.2-0342_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-28 09:35:21.297433', job_id='262750', GAL2='1.28', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632846921.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1512' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 262750: <4FGL_J2219.2-0342_daily_bin1512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1512 334.823 -3.7102 631238401 631497601 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 :                                   840.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

