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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin638
RA = 334.823, Dec = -3.7102
tmin = 404697601, tmax = 404956801
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='259377', job_status='RUN', time_executed='2021-09-28 09:10:31.339363', time_epoch_executed='1632845431.34' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='638'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259377/ft1_4FGL_J2219.2-0342_daily_bin638.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259377/ft1_4FGL_J2219.2-0342_daily_bin638.fits outfile=/scratch/kocevski/259377/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin638.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=404697601.0 tmax=404956801.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 6.20
user 5.90
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits" evtable="EVENTS" scfile=/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits sctable="SC_DATA" outfile=/scratch/kocevski/259377/ltcube_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.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/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits
.....................!
real 15.32
user 14.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits evtable="EVENTS" scfile=/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits sctable="SC_DATA" expcube=/scratch/kocevski/259377/ltcube_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.fits outfile=/scratch/kocevski/259377/expmap_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.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/259377/ltcube_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.fits
.....................!
real 194.57
user 188.83
sys 5.35

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/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits scfile=/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits outfile=/scratch/kocevski/259377/cmap_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits scfile=/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits outfile=/scratch/kocevski/259377/cmap_HighResolution_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits evtable="EVENTS" scfile=/scratch/kocevski/259377/ft2_4FGL_J2219.2-0342_daily_bin638.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259377/Model_4FGL_J2219.2-0342_daily_bin638.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/259377/ft1_filtered_4FGL_J2219.2-0342_daily_bin638.fits......................!
real 43.46
user 41.99
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.218       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12787E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8728       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
    22 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45783       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0900       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=   3889.876     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2704 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.037        4.4545        .16025E-06   -.55640E-04
   2  Prefactor     10.436        64.210       -.44257E-04   -.27541E-04
   3  Prefactor     .10000E-03    61.822        .23489E-04** at limit **
   4  Prefactor     .10000E-03    48.537        .10809E-04** at limit **
   5  Prefactor     .10000E-03    6.4702       -.22420E-06** at limit **
   6  Prefactor     15.988        10.774       -.12949E-05   -.96126E-04
   7  Prefactor     .10000E-03    5.4363       -.13685E-06** at limit **
   8  Prefactor     24.049        28.102       -.49853E-05    .20206E-04
   9  Prefactor     .10000E-03    9.5752        .54861E-06** at limit **
  10  Prefactor     24.221        24.786       -.16673E-05   -.17221E-04
  11  Prefactor     .10000E-03    6.2761        .13167E-05** at limit **
  12  Prefactor     .10000E-03    35.054       -.22011E-04** at limit **
  13  Prefactor     3.2923        16.012       -.75386E-05   -.17565E-03
  14  Prefactor     30.891        112.36       -.26310E-03   -.12365E-04
  15  Prefactor     .10000E-03    3.4567        .55316E-06** at limit **
  16  norm          2.9618        3.5640        .28603E-05    .44226E-03
  17  Prefactor     .10000E-03    80.027       -.19851E-04** at limit **
  18  norm          1.8729        1.4327        .12680E-05    .88383E-03
  19  Prefactor     .10000E-03    12.857       -.13114E-05** at limit **
  20  norm          .10000E-03    .81705        .17965E-06** at limit **
  21  Prefactor     10.007        10.189       -.44285E-06    .23657E-04
  22  norm          .10000E-03    26.430        .59020E-05** at limit **
  23  Normalizat    .45779        .29067        .31278E-04    .64637E-04
  24  Prefactor     1.0900        .16433       -.11649E-05   -.79663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0368
  Prefactor  = 10.4359
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9884
  Prefactor  = 0.0001
  Prefactor  = 24.0487
  Prefactor  = 0.0001
  Prefactor  = 24.2206
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.2923
  Prefactor  = 30.891
  Prefactor  = 0.0001
  norm       = 2.96181
  Prefactor  = 0.0001
  norm       = 1.87287
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.007
  norm       = 0.000100005
  Normalizat = 0.457791
  Prefactor  = 1.08999
 **********
 **   18 **HESSE 
 **********

 FCN=   3889.876     FROM HESSE     STATUS=OK           397 CALLS     3101 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.037        4.4489        .81960E-04   -1.5074    
   2  Prefactor     10.436        64.034        .12391E-03   -1.5062    
   3  Prefactor     .10000E-03    62.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5474        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.988        10.750        .10016E-03   -1.4908    
   7  Prefactor     .10000E-03    5.4453        .14202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.049        28.051        .81677E-04   -1.4727    
   9  Prefactor     .10000E-03    9.5847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.221        24.744        .81398E-04   -1.4723    
  11  Prefactor     .10000E-03    6.2951        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2923        15.756        .22304E-03   -1.5345    
  14  Prefactor     30.891        112.63        .35954E-03   -1.4596    
  15  Prefactor     .10000E-03    3.4824        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9618        3.5507        .12236E-03   -1.5364    
  17  Prefactor     .10000E-03    80.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8729        1.4282        .62501E-04   -1.5434    
  19  Prefactor     .10000E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .82981        .55006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.007        10.190        .12667E-03   -1.5075    
  22  norm          .10000E-03    26.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .45779        .31068        .40708E-03   -1.1441    
  24  Prefactor     1.0900        .17994        .16748E-03   -.89787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16063e-10
