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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1321
RA = 334.823, Dec = -3.7102
tmin = 581731201, tmax = 581990401
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='261471', job_status='RUN', time_executed='2021-09-28 09:19:03.824170', time_epoch_executed='1632845943.82' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261471

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261471/ft1_4FGL_J2219.2-0342_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261471/ft1_4FGL_J2219.2-0342_daily_bin1321.fits outfile=/scratch/kocevski/261471/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1321.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=581731201.0 tmax=581990401.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 2.54
user 2.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/261471/ltcube_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.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/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits
.....................!
real 12.31
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/261471/ltcube_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.fits outfile=/scratch/kocevski/261471/expmap_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.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/261471/ltcube_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.fits
.....................!
real 190.16
user 185.12
sys 4.72

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/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits scfile=/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits outfile=/scratch/kocevski/261471/cmap_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits scfile=/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits outfile=/scratch/kocevski/261471/cmap_HighResolution_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/261471/ft2_4FGL_J2219.2-0342_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261471/Model_4FGL_J2219.2-0342_daily_bin1321.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/261471/ft1_filtered_4FGL_J2219.2-0342_daily_bin1321.fits.....................!
real 77.40
user 76.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0509       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12417E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.625       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35890E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4279       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.694       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3626       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    48.757       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82190       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=   8627.977     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2797 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .52174        .19997E-07** at limit **
   2  Prefactor     .10000E-03    7.6000       -.15372E-05** at limit **
   3  Prefactor     .10000E-03    13.353       -.19292E-05** at limit **
   4  Prefactor     .10000E-03    12.264        .99397E-06** at limit **
   5  Prefactor     .10000E-03    3.4695        .40819E-07** at limit **
   6  Prefactor     2.0509        4.9706       -.30374E-07   -.48045E-04
   7  Prefactor     .10000E-03    7.7413        .20746E-05** at limit **
   8  Prefactor     .10000E-03    7.2665       -.21119E-07** at limit **
   9  Prefactor     .10000E-03    8.4707       -.11444E-05** at limit **
  10  Prefactor     .10000E-03    14.559        .99454E-06** at limit **
  11  Prefactor     2.2504        2.2290        .49526E-07   -.34328E-03
  12  Prefactor     .10000E-03    10.061        .34775E-06** at limit **
  13  Prefactor     .10000E-03    5.5542       -.16359E-06** at limit **
  14  Prefactor     51.600        50.143       -.54202E-05   -.18043E-06
  15  Prefactor     .10013E-03    1.4677       -.23958E-06** at limit **
  16  norm          2.4274        2.4576        .10137E-06    .60862E-04
  17  Prefactor     .10000E-03    22.998        .18434E-06** at limit **
  18  norm          2.2653        1.1826        .20212E-07    .13047E-04
  19  Prefactor     47.827        44.840       -.36545E-06    .15353E-04
  20  norm          3.3458        3.3995        .20692E-06   -.12068E-04
  21  Prefactor     .10000E-03    4.2320       -.11695E-06** at limit **
  22  norm          48.760        15.641       -.23143E-06    .64844E-05
  23  Normalizat    1.2682        .18241        .18450E-06    .23594E-04
  24  Prefactor     .82230        .10547       -.35099E-07    .46507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6003
  Prefactor  = 0.000100131
  norm       = 2.42741
  Prefactor  = 0.0001
  norm       = 2.26528
  Prefactor  = 47.8267
  norm       = 3.34576
  Prefactor  = 0.0001
  norm       = 48.7597
  Normalizat = 1.26822
  Prefactor  = 0.822296
 **********
 **   18 **HESSE 
 **********

 FCN=   8627.977     FROM HESSE     STATUS=OK           403 CALLS     3200 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .52775        .65514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5222        .16892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0509        4.9534        .28865E-03   -1.5422    
   7  Prefactor     .10000E-03    7.7955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.807        .48433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2504        11.603        .13691E-02   -1.5408    
  12  Prefactor     .10000E-03    10.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.600        50.203        .55818E-04   -1.4270    
  15  Prefactor     .10013E-03    2.6111        .39470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4274        2.4468        .14079E-03   -1.5396    
  17  Prefactor     .10000E-03    23.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2653        1.1783        .70044E-04   -1.5407    
  19  Prefactor     47.827        46.875        .58062E-04   -1.4324    
  20  norm          3.3458        3.5403        .97129E-04   -1.5342    
  21  Prefactor     .10000E-03    4.2442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          48.760        15.659        .57428E-04   -1.4310    
  23  Normalizat    1.2682        .22089        .28008E-03   -.84520    
  24  Prefactor     .82230        .12683        .20136E-03   -.98912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9683e-10
Minuit parameter uncertainties:
  1  6.46447e-08
  2  1.35619e-06
  3  1.85316e-06
  4  2.30039e-07
  5  1.15442e-06
  6  4.95441
  7  6.44035e-06
  8  7.4265e-05
  9  2.10028e-06
  10  5.82027e-06
  11  10.2226
  12  1.06935e-06
  13  3.75279e-06
  14  50.2439
  15  0.00117124
  16  2.44688
  17  2.66029e-06
  18  1.1783
  19  46.9112
  20  3.54047
  21  7.28662e-07
  22  15.6599
  23  0.221051
  24  0.126873
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.223e-01  1.269e-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.268e+00  2.211e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261471/likelihoodResults_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.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) = 8627.97824482
delta logL = -0.000851492191941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8627.97739327
delta logL = 5.51499397261e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6971       1.0000          .0000       10.000    
     3 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82231       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=   8627.599     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      318 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13620E-01    .33396E-01    .28968E-02    .92844E-02
   2  Index         7.5876        1.0163        .31761       -.78654E-04
   3  Normalizat    1.2053        .24796        .28008E-03   -.28313E-03
   4  Prefactor     .84677        .13595        .20136E-03   -.42544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0136201
  Index      = 7.58759
  Normalizat = 1.20532
  Prefactor  = 0.846766
 **********
 **   18 **HESSE 
 **********

 FCN=   8627.599     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      349 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13620E-01    1.0223        .12951E-03   -1.5685    
   2  Index         7.5876        6.4558        .11820E-01    2.5976    
   3  Normalizat    1.2053        .22656        .56017E-04   -.86439    
   4  Prefactor     .84677        .12783        .40271E-04   -.98027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.11252e-09
Minuit parameter uncertainties:
  1  0.235136
  2  11.391
  3  0.226743
  4  0.127877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261471': 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) = 8627.59877034
delta logL = 0.378622983799

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.362e-02  2.351e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  7.588e+00  1.139e+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.468e-01  1.279e-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.205e+00  2.267e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261471/cmap_HighResolution_581731201_581990401_4FGL_J2219.2-0342_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-28 09:32:17.269812', job_id='261471', GAL2='0.85', fit_tolerance='1e-08', EG2='1.21', EG='1.27', time_epoch_completed='1632846737.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.79e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1321' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 261471: <4FGL_J2219.2-0342_daily_bin1321> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1321> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:45 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:46 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:15:46 2021
Terminated at Tue Sep 28 09:32:18 2021
Results reported at Tue Sep 28 09:32:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1321 334.823 -3.7102 581731201 581990401 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 :                                   792.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

