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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1078
RA = 215.577, Dec = 32.3911
tmin = 518745601, tmax = 519004801
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='383129', job_status='RUN', time_executed='2021-09-09 11:44:23.536278', time_epoch_executed='1631213063.54' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383129/ft1_4FGL_J1422.3+3223_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383129/ft1_4FGL_J1422.3+3223_daily_bin1078.fits outfile=/scratch/kocevski/383129/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1078.fits ra=215.577 dec=32.3911 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.35
user 4.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.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/383129/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/383129/ft1_filtered_4FGL_J1422.3+3223_daily_bin1078.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383129/ft1_filtered_4FGL_J1422.3+3223_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/383129/ltcube_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.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/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits
.....................!
real 11.68
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383129/ft1_filtered_4FGL_J1422.3+3223_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/383129/ltcube_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.fits outfile=/scratch/kocevski/383129/expmap_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.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/383129/ltcube_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.fits
.....................!
real 194.35
user 188.72
sys 5.26

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/383129/ft1_filtered_4FGL_J1422.3+3223_daily_bin1078.fits scfile=/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits outfile=/scratch/kocevski/383129/cmap_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383129/ft1_filtered_4FGL_J1422.3+3223_daily_bin1078.fits scfile=/scratch/kocevski/383129/ft2_4FGL_J1422.3+3223_daily_bin1078.fits outfile=/scratch/kocevski/383129/cmap_HighResolution_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3686       1.0000         .10000E-03   10000.    
     5 'norm      '    .27617E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11304E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1777       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.593       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.972       1.0000         .10000E-03   10000.    
    18 'norm      '    14.135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4951       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8760       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5544       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0917       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=   5332.995     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2571 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.719        16.848        .52312E-07    .20010E-04
   2  Prefactor     .10000E-03    9.9691       -.78861E-06** at limit **
   3  Prefactor     24.313        68.739        .72502E-05    .32257E-04
   4  Prefactor     9.3681        5.0795       -.23518E-07   -.10953E-03
   5  norm          .10004E-03    14.218        .78129E-05** at limit **
   6  Prefactor     .10000E-03    41.326        .70375E-06** at limit **
   7  norm          .10000E-03    3.6497        .39217E-07** at limit **
   8  Prefactor     .10000E-03    3.2601       -.44351E-08** at limit **
   9  Prefactor     .10000E-03    3.6598        .96577E-07** at limit **
  10  Prefactor     .10013E-03    5.4215        .54787E-05** at limit **
  11  norm          .10000E-03    4.8376        .47112E-07** at limit **
  12  norm          2.1777        2.0717        .44312E-07    .89860E-05
  13  Prefactor     13.591        18.347        .11822E-06   -.13577E-04
  14  norm          6.5526        5.7535       -.15115E-06   -.14209E-03
  15  Prefactor     .10000E-03    11.343        .13794E-05** at limit **
  16  norm          4.3716        3.9606        .79994E-07   -.19936E-04
  17  Prefactor     35.971        41.961       -.86331E-06   -.79669E-04
  18  norm          14.134        9.9077       -.35858E-06   -.27936E-04
  19  Prefactor     2.4950        8.7945        .87306E-05    .69142E-03
  20  Prefactor     8.8775        9.6645       -.46548E-06   -.33702E-04
  21  norm          1.5534        1.9075       -.86386E-08   -.50493E-05
  22  Normalizat    .78984        .18943        .16744E-05   -.14339E-04
  23  Prefactor     1.0916        .19013       -.15713E-05   -.23002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7189
  Prefactor  = 0.0001
  Prefactor  = 24.3131
  Prefactor  = 9.36811
  norm       = 0.00010004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100126
  norm       = 0.0001
  norm       = 2.17769
  Prefactor  = 13.5914
  norm       = 6.55261
  Prefactor  = 0.0001
  norm       = 4.37162
  Prefactor  = 35.9712
  norm       = 14.1343
  Prefactor  = 2.495
  Prefactor  = 8.87753
  norm       = 1.55344
  Normalizat = 0.78984
  Prefactor  = 1.09159
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.995     FROM HESSE     STATUS=OK           370 CALLS     2941 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.719        16.851        .84034E-04   -1.4754    
   2  Prefactor     .10000E-03    9.9720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.313        69.012        .81207E-04   -1.4721    
   4  Prefactor     9.3681        5.0843        .11498E-03   -1.5096    
   5  norm          .10004E-03    46.284        .40396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7984        .27214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2624        .12877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6616        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10013E-03    19.067        .21104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8409        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1777        2.0655        .99311E-04   -1.5413    
  13  Prefactor     13.591        18.344        .10864E-03   -1.4970    
  14  norm          6.5526        5.7542        .15677E-03   -1.5196    
  15  Prefactor     .10000E-03    11.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3716        3.9620        .13384E-03   -1.5290    
  17  Prefactor     35.971        42.064        .66819E-04   -1.4508    
  18  norm          14.134        9.9191        .10654E-03   -1.4956    
  19  Prefactor     2.4950        10.004        .12937E-02   -1.5392    
  20  Prefactor     8.8775        9.5575        .13454E-03   -1.5112    
  21  norm          1.5534        1.8664        .94004E-04   -1.5459    
  22  Normalizat    .78984        .21545        .25209E-03   -1.0045    
  23  Prefactor     1.0916        .22092        .23545E-03   -.89736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62411e-09
