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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin751
RA = 215.577, Dec = 32.3911
tmin = 433987201, tmax = 434246401
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='381629', job_status='RUN', time_executed='2021-09-09 11:36:44.803828', time_epoch_executed='1631212604.8' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381629/ft1_4FGL_J1422.3+3223_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381629/ft2_4FGL_J1422.3+3223_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381629/ft1_4FGL_J1422.3+3223_daily_bin751.fits outfile=/scratch/kocevski/381629/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin751.fits ra=215.577 dec=32.3911 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.28
user 5.92
sys 0.34

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381629/ft1_filtered_4FGL_J1422.3+3223_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/381629/ft2_4FGL_J1422.3+3223_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/381629/ltcube_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.fits outfile=/scratch/kocevski/381629/expmap_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.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/381629/ltcube_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.fits
.....................!
real 191.86
user 186.80
sys 4.72

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/381629/ft1_filtered_4FGL_J1422.3+3223_daily_bin751.fits scfile=/scratch/kocevski/381629/ft2_4FGL_J1422.3+3223_daily_bin751.fits outfile=/scratch/kocevski/381629/cmap_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381629/ft1_filtered_4FGL_J1422.3+3223_daily_bin751.fits scfile=/scratch/kocevski/381629/ft2_4FGL_J1422.3+3223_daily_bin751.fits outfile=/scratch/kocevski/381629/cmap_HighResolution_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.4197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16375E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92884       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1336       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.584       1.0000         .10000E-03   10000.    
    16 'norm      '    .57081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54728       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0616       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2000       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0036       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=   12227.89     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2226 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.975        .16638E-05** at limit **
   2  Prefactor     1.4000        23.865       -.38215E-06   -.15439E-03
   3  Prefactor     .10000E-03    11.292        .10870E-05** at limit **
   4  Prefactor     .10000E-03    1.4703        .10981E-06** at limit **
   5  norm          8.4201        7.5596        .66825E-07    .62877E-05
   6  Prefactor     .10000E-03    7.2919       -.46967E-06** at limit **
   7  norm          .10000E-03    1.1023       -.95082E-08** at limit **
   8  Prefactor     .10000E-03    14.409       -.31583E-05** at limit **
   9  Prefactor     .10000E-03    3.9957       -.30687E-07** at limit **
  10  Prefactor     .92830        2.4306        .13104E-05   -.28732E-03
  11  norm          6.1486        9.4122       -.73106E-06    .23893E-04
  12  norm          4.3495        1.6453        .19123E-08   -.64732E-04
  13  Prefactor     .10000E-03    5.3748       -.84045E-06** at limit **
  14  norm          2.8449        3.2627        .14951E-06   -.72802E-04
  15  Prefactor     25.584        20.086       -.16772E-06   -.42128E-04
  16  norm          .57025        1.9237        .16320E-05   -.43049E-03
  17  Prefactor     .49044        15.986       -.10585E-05    .17329E-03
  18  norm          7.1736        4.9376        .14935E-07   -.25174E-04
  19  Prefactor     .10000E-03    5.5034        .11043E-05** at limit **
  20  Prefactor     .10000E-03    1.8247        .31349E-07** at limit **
  21  norm          4.0613        1.3104        .48315E-07   -.29229E-04
  22  Normalizat    1.2002        .12822       -.45261E-06    .12455E-04
  23  Prefactor     1.0036        .12926       -.44388E-06   -.25113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.40005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.42006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.928304
  norm       = 6.14856
  norm       = 4.34945
  Prefactor  = 0.0001
  norm       = 2.84494
  Prefactor  = 25.5839
  norm       = 0.570249
  Prefactor  = 0.490439
  norm       = 7.17363
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.06129
  Normalizat = 1.2002
  Prefactor  = 1.00355
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4000        25.790        .36790E-03   -1.5471    
   3  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2225        .25811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.4201        7.5611        .13815E-03   -1.5128    
   6  Prefactor     .10000E-03    7.3505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1172        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.831        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .92830        2.4746        .26589E-03   -1.5515    
  11  norm          6.1486        9.2769        .16210E-03   -1.5212    
  12  norm          4.3495        1.6467        .84510E-04   -1.5291    
  13  Prefactor     .10000E-03    5.4595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8449        3.2571        .20618E-03   -1.5371    
  15  Prefactor     25.584        20.088        .79198E-04   -1.4696    
  16  norm          .57025        1.9713        .27885E-03   -1.5557    
  17  Prefactor     .49044        20.780        .11376       -1.5568    
  18  norm          7.1736        4.9368        .14976E-03   -1.5172    
  19  Prefactor     .10000E-03    5.6726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8366        .14575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0613        1.3100        .69004E-04   -1.5305    
  22  Normalizat    1.2002        .15234        .23133E-03   -.86596    
  23  Prefactor     1.0036        .15345        .26131E-03   -.92611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50714e-09
