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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1598
RA = 215.577, Dec = 32.3911
tmin = 653529601, tmax = 653788801
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='726663', job_status='RUN', time_executed='2021-09-20 00:32:50.221415', time_epoch_executed='1632123170.22' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726663

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726663/ft1_4FGL_J1422.3+3223_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726663/ft2_4FGL_J1422.3+3223_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726663/ft1_4FGL_J1422.3+3223_daily_bin1598.fits outfile=/scratch/kocevski/726663/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1598.fits ra=215.577 dec=32.3911 rad=12.0 tmin=653529601.0 tmax=653788801.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.06
user 4.80
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726663/ft1_filtered_4FGL_J1422.3+3223_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726663/ft2_4FGL_J1422.3+3223_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/726663/ltcube_653529601_653788801_4FGL_J1422.3+3223_daily_bin1598.fits outfile=/scratch/kocevski/726663/expmap_653529601_653788801_4FGL_J1422.3+3223_daily_bin1598.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/726663/ltcube_653529601_653788801_4FGL_J1422.3+3223_daily_bin1598.fits
.....................!
real 190.98
user 185.38
sys 5.23

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/726663/ft1_filtered_4FGL_J1422.3+3223_daily_bin1598.fits scfile=/scratch/kocevski/726663/ft2_4FGL_J1422.3+3223_daily_bin1598.fits outfile=/scratch/kocevski/726663/cmap_653529601_653788801_4FGL_J1422.3+3223_daily_bin1598.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.583       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47695E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4629       1.0000         .10000E-03   10000.    
     5 'norm      '    .10683E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0135       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7391       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5738       1.0000         .10000E-03   10000.    
    11 'norm      '    .22997E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5476       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56304E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17492E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37058E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20400E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3792       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68080       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=   5664.678     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     2368 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.521        20.008        .79199E-04   -.28244E-03
   2  Prefactor     55.308        30.514        .53143E-04    .88993E-04
   3  Prefactor     .10000E-03    27.386        .21181E-02** at limit **
   4  Prefactor     3.4608        3.2850        .12763E-03    .92819E-04
   5  norm          .10000E-03    14.947        .20718E-02** at limit **
   6  Prefactor     4.1625        15.532        .20130E-03   -.77712E-04
   7  norm          7.0087        4.5482        .12235E-03    .21325E-03
   8  Prefactor     7.5942        15.377        .14414E-03   -.11673E-04
   9  Prefactor     .10001E-03    37.125        .40099E-02** at limit **
  10  Prefactor     8.5901        4.6483        .11273E-03    .87540E-04
  11  norm          .10075E-03    15.440        .83171E-01** at limit **
  12  norm          .10000E-03    3.0198        .17604E-02** at limit **
  13  Prefactor     9.3662        24.698        .12969E-03   -.38657E-04
  14  norm          .10000E-03    2.2377        .10975E-02** at limit **
  15  Prefactor     .10000E-03    23.807        .19034E-02** at limit **
  16  norm          3.6242        5.9855        .20865E-03   -.21599E-03
  17  Prefactor     .10000E-03    128.36        .20346E-02** at limit **
  18  norm          7.8682        7.2904        .14277E-03   -.38302E-04
  19  Prefactor     .12420        9.2113        .69093E-01    .37240E-03
  20  Prefactor     .10008E-03    5.9713        .55086E-01** at limit **
  21  norm          .10000E-03    .66744        .11807E-03** at limit **
  22  Normalizat    1.3792        .22828        .21430E-03   -.64678E-03
  23  Prefactor     .68125        .22739        .30389E-03   -.51401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5207
  Prefactor  = 55.3078
  Prefactor  = 0.000100001
  Prefactor  = 3.46084
  norm       = 0.0001
  Prefactor  = 4.16248
  norm       = 7.00869
  Prefactor  = 7.59422
  Prefactor  = 0.000100007
  Prefactor  = 8.59009
  norm       = 0.000100751
  norm       = 0.0001
  Prefactor  = 9.3662
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.62425
  Prefactor  = 0.0001
  norm       = 7.86824
  Prefactor  = 0.124201
  Prefactor  = 0.000100082
  norm       = 0.0001
  Normalizat = 1.37919
  Prefactor  = 0.681253
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.678     FROM HESSE     STATUS=OK           376 CALLS     2744 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.521        20.008        .15840E-04   -1.4678    
   2  Prefactor     55.308        30.515        .10629E-04   -1.4219    
   3  Prefactor     .10000E-03    27.387        .42361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4608        3.2850        .51051E-05   -1.5336    
   5  norm          .10000E-03    14.957        .41437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1625        15.528        .80519E-05   -1.5300    
   7  norm          7.0087        4.5481        .48941E-05   -1.5178    
   8  Prefactor     7.5942        15.341        .57658E-05   -1.5157    
   9  Prefactor     .10001E-03    37.317        .80198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5901        4.6484        .45091E-05   -1.5122    
  11  norm          .10075E-03    15.111        .84561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0333        .35207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3662        24.695        .51878E-05   -1.5096    
  14  norm          .10000E-03    2.2378        .21951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.809        .38068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6242        5.9850        .83459E-05   -1.5327    
  17  Prefactor     .10000E-03    128.46        .40691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8682        7.2881        .57108E-05   -1.5147    
  19  Prefactor     .12420        8.7311        .72412E-01   -1.5638    
  20  Prefactor     .10008E-03    5.8457        .56057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .66744        .23615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3792        .22852        .42859E-04   -.81232    
  23  Prefactor     .68125        .22759        .12156E-04   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77798e-09
