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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin132
RA = 334.823, Dec = -3.7102
tmin = 273542401, tmax = 273801601
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='255457', job_status='RUN', time_executed='2021-09-28 08:59:33.307610', time_epoch_executed='1632844773.31' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255457/ft1_4FGL_J2219.2-0342_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255457/ft1_4FGL_J2219.2-0342_daily_bin132.fits outfile=/scratch/kocevski/255457/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin132.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=273542401.0 tmax=273801601.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/255457/ltcube_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.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/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits
.....................!
real 12.14
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/255457/ltcube_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.fits outfile=/scratch/kocevski/255457/expmap_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.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/255457/ltcube_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.fits
.....................!
real 192.12
user 187.30
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/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits scfile=/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits outfile=/scratch/kocevski/255457/cmap_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.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.51
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits scfile=/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits outfile=/scratch/kocevski/255457/cmap_HighResolution_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.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/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/255457/ft2_4FGL_J2219.2-0342_daily_bin132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255457/Model_4FGL_J2219.2-0342_daily_bin132.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/255457/ft1_filtered_4FGL_J2219.2-0342_daily_bin132.fits.....................!
real 75.10
user 73.56
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86314E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.030       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2903       1.0000         .10000E-03   10000.    
    16 'norm      '    .11902E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    88.830       1.0000         .10000E-03   10000.    
    18 'norm      '    .15565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7892       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4538       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82812       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=   7704.505     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2855 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8201        2.1547        .36822E-07   -.48009E-04
   2  Prefactor     .10000E-03    14.790        .13140E-07** at limit **
   3  Prefactor     33.680        35.774        .46124E-06    .18241E-04
   4  Prefactor     .10001E-03    26.695        .52232E-05** at limit **
   5  Prefactor     8.2188        6.4301       -.10531E-07   -.13887E-03
   6  Prefactor     8.6631        6.1483       -.61129E-06   -.60496E-03
   7  Prefactor     .10018E-03    6.8723        .24637E-06** at limit **
   8  Prefactor     19.019        21.768        .19574E-05    .23119E-03
   9  Prefactor     .10000E-03    10.615       -.73323E-07** at limit **
  10  Prefactor     15.966        16.023       -.12645E-05   -.33804E-03
  11  Prefactor     .10000E-03    25.221       -.38212E-05** at limit **
  12  Prefactor     .10000E-03    33.684       -.17313E-05** at limit **
  13  Prefactor     8.8838        8.6820        .43934E-07    .73223E-05
  14  Prefactor     .10000E-03    62.664        .62913E-06** at limit **
  15  Prefactor     2.2910        4.2001        .13780E-06   -.27157E-03
  16  norm          .10000E-03    2.9668        .11320E-06** at limit **
  17  Prefactor     88.868        79.872        .68403E-05    .32850E-03
  18  norm          .15609        .57141        .16129E-06   -.74760E-03
  19  Prefactor     .10000E-03    4.6619       -.16737E-07** at limit **
  20  norm          .10000E-03    .43495       -.30525E-07** at limit **
  21  Prefactor     3.7880        7.7211        .48002E-05   -.10134E-02
  22  norm          .10000E-03    5.6039        .18226E-07** at limit **
  23  Normalizat    1.4536        .20783       -.55819E-06    .17915E-04
  24  Prefactor     .82831        .12120       -.30021E-06   -.18913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82015
  Prefactor  = 0.0001
  Prefactor  = 33.6795
  Prefactor  = 0.000100009
  Prefactor  = 8.21882
  Prefactor  = 8.66306
  Prefactor  = 0.000100179
  Prefactor  = 19.0191
  Prefactor  = 0.0001
  Prefactor  = 15.9664
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 8.88376
  Prefactor  = 0.0001
  Prefactor  = 2.29101
  norm       = 0.0001
  Prefactor  = 88.8685
  norm       = 0.156086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.788
  norm       = 0.0001
  Normalizat = 1.45356
  Prefactor  = 0.828306
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.505     FROM HESSE     STATUS=OK           409 CALLS     3264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8201        2.1550        .10852E-03   -1.5372    
   2  Prefactor     .10000E-03    14.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.680        35.758        .69048E-04   -1.4547    
   4  Prefactor     .10001E-03    27.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2188        6.4340        .13984E-03   -1.5135    
   6  Prefactor     8.6631        6.2104        .13618E-03   -1.5119    
   7  Prefactor     .10018E-03    10.924        .68626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.019        21.906        .91813E-04   -1.4835    
   9  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.966        16.192        .10026E-03   -1.4909    
  11  Prefactor     .10000E-03    26.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8838        8.6546        .13449E-03   -1.5112    
  14  Prefactor     .10000E-03    62.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2910        4.1869        .22547E-03   -1.5405    
  16  norm          .10000E-03    3.0858        .29470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     88.868        83.263        .21315E-03   -1.3820    
  18  norm          .15609        .86227        .12281E-02   -1.5629    
  19  Prefactor     .10000E-03    4.6664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .44898        .11303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7880        8.5493        .10369E-02   -1.5319    
  22  norm          .10000E-03    5.6182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4536        .24690        .28480E-03   -.79092    
  24  Prefactor     .82831        .14425        .21515E-03   -.98693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99368e-09