Minuit parameter uncertainties:
  1  0.00030584
  2  12.0234
  3  0.000154815
  4  8.93828e-06
  5  7.56197
  6  3.96352e-05
  7  2.75646e-06
  8  0.000248446
  9  1.02626e-05
  10  2.47486
  11  9.27906
  12  1.6467
  13  8.10266e-05
  14  3.25732
  15  20.0931
  16  1.97155
  17  6.38642
  18  4.93708
  19  0.000108157
  20  1.22339e-06
  21  1.30998
  22  0.152394
  23  0.153518
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  9.283e-01  2.475e+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.004e+00  1.535e-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.200e+00  1.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381629/likelihoodResults_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.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) = 12226.6023764
delta logL = 1.28607532154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12226.5763432
delta logL = 1.31210850897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16005E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0147       1.0000          .0000       10.000    
     3 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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=   12226.58     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      343 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15943E-01    .11866        .19795E-02    .14227E-01
   2  Index         6.0177        2.2524        .12788        .28357E-03
   3  Normalizat    1.1213        .27923E-01    .53883E-01    .30051E-04
   4  Prefactor     1.0609        .29308E-01    .57725E-01    .34002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0159431
  Index      = 6.01773
  Normalizat = 1.12127
  Prefactor  = 1.06087
 **********
 **   18 **HESSE 
 **********

 FCN=   12226.58     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      378 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15943E-01    .32836        .90000E-04   -1.5683    
   2  Index         6.0177        4.0599        .62464E-02    .20498    
   3  Normalizat    1.1213        .10641        .23825E-03   -.89072    
   4  Prefactor     1.0609        .10812        .25526E-03   -.90727    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16351e-07
Minuit parameter uncertainties:
  1  0.144253
  2  4.78725
  3  0.106435
  4  0.108142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381629': 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): 102
logL (Free Index) = 12226.5763378
delta logL = 1.31211382918

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.594e-02  1.443e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  6.018e+00  4.787e+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.061e+00  1.081e-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.121e+00  1.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 215.577 32.391
Photon Index (Free Index): 6.02 +/- 4.79
Photon Flux (Free Index): 5.92e-08 +/- 4.12e-08
Energy Flux (Free Index): 7.36e-06 +/- 6.17e-06

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/381629/cmap_HighResolution_433987201_434246401_4FGL_J1422.3+3223_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', comment='SUCCESS', energy_flux2='7.36e-06', dlogl='1.31e+00', photon_flux2='5.92e-08', job_status='DONE', time_completed='2021-09-09 11:52:20.274416', photon_index_error2='4.79', photon_index2='6.02', ts='0.17', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.94e-08', energy_flux_error2='6.17e-06', EG='1.20', time_epoch_completed='1631213540.27', return_code='0', job_id='381629', GAL2='1.06', EG2='1.12', return_code2='102', photon_flux_error2='4.12e-08', ts2='3.10', photon_index='2.40' WHERE bin_id='751' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:52:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 381629: <4FGL_J1422.3+3223_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin751 215.577 32.3911 433987201 434246401 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 :                                   923.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

