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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin59
RA = 334.823, Dec = -3.7102
tmin = 254620801, tmax = 254880001
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='255337', job_status='RUN', time_executed='2021-09-28 08:58:19.754920', time_epoch_executed='1632844699.75' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255337

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255337/ft1_4FGL_J2219.2-0342_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255337/ft1_4FGL_J2219.2-0342_daily_bin59.fits outfile=/scratch/kocevski/255337/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin59.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.38
user 1.18
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.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/255337/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/255337/ft1_filtered_4FGL_J2219.2-0342_daily_bin59.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/255337/ft1_filtered_4FGL_J2219.2-0342_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/255337/ltcube_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.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/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits
.....................!
real 11.83
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255337/ft1_filtered_4FGL_J2219.2-0342_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/255337/ltcube_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.fits outfile=/scratch/kocevski/255337/expmap_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.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/255337/ltcube_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.fits
.....................!
real 190.50
user 185.36
sys 4.74

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/255337/ft1_filtered_4FGL_J2219.2-0342_daily_bin59.fits scfile=/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits outfile=/scratch/kocevski/255337/cmap_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255337/ft1_filtered_4FGL_J2219.2-0342_daily_bin59.fits scfile=/scratch/kocevski/255337/ft2_4FGL_J2219.2-0342_daily_bin59.fits outfile=/scratch/kocevski/255337/cmap_HighResolution_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43611E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11776E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.758       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39953E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7131       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4818       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    226.61       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12308       1.0000         .10000E-03   10000.    
    22 'norm      '    .15603E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89628       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9617.647     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2023 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    35.741        .43299E-04** at limit **
   2  Prefactor     .10276E-03    115.75       -.27050E-04** at limit **
   3  Prefactor     .10000E-03    6.5466        .74697E-06** at limit **
   4  Prefactor     13.178        46.343       -.71135E-04    .15882E-02
   5  Prefactor     6.4902        6.2591        .48782E-05   -.22943E-03
   6  Prefactor     13.761        6.7511        .23206E-05    .60697E-03
   7  Prefactor     7.8926        9.6110        .20816E-04    .39542E-02
   8  Prefactor     2.5455        4.5847        .42455E-06   -.22485E-02
   9  Prefactor     .34769        64.580       -.43127E-05    .34366E-03
  10  Prefactor     .10000E-03    5.8672       -.92945E-06** at limit **
  11  Prefactor     15.229        1.9012       -.30845E-05   -.20245E-02
  12  Prefactor     .10000E-03    15.780       -.32424E-05** at limit **
  13  Prefactor     .10000E-03    3.8845        .20249E-06** at limit **
  14  Prefactor     4.7319        8.1749        .20659E-04   -.23647E-03
  15  Prefactor     3.4820        3.0805       -.51357E-06    .36527E-04
  16  norm          3.5755        3.5484        .36224E-06    .60850E-03
  17  Prefactor     226.63        8.7050        .33693E-05   -.49579E-02
  18  norm          2.8774        1.1628       -.11322E-06    .69408E-03
  19  Prefactor     .10000E-03    12.883       -.12443E-05** at limit **
  20  norm          .10000E-03    .48037        .99624E-07** at limit **
  21  Prefactor     .12064        19.318       -.43389E-05   -.26607E-02
  22  norm          .10001E-03    22.234       -.24780E-05** at limit **
  23  Normalizat    .89638        .21033       -.10315E-05   -.18717E-03
  24  Prefactor     1.0686        .12654       -.84123E-06   -.42776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100862
  Prefactor  = 0.000102761
  Prefactor  = 0.000100001
  Prefactor  = 13.1777
  Prefactor  = 6.49018
  Prefactor  = 13.7615
  Prefactor  = 7.89258
  Prefactor  = 2.5455
  Prefactor  = 0.34769
  Prefactor  = 0.0001
  Prefactor  = 15.2294
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.73189
  Prefactor  = 3.48195
  norm       = 3.57546
  Prefactor  = 226.63
  norm       = 2.87736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.120639
  norm       = 0.000100012
  Normalizat = 0.896383
  Prefactor  = 1.06857
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.647     FROM HESSE     STATUS=OK           465 CALLS     2488 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    .68395        .46857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10276E-03    117.31        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.178        55.027        .27408E-02   -1.4982    
   5  Prefactor     6.4902        6.4363        .39413E-02   -1.5198    
   6  Prefactor     13.761        6.8044        .26997E-02   -1.4966    
   7  Prefactor     7.8926        10.003        .35625E-02   -1.5146    
   8  Prefactor     2.5455        30.728        .63896E-02   -1.5389    
   9  Prefactor     .34769        7.2677        .92209E-01   -1.5590    
  10  Prefactor     .10000E-03    5.8343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.229        10.303        .25661E-02   -1.4927    
  12  Prefactor     .10000E-03    15.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8593        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7319        194.11        .46338E-02   -1.5273    
  15  Prefactor     3.4820        3.1118        .54176E-02   -1.5335    
  16  norm          3.5755        3.7172        .53436E-02   -1.5330    
  17  Prefactor     226.63        94.518        .67195E-03   -1.2686    
  18  norm          2.8774        1.1693        .59908E-02   -1.5369    
  19  Prefactor     .10000E-03    12.765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .46573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12064        3.9573        .96207E-01   -1.5639    
  22  norm          .10001E-03    21.227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89638        .18514        .74496E-01   -.96587    
  24  Prefactor     1.0686        .10814        .38911E-01   -.90477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82873e-07
