/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 8 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 = 7380
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin257
RA = 215.577, Dec = 32.3911
tmin = 305942401, tmax = 306201601
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='379898', job_status='RUN', time_executed='2021-09-09 11:31:39.230738', time_epoch_executed='1631212299.23' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379898/ft1_4FGL_J1422.3+3223_daily_bin257.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379898/ft2_4FGL_J1422.3+3223_daily_bin257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379898/ft1_4FGL_J1422.3+3223_daily_bin257.fits outfile=/scratch/kocevski/379898/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin257.fits ra=215.577 dec=32.3911 rad=12.0 tmin=305942401.0 tmax=306201601.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.61
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379898/ft1_filtered_4FGL_J1422.3+3223_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/379898/ft2_4FGL_J1422.3+3223_daily_bin257.fits sctable="SC_DATA" expcube=/scratch/kocevski/379898/ltcube_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.fits outfile=/scratch/kocevski/379898/expmap_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.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/379898/ltcube_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.fits
.....................!
real 192.13
user 187.28
sys 4.43

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/379898/ft1_filtered_4FGL_J1422.3+3223_daily_bin257.fits scfile=/scratch/kocevski/379898/ft2_4FGL_J1422.3+3223_daily_bin257.fits outfile=/scratch/kocevski/379898/cmap_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379898/ft1_filtered_4FGL_J1422.3+3223_daily_bin257.fits scfile=/scratch/kocevski/379898/ft2_4FGL_J1422.3+3223_daily_bin257.fits outfile=/scratch/kocevski/379898/cmap_HighResolution_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.091       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2228       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .58515       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4858       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2113       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0046       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=   6725.544     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2226 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3200        21.997       -.34499E-06   -.71946E-04
   2  Prefactor     .10000E-03    45.104        .10569E-04** at limit **
   3  Prefactor     .10000E-03    20.146       -.76196E-07** at limit **
   4  Prefactor     21.089        6.5563       -.24870E-06   -.93053E-04
   5  norm          .10000E-03    6.6585        .97213E-06** at limit **
   6  Prefactor     .10000E-03    7.2704        .61939E-06** at limit **
   7  norm          .10000E-03    1.8646       -.42099E-07** at limit **
   8  Prefactor     .10000E-03    5.8296       -.29332E-07** at limit **
   9  Prefactor     .26604E-01    8.1593       -.75284E-07    .23332E-04
  10  Prefactor     2.2206        1.7060        .50972E-06   -.33722E-02
  11  norm          .10000E-03    4.4818       -.15210E-07** at limit **
  12  norm          16.227        4.0985       -.71319E-09    .81450E-05
  13  Prefactor     .10000E-03    6.9166       -.13787E-05** at limit **
  14  norm          4.5245        5.7947       -.15592E-06   -.15557E-04
  15  Prefactor     .10000E-03    51.971       -.26188E-04** at limit **
  16  norm          .58371        2.7115       -.70197E-07   -.16020E-04
  17  Prefactor     .10000E-03    61.584        .16479E-04** at limit **
  18  norm          .10000E-03    3.7926        .23063E-07** at limit **
  19  Prefactor     2.4784        18.733        .16544E-05   -.29410E-04
  20  Prefactor     .10001E-03    4.8117        .79668E-07** at limit **
  21  norm          .10000E-03    .98059       -.20122E-07** at limit **
  22  Normalizat    1.2116        .18610        .66342E-07   -.64758E-04
  23  Prefactor     1.0046        .19054       -.24309E-06   -.10192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0891
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0266042
  Prefactor  = 2.22062
  norm       = 0.0001
  norm       = 16.2269
  Prefactor  = 0.0001
  norm       = 4.52454
  Prefactor  = 0.000100001
  norm       = 0.583708
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.47838
  Prefactor  = 0.00010001
  norm       = 0.0001
  Normalizat = 1.21156
  Prefactor  = 1.0046
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.544     FROM HESSE     STATUS=OK           382 CALLS     2608 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3200        22.299        .38358E-03   -1.5478    
   2  Prefactor     .10000E-03    45.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.089        6.5752        .87215E-04   -1.4789    
   5  norm          .10000E-03    6.6711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8887        .10933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26604E-01    10.825        .77936E-01   -1.5675    
  10  Prefactor     2.2206        4.1749        .10789E-02   -1.5410    
  11  norm          .10000E-03    4.4832        .16955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.227        4.0995        .80267E-04   -1.4902    
  13  Prefactor     .10000E-03    6.9208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5245        5.7800        .18928E-03   -1.5283    
  15  Prefactor     .10000E-03    52.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .58371        10.909        .25299E-02   -1.5555    
  17  Prefactor     .10000E-03    61.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7979        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4784        18.249        .25927E-03   -1.5393    
  20  Prefactor     .10001E-03    44.593        .33643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8663        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2116        .22761        .24852E-03   -.86246    
  23  Prefactor     1.0046        .23060        .27724E-03   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54917e-08
