/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 198 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin8
RA = 215.577, Dec = 32.3911
tmin = 241401601, tmax = 241660801
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='378592', job_status='RUN', time_executed='2021-09-09 11:29:45.155611', time_epoch_executed='1631212185.16' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378592/ft1_4FGL_J1422.3+3223_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378592/ft2_4FGL_J1422.3+3223_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378592/ft1_4FGL_J1422.3+3223_daily_bin8.fits outfile=/scratch/kocevski/378592/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin8.fits ra=215.577 dec=32.3911 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.43
user 1.26
sys 0.16

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378592/ft1_filtered_4FGL_J1422.3+3223_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/378592/ft2_4FGL_J1422.3+3223_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/378592/ltcube_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.fits outfile=/scratch/kocevski/378592/expmap_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.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/378592/ltcube_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.fits
.....................!
real 191.44
user 186.28
sys 4.83

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/378592/ft1_filtered_4FGL_J1422.3+3223_daily_bin8.fits scfile=/scratch/kocevski/378592/ft2_4FGL_J1422.3+3223_daily_bin8.fits outfile=/scratch/kocevski/378592/cmap_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378592/ft1_filtered_4FGL_J1422.3+3223_daily_bin8.fits scfile=/scratch/kocevski/378592/ft2_4FGL_J1422.3+3223_daily_bin8.fits outfile=/scratch/kocevski/378592/cmap_HighResolution_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    102.63       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91668       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8447       1.0000         .10000E-03   10000.    
    12 'norm      '    7.7291       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.571       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.085       1.0000         .10000E-03   10000.    
    16 'norm      '    .93482       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8922       1.0000         .10000E-03   10000.    
    21 'norm      '    .76493       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89654       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2087       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=   8852.272     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2523 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.622        14.039        .16281E-06    .60583E-04
   2  Prefactor     .10000E-03    5.8140        .30089E-07** at limit **
   3  Prefactor     102.64        72.336        .15358E-05    .34035E-03
   4  Prefactor     10.338        4.4249        .11938E-06   -.12474E-03
   5  norm          .10000E-03    17.454        .35195E-06** at limit **
   6  Prefactor     .10000E-03    10.690       -.35346E-06** at limit **
   7  norm          3.7823        4.1370        .16850E-06    .84464E-03
   8  Prefactor     .10000E-03    11.604        .40540E-06** at limit **
   9  Prefactor     .92611        25.017        .14874E-04   -.41070E-03
  10  Prefactor     .10000E-03    1.5116        .78420E-07** at limit **
  11  norm          2.8432        8.6461        .21012E-07    .15252E-03
  12  norm          7.7289        2.4373       -.29553E-08   -.17583E-04
  13  Prefactor     31.560        24.841       -.71447E-06   -.67978E-03
  14  norm          2.6866        4.8471        .56050E-05    .81321E-03
  15  Prefactor     30.084        27.850       -.78528E-06   -.94149E-05
  16  norm          .93400        2.3831        .24354E-06    .48437E-05
  17  Prefactor     .10000E-03    12.065        .41676E-06** at limit **
  18  norm          6.0386        4.9003       -.18079E-06    .23646E-04
  19  Prefactor     .10000E-03    4.0740       -.52244E-07** at limit **
  20  Prefactor     4.8929        5.5167       -.10014E-06    .43718E-04
  21  norm          .76446        1.1644        .32215E-07    .71587E-04
  22  Normalizat    .89623        .16450       -.26275E-05    .39574E-03
  23  Prefactor     1.2090        .16190        .16193E-05    .50445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.622
  Prefactor  = 0.0001
  Prefactor  = 102.644
  Prefactor  = 10.3384
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.78234
  Prefactor  = 0.0001
  Prefactor  = 0.926111
  Prefactor  = 0.0001
  norm       = 2.84323
  norm       = 7.72888
  Prefactor  = 31.5601
  norm       = 2.68663
  Prefactor  = 30.0843
  norm       = 0.934001
  Prefactor  = 0.000100002
  norm       = 6.03864
  Prefactor  = 0.0001
  Prefactor  = 4.8929
  norm       = 0.764458
  Normalizat = 0.896235
  Prefactor  = 1.20901
 **********
 **   18 **HESSE 
 **********

 FCN=   8852.272     FROM HESSE     STATUS=OK           374 CALLS     2897 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.622        14.040        .92815E-04   -1.4845    
   2  Prefactor     .10000E-03    5.8174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     102.64        73.045        .39689E-04   -1.3678    
   4  Prefactor     10.338        4.4359        .12239E-03   -1.5065    
   5  norm          .10000E-03    17.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7823        4.1237        .18833E-03   -1.5319    
   8  Prefactor     .10000E-03    11.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .92611        73.536        .51512E-02   -1.5516    
  10  Prefactor     .10000E-03    1.5384        .11285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8432        8.6195        .24108E-03   -1.5371    
  12  norm          7.7289        2.4408        .79848E-04   -1.5152    
  13  Prefactor     31.560        25.199        .71311E-04   -1.4584    
  14  norm          2.6866        5.4619        .12429E-02   -1.5380    
  15  Prefactor     30.084        27.837        .73047E-04   -1.4610    
  16  norm          .93400        2.3265        .22380E-03   -1.5515    
  17  Prefactor     .10000E-03    12.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0386        4.9034        .16339E-03   -1.5216    
  19  Prefactor     .10000E-03    4.0825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8929        5.4960        .18185E-03   -1.5266    
  21  norm          .76446        1.1608        .49234E-04   -1.5533    
  22  Normalizat    .89623        .19382        .26845E-03   -.96593    
  23  Prefactor     1.2090        .19370        .24919E-03   -.86054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34145e-09
