/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 148 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 = 7435
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin313
RA = 334.823, Dec = -3.7102
tmin = 320457601, tmax = 320716801
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='256816', job_status='RUN', time_executed='2021-09-28 09:03:13.227156', time_epoch_executed='1632844993.23' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256816/ft1_4FGL_J2219.2-0342_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256816/ft1_4FGL_J2219.2-0342_daily_bin313.fits outfile=/scratch/kocevski/256816/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin313.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=320457601.0 tmax=320716801.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.75
user 3.53
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/256816/ltcube_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.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/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits
.....................!
real 11.65
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/256816/ltcube_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.fits outfile=/scratch/kocevski/256816/expmap_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.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/256816/ltcube_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.fits
.....................!
real 190.39
user 185.94
sys 4.13

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/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits scfile=/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits outfile=/scratch/kocevski/256816/cmap_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits scfile=/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits outfile=/scratch/kocevski/256816/cmap_HighResolution_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/256816/ft2_4FGL_J2219.2-0342_daily_bin313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256816/Model_4FGL_J2219.2-0342_daily_bin313.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/256816/ft1_filtered_4FGL_J2219.2-0342_daily_bin313.fits.....................!
real 65.44
user 64.01
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56345E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44548E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.059       1.0000         .10000E-03   10000.    
    16 'norm      '    10.281       1.0000         .10000E-03   10000.    
    17 'Prefactor '    136.19       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83207       1.0000         .10000E-03   10000.    
    20 'norm      '    .10422E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45549       1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99264       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3394       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=   6701.973     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     3180 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99418       -.12728E-06** at limit **
   2  Prefactor     .10000E-03    63.871       -.15422E-05** at limit **
   3  Prefactor     .10000E-03    21.003       -.13295E-06** at limit **
   4  Prefactor     .10000E-03    340.98        .10227E-04** at limit **
   5  Prefactor     .46564        8.4659       -.20998E-05   -.41443E-05
   6  Prefactor     1.8598        7.5568       -.12418E-05    .26121E-03
   7  Prefactor     .10000E-03    5.2979       -.20827E-06** at limit **
   8  Prefactor     10.326        13.887        .58394E-07    .14068E-04
   9  Prefactor     .10000E-03    7.8746       -.36121E-06** at limit **
  10  Prefactor     .10000E-03    26.385       -.81639E-06** at limit **
  11  Prefactor     16.366        11.711        .12552E-06    .52914E-04
  12  Prefactor     .10000E-03    7.9042        .41264E-07** at limit **
  13  Prefactor     .10000E-03    3.9672       -.11549E-06** at limit **
  14  Prefactor     .10000E-03    180.02        .33788E-05** at limit **
  15  Prefactor     18.058        7.6276       -.10724E-06    .11413E-03
  16  norm          10.278        6.4593       -.32196E-07    .13740E-03
  17  Prefactor     136.18        176.70       -.60333E-07    .30114E-04
  18  norm          .10000E-03    .51801       -.77254E-07** at limit **
  19  Prefactor     .86004        125.82        .26033E-04    .19304E-04
  20  norm          .10000E-03    1.3791        .40900E-07** at limit **
  21  Prefactor     .44235        71.211       -.19902E-04    .52261E-04
  22  norm          .10000E-03    14.887       -.64681E-06** at limit **
  23  Normalizat    .99336        .26333        .62568E-06    .24078E-03
  24  Prefactor     1.3390        .15237        .10545E-05    .41535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.465645
  Prefactor  = 1.85982
  Prefactor  = 0.0001
  Prefactor  = 10.3265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.0577
  norm       = 10.2784
  Prefactor  = 136.177
  norm       = 0.0001
  Prefactor  = 0.860042
  norm       = 0.000100001
  Prefactor  = 0.44235
  norm       = 0.0001
  Normalizat = 0.993363
  Prefactor  = 1.33903
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.973     FROM HESSE     STATUS=OK           399 CALLS     3579 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0090        .79773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    343.51        .42194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46564        56.069        .44051E-02   -1.5572    
   6  Prefactor     1.8598        7.7059        .30483E-03   -1.5435    
   7  Prefactor     .10000E-03    5.3116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.326        13.882        .12470E-03   -1.5065    
   9  Prefactor     .10000E-03    7.8963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.366        11.715        .98988E-04   -1.4899    
  12  Prefactor     .10000E-03    7.9076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9723        .15925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    181.07        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.058        7.6341        .94248E-04   -1.4858    
  16  norm          10.278        6.4484        .12496E-03   -1.5067    
  17  Prefactor     136.18        176.76        .34511E-04   -1.3369    
  18  norm          .10000E-03    .52661        .57552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86004        175.88        .70162E-02   -1.5522    
  20  norm          .10000E-03    1.8398        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .44235        137.61        .58668E-02   -1.5575    
  22  norm          .10000E-03    15.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99336        .30985        .38060E-03   -.93253    
  24  Prefactor     1.3390        .18051        .20285E-03   -.82154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93055e-08