Minuit parameter uncertainties:
  1  16.8547
  2  4.00667e-06
  3  69.2402
  4  5.08457
  5  0.00270779
  6  0.000113248
  7  1.96652e-06
  8  3.35092e-06
  9  2.78564e-06
  10  0.00309971
  11  3.10494e-07
  12  2.06557
  13  18.3511
  14  5.75471
  15  8.81794e-06
  16  3.96225
  17  42.0984
  18  9.92029
  19  9.99484
  20  9.5591
  21  1.8665
  22  0.215686
  23  0.221101
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.001e-04  3.100e-03  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.092e+00  2.211e-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.898e-01  2.157e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383129/likelihoodResults_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.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) = 5332.99545569
delta logL = -0.000249670839366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.99518888
delta logL = 1.713365873e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22586E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5242       1.0000          .0000       10.000    
     3 'Normalizat'    .78982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   5332.155     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      303 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25028E-01    .29764        .20251E-02    .88059E-02
   2  Index         5.9080        2.7751        .13780        .16764E-03
   3  Normalizat    .68023        .39650E-01    .43477E-01    .70168E-04
   4  Prefactor     1.1691        .43105E-01    .37910E-01    .73305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0250283
  Index      = 5.90798
  Normalizat = 0.680231
  Prefactor  = 1.16907
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.155     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25028E-01    .78011        .91294E-04   -1.5676    
   2  Index         5.9080        7.5985        .50179E-02    .18261    
   3  Normalizat    .68023        .15576        .27004E-03   -1.0468    
   4  Prefactor     1.1691        .16339        .22857E-03   -.87288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34772e-11
Minuit parameter uncertainties:
  1  0.278908
  2  5.96712
  3  0.155862
  4  0.16346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383129': 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) = 5332.15516553
delta logL = 0.84004048686

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.503e-02  2.789e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.908e+00  5.967e+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:  1.169e+00  1.635e-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:  6.802e-01  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 215.577 32.391
Photon Index (Free Index): 5.91 +/- 5.97
Photon Flux (Free Index): 7.61e-08 +/- 6.38e-08
Energy Flux (Free Index): 9.52e-06 +/- 9.49e-06

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/383129/cmap_HighResolution_518745601_519004801_4FGL_J1422.3+3223_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', energy_flux2='9.52e-06', dlogl='8.40e-01', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-09-09 11:54:15.679493', photon_index_error2='5.97', photon_index2='5.91', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.81e-08', energy_flux_error2='9.49e-06', EG='0.79', time_epoch_completed='1631213655.68', return_code='0', job_id='383129', GAL2='1.17', EG2='0.68', return_code2='102', photon_flux_error2='6.38e-08', ts2='1.92', photon_index='2.40' WHERE bin_id='1078' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 383129: <4FGL_J1422.3+3223_daily_bin1078> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1078> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:36 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:38 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:41:38 2021
Terminated at Thu Sep  9 11:54:16 2021
Results reported at Thu Sep  9 11:54:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1078 215.577 32.3911 518745601 519004801 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 :                                   588.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            760 sec.

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

