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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin3
RA = 334.823, Dec = -3.7102
tmin = 240105601, tmax = 240364801
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='255255', job_status='RUN', time_executed='2021-09-28 08:55:46.595376', time_epoch_executed='1632844546.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255255/ft1_4FGL_J2219.2-0342_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255255/ft1_4FGL_J2219.2-0342_daily_bin3.fits outfile=/scratch/kocevski/255255/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin3.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/255255/ltcube_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.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/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits
.....................!
real 13.09
user 12.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/255255/ltcube_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.fits outfile=/scratch/kocevski/255255/expmap_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.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/255255/ltcube_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.fits
.....................!
real 191.78
user 186.42
sys 4.86

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/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits scfile=/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits outfile=/scratch/kocevski/255255/cmap_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits scfile=/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits outfile=/scratch/kocevski/255255/cmap_HighResolution_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.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.50
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/255255/ft2_4FGL_J2219.2-0342_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255255/Model_4FGL_J2219.2-0342_daily_bin3.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/255255/ft1_filtered_4FGL_J2219.2-0342_daily_bin3.fits.....................!
real 82.24
user 80.92
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12928E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.106       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4031       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.528       1.0000         .10000E-03   10000.    
    18 'norm      '    .25242       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91876       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94686       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=   9252.076     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2709 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4346        2.1300       -.68169E-07    .11453E-03
   2  Prefactor     .10003E-03    91.703       -.64126E-05** at limit **
   3  Prefactor     .10000E-03    19.782       -.62716E-06** at limit **
   4  Prefactor     11.162        32.625       -.13295E-05   -.14516E-03
   5  Prefactor     3.8264        5.7776        .31917E-06   -.51369E-04
   6  Prefactor     1.6617        4.4731        .18286E-05   -.89513E-04
   7  Prefactor     .10000E-03    2.1440       -.26694E-07** at limit **
   8  Prefactor     .10000E-03    4.9278        .43836E-07** at limit **
   9  Prefactor     3.4532        13.303        .22234E-05   -.37582E-04
  10  Prefactor     .10000E-03    21.649        .55807E-06** at limit **
  11  Prefactor     10.616        9.4692        .57929E-07   -.51171E-04
  12  Prefactor     13.111        22.735        .98569E-06    .71682E-04
  13  Prefactor     12.491        9.7558       -.59091E-06   -.98683E-04
  14  Prefactor     40.776        58.644       -.18200E-06    .29725E-04
  15  Prefactor     3.4032        3.1036        .16921E-05   -.42143E-03
  16  norm          2.3968        3.4691        .43846E-06   -.18774E-03
  17  Prefactor     35.536        72.730       -.15269E-05    .20181E-04
  18  norm          .25264        .71674        .77331E-06   -.12945E-03
  19  Prefactor     .10000E-03    3.4576       -.31017E-07** at limit **
  20  norm          .10000E-03    .23313       -.21187E-08** at limit **
  21  Prefactor     .10000E-03    2.3207        .68708E-08** at limit **
  22  norm          .10000E-03    3.2067        .60927E-07** at limit **
  23  Normalizat    .91867        .17572       -.14468E-05   -.10887E-03
  24  Prefactor     .94683        .10102       -.28879E-06   -.19242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43458
  Prefactor  = 0.000100029
  Prefactor  = 0.000100001
  Prefactor  = 11.1618
  Prefactor  = 3.82639
  Prefactor  = 1.66165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45322
  Prefactor  = 0.000100001
  Prefactor  = 10.6161
  Prefactor  = 13.111
  Prefactor  = 12.4908
  Prefactor  = 40.7763
  Prefactor  = 3.40322
  norm       = 2.39681
  Prefactor  = 35.5361
  norm       = 0.252637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.918666
  Prefactor  = 0.946834
 **********
 **   18 **HESSE 
 **********

 FCN=   9252.076     FROM HESSE     STATUS=OK           397 CALLS     3106 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4346        2.1271        .94002E-04   -1.5287    
   2  Prefactor     .10003E-03    93.681        .42750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.162        32.465        .11984E-03   -1.5040    
   5  Prefactor     3.8264        5.7377        .20626E-03   -1.5317    
   6  Prefactor     1.6617        4.4770        .31699E-03   -1.5450    
   7  Prefactor     .10000E-03    2.1468        .13752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4532        13.236        .21708E-03   -1.5336    
  10  Prefactor     .10000E-03    21.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.616        9.5060        .12298E-03   -1.5056    
  12  Prefactor     13.111        22.736        .11064E-03   -1.4984    
  13  Prefactor     12.491        9.7526        .11336E-03   -1.5001    
  14  Prefactor     40.776        58.436        .62779E-04   -1.4430    
  15  Prefactor     3.4032        3.0966        .73989E-03   -1.5339    
  16  norm          2.3968        3.4221        .18772E-03   -1.5398    
  17  Prefactor     35.536        72.403        .67234E-04   -1.4515    
  18  norm          .25264        .71348        .13208E-03   -1.5607    
  19  Prefactor     .10000E-03    3.4615        .17467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .23479        .45341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3222        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.2207        .16822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91867        .21135        .30179E-03   -.95807    
  24  Prefactor     .94683        .12238        .18310E-03   -.94523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25738e-10