Minuit parameter uncertainties:
  1  6.15295e-06
  2  0.000560313
  3  3.57265e-05
  4  0.0025004
  5  10.228
  6  7.5729
  7  2.50941e-05
  8  13.8859
  9  4.94119e-05
  10  0.000218018
  11  11.7162
  12  2.47145e-06
  13  1.34375e-05
  14  0.00094221
  15  7.63452
  16  6.44886
  17  177.448
  18  5.214e-06
  19  24.6704
  20  9.40782e-05
  21  15.6388
  22  0.000123486
  23  0.310415
  24  0.180599
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.344e-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.339e+00  1.806e-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:  9.934e-01  3.104e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256816/likelihoodResults_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.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): 0
logL (Free Index) = 6701.97443025
delta logL = -0.00119191875638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6701.97323833
delta logL = -3.15321813105e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6800       1.0000          .0000       10.000    
     3 'Normalizat'    .99337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3390       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=   6701.973     FROM MIGRAD    STATUS=FAILED        95 CALLS      251 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    951.43        .15928E-02** at limit **
   2  Index         2.5311        5.8492        .50000       -.13850E-05
   3  Normalizat    .99336        .25678        .38060E-03   -.51856E-04
   4  Prefactor     1.3390        .15690        .20285E-03   -.93492E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6701.973     FROM SIMPLEX   STATUS=UNCHANGED    216 CALLS      467 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    951.43        .26790E-03** at limit **
   2  Index         2.5311        5.8492        .18787E-07   -.13850E-05
   3  Normalizat    .99336        .25678        .36711E-08   -.51856E-04
   4  Prefactor     1.3390        .15690        .68044E-09   -.93492E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6701.973     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      506 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1930        .31856E-03** at limit **
   2  Index         2.5309        7.5293        .50000       -.19372E-07
   3  Normalizat    .99336        .29084        .15224E-04   -.51527E-04
   4  Prefactor     1.3390        .17798        .40571E-04   -.92976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53087
  Normalizat = 0.993362
  Prefactor  = 1.33903
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.973     FROM HESSE     STATUS=OK            29 CALLS      535 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0083        .63711E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5309        5.0227        .50000       -.51648    
   3  Normalizat    .99336        .29104        .30448E-05   -.93253    
   4  Prefactor     1.3390        .17808        .81142E-05   -.82154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72656e-12
Minuit parameter uncertainties:
  1  1.29911e-05
  2  200.439
  3  0.291506
  4  0.178162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256816': 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) = 6701.97323824
delta logL = 8.969072951e-08

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.299e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.531e+00  2.004e+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.339e+00  1.782e-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:  9.934e-01  2.915e-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/256816/cmap_HighResolution_320457601_320716801_4FGL_J2219.2-0342_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2021-09-28 09:15:07.885897', job_id='256816', GAL2='1.34', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632845707.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='8.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='313' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 256816: <4FGL_J2219.2-0342_daily_bin313> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin313> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:00:33 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:00:34 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:00:34 2021
Terminated at Tue Sep 28 09:15:08 2021
Results reported at Tue Sep 28 09:15:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin313 334.823 -3.7102 320457601 320716801 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 :                                   715.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

