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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin885
RA = 334.823, Dec = -3.7102
tmin = 468720001, tmax = 468979201
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='259743', job_status='RUN', time_executed='2021-09-28 09:13:27.463353', time_epoch_executed='1632845607.46' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='885'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259743/ft1_4FGL_J2219.2-0342_daily_bin885.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259743/ft1_4FGL_J2219.2-0342_daily_bin885.fits outfile=/scratch/kocevski/259743/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin885.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=468720001.0 tmax=468979201.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.40
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits" evtable="EVENTS" scfile=/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits sctable="SC_DATA" outfile=/scratch/kocevski/259743/ltcube_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.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/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits
.....................!
real 11.90
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits sctable="SC_DATA" expcube=/scratch/kocevski/259743/ltcube_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.fits outfile=/scratch/kocevski/259743/expmap_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.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/259743/ltcube_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.fits
.....................!
real 190.99
user 186.75
sys 3.93

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/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits scfile=/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits outfile=/scratch/kocevski/259743/cmap_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits scfile=/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits outfile=/scratch/kocevski/259743/cmap_HighResolution_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/259743/ft2_4FGL_J2219.2-0342_daily_bin885.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259743/Model_4FGL_J2219.2-0342_daily_bin885.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/259743/ft1_filtered_4FGL_J2219.2-0342_daily_bin885.fits.....................!
real 61.16
user 59.85
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85381       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23326E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17131E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8898       1.0000         .10000E-03   10000.    
    16 'norm      '    12.056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1417       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.725       1.0000         .10000E-03   10000.    
    22 'norm      '    .36149E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0842       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=   6040.925     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2741 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83006       -.13233E-09** at limit **
   2  Prefactor     35.078        40.019        .34578E-06    .11025E-04
   3  Prefactor     9.8838        31.355       -.21420E-05   -.55186E-04
   4  Prefactor     .10000E-03    19.732       -.21908E-06** at limit **
   5  Prefactor     1.3444        4.8987        .13553E-05    .57315E-05
   6  Prefactor     3.5986        9.7744        .66675E-06    .35330E-05
   7  Prefactor     .86043        10.783        .41076E-06   -.39138E-04
   8  Prefactor     56.694        28.668       -.12144E-05   -.19711E-03
   9  Prefactor     .10000E-03    42.110       -.38959E-06** at limit **
  10  Prefactor     .10000E-03    21.021       -.17133E-06** at limit **
  11  Prefactor     .10000E-03    11.165        .65533E-07** at limit **
  12  Prefactor     .10305E-03    40.273       -.16865E-05** at limit **
  13  Prefactor     8.9363        9.6223       -.70272E-07   -.10773E-04
  14  Prefactor     .10000E-03    38.302        .87135E-06** at limit **
  15  Prefactor     4.8916        4.6131       -.11318E-06   -.20085E-04
  16  norm          12.055        6.0364        .10422E-05   -.92596E-04
  17  Prefactor     .10000E-03    34.451       -.10523E-05** at limit **
  18  norm          1.1417        1.1379       -.51005E-09   -.84944E-04
  19  Prefactor     .10000E-03    36.380        .58472E-06** at limit **
  20  norm          .10000E-03    1.0465        .31616E-07** at limit **
  21  Prefactor     15.725        17.354       -.79125E-07   -.13802E-04
  22  norm          .10002E-03    10.407       -.46681E-06** at limit **
  23  Normalizat    1.0295        .25499       -.58829E-06    .54501E-04
  24  Prefactor     1.0841        .14349       -.25520E-07    .71697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.0784
  Prefactor  = 9.88376
  Prefactor  = 0.0001
  Prefactor  = 1.34445
  Prefactor  = 3.59858
  Prefactor  = 0.860432
  Prefactor  = 56.6935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103052
  Prefactor  = 8.93627
  Prefactor  = 0.0001
  Prefactor  = 4.89156
  norm       = 12.0553
  Prefactor  = 0.0001
  norm       = 1.1417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.7249
  norm       = 0.000100025
  Normalizat = 1.02954
  Prefactor  = 1.08413
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.925     FROM HESSE     STATUS=OK           411 CALLS     3152 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .83216        .69125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.078        39.988        .67653E-04   -1.4523    
   3  Prefactor     9.8838        31.641        .12756E-03   -1.5079    
   4  Prefactor     .10000E-03    19.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3444        4.8833        .32042E-03   -1.5476    
   6  Prefactor     3.5986        9.7915        .21319E-03   -1.5329    
   7  Prefactor     .86043        41.954        .47500E-02   -1.5522    
   8  Prefactor     56.694        30.183        .53291E-04   -1.4201    
   9  Prefactor     .10000E-03    43.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10305E-03    39.585        .12249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9363        9.6108        .13410E-03   -1.5110    
  14  Prefactor     .10000E-03    38.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8916        4.6067        .15147E-03   -1.5266    
  16  norm          12.055        6.1493        .57686E-03   -1.5013    
  17  Prefactor     .10000E-03    34.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1417        1.1168        .79957E-04   -1.5494    
  19  Prefactor     .10000E-03    36.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7899        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.725        17.176        .10100E-03   -1.4915    
  22  norm          .10002E-03    65.386        .47782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0295        .29379        .33633E-03   -.92047    
  24  Prefactor     1.0841        .16810        .19798E-03   -.89975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48704e-08
