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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin13
RA = 334.823, Dec = -3.7102
tmin = 242697601, tmax = 242956801
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='255271', job_status='RUN', time_executed='2021-09-28 08:57:47.754619', time_epoch_executed='1632844667.75' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255271/ft1_4FGL_J2219.2-0342_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255271/ft1_4FGL_J2219.2-0342_daily_bin13.fits outfile=/scratch/kocevski/255271/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin13.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.49
user 1.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255271/ft1_filtered_4FGL_J2219.2-0342_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/255271/ltcube_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.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/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits
.....................!
real 12.60
user 12.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255271/ft1_filtered_4FGL_J2219.2-0342_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/255271/ltcube_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.fits outfile=/scratch/kocevski/255271/expmap_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.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/255271/ltcube_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.fits
.....................!
real 191.10
user 185.16
sys 5.48

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/255271/ft1_filtered_4FGL_J2219.2-0342_daily_bin13.fits scfile=/scratch/kocevski/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits outfile=/scratch/kocevski/255271/cmap_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255271/ft1_filtered_4FGL_J2219.2-0342_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/255271/ft2_4FGL_J2219.2-0342_daily_bin13.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255271/Model_4FGL_J2219.2-0342_daily_bin13.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/255271/ft1_filtered_4FGL_J2219.2-0342_daily_bin13.fits.....................!
real 62.50
user 61.06
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0469       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9611       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4232       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8724       1.0000         .10000E-03   10000.    
    16 'norm      '    10.592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.155       1.0000         .10000E-03   10000.    
    18 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70459       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1357       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=   6597.706     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2712 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0468        1.1631       -.14569E-06   -.32309E-03
   2  Prefactor     2.0355        146.02        .12372E-04   -.14090E-05
   3  Prefactor     .10000E-03    8.6692        .40375E-06** at limit **
   4  Prefactor     .10000E-03    98.507        .90315E-06** at limit **
   5  Prefactor     .10000E-03    4.8369       -.10268E-06** at limit **
   6  Prefactor     2.4257        6.7067       -.22003E-06    .10523E-04
   7  Prefactor     .10000E-03    67.146        .11627E-04** at limit **
   8  Prefactor     .10000E-03    18.851        .11761E-06** at limit **
   9  Prefactor     28.565        19.019        .29734E-06    .34261E-05
  10  Prefactor     .10000E-03    5.4542        .27161E-07** at limit **
  11  Prefactor     14.636        11.371       -.22453E-08   -.20608E-04
  12  Prefactor     50.074        30.802       -.21337E-06    .35061E-05
  13  Prefactor     5.7507        9.6917       -.94768E-06   -.16315E-04
  14  Prefactor     .10000E-03    56.918       -.17456E-05** at limit **
  15  Prefactor     6.8731        4.0417        .49639E-07   -.48472E-05
  16  norm          10.592        4.2350        .12356E-08   -.85485E-04
  17  Prefactor     33.176        57.529        .19796E-05   -.11920E-04
  18  norm          .10000E-03    .42859        .18237E-07** at limit **
  19  Prefactor     .10000E-03    20.972        .22385E-06** at limit **
  20  norm          .10000E-03    .53539        .30846E-07** at limit **
  21  Prefactor     .10000E-03    8.6460       -.27190E-06** at limit **
  22  norm          .10000E-03    6.2890        .96667E-07** at limit **
  23  Normalizat    .70449        .21762       -.63026E-06   -.13013E-03
  24  Prefactor     1.1356        .12988       -.51085E-07   -.23472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04681
  Prefactor  = 2.0355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5655
  Prefactor  = 0.0001
  Prefactor  = 14.636
  Prefactor  = 50.0738
  Prefactor  = 5.75069
  Prefactor  = 0.0001
  Prefactor  = 6.87315
  norm       = 10.5919
  Prefactor  = 33.176
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.70449
  Prefactor  = 1.13562
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.706     FROM HESSE     STATUS=OK           401 CALLS     3113 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0468        1.1625        .89835E-04   -1.5503    
   2  Prefactor     2.0355        146.32        .29621E-03   -1.5423    
   3  Prefactor     .10000E-03    8.6663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    99.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8923        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4257        6.6716        .26292E-03   -1.5396    
   7  Prefactor     .10000E-03    65.872        .45975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.565        18.750        .74946E-04   -1.4639    
  10  Prefactor     .10000E-03    5.4590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.636        11.372        .10468E-03   -1.4943    
  12  Prefactor     50.074        30.781        .56664E-04   -1.4292    
  13  Prefactor     5.7507        9.7005        .83754E-03   -1.5228    
  14  Prefactor     .10000E-03    56.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8731        4.0398        .11789E-03   -1.5184    
  16  norm          10.592        4.2334        .10004E-03   -1.5057    
  17  Prefactor     33.176        57.484        .69591E-04   -1.4555    
  18  norm          .10000E-03    .77302        .10217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .88304        .11475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.3124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70449        .24400        .35767E-03   -1.0372    
  24  Prefactor     1.1356        .14770        .18083E-03   -.88336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57409e-10
