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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1520
RA = 334.823, Dec = -3.7102
tmin = 633312001, tmax = 633571201
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='262762', job_status='RUN', time_executed='2021-09-28 09:24:03.290015', time_epoch_executed='1632846243.29' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262762/ft1_4FGL_J2219.2-0342_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262762/ft1_4FGL_J2219.2-0342_daily_bin1520.fits outfile=/scratch/kocevski/262762/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1520.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=633312001.0 tmax=633571201.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.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/262762/ltcube_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.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/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits
.....................!
real 12.03
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/262762/ltcube_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.fits outfile=/scratch/kocevski/262762/expmap_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.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/262762/ltcube_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.fits
.....................!
real 190.78
user 186.07
sys 4.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/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits scfile=/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits outfile=/scratch/kocevski/262762/cmap_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits scfile=/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits outfile=/scratch/kocevski/262762/cmap_HighResolution_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.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.53
user 0.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/262762/ft2_4FGL_J2219.2-0342_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262762/Model_4FGL_J2219.2-0342_daily_bin1520.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/262762/ft1_filtered_4FGL_J2219.2-0342_daily_bin1520.fits.....................!
real 58.17
user 56.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0333       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.263       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    208.77       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2717       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.620       1.0000         .10000E-03   10000.    
    18 'norm      '    .23646       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .50462       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.384       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45134       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3430       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=   5984.452     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2734 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .93735        .48780E-07** at limit **
   2  Prefactor     .10000E-03    10.142       -.41316E-07** at limit **
   3  Prefactor     .10000E-03    14.132        .20159E-06** at limit **
   4  Prefactor     .10000E-03    53.808       -.17314E-05** at limit **
   5  Prefactor     4.1419        7.3042        .56706E-05   -.69348E-03
   6  Prefactor     5.0325        8.5146        .55084E-06   -.28909E-04
   7  Prefactor     8.1388        12.370       -.16158E-06   -.13497E-03
   8  Prefactor     7.8893        18.020       -.52227E-08   -.23936E-04
   9  Prefactor     .89783        13.468        .23878E-05   -.41739E-03
  10  Prefactor     9.9601        18.672       -.12069E-05   -.33641E-03
  11  Prefactor     28.256        20.215       -.12543E-07   -.12571E-03
  12  Prefactor     .10000E-03    31.362        .33611E-05** at limit **
  13  Prefactor     .10000E-03    4.7926        .56028E-07** at limit **
  14  Prefactor     208.74        123.59       -.24956E-05   -.16362E-03
  15  Prefactor     .10000E-03    3.6262       -.12065E-06** at limit **
  16  norm          8.2714        5.1185        .43810E-06   -.11909E-03
  17  Prefactor     28.570        66.790       -.11121E-04   -.28657E-03
  18  norm          .23569        .89474        .58176E-06   -.23777E-03
  19  Prefactor     .10000E-03    52.998       -.97947E-06** at limit **
  20  norm          .50653        1.6664        .67857E-06   -.16361E-03
  21  Prefactor     .10000E-03    26.885       -.27587E-05** at limit **
  22  norm          20.382        17.769        .22799E-06   -.37773E-04
  23  Normalizat    .45143        .28176       -.27290E-05   -.14401E-03
  24  Prefactor     1.3430        .16521        .37211E-06   -.30034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.14194
  Prefactor  = 5.03254
  Prefactor  = 8.13876
  Prefactor  = 7.88934
  Prefactor  = 0.89783
  Prefactor  = 9.96015
  Prefactor  = 28.256
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 208.737
  Prefactor  = 0.0001
  norm       = 8.27138
  Prefactor  = 28.5696
  norm       = 0.235693
  Prefactor  = 0.0001
  norm       = 0.506529
  Prefactor  = 0.000100002
  norm       = 20.3818
  Normalizat = 0.451431
  Prefactor  = 1.343
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.452     FROM HESSE     STATUS=OK           399 CALLS     3133 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .94724        .73130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1419        7.5061        .99019E-03   -1.5301    
   6  Prefactor     5.0325        8.4750        .17923E-03   -1.5259    
   7  Prefactor     8.1388        12.349        .14048E-03   -1.5137    
   8  Prefactor     7.8893        17.992        .14276E-03   -1.5146    
   9  Prefactor     .89783        99.217        .49441E-02   -1.5518    
  10  Prefactor     9.9601        18.811        .12679E-03   -1.5077    
  11  Prefactor     28.256        20.149        .75359E-04   -1.4644    
  12  Prefactor     .10000E-03    31.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8056        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     208.74        124.16        .13989E-03   -1.2808    
  15  Prefactor     .10000E-03    3.7028        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2714        5.1039        .12542E-03   -1.5133    
  17  Prefactor     28.570        70.465        .74888E-04   -1.4638    
  18  norm          .23569        .87372        .13623E-03   -1.5611    
  19  Prefactor     .10000E-03    53.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .50653        1.6511        .16984E-03   -1.5566    
  21  Prefactor     .10000E-03    27.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.382        17.711        .88713E-04   -1.4805    
  23  Normalizat    .45143        .28123        .46903E-03   -1.1472    
  24  Prefactor     1.3430        .17132        .17734E-03   -.82037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69139e-09
