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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1247
RA = 215.577, Dec = 32.3911
tmin = 562550401, tmax = 562809601
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='384482', job_status='RUN', time_executed='2021-09-09 11:46:48.764714', time_epoch_executed='1631213208.76' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384482

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384482/ft1_4FGL_J1422.3+3223_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384482/ft1_4FGL_J1422.3+3223_daily_bin1247.fits outfile=/scratch/kocevski/384482/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1247.fits ra=215.577 dec=32.3911 rad=12.0 tmin=562550401.0 tmax=562809601.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 3.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384482/ft1_filtered_4FGL_J1422.3+3223_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/384482/ltcube_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.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/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits
.....................!
real 14.21
user 13.81
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384482/ft1_filtered_4FGL_J1422.3+3223_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/384482/ltcube_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.fits outfile=/scratch/kocevski/384482/expmap_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.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/384482/ltcube_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.fits
.....................!
real 190.29
user 184.87
sys 5.06

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/384482/ft1_filtered_4FGL_J1422.3+3223_daily_bin1247.fits scfile=/scratch/kocevski/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits outfile=/scratch/kocevski/384482/cmap_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384482/ft1_filtered_4FGL_J1422.3+3223_daily_bin1247.fits scfile=/scratch/kocevski/384482/ft2_4FGL_J1422.3+3223_daily_bin1247.fits outfile=/scratch/kocevski/384482/cmap_HighResolution_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63857       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0354       1.0000         .10000E-03   10000.    
     7 'norm      '    .16037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.193       1.0000         .10000E-03   10000.    
    11 'norm      '    33.700       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2458       1.0000         .10000E-03   10000.    
    21 'norm      '    .67820       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0884       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1508       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=   11165.42     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2239 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.350        13.734       -.65444E-07   -.32743E-03
   2  Prefactor     10.221        12.152        .54362E-07   -.60004E-04
   3  Prefactor     13.502        42.893       -.33072E-06   -.12263E-03
   4  Prefactor     .63895        2.1502        .25304E-06   -.34101E-03
   5  norm          5.3700        10.811        .45842E-07   -.19403E-03
   6  Prefactor     5.0358        9.3867        .85807E-06   -.10103E-03
   7  norm          .10000E-03    1.1869        .27528E-06** at limit **
   8  Prefactor     .10001E-03    5.9358        .17141E-05** at limit **
   9  Prefactor     .10000E-03    6.8201        .69589E-06** at limit **
  10  Prefactor     12.194        3.9254       -.10093E-06   -.14525E-02
  11  norm          33.707        13.541        .20389E-06    .74074E-03
  12  norm          3.1640        2.0159        .20559E-06   -.16275E-04
  13  Prefactor     .10000E-03    9.2048       -.18176E-06** at limit **
  14  norm          .21440        11.348       -.79982E-05    .37771E-03
  15  Prefactor     .10000E-03    14.291       -.19881E-06** at limit **
  16  norm          3.4780        3.5534        .14556E-06   -.25268E-03
  17  Prefactor     .10000E-03    12.895        .82774E-06** at limit **
  18  norm          .10000E-03    2.3088        .65425E-06** at limit **
  19  Prefactor     2.2536        7.6096        .59708E-05   -.60999E-04
  20  Prefactor     5.2462        5.4980        .42169E-06   -.30972E-03
  21  norm          .67818        1.0392        .10347E-06    .83072E-03
  22  Normalizat    1.0883        .13960       -.47118E-06   -.11667E-02
  23  Prefactor     1.1509        .14218       -.10499E-05   -.11894E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3504
  Prefactor  = 10.2213
  Prefactor  = 13.5023
  Prefactor  = 0.638948
  norm       = 5.37005
  Prefactor  = 5.03577
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 12.194
  norm       = 33.7066
  norm       = 3.16399
  Prefactor  = 0.0001
  norm       = 0.214399
  Prefactor  = 0.0001
  norm       = 3.47803
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 2.25358
  Prefactor  = 5.24623
  norm       = 0.678178
  Normalizat = 1.08835
  Prefactor  = 1.1509
 **********
 **   18 **HESSE 
 **********

 FCN=   11165.42     FROM HESSE     STATUS=OK           380 CALLS     2619 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.350        13.738        .10222E-03   -1.4924    
   2  Prefactor     10.221        12.144        .12533E-03   -1.5068    
   3  Prefactor     13.502        43.232        .10899E-03   -1.4973    
   4  Prefactor     .63895        3.4008        .26386E-02   -1.5548    
   5  norm          5.3700        10.826        .17342E-03   -1.5244    
   6  Prefactor     5.0358        9.4234        .89598E-03   -1.5259    
   7  norm          .10000E-03    5.2533        .22041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    6.2074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.194        3.9410        .11194E-03   -1.5009    
  11  norm          33.707        13.689        .34514E-03   -1.4546    
  12  norm          3.1640        2.0231        .58031E-03   -1.5352    
  13  Prefactor     .10000E-03    9.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21440        24.588        .36196E-02   -1.5615    
  15  Prefactor     .10000E-03    14.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4780        3.5552        .19364E-03   -1.5335    
  17  Prefactor     .10000E-03    13.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8056        .30873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2536        8.6286        .13691E-02   -1.5408    
  20  Prefactor     5.2462        5.4167        .87749E-03   -1.5250    
  21  norm          .67818        .94883        .12126E-02   -1.5543    
  22  Normalizat    1.0883        .16892        .24988E-03   -.90127    
  23  Prefactor     1.1509        .17199        .26442E-03   -.87856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85069e-08