Minuit parameter uncertainties:
  1  20.0133
  2  30.5232
  3  0.000333406
  4  3.28516
  5  9.28516e-05
  6  15.5427
  7  4.54829
  8  15.3491
  9  0.00101278
  10  4.64855
  11  0.0067409
  12  5.73454e-05
  13  24.722
  14  7.52922e-06
  15  4.65524e-05
  16  5.98598
  17  0.000158509
  18  7.2889
  19  2.08218
  20  0.00138171
  21  3.78883e-06
  22  0.228685
  23  0.227901
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.590e+00  4.649e+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:  6.813e-01  2.279e-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.379e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.46
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.37e-05

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) = 5664.18326571
delta logL = 0.495215972674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5664.17710817
delta logL = 0.501373509773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3975       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9663       1.0000          .0000       10.000    
     3 'Normalizat'    1.3342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71498       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=   5664.177     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3979        5.2317        .79696E-04   -.28901E-03
   2  Index         2.9664        .68903        .47089E-02   -.45186E-04
   3  Normalizat    1.3342        .22357        .21715E-03    .19646E-03
   4  Prefactor     .71508        .22726        .29732E-03    .17257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.39786
  Index      = 2.9664
  Normalizat = 1.33418
  Prefactor  = 0.715082
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.177     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3979        4.6942        .31878E-05   -1.5243    
   2  Index         2.9664        .61808        .18836E-03   -.41886    
   3  Normalizat    1.3342        .22343        .43430E-04   -.82552    
   4  Prefactor     .71508        .22710        .11893E-04   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2241e-11
Minuit parameter uncertainties:
  1  4.69448
  2  0.619985
  3  0.223592
  4  0.227393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726663': 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) = 5664.1771075
delta logL = 0.501374181463

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.398e+00  4.694e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.966e+00  6.200e-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:  7.151e-01  2.274e-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.334e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.97 +/- 0.62
Photon Flux (Free Index): 1.08e-07 +/- 5.74e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.09e-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/726663/cmap_HighResolution_653529601_653788801_4FGL_J1422.3+3223_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='2.20e-05', photon_flux_error='4.19e-08', dlogl='5.01e-01', energy_flux='2.53e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-20 00:41:55.197619', photon_index_error2='0.62', photon_index2='2.97', ts='6.46', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.38', time_epoch_completed='1632123715.2', return_code='0', job_id='726663', GAL2='0.72', EG2='1.33', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.74e-08', ts2='7.56', photon_index='2.40' WHERE bin_id='1598' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:41:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 726663: <4FGL_J1422.3+3223_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 00:30:32 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:30:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:30:33 2021
Terminated at Mon Sep 20 00:41:56 2021
Results reported at Mon Sep 20 00:41:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1598 215.577 32.3911 653529601 653788801 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

