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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin655
RA = 215.577, Dec = 32.3911
tmin = 409104001, tmax = 409363201
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='381489', job_status='RUN', time_executed='2021-09-09 11:38:44.676606', time_epoch_executed='1631212724.68' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381489/ft1_4FGL_J1422.3+3223_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381489/ft1_4FGL_J1422.3+3223_daily_bin655.fits outfile=/scratch/kocevski/381489/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin655.fits ra=215.577 dec=32.3911 rad=12.0 tmin=409104001.0 tmax=409363201.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 5.52
user 5.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/381489/ltcube_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.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/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits
.....................!
real 15.37
user 14.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/381489/ltcube_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits outfile=/scratch/kocevski/381489/expmap_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.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/381489/ltcube_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits
.....................!
real 190.83
user 185.76
sys 4.67

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/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits scfile=/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits outfile=/scratch/kocevski/381489/cmap_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits scfile=/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits outfile=/scratch/kocevski/381489/cmap_HighResolution_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits', '/scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits', expMap='/scratch/kocevski/381489/expmap_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits', expCube='/scratch/kocevski/381489/ltcube_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/381489/Model_4FGL_J1422.3+3223_daily_bin655.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/381489/ft1_filtered_4FGL_J1422.3+3223_daily_bin655.fits
Spacecraft file(s): /scratch/kocevski/381489/ft2_4FGL_J1422.3+3223_daily_bin655.fits
Exposure map: /scratch/kocevski/381489/expmap_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits
Exposure cube: /scratch/kocevski/381489/ltcube_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/381489/Model_4FGL_J1422.3+3223_daily_bin655.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) = 5268.02525575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86407E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8469       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.918       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.000       1.0000         .10000E-03   10000.    
    12 'norm      '    10.160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.916       1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.703       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .43183       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3067       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5267.987     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     1755 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.22       -.12752E-04** at limit **
   2  Prefactor     .10564E-03    18.717       -.66072E-05** at limit **
   3  Prefactor     .10393E-03    19.754       -.55371E-05** at limit **
   4  Prefactor     2.8469        1.1912       -.18814E-06    .35477E-02
   5  norm          .10000E-03    5.4461       -.13004E-05** at limit **
   6  Prefactor     11.914        1.0333       -.60565E-07   -.19032E-03
   7  norm          5.3138        1.0749       -.85989E-07    .33764E-02
   8  Prefactor     .10019E-03    17.881       -.13513E-05** at limit **
   9  Prefactor     6.7835        1.4634       -.48546E-07    .19902E-02
  10  Prefactor     .10000E-03    3.8595       -.24006E-06** at limit **
  11  norm          16.995        1.0243       -.31144E-07    .36463E-03
  12  norm          10.160        3.5246        .12256E-06    .11747E-02
  13  Prefactor     15.839        8.8395       -.13677E-05    .18414E-02
  14  norm          .10000E-03    2.1115        .85808E-06** at limit **
  15  Prefactor     14.792        4.3413       -.65715E-06    .55821E-02
  16  norm          6.4792        1.0097       -.28247E-07    .93057E-03
  17  Prefactor     .10004E-03    17.344       -.50365E-05** at limit **
  18  norm          10.703        1.0057        .73991E-08   -.71317E-04
  19  Prefactor     .10000E-03    3.4206        .78124E-07** at limit **
  20  Prefactor     .10000E-03    3.2532        .11854E-05** at limit **
  21  norm          .43205        1.5045        .47821E-06    .24515E-03
  22  Normalizat    1.3066        .23617        .47924E-05    .27716E-03
  23  Prefactor     .89877        .24137       -.35627E-05    .13148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000105644
  Prefactor  = 0.000103934
  Prefactor  = 2.84687
  norm       = 0.0001
  Prefactor  = 11.9138
  norm       = 5.31377
  Prefactor  = 0.000100194
  Prefactor  = 6.78347
  Prefactor  = 0.0001
  norm       = 16.9953
  norm       = 10.1601
  Prefactor  = 15.8386
  norm       = 0.0001
  Prefactor  = 14.7919
  norm       = 6.4792
  Prefactor  = 0.000100036
  norm       = 10.7032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.432049
  Normalizat = 1.30658
  Prefactor  = 0.898775
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.987     FROM HESSE     STATUS=OK           426 CALLS     2181 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.589        .11315       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10564E-03    37.873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10393E-03    33.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8469        5.3172        .60243E-02   -1.5370    
   5  norm          .10000E-03    5.4472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.914        17.878        .29010E-02   -1.5018    
   7  norm          5.3138        4.4452        .43586E-02   -1.5247    
   8  Prefactor     .10019E-03    18.699        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7835        11.668        .38485E-02   -1.5187    
  10  Prefactor     .10000E-03    3.7509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.995        14.545        .24285E-02   -1.4883    
  12  norm          10.160        3.5344        .31427E-02   -1.5070    
  13  Prefactor     15.839        25.929        .25098E-02   -1.4912    
  14  norm          .10000E-03    2.1080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.792        42.053        .26007E-02   -1.4939    
  16  norm          6.4792        4.9592        .39417E-02   -1.5199    
  17  Prefactor     .10004E-03    17.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.703        8.3525        .30616E-02   -1.5054    
  19  Prefactor     .10000E-03    3.4199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .43205        1.5159        .10989E-01   -1.5577    
  22  Normalizat    1.3066        .20498        .53323E-01   -.83370    
  23  Prefactor     .89877        .20678        .44988E-01   -.96184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78276e-07