Minuit parameter uncertainties:
  1  13.741
  2  12.1472
  3  43.3326
  4  2.9482
  5  10.8298
  6  9.42621
  7  9.1514e-05
  8  0.000401537
  9  0.000100809
  10  3.94106
  11  13.6907
  12  2.02311
  13  9.90682e-05
  14  4.59287
  15  0.000111428
  16  3.55542
  17  0.000389432
  18  0.000138462
  19  8.63331
  20  5.41723
  21  0.948849
  22  0.169
  23  0.172077
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.219e+01  3.941e+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.151e+00  1.721e-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.088e+00  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.75
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 3.55e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 1.16e-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) = 11165.1365535
delta logL = 0.279748829533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11165.1196952
delta logL = 0.296607163711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6461       1.0000          .0000       10.000    
     3 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1694       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=   11165.12     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      276 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.187        4.6251        .97833E-04   -.89013E-04
   2  Index         2.6461        .34752        .47183E-02   -.73128E-04
   3  Normalizat    1.0632        .16068        .25236E-03    .72349E-04
   4  Prefactor     1.1694        .17074        .26263E-03    .81380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1873
  Index      = 2.64613
  Normalizat = 1.06325
  Prefactor  = 1.16944
 **********
 **   18 **HESSE 
 **********

 FCN=   11165.12     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.187        4.4157        .39133E-05   -1.5070    
   2  Index         2.6461        .33146        .18873E-03   -.49017    
   3  Normalizat    1.0632        .16070        .10095E-04   -.90941    
   4  Prefactor     1.1694        .17076        .10505E-04   -.87277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69851e-11
Minuit parameter uncertainties:
  1  4.41589
  2  0.331775
  3  0.160772
  4  0.170845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384482': 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) = 11165.1196952
delta logL = 0.296607164455

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.019e+01  4.416e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.646e+00  3.318e-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.169e+00  1.708e-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.063e+00  1.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.39
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.65 +/- 0.33
Photon Flux (Free Index): 1.28e-07 +/- 4.48e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.07e-05

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/384482/cmap_HighResolution_562550401_562809601_4FGL_J1422.3+3223_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.22e-05', photon_flux_error='3.55e-08', dlogl='2.97e-01', energy_flux='3.60e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-09 11:59:48.241446', photon_index_error2='0.33', photon_index2='2.65', ts='18.75', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.09', time_epoch_completed='1631213988.24', return_code='0', job_id='384482', GAL2='1.17', EG2='1.06', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.48e-08', ts2='19.39', photon_index='2.40' WHERE bin_id='1247' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 384482: <4FGL_J1422.3+3223_daily_bin1247> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1247> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:29 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:46:29 2021
Terminated at Thu Sep  9 11:59:49 2021
Results reported at Thu Sep  9 11:59:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1247 215.577 32.3911 562550401 562809601 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 :                                   749.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

