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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin145
RA = 334.823, Dec = -3.7102
tmin = 276912001, tmax = 277171201
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='255479', job_status='RUN', time_executed='2021-09-28 08:57:41.230157', time_epoch_executed='1632844661.23' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255479/ft1_4FGL_J2219.2-0342_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255479/ft1_4FGL_J2219.2-0342_daily_bin145.fits outfile=/scratch/kocevski/255479/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin145.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=276912001.0 tmax=277171201.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.48
user 3.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.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/255479/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/255479/ft1_filtered_4FGL_J2219.2-0342_daily_bin145.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/255479/ft1_filtered_4FGL_J2219.2-0342_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/255479/ltcube_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.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/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits
.....................!
real 12.18
user 11.33
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255479/ft1_filtered_4FGL_J2219.2-0342_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/255479/ltcube_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.fits outfile=/scratch/kocevski/255479/expmap_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.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/255479/ltcube_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.fits
.....................!
real 191.15
user 186.81
sys 4.00

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/255479/ft1_filtered_4FGL_J2219.2-0342_daily_bin145.fits scfile=/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits outfile=/scratch/kocevski/255479/cmap_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255479/ft1_filtered_4FGL_J2219.2-0342_daily_bin145.fits scfile=/scratch/kocevski/255479/ft2_4FGL_J2219.2-0342_daily_bin145.fits outfile=/scratch/kocevski/255479/cmap_HighResolution_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10705       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1946       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.142       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22769E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8703       1.0000         .10000E-03   10000.    
    16 'norm      '    7.9891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .62036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.379       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3961       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82295       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87107       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=   7559.777     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2839 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0110        1.9192        .52002E-06    .28603E-03
   2  Prefactor     .10000E-03    13.210       -.20332E-06** at limit **
   3  Prefactor     22.108        39.704        .30002E-06   -.35586E-04
   4  Prefactor     82.894        51.309        .92991E-06    .36043E-03
   5  Prefactor     .14348E-03    5.9208        .50169E-06** at limit **
   6  Prefactor     4.1960        4.1980        .36588E-05   -.14351E-02
   7  Prefactor     .10000E-03    7.1860       -.89668E-07** at limit **
   8  Prefactor     21.161        21.787        .63667E-05    .59380E-03
   9  Prefactor     .10000E-03    13.227       -.41395E-06** at limit **
  10  Prefactor     5.3467        17.263       -.33038E-05   -.14873E-03
  11  Prefactor     .10000E-03    4.5029       -.14568E-06** at limit **
  12  Prefactor     .10000E-03    22.038        .79822E-06** at limit **
  13  Prefactor     .75903E-01    6.3261        .12961E-06    .14940E-03
  14  Prefactor     .10000E-03    70.618       -.72072E-06** at limit **
  15  Prefactor     4.8624        4.1755        .43477E-06   -.16577E-03
  16  norm          7.9889        3.4246        .17762E-06   -.12339E-03
  17  Prefactor     .10000E-03    55.882       -.15190E-05** at limit **
  18  norm          .62035        .53399        .38597E-07    .27434E-04
  19  Prefactor     .10000E-03    3.8436        .29268E-07** at limit **
  20  norm          .10000E-03    .27908        .26603E-07** at limit **
  21  Prefactor     11.382        8.6797        .13217E-05    .36826E-03
  22  norm          9.3951        7.0597       -.34814E-06   -.23140E-03
  23  Normalizat    .82274        .17477       -.22520E-05   -.72622E-04
  24  Prefactor     .87121        .10347       -.64630E-06   -.13019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01096
  Prefactor  = 0.0001
  Prefactor  = 22.1078
  Prefactor  = 82.8945
  Prefactor  = 0.000143482
  Prefactor  = 4.19595
  Prefactor  = 0.0001
  Prefactor  = 21.1608
  Prefactor  = 0.0001
  Prefactor  = 5.34669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0759034
  Prefactor  = 0.0001
  Prefactor  = 4.86237
  norm       = 7.98892
  Prefactor  = 0.0001
  norm       = 0.620354
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3816
  norm       = 9.3951
  Normalizat = 0.822744
  Prefactor  = 0.871211
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.777     FROM HESSE     STATUS=OK           411 CALLS     3250 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0110        1.6732        .15593E-02   -1.5507    
   2  Prefactor     .10000E-03    13.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.108        39.008        .85205E-04   -1.4767    
   4  Prefactor     82.894        53.163        .22097E-03   -1.3885    
   5  Prefactor     .14348E-03    8.1040        .58719E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1960        4.3743        .88647E-03   -1.5298    
   7  Prefactor     .10000E-03    7.2935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.161        22.710        .87110E-04   -1.4788    
   9  Prefactor     .10000E-03    13.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3467        17.419        .17385E-03   -1.5245    
  11  Prefactor     .10000E-03    4.5411        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .75903E-01    14.389        .56889E-01   -1.5653    
  14  Prefactor     .10000E-03    70.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8624        4.2584        .14420E-03   -1.5267    
  16  norm          7.9889        3.4274        .99040E-04   -1.5143    
  17  Prefactor     .10000E-03    56.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .62035        .52438        .57292E-04   -1.5550    
  19  Prefactor     .10000E-03    3.8522        .16646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .28519        .44835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.382        8.7146        .11876E-03   -1.5033    
  22  norm          9.3951        7.0695        .13074E-03   -1.5095    
  23  Normalizat    .82274        .20797        .29380E-03   -.99231    
  24  Prefactor     .87121        .12349        .17794E-03   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76657e-09
