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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1214
RA = 334.823, Dec = -3.7102
tmin = 553996801, tmax = 554256001
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='261305', job_status='RUN', time_executed='2021-09-28 09:17:19.274107', time_epoch_executed='1632845839.27' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261305

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261305/ft1_4FGL_J2219.2-0342_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261305/ft1_4FGL_J2219.2-0342_daily_bin1214.fits outfile=/scratch/kocevski/261305/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1214.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=553996801.0 tmax=554256001.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 2.61
user 2.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.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/261305/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1214.fits evtable="EVENTS" outfile="/scratch/kocevski/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.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/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/261305/ltcube_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.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/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits
.....................!
real 12.38
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/261305/ltcube_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.fits outfile=/scratch/kocevski/261305/expmap_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.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/261305/ltcube_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.fits
.....................!
real 189.31
user 185.08
sys 3.91

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/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits outfile=/scratch/kocevski/261305/cmap_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits outfile=/scratch/kocevski/261305/cmap_HighResolution_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/261305/ft2_4FGL_J2219.2-0342_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261305/Model_4FGL_J2219.2-0342_daily_bin1214.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/261305/ft1_filtered_4FGL_J2219.2-0342_daily_bin1214.fits.....................!
real 65.18
user 63.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.403       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    141.26       1.0000         .10000E-03   10000.    
    20 'norm      '    13.311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.567       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77414       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91949       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=   6782.522     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2760 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1091        2.3978        .87662E-08    .15276E-04
   2  Prefactor     54.131        44.507       -.21383E-06    .36689E-05
   3  Prefactor     .10000E-03    22.415       -.84083E-06** at limit **
   4  Prefactor     37.362        44.363        .29507E-05    .39875E-04
   5  Prefactor     .10000E-03    2.3443       -.81038E-06** at limit **
   6  Prefactor     16.917        10.621        .50778E-07   -.13671E-05
   7  Prefactor     .10000E-03    6.5638       -.18964E-06** at limit **
   8  Prefactor     .10000E-03    6.5174       -.29099E-06** at limit **
   9  Prefactor     .10000E-03    26.180        .58810E-07** at limit **
  10  Prefactor     .10000E-03    35.465       -.70736E-06** at limit **
  11  Prefactor     .10000E-03    16.352        .30870E-06** at limit **
  12  Prefactor     40.953        28.214        .49983E-06    .17514E-04
  13  Prefactor     30.459        14.363        .81876E-07   -.66633E-05
  14  Prefactor     .10000E-03    27.304        .71102E-06** at limit **
  15  Prefactor     .10000E-03    4.6793        .78361E-07** at limit **
  16  norm          7.2067        4.3998        .20502E-06    .37659E-04
  17  Prefactor     .10000E-03    53.688       -.98072E-06** at limit **
  18  norm          2.5838        1.4453        .44652E-07    .55224E-04
  19  Prefactor     141.42        90.930        .19132E-05   -.20877E-04
  20  norm          13.297        7.3422       -.80889E-06   -.21919E-03
  21  Prefactor     .10000E-03    4.4867        .12482E-06** at limit **
  22  norm          19.566        12.750        .12266E-06    .13902E-05
  23  Normalizat    .77398        .23533       -.33327E-05    .69101E-04
  24  Prefactor     .91964        .12794        .15085E-05   -.93371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10913
  Prefactor  = 54.1308
  Prefactor  = 0.0001
  Prefactor  = 37.3615
  Prefactor  = 0.0001
  Prefactor  = 16.9173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9527
  Prefactor  = 30.4586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.20668
  Prefactor  = 0.0001
  norm       = 2.58383
  Prefactor  = 141.419
  norm       = 13.2966
  Prefactor  = 0.0001
  norm       = 19.5665
  Normalizat = 0.773982
  Prefactor  = 0.919636
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.522     FROM HESSE     STATUS=OK           395 CALLS     3155 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1091        2.3961        .10780E-03   -1.5355    
   2  Prefactor     54.131        44.506        .54520E-04   -1.4235    
   3  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.362        44.759        .65533E-04   -1.4485    
   5  Prefactor     .10000E-03    2.3916        .12423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.917        10.623        .97375E-04   -1.4885    
   7  Prefactor     .10000E-03    6.6066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.953        28.219        .62626E-04   -1.4427    
  13  Prefactor     30.459        14.351        .72601E-04   -1.4604    
  14  Prefactor     .10000E-03    27.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8174        .34650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2067        4.3957        .12884E-03   -1.5171    
  17  Prefactor     .10000E-03    53.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5838        1.4456        .71888E-04   -1.5386    
  19  Prefactor     141.42        90.932        .16948E-03   -1.3324    
  20  norm          13.297        7.3863        .85123E-04   -1.4979    
  21  Prefactor     .10000E-03    4.4917        .17040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.566        12.759        .90544E-04   -1.4823    
  23  Normalizat    .77398        .25650        .35709E-03   -1.0104    
  24  Prefactor     .91964        .14109        .19068E-03   -.95458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40746e-10
