/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 108 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin57
RA = 334.823, Dec = -3.7102
tmin = 254102401, tmax = 254361601
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='255334', job_status='RUN', time_executed='2021-09-28 08:57:27.764423', time_epoch_executed='1632844647.76' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255334/ft1_4FGL_J2219.2-0342_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255334/ft1_4FGL_J2219.2-0342_daily_bin57.fits outfile=/scratch/kocevski/255334/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin57.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=254102401.0 tmax=254361601.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.05
user 1.85
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/255334/ltcube_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.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/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits
.....................!
real 12.78
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/255334/ltcube_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits outfile=/scratch/kocevski/255334/expmap_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.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/255334/ltcube_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits
.....................!
real 192.82
user 187.28
sys 5.04

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/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits scfile=/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits outfile=/scratch/kocevski/255334/cmap_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits scfile=/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits outfile=/scratch/kocevski/255334/cmap_HighResolution_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.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/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255334/Model_4FGL_J2219.2-0342_daily_bin57.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/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits.....................!
real 80.40
user 79.02
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits', '/scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits', expMap='/scratch/kocevski/255334/expmap_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits', expCube='/scratch/kocevski/255334/ltcube_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255334/Model_4FGL_J2219.2-0342_daily_bin57.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/255334/ft1_filtered_4FGL_J2219.2-0342_daily_bin57.fits
Spacecraft file(s): /scratch/kocevski/255334/ft2_4FGL_J2219.2-0342_daily_bin57.fits
Exposure map: /scratch/kocevski/255334/expmap_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits
Exposure cube: /scratch/kocevski/255334/ltcube_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255334/Model_4FGL_J2219.2-0342_daily_bin57.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9098.24012985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5999       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.650       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.078       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2823       1.0000         .10000E-03   10000.    
    16 'norm      '    10.999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6821       1.0000         .10000E-03   10000.    
    18 'norm      '    .13593       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4765       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .43539       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1855       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=   9098.147     FROM MIGRAD    STATUS=CONVERGED    987 CALLS     2845 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37202        .91464        .15202E-02    .38103E-03
   2  Prefactor     .38192        19.611        .11950        .21036E-03
   3  Prefactor     .10000E-03    8.6158        .18142E-02** at limit **
   4  Prefactor     14.598        53.672        .10453E-03    .32846E-04
   5  Prefactor     .50145        29.577        .38600E-02    .16404E-03
   6  Prefactor     8.0135        6.1450        .14163E-03   -.31788E-04
   7  Prefactor     .10000E-03    2.4374        .14529E-02** at limit **
   8  Prefactor     14.769        12.893        .10422E-03   -.76357E-05
   9  Prefactor     2.5991        7.3137        .25303E-03    .95254E-05
  10  Prefactor     16.649        12.213        .98154E-04   -.39149E-04
  11  Prefactor     .10000E-03    7.5132        .18142E-02** at limit **
  12  Prefactor     47.130        25.998        .58406E-04   -.62288E-05
  13  Prefactor     .10000E-03    14.134        .36285E-03** at limit **
  14  Prefactor     19.074        52.251        .91698E-04   -.12646E-04
  15  Prefactor     7.2803        3.8309        .12753E-03   -.43163E-03
  16  norm          10.999        3.7829        .50410E-03   -.19923E-03
  17  Prefactor     7.6823        84.892        .14468E-03   -.67576E-05
  18  norm          .13578        .56652        .13795E-03   -.12906E-03
  19  Prefactor     .10000E-03    14.967        .18142E-02** at limit **
  20  norm          .10000E-03    .62565        .11846E-02** at limit **
  21  Prefactor     .10000E-03    12.781        .18142E-02** at limit **
  22  norm          8.4763        6.6417        .13769E-03   -.16018E-04
  23  Normalizat    .43551        .20023        .42001E-03   -.19467E-03
  24  Prefactor     1.1854        .12357        .16814E-03   -.31851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.372024
  Prefactor  = 0.381917
  Prefactor  = 0.0001
  Prefactor  = 14.5977
  Prefactor  = 0.501447
  Prefactor  = 8.01349
  Prefactor  = 0.0001
  Prefactor  = 14.7686
  Prefactor  = 2.59907
  Prefactor  = 16.6491
  Prefactor  = 0.0001
  Prefactor  = 47.1301
  Prefactor  = 0.0001
  Prefactor  = 19.0741
  Prefactor  = 7.2803
  norm       = 10.9988
  Prefactor  = 7.68226
  norm       = 0.135781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.4763
  Normalizat = 0.435508
  Prefactor  = 1.18542
 **********
 **   18 **HESSE 
 **********

 FCN=   9098.147     FROM HESSE     STATUS=OK           387 CALLS     3232 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37202        .91283        .60810E-04   -1.5586    
   2  Prefactor     .38192        18.869        .12294       -1.5584    
   3  Prefactor     .10000E-03    8.6159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.598        50.483        .41811E-05   -1.4944    
   5  Prefactor     .50145        26.195        .15440E-03   -1.5566    
   6  Prefactor     8.0135        6.1445        .56650E-05   -1.5142    
   7  Prefactor     .10000E-03    2.4375        .29058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.769        12.892        .41689E-05   -1.4939    
   9  Prefactor     2.5991        7.3128        .10121E-04   -1.5386    
  10  Prefactor     16.649        12.212        .39262E-05   -1.4892    
  11  Prefactor     .10000E-03    7.5177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.130        25.996        .23362E-05   -1.4334    
  13  Prefactor     .10000E-03    14.135        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.074        52.210        .36679E-05   -1.4834    
  15  Prefactor     7.2803        3.8306        .51013E-05   -1.5168    
  16  norm          10.999        3.7825        .20164E-04   -1.5045    
  17  Prefactor     7.6823        84.809        .57873E-05   -1.5154    
  18  norm          .13578        .56633        .55180E-05   -1.5634    
  19  Prefactor     .10000E-03    14.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .62624        .23693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4763        6.6417        .55076E-05   -1.5126    
  23  Normalizat    .43551        .20016        .16801E-04   -1.1550    
  24  Prefactor     1.1854        .12341        .33629E-04   -.86781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75741e-10
