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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin968
RA = 334.823, Dec = -3.7102
tmin = 490233601, tmax = 490492801
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='259869', job_status='RUN', time_executed='2021-09-28 09:14:40.295299', time_epoch_executed='1632845680.3' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259869/ft1_4FGL_J2219.2-0342_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259869/ft1_4FGL_J2219.2-0342_daily_bin968.fits outfile=/scratch/kocevski/259869/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin968.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=490233601.0 tmax=490492801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.69
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259869/ft1_filtered_4FGL_J2219.2-0342_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/259869/ltcube_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.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/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits
.....................!
real 11.46
user 11.05
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259869/ft1_filtered_4FGL_J2219.2-0342_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/259869/ltcube_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.fits outfile=/scratch/kocevski/259869/expmap_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.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/259869/ltcube_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.fits
.....................!
real 189.08
user 184.96
sys 3.82

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/259869/ft1_filtered_4FGL_J2219.2-0342_daily_bin968.fits scfile=/scratch/kocevski/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits outfile=/scratch/kocevski/259869/cmap_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259869/ft1_filtered_4FGL_J2219.2-0342_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/259869/ft2_4FGL_J2219.2-0342_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259869/Model_4FGL_J2219.2-0342_daily_bin968.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/259869/ft1_filtered_4FGL_J2219.2-0342_daily_bin968.fits.....................!
real 60.34
user 59.07
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11891E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2325       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.139       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.962       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2194       1.0000         .10000E-03   10000.    
    16 'norm      '    20.322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.027       1.0000         .10000E-03   10000.    
    18 'norm      '    .91717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0340       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6882       1.0000         .10000E-03   10000.    
    22 'norm      '    12.086       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .57040       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91858       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=   5998.048     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2690 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9513        2.7400        .47281E-07   -.68131E-04
   2  Prefactor     93.069        58.724        .10972E-05   -.11019E-04
   3  Prefactor     21.951        30.624        .22250E-06   -.17180E-05
   4  Prefactor     .10000E-03    55.179        .43559E-07** at limit **
   5  Prefactor     .10000E-03    3.8792        .22359E-07** at limit **
   6  Prefactor     9.2321        7.7678        .21295E-06   -.16284E-07
   7  Prefactor     11.404        15.506        .22716E-06    .10053E-04
   8  Prefactor     21.138        19.027        .16434E-06    .24926E-06
   9  Prefactor     41.408        23.075        .65546E-07    .27323E-04
  10  Prefactor     .10000E-03    9.8561        .76291E-08** at limit **
  11  Prefactor     35.138        16.884        .24261E-06   -.68853E-05
  12  Prefactor     46.958        36.510        .54485E-06   -.10906E-05
  13  Prefactor     30.217        19.066        .10597E-05    .15124E-03
  14  Prefactor     .10000E-03    34.486        .21106E-06** at limit **
  15  Prefactor     3.2284        6.8252       -.12467E-05   -.27019E-03
  16  norm          20.320        6.3279        .79732E-07    .14373E-03
  17  Prefactor     56.944        92.986        .10167E-04   -.29620E-04
  18  norm          .91724        .82164        .55819E-07    .55052E-04
  19  Prefactor     .10000E-03    12.947        .34110E-07** at limit **
  20  norm          1.0344        .76645       -.44639E-07   -.54444E-04
  21  Prefactor     1.6885        5.8647        .10159E-04   -.23244E-04
  22  norm          12.085        14.395        .32841E-06   -.12231E-04
  23  Normalizat    .57056        .24748       -.28543E-05   -.12627E-04
  24  Prefactor     .91850        .13450        .20786E-06    .77837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95127
  Prefactor  = 93.0694
  Prefactor  = 21.951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23206
  Prefactor  = 11.4039
  Prefactor  = 21.1376
  Prefactor  = 41.4079
  Prefactor  = 0.0001
  Prefactor  = 35.1376
  Prefactor  = 46.9584
  Prefactor  = 30.2168
  Prefactor  = 0.0001
  Prefactor  = 3.22841
  norm       = 20.3197
  Prefactor  = 56.944
  norm       = 0.917235
  Prefactor  = 0.0001
  norm       = 1.0344
  Prefactor  = 1.68849
  norm       = 12.0852
  Normalizat = 0.570565
  Prefactor  = 0.918503
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.048     FROM HESSE     STATUS=OK           407 CALLS     3097 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9513        2.7088        .14208E-03   -1.5429    
   2  Prefactor     93.069        58.501        .41655E-04   -1.3776    
   3  Prefactor     21.951        30.598        .85491E-04   -1.4771    
   4  Prefactor     .10000E-03    55.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8953        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2321        7.7585        .13190E-03   -1.5100    
   7  Prefactor     11.404        15.488        .11863E-03   -1.5032    
   8  Prefactor     21.138        19.017        .87116E-04   -1.4788    
   9  Prefactor     41.408        23.042        .62294E-04   -1.4420    
  10  Prefactor     .10000E-03    9.8724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.138        16.870        .67604E-04   -1.4522    
  12  Prefactor     46.958        36.490        .58511E-04   -1.4336    
  13  Prefactor     30.217        18.869        .72863E-04   -1.4608    
  14  Prefactor     .10000E-03    34.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2284        6.7292        .22578E-03   -1.5349    
  16  norm          20.320        6.3211        .88849E-04   -1.4806    
  17  Prefactor     56.944        92.943        .26561E-03   -1.4197    
  18  norm          .91724        .80255        .64560E-04   -1.5516    
  19  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0344        .78037        .56794E-04   -1.5505    
  21  Prefactor     1.6885        5.8663        .16202E-02   -1.5448    
  22  norm          12.085        14.392        .11523E-03   -1.5013    
  23  Normalizat    .57056        .27197        .39615E-03   -1.0925    
  24  Prefactor     .91850        .15199        .18867E-03   -.95498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48449e-10