Minuit parameter uncertainties:
  1  4.44904
  2  51.7834
  3  0.000438961
  4  9.30927e-05
  5  1.85509e-05
  6  10.7512
  7  1.38626e-05
  8  28.0666
  9  3.00598e-05
  10  24.7541
  11  0.000148856
  12  0.000228135
  13  14.4107
  14  113.417
  15  2.57578e-06
  16  3.55098
  17  0.000142674
  18  1.42818
  19  1.68702e-05
  20  5.60643e-07
  21  10.1913
  22  0.000720476
  23  0.311864
  24  0.180036
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.292e+00  1.441e+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.090e+00  1.800e-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:  4.578e-01  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259377/likelihoodResults_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.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) = 3888.78340673
delta logL = 1.09248015037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3888.64497817
delta logL = 1.23090871369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98422E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .31887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1510       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=   3888.645     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      533 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98478E-03    .88202E-03    .15763E-04** at limit **
   2  Index        10.0000        1.0151        .50000    ** at limit **
   3  Normalizat    .31889        .30791        .48454E-03    .91059E-04
   4  Prefactor     1.1509        .18673        .16336E-03    .12930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000984784
  Index      = 10
  Normalizat = 0.318893
  Prefactor  = 1.15093
 **********
 **   18 **HESSE 
 **********

 FCN=   3888.645     FROM HESSE     STATUS=OK            31 CALLS      564 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98478E-03    .86580E-03    .63053E-06   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .97970        .50000        1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .31889        .30813        .19382E-04   -1.2173    
   4  Prefactor     1.1509        .18675        .32671E-04   -.87855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22682e-09
Minuit parameter uncertainties:
  1  0.000865796
  2  0.00203278
  3  0.309787
  4  0.186858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259377': 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) = 3888.64497788
delta logL = 1.23090900573

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.848e-04  8.658e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.000e+01  2.033e-03  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.151e+00  1.869e-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:  3.189e-01  3.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.25e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.39e-05 +/- 1.19e-05

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/259377/cmap_HighResolution_404697601_404956801_4FGL_J2219.2-0342_daily_bin638.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.23e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-28 09:19:46.783800', photon_index_error2='0.00', photon_index2='10.00', ts='0.06', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.19e-05', EG='0.46', time_epoch_completed='1632845986.78', return_code='0', job_id='259377', GAL2='1.15', EG2='0.32', return_code2='0', photon_flux_error2='1.06e-07', ts2='2.79', photon_index='2.68' WHERE bin_id='638' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 259377: <4FGL_J2219.2-0342_daily_bin638> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin638 334.823 -3.7102 404697601 404956801 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 :                                   555.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

