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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1008
RA = 215.577, Dec = 32.3911
tmin = 500601601, tmax = 500860801
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='383019', job_status='RUN', time_executed='2021-09-09 11:43:58.718073', time_epoch_executed='1631213038.72' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383019/ft1_4FGL_J1422.3+3223_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383019/ft2_4FGL_J1422.3+3223_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383019/ft1_4FGL_J1422.3+3223_daily_bin1008.fits outfile=/scratch/kocevski/383019/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1008.fits ra=215.577 dec=32.3911 rad=12.0 tmin=500601601.0 tmax=500860801.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.15
user 4.92
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383019/ft1_filtered_4FGL_J1422.3+3223_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/383019/ft2_4FGL_J1422.3+3223_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/383019/ltcube_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.fits outfile=/scratch/kocevski/383019/expmap_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.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/383019/ltcube_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.fits
.....................!
real 191.06
user 185.67
sys 5.00

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/383019/ft1_filtered_4FGL_J1422.3+3223_daily_bin1008.fits scfile=/scratch/kocevski/383019/ft2_4FGL_J1422.3+3223_daily_bin1008.fits outfile=/scratch/kocevski/383019/cmap_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383019/ft1_filtered_4FGL_J1422.3+3223_daily_bin1008.fits scfile=/scratch/kocevski/383019/ft2_4FGL_J1422.3+3223_daily_bin1008.fits outfile=/scratch/kocevski/383019/cmap_HighResolution_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.040       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6514       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.2580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3761       1.0000         .10000E-03   10000.    
    21 'norm      '    .29511       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86312       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0897       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=   4945.425     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2508 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.957       -.20723E-06** at limit **
   2  Prefactor     64.281        41.938        .38846E-06   -.17750E-03
   3  Prefactor     21.457        101.18        .13916E-04    .21974E-03
   4  Prefactor     .10000E-03    3.8004       -.72879E-07** at limit **
   5  norm          12.035        15.130        .16625E-06   -.46957E-04
   6  Prefactor     .10000E-03    7.1892        .93104E-08** at limit **
   7  norm          3.6619        4.7821        .50508E-05   -.21285E-03
   8  Prefactor     .10000E-03    23.940        .11419E-05** at limit **
   9  Prefactor     33.302        19.770        .47744E-06    .56631E-04
  10  Prefactor     .10000E-03    1.4157       -.19210E-06** at limit **
  11  norm          .10000E-03    28.326       -.13695E-05** at limit **
  12  norm          7.3769        3.5908       -.70858E-08   -.53545E-04
  13  Prefactor     .10000E-03    17.693       -.39064E-07** at limit **
  14  norm          .10000E-03    1.8680       -.47051E-07** at limit **
  15  Prefactor     .10000E-03    17.234       -.14735E-06** at limit **
  16  norm          6.6516        5.4253        .18566E-05   -.10601E-03
  17  Prefactor     .10000E-03    16.974       -.32572E-06** at limit **
  18  norm          9.2571        8.6785       -.37398E-07   -.32433E-04
  19  Prefactor     11.080        14.722        .57030E-06   -.47246E-04
  20  Prefactor     2.3757        5.0327        .27748E-06   -.13432E-03
  21  norm          .29622        1.5579        .82743E-06   -.45520E-03
  22  Normalizat    .86291        .21137       -.71893E-05    .43523E-04
  23  Prefactor     1.0898        .20797        .37892E-05   -.30327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.2811
  Prefactor  = 21.4574
  Prefactor  = 0.0001
  norm       = 12.0354
  Prefactor  = 0.0001
  norm       = 3.66194
  Prefactor  = 0.0001
  Prefactor  = 33.3024
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 7.37693
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.65164
  Prefactor  = 0.0001
  norm       = 9.25708
  Prefactor  = 11.0795
  Prefactor  = 2.37573
  norm       = 0.296221
  Normalizat = 0.862911
  Prefactor  = 1.08981
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.425     FROM HESSE     STATUS=OK           368 CALLS     2876 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.281        41.981        .50050E-04   -1.4103    
   3  Prefactor     21.457        103.48        .86685E-04   -1.4781    
   4  Prefactor     .10000E-03    3.9563        .26755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.035        15.126        .11545E-03   -1.5014    
   6  Prefactor     .10000E-03    7.1906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6619        4.8208        .84772E-03   -1.5325    
   8  Prefactor     .10000E-03    24.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.302        19.742        .69442E-04   -1.4553    
  10  Prefactor     .10000E-03    1.4349        .81712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    28.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3769        3.5955        .88720E-04   -1.5165    
  13  Prefactor     .10000E-03    17.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8706        .93859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6516        5.4552        .70579E-03   -1.5192    
  17  Prefactor     .10000E-03    17.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.2571        8.6765        .13172E-03   -1.5099    
  19  Prefactor     11.080        14.669        .12039E-03   -1.5042    
  20  Prefactor     2.3757        4.9642        .21765E-03   -1.5400    
  21  norm          .29622        2.7709        .15922E-02   -1.5599    
  22  Normalizat    .86291        .23786        .25703E-03   -.97776    
  23  Prefactor     1.0898        .23754        .23964E-03   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51474e-09