Minuit parameter uncertainties:
  1  2.70896
  2  58.5374
  3  30.62
  4  8.06595e-07
  5  2.16321e-06
  6  7.75938
  7  15.4939
  8  19.0229
  9  23.0468
  10  2.02409e-05
  11  16.8726
  12  36.507
  13  18.8731
  14  1.19254e-07
  15  6.73073
  16  6.32131
  17  93.1807
  18  0.802555
  19  7.29756e-06
  20  0.780374
  21  5.86834
  22  14.3958
  23  0.272612
  24  0.15206
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.022e+01  1.887e+01  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.185e-01  1.521e-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.706e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 8.69e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 2.12e-05

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) = 5997.90904837
delta logL = 0.139041519065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5997.90162079
delta logL = 0.146469097121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.294       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9746       1.0000          .0000       10.000    
     3 'Normalizat'    .54427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93068       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=   5997.902     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      300 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.304        18.584        .79650E-04    .41821E-04
   2  Index         2.9745        .59820        .60483E-02    .30743E-03
   3  Normalizat    .54404        .25941        .40506E-03    .23127E-04
   4  Prefactor     .93085        .15258        .18753E-03   -.52233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.304
  Index      = 2.97447
  Normalizat = 0.54404
  Prefactor  = 0.930851
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.304        17.909        .31860E-05   -1.4701    
   2  Index         2.9745        .57610        .12097E-02   -.41710    
   3  Normalizat    .54404        .25941        .16202E-04   -1.1042    
   4  Prefactor     .93085        .15249        .37506E-04   -.95071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5804e-11
Minuit parameter uncertainties:
  1  17.913
  2  0.577634
  3  0.259988
  4  0.152555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259869': 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) = 5997.90161986
delta logL = 0.146470027912

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.530e+01  1.791e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.974e+00  5.776e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.309e-01  1.526e-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.440e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.97 +/- 0.58
Photon Flux (Free Index): 1.60e-07 +/- 8.92e-08
Energy Flux (Free Index): 3.23e-05 +/- 1.76e-05

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/259869/cmap_HighResolution_490233601_490492801_4FGL_J2219.2-0342_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='3.23e-05', photon_flux_error='8.69e-08', dlogl='1.46e-01', energy_flux='3.40e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-28 09:24:09.093188', photon_index_error2='0.58', photon_index2='2.97', ts='4.78', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.57', time_epoch_completed='1632846249.09', return_code='0', job_id='259869', GAL2='0.93', EG2='0.54', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='8.92e-08', ts2='5.15', photon_index='2.68' WHERE bin_id='968' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 259869: <4FGL_J2219.2-0342_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin968 334.823 -3.7102 490233601 490492801 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

