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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1245
RA = 334.823, Dec = -3.7102
tmin = 562032001, tmax = 562291201
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='261353', job_status='RUN', time_executed='2021-09-28 09:19:22.211306', time_epoch_executed='1632845962.21' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261353

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261353/ft1_4FGL_J2219.2-0342_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261353/ft2_4FGL_J2219.2-0342_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261353/ft1_4FGL_J2219.2-0342_daily_bin1245.fits outfile=/scratch/kocevski/261353/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1245.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=562032001.0 tmax=562291201.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.57
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261353/ft1_filtered_4FGL_J2219.2-0342_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/261353/ft2_4FGL_J2219.2-0342_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/261353/ltcube_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.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/261353/ft2_4FGL_J2219.2-0342_daily_bin1245.fits
.....................!
real 11.75
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261353/ft1_filtered_4FGL_J2219.2-0342_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/261353/ft2_4FGL_J2219.2-0342_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/261353/ltcube_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.fits outfile=/scratch/kocevski/261353/expmap_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.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/261353/ltcube_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.fits
.....................!
real 191.68
user 186.27
sys 4.94

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/261353/ft1_filtered_4FGL_J2219.2-0342_daily_bin1245.fits scfile=/scratch/kocevski/261353/ft2_4FGL_J2219.2-0342_daily_bin1245.fits outfile=/scratch/kocevski/261353/cmap_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25091       1.0000         .10000E-03   10000.    
    16 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.601       1.0000         .10000E-03   10000.    
    20 'norm      '    8.2462       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75776       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98984       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=   6079.107     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2798 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2641        2.8133        .58492E-07    .64064E-04
   2  Prefactor     92.569        47.398       -.43519E-06   -.30193E-04
   3  Prefactor     .10000E-03    15.722       -.98343E-06** at limit **
   4  Prefactor     .10000E-03    16.425       -.12372E-06** at limit **
   5  Prefactor     .10000E-03    2.1079       -.18404E-07** at limit **
   6  Prefactor     .10000E-03    2.1988       -.19792E-06** at limit **
   7  Prefactor     .10000E-03    3.8947       -.17964E-07** at limit **
   8  Prefactor     .10000E-03    34.996       -.13982E-05** at limit **
   9  Prefactor     .10000E-03    21.830        .15281E-05** at limit **
  10  Prefactor     11.916        19.214       -.46077E-06   -.40404E-04
  11  Prefactor     14.404        11.343        .24913E-06   -.51165E-04
  12  Prefactor     .10000E-03    8.2313        .86109E-07** at limit **
  13  Prefactor     6.2320        12.224        .21319E-06   -.23776E-04
  14  Prefactor     46.693        53.993       -.25630E-05   -.10924E-03
  15  Prefactor     .25911        2.5185       -.29240E-06    .20212E-03
  16  norm          .10000E-03    1.8796        .11015E-05** at limit **
  17  Prefactor     .10000E-03    21.192        .13930E-05** at limit **
  18  norm          4.5954        1.6676        .45347E-07   -.33647E-03
  19  Prefactor     56.726        59.385        .12031E-05   -.25314E-03
  20  norm          8.2363        4.7770       -.89506E-06   -.15099E-02
  21  Prefactor     .10000E-03    28.132        .47220E-06** at limit **
  22  norm          .10000E-03    5.0263        .27943E-08** at limit **
  23  Normalizat    .75707        .24380       -.61284E-05   -.81800E-04
  24  Prefactor     .99026        .14370        .33882E-05   -.40677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26413
  Prefactor  = 92.5687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9161
  Prefactor  = 14.4042
  Prefactor  = 0.0001
  Prefactor  = 6.23204
  Prefactor  = 46.6925
  Prefactor  = 0.259107
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.59545
  Prefactor  = 56.726
  norm       = 8.23633
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.757074
  Prefactor  = 0.990261
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.107     FROM HESSE     STATUS=OK           393 CALLS     3191 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2641        2.8103        .10112E-03   -1.5295    
   2  Prefactor     92.569        47.411        .41771E-04   -1.3781    
   3  Prefactor     .10000E-03    15.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1098        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2116        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9014        .15026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.916        19.195        .11607E-03   -1.5017    
  11  Prefactor     14.404        11.360        .10555E-03   -1.4949    
  12  Prefactor     .10000E-03    8.2361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2320        12.052        .16081E-03   -1.5209    
  14  Prefactor     46.693        54.364        .58685E-04   -1.4340    
  15  Prefactor     .25911        13.753        .21370E-02   -1.5606    
  16  norm          .10000E-03    5.2760        .19306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5954        1.6665        .57100E-04   -1.5279    
  19  Prefactor     56.726        59.291        .53321E-04   -1.4200    
  20  norm          8.2363        4.8287        .67574E-04   -1.5134    
  21  Prefactor     .10000E-03    29.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.0497        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75707        .26459        .33711E-03   -1.0168    
  24  Prefactor     .99026        .15532        .18471E-03   -.93055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43218e-09
Minuit parameter uncertainties:
  1  2.81041
  2  47.4301
  3  4.44645e-05
  4  1.73239e-06
  5  5.1478e-07
  6  1.3253e-06
  7  1.70131e-06
  8  7.45826e-05
  9  0.000113938
  10  19.2052
  11  11.362
  12  3.9882e-06
  13  12.0571
  14  54.4216
  15  3.77558
  16  0.000225017
  17  8.04616e-05
  18  1.66647
  19  59.3525
  20  4.82891
  21  0.00017155
  22  4.08943e-07
  23  0.265035
  24  0.155386
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.232e+00  1.206e+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:  9.903e-01  1.554e-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:  7.571e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261353/likelihoodResults_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.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) = 6078.98282757
delta logL = 0.124480554567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6078.96562323
delta logL = 0.141684900013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6657       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2904       1.0000          .0000       10.000    
     3 'Normalizat'    .73963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99662       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=   6078.966     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6654        10.452        .18631E-03    .78654E-04
   2  Index         3.2908        1.4170        .10766E-01    .27540E-04
   3  Normalizat    .73952        .25188        .34083E-03   -.15417E-03
   4  Prefactor     .99669        .15428        .18417E-03   -.23960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66539
  Index      = 3.29084
  Normalizat = 0.739515
  Prefactor  = 0.996691
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.966     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6654        9.0408        .74525E-05   -1.5276    
   2  Index         3.2908        1.2295        .43065E-03   -.34886    
   3  Normalizat    .73952        .25223        .13633E-04   -1.0235    
   4  Prefactor     .99669        .15439        .36834E-04   -.92840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20519e-11
Minuit parameter uncertainties:
  1  9.0434
  2  1.24399
  3  0.252627
  4  0.154456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261353': 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) = 6078.96562303
delta logL = 0.14168509277

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.665e+00  9.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.291e+00  1.244e+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:  9.967e-01  1.545e-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:  7.395e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/261353/cmap_HighResolution_562032001_562291201_4FGL_J2219.2-0342_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-28 09:30:05.272927', job_id='261353', GAL2='1.00', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1632846605.27', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.42e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1245' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 261353: <4FGL_J2219.2-0342_daily_bin1245> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:33 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:35 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:35 2021
Terminated at Tue Sep 28 09:30:05 2021
Results reported at Tue Sep 28 09:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1245 334.823 -3.7102 562032001 562291201 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 :                                   642.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

