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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1001
RA = 215.577, Dec = 32.3911
tmin = 498787201, tmax = 499046401
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='383007', job_status='RUN', time_executed='2021-09-09 11:44:04.737255', time_epoch_executed='1631213044.74' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383007/ft1_4FGL_J1422.3+3223_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383007/ft2_4FGL_J1422.3+3223_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383007/ft1_4FGL_J1422.3+3223_daily_bin1001.fits outfile=/scratch/kocevski/383007/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1001.fits ra=215.577 dec=32.3911 rad=12.0 tmin=498787201.0 tmax=499046401.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.99
user 4.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383007/ft2_4FGL_J1422.3+3223_daily_bin1001.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/383007/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/383007/ft1_filtered_4FGL_J1422.3+3223_daily_bin1001.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.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383007/ft1_filtered_4FGL_J1422.3+3223_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/383007/ft2_4FGL_J1422.3+3223_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/383007/ltcube_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.fits outfile=/scratch/kocevski/383007/expmap_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.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/383007/ltcube_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.fits
.....................!
real 191.80
user 185.96
sys 5.48

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/383007/ft1_filtered_4FGL_J1422.3+3223_daily_bin1001.fits scfile=/scratch/kocevski/383007/ft2_4FGL_J1422.3+3223_daily_bin1001.fits outfile=/scratch/kocevski/383007/cmap_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383007/ft1_filtered_4FGL_J1422.3+3223_daily_bin1001.fits scfile=/scratch/kocevski/383007/ft2_4FGL_J1422.3+3223_daily_bin1001.fits outfile=/scratch/kocevski/383007/cmap_HighResolution_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.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.59
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    129.60       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8573       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.341       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7104       1.0000         .10000E-03   10000.    
    11 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4701       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7567       1.0000         .10000E-03   10000.    
    14 'norm      '    .13919E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.163       1.0000         .10000E-03   10000.    
    16 'norm      '    .60633       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3971       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0523       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=   5579.568     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2546 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1952       -.86040E-07** at limit **
   2  Prefactor     5.9269        15.291        .16745E-06   -.79611E-06
   3  Prefactor     129.54        103.53        .42777E-05   -.64434E-04
   4  Prefactor     6.8556        5.2953        .62896E-06   -.41667E-04
   5  norm          .10000E-03    6.1367       -.16235E-06** at limit **
   6  Prefactor     19.339        20.361        .83118E-07   -.31958E-05
   7  norm          3.5478        3.4797        .12472E-06   -.64631E-05
   8  Prefactor     .10000E-03    8.9976       -.24760E-06** at limit **
   9  Prefactor     .10000E-03    9.4120        .99086E-08** at limit **
  10  Prefactor     3.7096        3.6214       -.14074E-06    .49394E-04
  11  norm          .10000E-03    25.561        .43577E-07** at limit **
  12  norm          7.4708        3.7927        .17862E-06   -.13121E-03
  13  Prefactor     9.7548        22.103       -.12977E-06   -.16562E-04
  14  norm          .10000E-03    19.101       -.39768E-05** at limit **
  15  Prefactor     32.116        54.561        .75254E-05   -.38948E-04
  16  norm          .60882        8.5900        .29277E-05   -.55897E-05
  17  Prefactor     .10000E-03    17.197        .62234E-06** at limit **
  18  norm          1.8813        10.234        .94550E-05   -.13167E-04
  19  Prefactor     11.517        11.001       -.61218E-06    .22085E-04
  20  Prefactor     .10000E-03    9.1019       -.21779E-07** at limit **
  21  norm          1.3972        1.5220        .18923E-07   -.65540E-04
  22  Normalizat    1.1041        .20271        .26580E-05    .20452E-04
  23  Prefactor     1.0517        .20877       -.48770E-05   -.20420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.92693
  Prefactor  = 129.538
  Prefactor  = 6.85556
  norm       = 0.0001
  Prefactor  = 19.3394
  norm       = 3.54778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70955
  norm       = 0.0001
  norm       = 7.4708
  Prefactor  = 9.75483
  norm       = 0.000100004
  Prefactor  = 32.1158
  norm       = 0.608824
  Prefactor  = 0.0001
  norm       = 1.88135
  Prefactor  = 11.517
  Prefactor  = 0.0001
  norm       = 1.39716
  Normalizat = 1.10411
  Prefactor  = 1.05171
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.568     FROM HESSE     STATUS=OK           376 CALLS     2922 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9269        15.279        .16496E-03   -1.5221    
   3  Prefactor     129.54        104.14        .17683E-03   -1.3427    
   4  Prefactor     6.8556        5.3425        .71842E-03   -1.5184    
   5  norm          .10000E-03    6.1460        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.339        20.351        .91073E-04   -1.4828    
   7  norm          3.5478        3.4773        .13345E-03   -1.5331    
   8  Prefactor     .10000E-03    9.0411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7096        3.6242        .13448E-03   -1.5323    
  11  norm          .10000E-03    26.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4708        3.7990        .98956E-04   -1.5161    
  13  Prefactor     9.7548        22.089        .12829E-03   -1.5083    
  14  norm          .10000E-03    20.218        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.116        54.903        .70654E-04   -1.4574    
  16  norm          .60882        8.7949        .41071E-03   -1.5552    
  17  Prefactor     .10000E-03    17.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8813        10.409        .15182E-02   -1.5434    
  19  Prefactor     11.517        10.993        .11803E-03   -1.5029    
  20  Prefactor     .10000E-03    9.2019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3972        1.4976        .92164E-04   -1.5472    
  22  Normalizat    1.1041        .24447        .25074E-03   -.89620    
  23  Prefactor     1.0517        .24722        .26616E-03   -.91025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14816e-10