Minuit parameter uncertainties:
  1  1.16255
  2  34.6033
  3  7.34965e-06
  4  0.000260992
  5  9.39144e-06
  6  6.67365
  7  0.000141818
  8  2.51511e-05
  9  18.7534
  10  2.89553e-06
  11  11.3736
  12  30.7905
  13  9.70312
  14  0.000107042
  15  4.03999
  16  4.23354
  17  57.58
  18  1.30879e-05
  19  1.57121e-05
  20  8.91554e-06
  21  1.35438e-05
  22  8.10213e-06
  23  0.244375
  24  0.147754
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.751e+00  9.703e+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:  1.136e+00  1.478e-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.045e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255271/likelihoodResults_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.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) = 6597.14237728
delta logL = 0.563679097312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6597.10830075
delta logL = 0.597755630547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0022       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7229       1.0000          .0000       10.000    
     3 'Normalizat'    .72822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1216       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=   6597.108     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0282        8.6773        .35434E-02    .56634E-04
   2  Index         1.7246        .45102        .18858       -.98417E-04
   3  Normalizat    .72859        .20395        .79535E-01    .39170E-04
   4  Prefactor     1.1214        .12892        .36820E-01   -.37707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.02816
  Index      = 1.72465
  Normalizat = 0.728587
  Prefactor  = 1.12136
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.108     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0282        9.7585        .14174E-03   -1.5141    
   2  Index         1.7246        .60576        .94764E-02   -.71428    
   3  Normalizat    .72859        .23226        .35214E-03   -1.0278    
   4  Prefactor     1.1214        .14717        .18171E-03   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09032e-11
Minuit parameter uncertainties:
  1  9.76043
  2  0.608382
  3  0.232571
  4  0.147226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255271': 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) = 6597.10829436
delta logL = 0.597762016135

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.028e+00  9.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.725e+00  6.084e-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:  1.121e+00  1.472e-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.286e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.72 +/- 0.61
Photon Flux (Free Index): 1.80e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.72e-05 +/- 4.37e-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/255271/cmap_HighResolution_242697601_242956801_4FGL_J2219.2-0342_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='2.72e-05', dlogl='5.98e-01', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-09-28 09:08:41.110442', photon_index_error2='0.61', photon_index2='1.72', ts='0.47', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='4.37e-05', EG='0.70', time_epoch_completed='1632845321.11', return_code='0', job_id='255271', GAL2='1.12', EG2='0.73', return_code2='0', photon_flux_error2='2.35e-08', ts2='1.67', photon_index='2.68' WHERE bin_id='13' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:08:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 255271: <4FGL_J2219.2-0342_daily_bin13> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin13 334.823 -3.7102 242697601 242956801 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