Minuit parameter uncertainties:
  1  2.39614
  2  44.5329
  3  1.29953e-05
  4  44.799
  5  1.4967e-05
  6  10.6244
  7  3.06497e-06
  8  6.65043e-06
  9  8.60316e-06
  10  8.21405e-06
  11  1.41861e-05
  12  28.2281
  13  14.3528
  14  2.02192e-05
  15  3.03763e-06
  16  4.39591
  17  2.26534e-05
  18  1.44563
  19  91.0226
  20  7.38682
  21  4.70165e-06
  22  12.7604
  23  0.256896
  24  0.141146
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  9.196e-01  1.411e-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.740e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.92
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 6.61e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.61e-05

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) = 6782.1783886
delta logL = 0.343185143931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6782.15260584
delta logL = 0.368967903294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2120       1.0000          .0000       10.000    
     3 'Normalizat'    .71981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94343       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=   6782.153     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.668        147.20        .21506E-02    .13789E-03
   2  Index         3.2111        3.6715        .14625        .11541E-03
   3  Normalizat    .71979        .10779        .83362E-01    .13060E-03
   4  Prefactor     .94374        .57479E-01    .45556E-01    .21845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6682
  Index      = 3.21109
  Normalizat = 0.719794
  Prefactor  = 0.943739
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.153     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.668        17.824        .86022E-04   -1.4777    
   2  Index         3.2111        .75081        .57748E-02   -.36589    
   3  Normalizat    .71979        .25450        .36917E-03   -1.0312    
   4  Prefactor     .94374        .14437        .18852E-03   -.94629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70208e-11
Minuit parameter uncertainties:
  1  17.8287
  2  0.754079
  3  0.254914
  4  0.14443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261305': 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) = 6782.15259268
delta logL = 0.368981070226

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.167e+01  1.783e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.211e+00  7.541e-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:  9.437e-01  1.444e-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.198e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.21 +/- 0.75
Photon Flux (Free Index): 1.79e-07 +/- 8.55e-08
Energy Flux (Free Index): 3.27e-05 +/- 1.47e-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/261305/cmap_HighResolution_553996801_554256001_4FGL_J2219.2-0342_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='3.27e-05', photon_flux_error='6.61e-08', dlogl='3.69e-01', energy_flux='3.43e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-28 09:27:24.990686', photon_index_error2='0.75', photon_index2='3.21', ts='7.92', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.77', time_epoch_completed='1632846444.99', return_code='0', job_id='261305', GAL2='0.94', EG2='0.72', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.55e-08', ts2='8.75', photon_index='2.68' WHERE bin_id='1214' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 261305: <4FGL_J2219.2-0342_daily_bin1214> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1214> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:29 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:15:30 2021
Terminated at Tue Sep 28 09:27:25 2021
Results reported at Tue Sep 28 09:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1214 334.823 -3.7102 553996801 554256001 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 :                                   606.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            716 sec.

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