Minuit parameter uncertainties:
  1  9.90234e-06
  2  15.2895
  3  104.293
  4  5.34284
  5  1.44119e-05
  6  20.3586
  7  3.47749
  8  1.97276e-05
  9  3.59551e-05
  10  3.62442
  11  9.23294e-05
  12  3.79909
  13  22.1075
  14  0.000580329
  15  54.9899
  16  4.62841
  17  1.31234e-06
  18  8.85265
  19  10.9947
  20  2.3075e-05
  21  1.49767
  22  0.244721
  23  0.247493
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.052e+00  2.475e-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.104e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.07e-05

TS (Fixed Index): 2.74
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383007/likelihoodResults_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.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): 0
logL (Free Index) = 5579.27762352
delta logL = 0.290046692169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5579.26864302
delta logL = 0.299027201035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2160       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7807       1.0000          .0000       10.000    
     3 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0400       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=   5579.269     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2150        3.5589        .56477E-02   -.72986E-04
   2  Index         1.7802        .54306        .27227       -.42869E-04
   3  Normalizat    1.1261        .18837        .56202E-01    .19524E-04
   4  Prefactor     1.0401        .19591        .60471E-01    .20953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21501
  Index      = 1.78019
  Normalizat = 1.12615
  Prefactor  = 1.04006
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.269     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2150        4.0333        .13567E-03   -1.5349    
   2  Index         1.7802        .78543        .97036E-02   -.69967    
   3  Normalizat    1.1261        .22713        .24853E-03   -.88917    
   4  Prefactor     1.0401        .23597        .26743E-03   -.91406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39669e-12
Minuit parameter uncertainties:
  1  4.03359
  2  0.791056
  3  0.227325
  4  0.236208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383007': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5579.26864281
delta logL = 0.299027407221

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.040e+00  2.362e-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.126e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.78 +/- 0.79
Photon Flux (Free Index): 1.48e-08 +/- 2.47e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.86e-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/383007/cmap_HighResolution_498787201_499046401_4FGL_J1422.3+3223_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='1.88e-05', photon_flux_error='3.26e-08', dlogl='2.99e-01', energy_flux='1.09e-05', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-09 11:54:08.818788', photon_index_error2='0.79', photon_index2='1.78', ts='2.74', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='2.86e-05', EG='1.10', time_epoch_completed='1631213648.82', return_code='0', job_id='383007', GAL2='1.04', EG2='1.13', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.47e-08', ts2='3.32', photon_index='2.40' WHERE bin_id='1001' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 383007: <4FGL_J1422.3+3223_daily_bin1001> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1001 215.577 32.3911 498787201 499046401 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 :                                   598.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