Minuit parameter uncertainties:
  1  2.12709
  2  0.00330128
  3  0.000258988
  4  32.5166
  5  5.73856
  6  4.47791
  7  6.82189e-07
  8  6.10467e-06
  9  13.2472
  10  0.000326866
  11  9.5073
  12  22.7514
  13  9.75385
  14  58.5183
  15  3.09677
  16  3.42235
  17  72.5828
  18  0.713503
  19  5.89889e-06
  20  1.35382e-07
  21  1.53087e-07
  22  7.28529e-06
  23  0.211546
  24  0.122415
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.249e+01  9.754e+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:  9.468e-01  1.224e-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.187e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/255255/likelihoodResults_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.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) = 9251.78799964
delta logL = 0.287561416877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9251.77667294
delta logL = 0.298888116067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0962       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3191       1.0000          .0000       10.000    
     3 'Normalizat'    .88947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96042       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9251.777     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0962        12.869        .70453E-03   -.53960E-04
   2  Index         3.3191        1.2649        .76352E-02    .19383E-04
   3  Normalizat    .88944        .20157        .30613E-03    .22282E-06
   4  Prefactor     .96042        .12291        .18194E-03    .24994E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.09619
  Index      = 3.31909
  Normalizat = 0.889435
  Prefactor  = 0.960425
 **********
 **   18 **HESSE 
 **********

 FCN=   9251.777     FROM HESSE     STATUS=OK            27 CALLS      314 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0962        9.6915        .28181E-04   -1.5139    
   2  Index         3.3191        .95675        .30541E-03   -.34286    
   3  Normalizat    .88944        .20120        .12245E-04   -.96832    
   4  Prefactor     .96042        .12234        .72776E-05   -.94061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18219e-12
Minuit parameter uncertainties:
  1  9.69335
  2  0.963459
  3  0.201372
  4  0.12238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255255': 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) = 9251.77667291
delta logL = 0.298888148111

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.096e+00  9.693e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.319e+00  9.635e-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:  9.604e-01  1.224e-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.894e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.32 +/- 0.96
Photon Flux (Free Index): 7.61e-08 +/- 5.15e-08
Energy Flux (Free Index): 1.34e-05 +/- 9.10e-06

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/255255/cmap_HighResolution_240105601_240364801_4FGL_J2219.2-0342_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='1.34e-05', photon_flux_error='4.49e-08', dlogl='2.99e-01', energy_flux='1.41e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-09-28 09:09:10.235645', photon_index_error2='0.96', photon_index2='3.32', ts='2.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='9.10e-06', EG='0.92', time_epoch_completed='1632845350.24', return_code='0', job_id='255255', GAL2='0.96', EG2='0.89', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.15e-08', ts2='3.04', photon_index='2.68' WHERE bin_id='3' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 255255: <4FGL_J2219.2-0342_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin3 334.823 -3.7102 240105601 240364801 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 :                                   804.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            832 sec.

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