Minuit parameter uncertainties:
  1  14.0424
  2  1.42442e-05
  3  73.1089
  4  4.43603
  5  7.04731e-06
  6  0.00031274
  7  4.12397
  8  4.40514e-05
  9  16.525
  10  4.5702e-06
  11  8.6233
  12  2.4408
  13  25.2079
  14  5.46287
  15  27.8487
  16  2.32673
  17  0.000271063
  18  4.90371
  19  6.7865e-06
  20  5.49658
  21  1.16085
  22  0.19397
  23  0.193813
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.570e-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.209e+00  1.938e-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.962e-01  1.940e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378592/likelihoodResults_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.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) = 8852.27512244
delta logL = -0.00309653363001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8852.27202608
delta logL = -1.73278749571e-07

Fit tolerance = 1e-08

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

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

 FCN=   8852.272     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    45.344        .11289E-02** at limit **
   2  Index         2.4215        8.7893        .50000       -.14550E-04
   3  Normalizat    .89623        .20757E-01    .26845E-03    .71147E-05
   4  Prefactor     1.2090        .22113E-01    .24919E-03    .34674E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100074
  Index      = 2.42145
  Normalizat = 0.896235
  Prefactor  = 1.20901
 **********
 **   18 **HESSE 
 **********

 FCN=   8852.272     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    190.45        .22577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4215        5.1830        .50000       -.54184    
   3  Normalizat    .89623        .49819E-01    .10738E-04   -.96593    
   4  Prefactor     1.2090        .53036E-01    .99674E-05   -.86054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99592e-08
Minuit parameter uncertainties:
  1  0.00754522
  2  700.193
  3  0.0498215
  4  0.0530388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378592': 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) = 8852.27202585
delta logL = 5.70107658859e-08

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.001e-04  7.545e-03  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.421e+00  7.002e+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.209e+00  5.304e-02  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.962e-01  4.982e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/378592/cmap_HighResolution_241401601_241660801_4FGL_J1422.3+3223_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2021-09-09 11:42:05.142417', job_id='378592', GAL2='1.21', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631212925.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='8' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:42:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 378592: <4FGL_J1422.3+3223_daily_bin8> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin8> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:26:14 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:26:15 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:26:15 2021
Terminated at Thu Sep  9 11:42:05 2021
Results reported at Thu Sep  9 11:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin8 215.577 32.3911 241401601 241660801 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 :                                   739.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

