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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1042
RA = 334.823, Dec = -3.7102
tmin = 509414401, tmax = 509673601
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='259993', job_status='RUN', time_executed='2021-09-28 09:14:26.123806', time_epoch_executed='1632845666.12' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259993/ft1_4FGL_J2219.2-0342_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259993/ft1_4FGL_J2219.2-0342_daily_bin1042.fits outfile=/scratch/kocevski/259993/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1042.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=509414401.0 tmax=509673601.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.66
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/259993/ltcube_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.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/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits
.....................!
real 13.08
user 12.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/259993/ltcube_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.fits outfile=/scratch/kocevski/259993/expmap_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.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/259993/ltcube_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.fits
.....................!
real 190.83
user 185.64
sys 4.70

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/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits scfile=/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits outfile=/scratch/kocevski/259993/cmap_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits scfile=/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits outfile=/scratch/kocevski/259993/cmap_HighResolution_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/259993/ft2_4FGL_J2219.2-0342_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259993/Model_4FGL_J2219.2-0342_daily_bin1042.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/259993/ft1_filtered_4FGL_J2219.2-0342_daily_bin1042.fits.....................!
real 66.94
user 65.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7346       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25412E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8843       1.0000         .10000E-03   10000.    
    16 'norm      '    40.344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4482       1.0000         .10000E-03   10000.    
    19 'Prefactor '    146.07       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.070       1.0000         .10000E-03   10000.    
    22 'norm      '    .13540E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2245       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1054       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=   6751.002     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     3190 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0132        .23135E-05** at limit **
   2  Prefactor     .10000E-03    34.531        .22017E-06** at limit **
   3  Prefactor     2.8623        296.42       -.14522E-04   -.41581E-05
   4  Prefactor     .10000E-03    93.149       -.14667E-05** at limit **
   5  Prefactor     .10000E-03    20.248       -.23797E-05** at limit **
   6  Prefactor     1.0776        4.4447        .14992E-05   -.26952E-04
   7  Prefactor     .10000E-03    9.9761       -.34926E-06** at limit **
   8  Prefactor     .10000E-03    16.171       -.89216E-06** at limit **
   9  Prefactor     22.216        16.737        .88857E-07   -.58461E-05
  10  Prefactor     .10000E-03    10.271       -.40309E-06** at limit **
  11  Prefactor     .10007E-03    12.219        .56469E-06** at limit **
  12  Prefactor     .10000E-03    11.888       -.40349E-06** at limit **
  13  Prefactor     10.730        13.827        .18056E-05   -.72553E-04
  14  Prefactor     6.6528        1017.6       -.57526E-04    .38207E-06
  15  Prefactor     1.8875        6.2073        .59232E-07   -.88723E-04
  16  norm          40.340        9.4974        .45140E-06   -.50370E-04
  17  Prefactor     .10000E-03    38.061       -.24906E-06** at limit **
  18  norm          1.4481        1.2128        .49914E-07    .50797E-04
  19  Prefactor     146.09        79.048        .51042E-08    .18905E-05
  20  norm          5.4273        5.6986        .10263E-06   -.12687E-04
  21  Prefactor     38.075        22.093       -.83183E-07    .73506E-06
  22  norm          .10000E-03    18.276       -.13073E-05** at limit **
  23  Normalizat    1.2241        .27166       -.20633E-05    .20988E-04
  24  Prefactor     1.1055        .15721        .18342E-05   -.18858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2164
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 10.7305
  Prefactor  = 6.65285
  Prefactor  = 1.88752
  norm       = 40.3402
  Prefactor  = 0.0001
  norm       = 1.44814
  Prefactor  = 146.086
  norm       = 5.42731
  Prefactor  = 38.0751
  norm       = 0.0001
  Normalizat = 1.22415
  Prefactor  = 1.10546
 **********
 **   18 **HESSE 
 **********

 FCN=   6751.002     FROM HESSE     STATUS=OK           399 CALLS     3589 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0262        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8623        285.37        .24622E-03   -1.5370    
   4  Prefactor     .10000E-03    93.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0776        4.3041        .33537E-03   -1.5500    
   7  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.216        16.737        .84970E-04   -1.4765    
  10  Prefactor     .10000E-03    10.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    161.59        .54301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.730        13.616        .61140E-03   -1.5053    
  14  Prefactor     6.6528        979.94        .15854E-03   -1.5192    
  15  Prefactor     1.8875        6.0879        .30321E-03   -1.5433    
  16  norm          40.340        9.4560        .63108E-04   -1.4437    
  17  Prefactor     .10000E-03    38.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4481        1.2231        .39819E-03   -1.5467    
  19  Prefactor     146.09        79.625        .33341E-04   -1.3285    
  20  norm          5.4273        5.7302        .11349E-03   -1.5242    
  21  Prefactor     38.075        22.083        .64958E-04   -1.4473    
  22  norm          .10000E-03    18.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2241        .31371        .35498E-03   -.85860    
  24  Prefactor     1.1055        .18242        .22204E-03   -.89292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76903e-10
Minuit parameter uncertainties:
  1  1.28789e-05
  2  3.35666e-05
  3  57.4433
  4  0.000179003
  5  6.60885e-05
  6  4.30535
  7  6.95111e-06
  8  1.03392e-05
  9  16.7407
  10  9.87612e-06
  11  0.00669235
  12  6.46928e-07
  13  13.6199
  14  164.304
  15  6.08991
  16  9.45632
  17  1.1442e-05
  18  1.22315
  19  79.6838
  20  5.73077
  21  22.0877
  22  3.88432e-05
  23  0.314191
  24  0.182524
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.073e+01  1.362e+01  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.105e+00  1.825e-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.224e+00  3.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259993/likelihoodResults_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.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) = 6750.99729401
delta logL = 0.00479802966038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6750.99567951
delta logL = 0.00641253237427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4641       1.0000          .0000       10.000    
     3 'Normalizat'    1.2355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1007       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=   6750.996     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      257 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.246        13.706        .11946E-03    .10992E-03
   2  Index         2.4636        1.6839        .95875E-02    .46569E-04
   3  Normalizat    1.2356        .31580        .35362E-03   -.21196E-03
   4  Prefactor     1.1006        .18479        .22246E-03   -.36702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2457
  Index      = 2.46361
  Normalizat = 1.23557
  Prefactor  = 1.10059
 **********
 **   18 **HESSE 
 **********

 FCN=   6750.996     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.246        13.674        .47784E-05   -1.5037    
   2  Index         2.4636        1.6782        .38350E-03   -.53202    
   3  Normalizat    1.2356        .31600        .14145E-04   -.85511    
   4  Prefactor     1.1006        .18483        .44492E-04   -.89448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75287e-10
Minuit parameter uncertainties:
  1  13.6775
  2  1.72383
  3  0.31649
  4  0.184933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259993': 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) = 6750.99567928
delta logL = 0.00641276198712

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.125e+01  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.464e+00  1.724e+00  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.101e+00  1.849e-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.236e+00  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 334.823 -3.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/259993/cmap_HighResolution_509414401_509673601_4FGL_J2219.2-0342_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-09-28 09:26:29.671426', job_id='259993', GAL2='1.10', fit_tolerance='1e-08', EG2='1.24', EG='1.22', time_epoch_completed='1632846389.67', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='6.41e-03', ts2='0.92', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1042' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 259993: <4FGL_J2219.2-0342_daily_bin1042> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1042> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:59 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:11:00 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:11:00 2021
Terminated at Tue Sep 28 09:26:30 2021
Results reported at Tue Sep 28 09:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1042 334.823 -3.7102 509414401 509673601 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 :                                   722.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