Minuit parameter uncertainties:
  1  5.88962e-07
  2  1.11368e-05
  3  2.18098e-05
  4  0.000623541
  5  7.50776
  6  8.47704
  7  12.3532
  8  18.0045
  9  18.9076
  10  18.8222
  11  20.1539
  12  0.00070169
  13  5.68482e-06
  14  124.312
  15  2.57851e-05
  16  5.1042
  17  70.6717
  18  0.873764
  19  0.000282859
  20  1.65125
  21  0.00051291
  22  17.7152
  23  0.282116
  24  0.171392
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.685e-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.343e+00  1.714e-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.514e-01  2.821e-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: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262762/likelihoodResults_633312001_633571201_4FGL_J2219.2-0342_daily_bin1520.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) = 5984.45347685
delta logL = -0.000988677686109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5984.45248817
delta logL = -2.19279172597e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6776       1.0000          .0000       10.000    
     3 'Normalizat'    .45142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5984.452     FROM MIGRAD    STATUS=FAILED        98 CALLS      250 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    523.12        .16551E-02** at limit **
   2  Index         2.4654        7.3480        .50000       -.22314E-06
   3  Normalizat    .45143        .68854E-01    .46902E-03   -.70536E-05
   4  Prefactor     1.3430        .43383E-01    .17734E-03   -.18527E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5984.452     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      430 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    523.12        .33726E-03** at limit **
   2  Index         2.4654        7.3480        .55113E-06   -.22314E-06
   3  Normalizat    .45143        .68854E-01    .24267E-07   -.70536E-05
   4  Prefactor     1.3430        .43383E-01    .57996E-08   -.18527E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5984.452     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      464 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.099        .33102E-03** at limit **
   2  Index         2.4674        8.3433        .50000       -.13338E-06
   3  Normalizat    .45143        .26537        .18761E-04   -.69082E-05
   4  Prefactor     1.3430        .16757        .70935E-05   -.18271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46743
  Normalizat = 0.451433
  Prefactor  = 1.343
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.452     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0102        .66204E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4674        6.2331        .50000       -.53114    
   3  Normalizat    .45143        .26537        .37522E-05   -1.1472    
   4  Prefactor     1.3430        .16754        .14187E-05   -.82037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43988e-11
Minuit parameter uncertainties:
  1  3.50461e-05
  2  167.108
  3  0.266112
  4  0.167606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262762': 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) = 5984.45248795
delta logL = 2.16356056626e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.505e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.467e+00  1.671e+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.343e+00  1.676e-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.514e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-28 09:34:39.653505', job_id='262762', GAL2='1.34', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1632846879.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1520' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 262762: <4FGL_J2219.2-0342_daily_bin1520> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1520> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:21 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:20:23 2021
Terminated at Tue Sep 28 09:34:40 2021
Results reported at Tue Sep 28 09:34:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1520 334.823 -3.7102 633312001 633571201 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 :                                   635.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