Minuit parameter uncertainties:
  1  10.8552
  2  0.000158239
  3  1.33627e-06
  4  6.57538
  5  7.32275e-06
  6  5.29063e-06
  7  1.35705e-09
  8  8.88409e-07
  9  1.07149
  10  4.17541
  11  3.51488e-07
  12  4.09959
  13  1.03571e-05
  14  5.78074
  15  0.000448415
  16  5.04754
  17  0.00024988
  18  1.76392e-06
  19  13.4558
  20  0.00134546
  21  8.80041e-06
  22  0.227801
  23  0.23083
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.221e+00  4.175e+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.005e+00  2.308e-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.212e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/379898/likelihoodResults_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.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) = 6725.0788593
delta logL = 0.465172018255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6725.07830557
delta logL = 0.465725746774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4691       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3967       1.0000          .0000       10.000    
     3 'Normalizat'    1.1619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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=   6725.078     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4696        30.818        .88652E-02    .12209E-02
   2  Index         3.3961        3.8225        .14250        .17206E-03
   3  Normalizat    1.1622        .50514E-01    .57197E-01   -.55313E-04
   4  Prefactor     1.0365        .52266E-01    .61863E-01    .15998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46957
  Index      = 3.39605
  Normalizat = 1.16221
  Prefactor  = 1.03651
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.078     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4696        4.0900        .91090E-04   -1.5466    
   2  Index         3.3961        1.6260        .77017E-02   -.32656    
   3  Normalizat    1.1622        .22339        .25294E-03   -.87779    
   4  Prefactor     1.0365        .22482        .27360E-03   -.91522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44295e-10
Minuit parameter uncertainties:
  1  4.09075
  2  1.65974
  3  0.223572
  4  0.225028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379898': 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) = 6725.07830435
delta logL = 0.465726966027

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.470e+00  4.091e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.396e+00  1.660e+00  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.037e+00  2.250e-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.162e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 215.577 32.391
Photon Index (Free Index): 3.40 +/- 1.66
Photon Flux (Free Index): 5.76e-08 +/- 5.69e-08
Energy Flux (Free Index): 9.87e-06 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/379898/cmap_HighResolution_305942401_306201601_4FGL_J1422.3+3223_daily_bin257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='9.87e-06', dlogl='4.66e-01', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-09-09 11:42:33.883672', photon_index_error2='1.66', photon_index2='3.40', ts='0.35', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.07e-05', EG='1.21', time_epoch_completed='1631212953.88', return_code='0', job_id='379898', GAL2='1.04', EG2='1.16', return_code2='0', photon_flux_error2='5.69e-08', ts2='1.34', photon_index='2.40' WHERE bin_id='257' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 379898: <4FGL_J1422.3+3223_daily_bin257> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin257> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:21 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:22 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:31:22 2021
Terminated at Thu Sep  9 11:42:34 2021
Results reported at Thu Sep  9 11:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin257 215.577 32.3911 305942401 306201601 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

