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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin439
RA = 334.823, Dec = -3.7102
tmin = 353116801, tmax = 353376001
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='258047', job_status='RUN', time_executed='2021-09-28 09:07:25.920891', time_epoch_executed='1632845245.92' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258047/ft1_4FGL_J2219.2-0342_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258047/ft1_4FGL_J2219.2-0342_daily_bin439.fits outfile=/scratch/kocevski/258047/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin439.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=353116801.0 tmax=353376001.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.43
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258047/ft1_filtered_4FGL_J2219.2-0342_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/258047/ltcube_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.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/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits
.....................!
real 11.87
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258047/ft1_filtered_4FGL_J2219.2-0342_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/258047/ltcube_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.fits outfile=/scratch/kocevski/258047/expmap_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.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/258047/ltcube_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.fits
.....................!
real 190.21
user 185.45
sys 4.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/258047/ft1_filtered_4FGL_J2219.2-0342_daily_bin439.fits scfile=/scratch/kocevski/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits outfile=/scratch/kocevski/258047/cmap_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258047/ft1_filtered_4FGL_J2219.2-0342_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/258047/ft2_4FGL_J2219.2-0342_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258047/Model_4FGL_J2219.2-0342_daily_bin439.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/258047/ft1_filtered_4FGL_J2219.2-0342_daily_bin439.fits.....................!
real 53.89
user 52.56
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    124.34       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2302       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4153       1.0000         .10000E-03   10000.    
    16 'norm      '    .32481E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    158.45       1.0000         .10000E-03   10000.    
    18 'norm      '    .85475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.6758       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91170       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83543       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=   5191.614     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2837 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1910        2.8889        .21500E-06   -.12149E-04
   2  Prefactor     46.096        41.371       -.19278E-05   -.71680E-04
   3  Prefactor     .10000E-03    14.451       -.10513E-07** at limit **
   4  Prefactor     124.60        77.406        .39537E-06    .94567E-04
   5  Prefactor     2.3990        10.941        .68249E-05    .14193E-03
   6  Prefactor     5.9835        7.7729        .43425E-06   -.22195E-04
   7  Prefactor     .10000E-03    3.9499       -.39688E-07** at limit **
   8  Prefactor     26.513        21.976       -.15996E-05   -.13016E-03
   9  Prefactor     .10000E-03    4.5903       -.29470E-07** at limit **
  10  Prefactor     .10000E-03    6.4303       -.85822E-08** at limit **
  11  Prefactor     4.2315        17.066        .24040E-05    .10848E-04
  12  Prefactor     7.7597        19.277        .51896E-06    .10897E-05
  13  Prefactor     .11831E-03    14.017        .19336E-05** at limit **
  14  Prefactor     .10000E-03    58.841       -.32561E-07** at limit **
  15  Prefactor     9.4348        7.0626        .40671E-06   -.59523E-03
  16  norm          .10002E-03    2.2399       -.72889E-06** at limit **
  17  Prefactor     158.44        99.604       -.71790E-06   -.19786E-04
  18  norm          .85474        1.4749        .42731E-06    .19607E-03
  19  Prefactor     .10000E-03    11.614       -.12335E-06** at limit **
  20  norm          .10000E-03    .64786       -.42093E-07** at limit **
  21  Prefactor     .10000E-03    3.5296       -.39351E-08** at limit **
  22  norm          4.6756        15.438        .26718E-05    .32119E-04
  23  Normalizat    .91190        .23934       -.46186E-05   -.99504E-04
  24  Prefactor     .83541        .12934        .13940E-05   -.39368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19101
  Prefactor  = 46.0957
  Prefactor  = 0.0001
  Prefactor  = 124.6
  Prefactor  = 2.39897
  Prefactor  = 5.98353
  Prefactor  = 0.0001
  Prefactor  = 26.5125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23151
  Prefactor  = 7.75966
  Prefactor  = 0.000118308
  Prefactor  = 0.0001
  Prefactor  = 9.43478
  norm       = 0.00010002
  Prefactor  = 158.437
  norm       = 0.854743
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.67564
  Normalizat = 0.911898
  Prefactor  = 0.835414
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.614     FROM HESSE     STATUS=OK           405 CALLS     3242 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1910        2.8789        .11034E-03   -1.5351    
   2  Prefactor     46.096        41.430        .59056E-04   -1.4349    
   3  Prefactor     .10000E-03    14.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     124.60        77.698        .18049E-03   -1.3471    
   5  Prefactor     2.3990        11.191        .26325E-03   -1.5398    
   6  Prefactor     5.9835        7.7553        .16414E-03   -1.5219    
   7  Prefactor     .10000E-03    3.9587        .13984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.513        22.033        .77806E-04   -1.4678    
   9  Prefactor     .10000E-03    4.5928        .15076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4449        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2315        17.201        .19592E-03   -1.5297    
  12  Prefactor     7.7597        19.274        .14394E-03   -1.5151    
  13  Prefactor     .11831E-03    30.147        .61394E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4348        7.1838        .13061E-03   -1.5094    
  16  norm          .10002E-03    9.1533        .19863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     158.44        99.355        .16016E-03   -1.3184    
  18  norm          .85474        1.4508        .10877E-03   -1.5523    
  19  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .66164        .56577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5301        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.6756        15.460        .18611E-03   -1.5275    
  23  Normalizat    .91190        .27393        .29967E-03   -.96043    
  24  Prefactor     .83541        .14992        .18745E-03   -.98436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52913e-09
