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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1519
RA = 215.577, Dec = 32.3911
tmin = 633052801, tmax = 633312001
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='385914', job_status='RUN', time_executed='2021-09-09 11:54:23.328893', time_epoch_executed='1631213663.33' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385914/ft1_4FGL_J1422.3+3223_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385914/ft1_4FGL_J1422.3+3223_daily_bin1519.fits outfile=/scratch/kocevski/385914/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1519.fits ra=215.577 dec=32.3911 rad=12.0 tmin=633052801.0 tmax=633312001.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.59
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.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/385914/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1519.fits evtable="EVENTS" outfile="/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/385914/ltcube_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.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/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits
.....................!
real 12.18
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/385914/ltcube_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits outfile=/scratch/kocevski/385914/expmap_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.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/385914/ltcube_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits
.....................!
real 191.26
user 186.83
sys 4.02

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1422.3+3223 @ 215.577 32.3911

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits outfile=/scratch/kocevski/385914/cmap_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.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=215.577 yref=32.3911 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits outfile=/scratch/kocevski/385914/cmap_HighResolution_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.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=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385914/Model_4FGL_J1422.3+3223_daily_bin1519.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/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits.....................!
real 48.41
user 46.98
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits', '/scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits', expMap='/scratch/kocevski/385914/expmap_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits', expCube='/scratch/kocevski/385914/ltcube_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385914/Model_4FGL_J1422.3+3223_daily_bin1519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1422.3+3223'

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/385914/ft1_filtered_4FGL_J1422.3+3223_daily_bin1519.fits
Spacecraft file(s): /scratch/kocevski/385914/ft2_4FGL_J1422.3+3223_daily_bin1519.fits
Exposure map: /scratch/kocevski/385914/expmap_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits
Exposure cube: /scratch/kocevski/385914/ltcube_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385914/Model_4FGL_J1422.3+3223_daily_bin1519.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) = 6442.7987372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1760       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1799       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.542       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5597       1.0000         .10000E-03   10000.    
    11 'norm      '    10.185       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.372       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6182       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.633       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.837       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3204       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5984       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73915       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6442.712     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2650 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.964       -.90942E-06** at limit **
   2  Prefactor     .10000E-03    8.3908       -.14263E-06** at limit **
   3  Prefactor     55.697        84.364        .66187E-07    .69544E-04
   4  Prefactor     4.1759        4.0909        .40922E-06    .26796E-04
   5  norm          2.8827        14.484        .55941E-05    .19541E-04
   6  Prefactor     9.1790        13.085       -.11464E-06    .97432E-05
   7  norm          1.1188        3.6079        .19006E-06   -.13751E-03
   8  Prefactor     10.542        12.887        .37344E-06    .53498E-04
   9  Prefactor     .10000E-03    17.549       -.97725E-07** at limit **
  10  Prefactor     8.5597        3.7609        .16787E-06    .14762E-03
  11  norm          10.186        11.857        .11244E-08    .24946E-04
  12  norm          4.9336        2.3088       -.39554E-07   -.29285E-05
  13  Prefactor     .10000E-03    4.9447       -.81695E-07** at limit **
  14  norm          .10000E-03    2.8091       -.22628E-06** at limit **
  15  Prefactor     61.371        35.830        .32940E-06    .14618E-05
  16  norm          1.6182        3.4412        .32325E-05   -.74424E-03
  17  Prefactor     23.642        23.798       -.42544E-09    .84263E-04
  18  norm          .10000E-03    2.2549       -.18254E-07** at limit **
  19  Prefactor     19.835        14.126        .43610E-06    .55459E-04
  20  Prefactor     8.3198        6.0221        .48446E-07    .17835E-04
  21  norm          2.5985        1.5405        .55001E-07    .42880E-04
  22  Normalizat    .73927        .17139       -.48746E-05   -.22284E-03
  23  Prefactor     1.0850        .16839        .30292E-05    .35471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 55.6971
  Prefactor  = 4.17589
  norm       = 2.88265
  Prefactor  = 9.17904
  norm       = 1.11878
  Prefactor  = 10.5416
  Prefactor  = 0.0001
  Prefactor  = 8.55966
  norm       = 10.1862
  norm       = 4.93365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.3706
  norm       = 1.61817
  Prefactor  = 23.6416
  norm       = 0.0001
  Prefactor  = 19.8355
  Prefactor  = 8.31982
  norm       = 2.59851
  Normalizat = 0.739275
  Prefactor  = 1.08499
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.712     FROM HESSE     STATUS=OK           372 CALLS     3022 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.697        85.140        .53767E-04   -1.4214    
   4  Prefactor     4.1759        4.0936        .15113E-03   -1.5299    
   5  norm          2.8827        14.503        .11979E-02   -1.5368    
   6  Prefactor     9.1790        13.062        .13228E-03   -1.5102    
   7  norm          1.1188        3.5700        .25487E-03   -1.5496    
   8  Prefactor     10.542        12.818        .12340E-03   -1.5058    
   9  Prefactor     .10000E-03    17.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5597        3.7626        .98258E-04   -1.5123    
  11  norm          10.186        11.825        .12555E-03   -1.5070    
  12  norm          4.9336        2.3116        .80856E-04   -1.5264    
  13  Prefactor     .10000E-03    4.9471        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8356        .13138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.371        35.839        .51218E-04   -1.4140    
  16  norm          1.6182        3.5936        .10868E-02   -1.5454    
  17  Prefactor     23.642        23.809        .82397E-04   -1.4735    
  18  norm          .10000E-03    2.2553        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.835        14.140        .89928E-04   -1.4817    
  20  Prefactor     8.3198        6.0196        .13898E-03   -1.5131    
  21  norm          2.5985        1.5344        .72268E-04   -1.5386    
  22  Normalizat    .73927        .19963        .25952E-03   -1.0236    
  23  Prefactor     1.0850        .20115        .23544E-03   -.89948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43854e-09