Minuit parameter uncertainties:
  1  3.82213e-05
  2  42.0007
  3  94.5086
  4  1.6785e-05
  5  15.1304
  6  7.19737e-06
  7  4.82128
  8  0.000152563
  9  19.7463
  10  5.85399e-06
  11  0.000517687
  12  3.59559
  13  1.57093e-05
  14  5.34846e-07
  15  4.82944e-05
  16  5.45561
  17  4.81266e-05
  18  8.67766
  19  14.6733
  20  4.96508
  21  1.81176
  22  0.238146
  23  0.237769
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.854e-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:  1.090e+00  2.378e-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:  8.629e-01  2.381e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383019/likelihoodResults_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.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) = 4945.42804886
delta logL = -0.00327293656846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4945.42477595
delta logL = -2.94094206765e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3765       1.0000          .0000       10.000    
     3 'Normalizat'    .86290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0899       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=   4945.425     FROM MIGRAD    STATUS=FAILED       100 CALLS      247 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.381        .83764E-02** at limit **
   2  Index         1.8613        5.7732        .50000       -.53907E-05
   3  Normalizat    .86291        .12673E-01    .25704E-03    .48275E-03
   4  Prefactor     1.0898        .13194E-01    .23964E-03    .53726E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4945.425     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      431 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.381        .22654E-03** at limit **
   2  Index         1.8613        5.7732        .10993E-05   -.53907E-05
   3  Normalizat    .86291        .12673E-01    .15018E-07    .48275E-03
   4  Prefactor     1.0898        .13194E-01    .75902E-08    .53726E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4945.425     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      462 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.14        .96610E-03** at limit **
   2  Index         1.8612        5.4465        .50000       -.10666E-06
   3  Normalizat    .86291        .38842E-01    .51409E-04    .48028E-03
   4  Prefactor     1.0898        .40437E-01    .47927E-04    .53495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8612
  Normalizat = 0.862907
  Prefactor  = 1.08981
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.425     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      491 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    402.11        .19322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8612        8.9111        .50000       -.67867    
   3  Normalizat    .86291        .10775        .10282E-04   -.97776    
   4  Prefactor     1.0898        .11217        .95854E-05   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72214e-09
Minuit parameter uncertainties:
  1  0.00013584
  2  897.449
  3  0.107778
  4  0.112194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383019': 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) = 4945.424766
delta logL = 9.92275090539e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.358e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.861e+00  8.974e+02  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.090e+00  1.122e-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:  8.629e-01  1.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.577 32.391

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/383019/cmap_HighResolution_500601601_500860801_4FGL_J1422.3+3223_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-09 11:53:46.961266', job_id='383019', GAL2='1.09', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631213626.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='9.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1008' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:53:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 383019: <4FGL_J1422.3+3223_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1008 215.577 32.3911 500601601 500860801 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 :                                   585.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