Minuit parameter uncertainties:
  1  1.67324
  2  1.96203e-05
  3  39.0532
  4  53.1937
  5  0.0375487
  6  4.37461
  7  3.20185e-05
  8  22.7195
  9  0.000153532
  10  17.436
  11  2.6884e-06
  12  0.000105869
  13  2.08926
  14  1.37119e-05
  15  4.25865
  16  3.42744
  17  0.000194265
  18  0.524386
  19  2.71884e-06
  20  4.37053e-07
  21  8.71556
  22  7.07008
  23  0.208176
  24  0.123526
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.712e-01  1.235e-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.227e-01  2.082e-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: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255479/likelihoodResults_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.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) = 7559.25946334
delta logL = 0.517484578779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7559.12015336
delta logL = 0.656794556022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20784E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3622       1.0000          .0000       10.000    
     3 'Normalizat'    .75745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7559.120     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20748E-01    .28135        .26311E-02    .16330E-01
   2  Index         7.3646        3.3156        .23079        .18780E-03
   3  Normalizat    .75715        .33549E-01    .68932E-01    .39793E-03
   4  Prefactor     .89750        .20990E-01    .44970E-01    .14081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0207476
  Index      = 7.36461
  Normalizat = 0.757149
  Prefactor  = 0.897503
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.120     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20748E-01    .96159        .12103E-03   -1.5679    
   2  Index         7.3646        8.6809        .97206E-02    .49261    
   3  Normalizat    .75715        .13809        .30502E-03   -1.0168    
   4  Prefactor     .89750        .84919E-01    .17553E-03   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75159e-10
Minuit parameter uncertainties:
  1  0.281817
  2  8.94419
  3  0.138152
  4  0.0849314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255479': 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) = 7559.12015
delta logL = 0.656797915058

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.075e-02  2.818e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  7.365e+00  8.944e+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:  8.975e-01  8.493e-02  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  1.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 7.36 +/- 8.94
Photon Flux (Free Index): 5.09e-08 +/- 5.05e-08
Energy Flux (Free Index): 6.01e-06 +/- 6.84e-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/255479/cmap_HighResolution_276912001_277171201_4FGL_J2219.2-0342_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', comment='SUCCESS', energy_flux2='6.01e-06', dlogl='6.57e-01', photon_flux2='5.09e-08', job_status='DONE', time_completed='2021-09-28 09:09:46.108502', photon_index_error2='8.94', photon_index2='7.36', ts='0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='6.84e-06', EG='0.82', time_epoch_completed='1632845386.11', return_code='0', job_id='255479', GAL2='0.90', EG2='0.76', return_code2='102', photon_flux_error2='5.05e-08', ts2='1.42', photon_index='2.68' WHERE bin_id='145' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 255479: <4FGL_J2219.2-0342_daily_bin145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin145 334.823 -3.7102 276912001 277171201 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 :                                   725.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