Minuit parameter uncertainties:
  1  0.912867
  2  5.3701
  3  5.07064e-06
  4  50.6314
  5  7.25115
  6  6.14498
  7  5.73915e-06
  8  12.8944
  9  7.31533
  10  12.2137
  11  6.21202e-06
  12  26.0025
  13  6.52589e-05
  14  52.3351
  15  3.8307
  16  3.78257
  17  51.1419
  18  0.55441
  19  4.17087e-05
  20  2.08042e-05
  21  1.92875e-05
  22  6.64228
  23  0.200494
  24  0.123444
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.526e-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.185e+00  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:  4.355e-01  2.005e-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: 8.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255334/likelihoodResults_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.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) = 9098.1475434
delta logL = -0.000337692539688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9098.1472059
delta logL = -1.91774233826e-07

Fit tolerance = 1e-08

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

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

 FCN=   9098.147     FROM MIGRAD    STATUS=FAILED        82 CALLS      242 TOTAL
                     EDM=   .17E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6259.2         .0000    ** at limit **
   2  Index         3.0372        2.9067         .0000       -.30048E-04
   3  Normalizat    .43551        9.5502         .0000        .80423E-04
   4  Prefactor     1.1854        8.9627         .0000        .24744E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9098.147     FROM SIMPLEX   STATUS=UNCHANGED    197 CALLS      439 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6259.2        .91023E-03** at limit **
   2  Index         3.0372        2.9067        .24909E-07   -.30048E-04
   3  Normalizat    .43551        9.5502        .87691E-06    .80423E-04
   4  Prefactor     1.1854        8.9627        .17062E-06    .24744E-03
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9098.147     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      514 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    36.273        .14514E-03** at limit **
   2  Index         3.0373        6.4865        .50000       -.30175E-04
   3  Normalizat    .43551        .18805        .16801E-04    .60360E-04
   4  Prefactor     1.1854        .12123        .33629E-04    .19919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 3.03734
  Normalizat = 0.435509
  Prefactor  = 1.18542
 **********
 **   18 **HESSE 
 **********

 FCN=   9098.147     FROM HESSE     STATUS=OK            29 CALLS      543 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    35.815        .29028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0373        6.4839        .50000       -.40338    
   3  Normalizat    .43551        .18778        .33601E-05   -1.1550    
   4  Prefactor     1.1854        .12110        .67258E-05   -.86781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82343e-09
Minuit parameter uncertainties:
  1  0.00224108
  2  4.60045
  3  0.188056
  4  0.12113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255334': 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) = 9098.14720355
delta logL = 2.15993350139e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.241e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.037e+00  4.600e+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:  1.185e+00  1.211e-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:  4.355e-01  1.881e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/255334/cmap_HighResolution_254102401_254361601_4FGL_J2219.2-0342_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-28 09:11:17.650835', job_id='255334', GAL2='1.19', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632845477.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='57' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 255334: <4FGL_J2219.2-0342_daily_bin57> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin57> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:28 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:29 2021
Terminated at Tue Sep 28 09:11:18 2021
Results reported at Tue Sep 28 09:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin57 334.823 -3.7102 254102401 254361601 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 :                                   830.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