Minuit parameter uncertainties:
  1  0.000365858
  2  0.0292594
  3  0.0230621
  4  5.31807
  5  5.02587e-05
  6  17.8858
  7  4.44547
  8  0.00380684
  9  11.6717
  10  6.18779e-06
  11  14.5481
  12  3.53449
  13  25.9477
  14  1.73958e-05
  15  42.1374
  16  4.95951
  17  0.00158521
  18  8.35343
  19  1.32698e-05
  20  3.6186e-05
  21  1.51604
  22  0.205109
  23  0.206961
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.188e-06  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:  8.988e-01  2.070e-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:  1.307e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381489/likelihoodResults_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5267.98821802
delta logL = -0.00123545635506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5267.98698249
delta logL = 6.78955984768e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4566       1.0000          .0000       10.000    
     3 'Normalizat'    1.3063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89910       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5267.987     FROM MIGRAD    STATUS=FAILED       100 CALLS      256 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    392.16        .23401E-02** at limit **
   2  Index         2.5278        5.0014        .50000       -.15502E-03
   3  Normalizat    1.3066        .45667E-01    .23577E-03    .12296E-04
   4  Prefactor     .89878        .46596E-01    .28285E-03    .55588E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5267.519     FROM SIMPLEX   STATUS=PROGRESS     167 CALLS      423 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20331        392.16        .48218E-04   -.46751E-02
   2  Index         4.4858        5.0014        .11792E-05   -.15502E-03
   3  Normalizat    1.3176        .45667E-01    .20937E-07    .12296E-04
   4  Prefactor     .90437        .46596E-01    .13792E-07    .55588E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5267.382     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      499 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10506        2.0466        .46802E-02    .22576E-02
   2  Index         4.9754        3.5314        .13057        .15317E-03
   3  Normalizat    1.2249        .47093E-01    .94308E-04    .18200E-03
   4  Prefactor     .95326        .48154E-01    .11314E-03    .14102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.105056
  Index      = 4.97545
  Normalizat = 1.22486
  Prefactor  = 0.953264
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.382     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      530 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10506        5.4126        .23625E-03    293.75    
   2  Index         4.9754        7.4876        .64753E-02   -.49104E-02
   3  Normalizat    1.2249        .18168        .18862E-04   -.85838    
   4  Prefactor     .95326        .18098        .22628E-04   -.94304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.30623e-07
Minuit parameter uncertainties:
  1  1.50757
  2  7.877
  3  0.181773
  4  0.181096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381489': 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): 102
logL (Free Index) = 5267.3819737
delta logL = 0.605008866597

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.051e-01  1.508e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.975e+00  7.877e+00  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:  9.533e-01  1.811e-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:  1.225e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 215.577 32.391
Photon Index (Free Index): 4.98 +/- 7.88
Photon Flux (Free Index): 6.00e-08 +/- 6.35e-08
Energy Flux (Free Index): 8.00e-06 +/- 1.17e-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/381489/cmap_HighResolution_409104001_409363201_4FGL_J1422.3+3223_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', comment='SUCCESS', energy_flux2='8.00e-06', dlogl='6.05e-01', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-09 11:48:19.366785', photon_index_error2='7.88', photon_index2='4.98', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='1.17e-05', EG='1.31', time_epoch_completed='1631213299.37', return_code='0', job_id='381489', GAL2='0.95', EG2='1.22', return_code2='102', photon_flux_error2='6.35e-08', ts2='1.30', photon_index='2.40' WHERE bin_id='655' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 381489: <4FGL_J1422.3+3223_daily_bin655> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin655> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:36:25 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:36:27 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:36:27 2021
Terminated at Thu Sep  9 11:48:19 2021
Results reported at Thu Sep  9 11:48:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin655 215.577 32.3911 409104001 409363201 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