Minuit parameter uncertainties:
  1  0.00153569
  2  0.0360684
  3  0.000149503
  4  53.9414
  5  6.43703
  6  6.80478
  7  10.005
  8  17.6993
  9  3.17922
  10  4.95672e-05
  11  10.3039
  12  0.000232305
  13  4.63084e-05
  14  60.8259
  15  3.11191
  16  3.71748
  17  94.5818
  18  1.1693
  19  5.24861e-06
  20  4.47351e-06
  21  1.38142
  22  0.00100974
  23  0.18527
  24  0.108163
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.631e-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.069e+00  1.082e-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:  8.964e-01  1.853e-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: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255337/likelihoodResults_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.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) = 9617.6480571
delta logL = -0.00122816154362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9617.64683097
delta logL = -2.02730188903e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6752       1.0000          .0000       10.000    
     3 'Normalizat'    .89624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0685       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=   9617.647     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    134.05        .18142E-02** at limit **
   2  Index         2.6230        5.3677        .50000        .11725E-04
   3  Normalizat    .89638        .26472E-01    .32968E-03   -.88280E-05
   4  Prefactor     1.0686        .16495E-01    .18855E-03   -.11456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100474
  Index      = 2.62304
  Normalizat = 0.896382
  Prefactor  = 1.06857
 **********
 **   18 **HESSE 
 **********

 FCN=   9617.647     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10047E-03    501.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6230        8.4296        .50000       -.49541    
   3  Normalizat    .89638        .60505E-01    .13187E-04   -.96587    
   4  Prefactor     1.0686        .37700E-01    .75419E-05   -.90477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.67388e-08
Minuit parameter uncertainties:
  1  0.0311051
  2  1453.75
  3  0.0605094
  4  0.0377008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255337': 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) = 9617.64682881
delta logL = 1.26665327116e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.005e-04  3.111e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.623e+00  1.454e+03  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.069e+00  3.770e-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:  8.964e-01  6.051e-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/255337/cmap_HighResolution_254620801_254880001_4FGL_J2219.2-0342_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-28 09:10:55.883899', job_id='255337', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632845455.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='59' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 255337: <4FGL_J2219.2-0342_daily_bin59> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin59> 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) <bullet0051>, 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:10:56 2021
Results reported at Tue Sep 28 09:10:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin59 334.823 -3.7102 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

