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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1553
RA = 215.577, Dec = 32.3911
tmin = 641865601, tmax = 642124801
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='385968', job_status='RUN', time_executed='2021-09-09 11:54:44.985641', time_epoch_executed='1631213684.99' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385968/ft1_4FGL_J1422.3+3223_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385968/ft2_4FGL_J1422.3+3223_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385968/ft1_4FGL_J1422.3+3223_daily_bin1553.fits outfile=/scratch/kocevski/385968/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1553.fits ra=215.577 dec=32.3911 rad=12.0 tmin=641865601.0 tmax=642124801.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.33
user 4.08
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385968/ft1_filtered_4FGL_J1422.3+3223_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/385968/ft2_4FGL_J1422.3+3223_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/385968/ltcube_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.fits outfile=/scratch/kocevski/385968/expmap_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.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/385968/ltcube_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.fits
.....................!
real 194.73
user 187.14
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/385968/ft1_filtered_4FGL_J1422.3+3223_daily_bin1553.fits scfile=/scratch/kocevski/385968/ft2_4FGL_J1422.3+3223_daily_bin1553.fits outfile=/scratch/kocevski/385968/cmap_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385968/ft1_filtered_4FGL_J1422.3+3223_daily_bin1553.fits scfile=/scratch/kocevski/385968/ft2_4FGL_J1422.3+3223_daily_bin1553.fits outfile=/scratch/kocevski/385968/cmap_HighResolution_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6419       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.370       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2571       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    80.878       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.843       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6904       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11436E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2862       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1706       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84863       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=   6561.311     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2542 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3425        .48068E-06** at limit **
   2  Prefactor     .10000E-03    9.2207       -.33268E-06** at limit **
   3  Prefactor     .10000E-03    76.440        .41814E-05** at limit **
   4  Prefactor     4.6420        3.7799        .95947E-07    .27502E-04
   5  norm          .10000E-03    6.3236       -.71274E-07** at limit **
   6  Prefactor     .10000E-03    8.9092       -.19560E-05** at limit **
   7  norm          .10000E-03    2.4738        .59757E-07** at limit **
   8  Prefactor     .10000E-03    11.644       -.65607E-06** at limit **
   9  Prefactor     .10000E-03    51.933       -.28487E-05** at limit **
  10  Prefactor     15.370        4.9264        .10456E-06    .16598E-03
  11  norm          4.2554        7.6356        .12598E-05    .45513E-03
  12  norm          .10000E-03    1.1559        .17834E-07** at limit **
  13  Prefactor     .10000E-03    20.542       -.35416E-05** at limit **
  14  norm          .10000E-03    6.5361       -.26858E-05** at limit **
  15  Prefactor     80.869        52.785        .18495E-05    .13742E-03
  16  norm          5.8172        3.6752        .83446E-08   -.13040E-04
  17  Prefactor     19.843        19.097       -.33446E-07    .12028E-04
  18  norm          8.6909        7.0629       -.19183E-06    .37197E-04
  19  Prefactor     .10003E-03    8.7548       -.29634E-05** at limit **
  20  Prefactor     .10000E-03    4.4390       -.34913E-07** at limit **
  21  norm          2.2864        1.4518       -.24448E-07    .16154E-03
  22  Normalizat    1.1706        .17110       -.19762E-06    .22196E-03
  23  Prefactor     .84855        .17200       -.54060E-06    .88368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.64197
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3703
  norm       = 4.25544
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.8694
  norm       = 5.81718
  Prefactor  = 19.8432
  norm       = 8.69085
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 2.28638
  Normalizat = 1.17062
  Prefactor  = 0.848547
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.311     FROM HESSE     STATUS=OK           366 CALLS     2908 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    76.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6420        3.7872        .13644E-03   -1.5277    
   5  norm          .10000E-03    6.3498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5538        .24874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.370        4.9445        .96949E-04   -1.4924    
  11  norm          4.2554        8.6615        .97641E-03   -1.5295    
  12  norm          .10000E-03    1.1724        .85011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.8390        .30365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     80.869        53.011        .44660E-04   -1.3907    
  16  norm          5.8172        3.6758        .11980E-03   -1.5226    
  17  Prefactor     19.843        19.101        .89913E-04   -1.4817    
  18  norm          8.6909        7.0346        .13597E-03   -1.5118    
  19  Prefactor     .10003E-03    21.937        .33373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4703        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2864        1.4430        .74594E-04   -1.5406    
  22  Normalizat    1.1706        .20182        .22958E-03   -.87516    
  23  Prefactor     .84855        .20355        .27376E-03   -.97963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0126e-09
Minuit parameter uncertainties:
  1  1.81739e-05
  2  1.03242e-05
  3  0.000484388
  4  3.78736
  5  4.14347e-06
  6  5.80491e-05
  7  5.66948e-06
  8  9.99336e-06
  9  5.22388e-05
  10  4.94458
  11  8.66401
  12  2.04446e-06
  13  0.000196448
  14  5.23707e-05
  15  53.0421
  16  3.67591
  17  19.1069
  18  7.0353
  19  0.00171593
  20  7.60316e-06
  21  1.44301
  22  0.201953
  23  0.203736
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.537e+01  4.945e+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:  8.485e-01  2.037e-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.171e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.75
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 4.45e-08
Energy Flux (Fixed Index): 4.53e-05 +/- 1.46e-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) = 6560.81239743
delta logL = 0.498135862616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6560.71985605
delta logL = 0.590677243626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.151       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0674       1.0000          .0000       10.000    
     3 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81815       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=   6560.720     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.154        7.8111        .24178E-02   -.45888E-04
   2  Index         2.0677        .37115        .12699        .15204E-03
   3  Normalizat    1.2159        .16705        .51117E-01   -.21030E-03
   4  Prefactor     .81821        .16985        .62948E-01   -.24408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1538
  Index      = 2.06769
  Normalizat = 1.21595
  Prefactor  = 0.818206
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.720     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.154        5.8059        .96710E-04   -1.4879    
   2  Index         2.0677        .29731        .51765E-02   -.62668    
   3  Normalizat    1.2159        .20004        .22600E-03   -.86111    
   4  Prefactor     .81821        .20315        .27842E-03   -.99061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12494e-10
Minuit parameter uncertainties:
  1  5.80609
  2  0.297574
  3  0.200168
  4  0.203338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385968': 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) = 6560.71985404
delta logL = 0.59067925254

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.715e+01  5.806e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.068e+00  2.976e-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:  8.182e-01  2.033e-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.216e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.86
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.07 +/- 0.30
Photon Flux (Free Index): 1.04e-07 +/- 4.71e-08
Energy Flux (Free Index): 6.10e-05 +/- 3.04e-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/385968/cmap_HighResolution_641865601_642124801_4FGL_J1422.3+3223_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='6.10e-05', photon_flux_error='4.45e-08', dlogl='5.91e-01', energy_flux='4.53e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-09 12:04:38.669028', photon_index_error2='0.30', photon_index2='2.07', ts='28.75', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='3.04e-05', EG='1.17', time_epoch_completed='1631214278.67', return_code='0', job_id='385968', GAL2='0.82', EG2='1.22', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.71e-08', ts2='29.86', photon_index='2.40' WHERE bin_id='1553' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 385968: <4FGL_J1422.3+3223_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1553> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:19 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:20 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:51:20 2021
Terminated at Thu Sep  9 12:04:39 2021
Results reported at Thu Sep  9 12:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1553 215.577 32.3911 641865601 642124801 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