Minuit parameter uncertainties:
  1  5.46164e-07
  2  40.0182
  3  31.6947
  4  1.11283e-05
  5  4.88476
  6  9.79585
  7  12.0247
  8  30.1909
  9  7.13057e-06
  10  4.24622e-05
  11  1.06466e-05
  12  0.021999
  13  9.61247
  14  0.00010626
  15  4.60701
  16  6.14965
  17  0.000162651
  18  1.11686
  19  4.23821e-05
  20  9.67227e-06
  21  17.1819
  22  0.00255691
  23  0.294254
  24  0.168181
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.936e+00  9.612e+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.084e+00  1.682e-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:  1.030e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/259743/likelihoodResults_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.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) = 6039.80408317
delta logL = 1.12090892449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.79410156
delta logL = 1.13089052957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0536       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   6039.794     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0536        7.6544        .35320E-02   -.23295E-03
   2  Index         1.6034        .37881        .21178       -.15227E-04
   3  Normalizat    1.0629        .23429        .74933E-01    .40960E-05
   4  Prefactor     1.0694        .14188        .38886E-01    .89573E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.05356
  Index      = 1.60343
  Normalizat = 1.0629
  Prefactor  = 1.06942
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.794     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0536        9.3358        .14128E-03   -1.5140    
   2  Index         1.6034        .55459        .78045E-02   -.74683    
   3  Normalizat    1.0629        .27302        .33163E-03   -.90952    
   4  Prefactor     1.0694        .16566        .19906E-03   -.90450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04503e-11
Minuit parameter uncertainties:
  1  9.33747
  2  0.556719
  3  0.273384
  4  0.165737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259743': 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) = 6039.79410155
delta logL = 1.13089053731

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.054e+00  9.337e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.603e+00  5.567e-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.069e+00  1.657e-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:  1.063e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.60 +/- 0.56
Photon Flux (Free Index): 1.77e-08 +/- 2.09e-08
Energy Flux (Free Index): 3.96e-05 +/- 5.85e-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/259743/cmap_HighResolution_468720001_468979201_4FGL_J2219.2-0342_daily_bin885.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='3.96e-05', photon_flux_error='4.42e-08', dlogl='1.13e+00', energy_flux='1.01e-05', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-28 09:24:05.752679', photon_index_error2='0.56', photon_index2='1.60', ts='1.86', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='5.85e-05', EG='1.03', time_epoch_completed='1632846245.75', return_code='0', job_id='259743', GAL2='1.07', EG2='1.06', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.09e-08', ts2='4.14', photon_index='2.68' WHERE bin_id='885' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 259743: <4FGL_J2219.2-0342_daily_bin885> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin885> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:40 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:41 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:41 2021
Terminated at Tue Sep 28 09:24:06 2021
Results reported at Tue Sep 28 09:24:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin885 334.823 -3.7102 468720001 468979201 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 :                                   638.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