Minuit parameter uncertainties:
  1  2.15502
  2  4.0208e-06
  3  35.7803
  4  0.00100653
  5  6.43454
  6  6.21086
  7  0.00280083
  8  21.9148
  9  3.71896e-05
  10  16.1969
  11  0.000529848
  12  0.000414601
  13  8.65585
  14  0.000188078
  15  4.18742
  16  2.21002e-05
  17  83.3727
  18  0.733507
  19  1.68669e-06
  20  7.88923e-07
  21  8.55209
  22  1.34172e-06
  23  0.247106
  24  0.144316
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.884e+00  8.656e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.283e-01  1.443e-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:  1.454e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 9.99e-06 +/- 9.73e-06

TS (Fixed Index): 2.27
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255457/likelihoodResults_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.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) = 7703.74823969
delta logL = 0.756701575188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7703.70499425
delta logL = 0.799947011254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2395       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7126       1.0000          .0000       10.000    
     3 'Normalizat'    1.4830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81891       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.

 FCN=   7703.705     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2237        6.2108        .40177E-02   -.12338E-02
   2  Index         1.7118        .39496        .25666       -.89056E-04
   3  Normalizat    1.4832        .20165        .63859E-01   -.64141E-04
   4  Prefactor     .81885        .11952        .43963E-01    .37725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22366
  Index      = 1.71175
  Normalizat = 1.48316
  Prefactor  = 0.818853
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.705     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2237        8.5065        .80353E-03   -1.5209    
   2  Index         1.7118        .68414        .89536E-02   -.71769    
   3  Normalizat    1.4832        .23962        .28245E-03   -.78253    
   4  Prefactor     .81885        .14205        .21623E-03   -.99037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96749e-11
Minuit parameter uncertainties:
  1  8.50814
  2  0.687959
  3  0.239803
  4  0.142113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255457': 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) = 7703.70499248
delta logL = 0.799948785851

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.189e-01  1.421e-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:  1.483e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.71 +/- 0.69
Photon Flux (Free Index): 1.39e-08 +/- 2.09e-08
Energy Flux (Free Index): 2.19e-05 +/- 3.19e-05

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/255457/cmap_HighResolution_273542401_273801601_4FGL_J2219.2-0342_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='2.19e-05', photon_flux_error='3.98e-08', dlogl='8.00e-01', energy_flux='9.99e-06', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-28 09:11:56.574604', photon_index_error2='0.69', photon_index2='1.71', ts='2.27', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='3.19e-05', EG='1.45', time_epoch_completed='1632845516.57', return_code='0', job_id='255457', GAL2='0.82', EG2='1.48', return_code2='0', energy_flux_error='9.73e-06', photon_flux_error2='2.09e-08', ts2='3.88', photon_index='2.68' WHERE bin_id='132' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 255457: <4FGL_J2219.2-0342_daily_bin132> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin132> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:37 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:38 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:38 2021
Terminated at Tue Sep 28 09:11:57 2021
Results reported at Tue Sep 28 09:11:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin132 334.823 -3.7102 273542401 273801601 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