Minuit parameter uncertainties:
  1  0.000329547
  2  2.884e-05
  3  85.3272
  4  4.09389
  5  12.9364
  6  13.0658
  7  3.57073
  8  12.8212
  9  3.04363e-05
  10  3.76272
  11  11.8282
  12  2.31159
  13  1.21554e-05
  14  2.59353e-05
  15  35.8513
  16  3.59403
  17  23.8184
  18  2.08408e-06
  19  14.1426
  20  6.02007
  21  1.53438
  22  0.19983
  23  0.201292
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.560e+00  3.763e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.085e+00  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  7.393e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.93
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.71e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.11e-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) = 6442.71140073
delta logL = 0.000561421795283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.71110454
delta logL = 0.000857608477418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4554       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4174       1.0000          .0000       10.000    
     3 'Normalizat'    .73835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0857       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6442.711     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4554        71.252        .34465E-02   -.14949E-03
   2  Index         2.4174        3.4243        .13185        .82854E-04
   3  Normalizat    .73835        .99777E-01    .42800E-01    .21715E-04
   4  Prefactor     1.0857        .94991E-01    .38159E-01    .59428E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.4554
  Index      = 2.41736
  Normalizat = 0.738347
  Prefactor  = 1.08567
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4554        4.5963        .97481E-04   -1.5126    
   2  Index         2.4174        .40686        .53181E-02   -.54279    
   3  Normalizat    .73835        .18066        .25968E-03   -1.0240    
   4  Prefactor     1.0857        .19397        .23538E-03   -.89926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13418e-11
Minuit parameter uncertainties:
  1  4.5965
  2  0.407474
  3  0.18081
  4  0.1941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385914': 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) = 6442.71110453
delta logL = 0.000857618095324

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.455e+00  4.597e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.417e+00  4.075e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.086e+00  1.941e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  7.383e-01  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.87
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.42 +/- 0.41
Photon Flux (Free Index): 7.79e-08 +/- 3.77e-08
Energy Flux (Free Index): 2.49e-05 +/- 1.34e-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/385914/cmap_HighResolution_633052801_633312001_4FGL_J1422.3+3223_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.71e-08', energy_flux2='2.49e-05', photon_flux_error='3.39e-08', dlogl='8.58e-04', energy_flux='2.52e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-09 12:04:18.005504', photon_index_error2='0.41', photon_index2='2.42', ts='11.93', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='0.74', time_epoch_completed='1631214258.01', return_code='0', job_id='385914', GAL2='1.09', EG2='0.74', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.77e-08', ts2='11.87', photon_index='2.40' WHERE bin_id='1519' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:04:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 385914: <4FGL_J1422.3+3223_daily_bin1519> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1519> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:15 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:51:16 2021
Terminated at Thu Sep  9 12:04:18 2021
Results reported at Thu Sep  9 12:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1519 215.577 32.3911 633052801 633312001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