Minuit parameter uncertainties:
  1  2.87902
  2  41.456
  3  5.11855e-06
  4  77.7619
  5  10.3656
  6  7.75658
  7  3.02907e-07
  8  22.0397
  9  9.7633e-07
  10  5.26561e-06
  11  17.0712
  12  19.2899
  13  0.0470093
  14  1.07216e-05
  15  7.18443
  16  0.000856009
  17  99.4601
  18  1.45081
  19  7.57881e-08
  20  1.06687e-07
  21  1.00798e-06
  22  15.473
  23  0.274351
  24  0.149991
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.183e-04  4.701e-02  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.354e-01  1.500e-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:  9.119e-01  2.744e-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: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258047/likelihoodResults_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.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) = 5191.61424126
delta logL = -7.80219033913e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5191.61424119
delta logL = -7.73357351136e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5191.014     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      292 TOTAL
                     EDM=   .91E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79413E-01    .85423       -.93916E-06    .53820E-04
   2  Index         6.7163        3.7625        .46651E-04    .13050E-05
   3  Normalizat    .83158        .25597       -.21717E-05   -.67150E-05
   4  Prefactor     .86526        .15402        .50313E-06   -.10257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0794127
  Index      = 6.71632
  Normalizat = 0.831576
  Prefactor  = 0.865261
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.014     FROM HESSE     STATUS=OK            37 CALLS      329 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79413E-01    .85541E-01    .44992E-02   -1.5764    
   2  Index         6.7163        .53338        .22596        2.7912    
   3  Normalizat    .83158        .21377        .70509E-01   -.98908    
   4  Prefactor     .86526        .12697        .44177E-01   -.97366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50073e-10
Minuit parameter uncertainties:
  1  0.0855411
  2  0.534537
  3  0.213988
  4  0.12701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258047': 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) = 5191.01351035
delta logL = 0.600723109994

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.653e-01  1.270e-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.316e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 6.72 +/- 0.53
Photon Flux (Free Index): 7.55e-08 +/- 1.05e-07
Energy Flux (Free Index): 9.12e-06 +/- 1.27e-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/258047/cmap_HighResolution_353116801_353376001_4FGL_J2219.2-0342_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='6.01e-01', photon_flux2='7.55e-08', job_status='DONE', time_completed='2021-09-28 09:17:23.797957', photon_index_error2='0.53', photon_index2='6.72', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.27e-05', EG='0.91', time_epoch_completed='1632845843.8', return_code='0', job_id='258047', GAL2='0.87', EG2='0.83', return_code2='0', photon_flux_error2='1.05e-07', ts2='1.30', photon_index='2.68' WHERE bin_id='439' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 258047: <4FGL_J2219.2-0342_daily_bin439> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin439> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:20 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:23 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:05:23 2021
Terminated at Tue Sep 28 09:17:24 2021
Results reported at Tue Sep 28 09:17:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin439 334.823 -3.7102 353116801 353376001 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 :                                   596.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            724 sec.

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

