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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1024
RA = 215.577, Dec = 32.3911
tmin = 504748801, tmax = 505008001
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='383044', job_status='RUN', time_executed='2021-09-09 11:45:26.894031', time_epoch_executed='1631213126.89' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383044/ft1_4FGL_J1422.3+3223_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383044/ft2_4FGL_J1422.3+3223_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383044/ft1_4FGL_J1422.3+3223_daily_bin1024.fits outfile=/scratch/kocevski/383044/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1024.fits ra=215.577 dec=32.3911 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.28
user 7.99
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383044/ft1_filtered_4FGL_J1422.3+3223_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/383044/ft2_4FGL_J1422.3+3223_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/383044/ltcube_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.fits outfile=/scratch/kocevski/383044/expmap_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.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/383044/ltcube_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.fits
.....................!
real 192.60
user 186.69
sys 5.52

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/383044/ft1_filtered_4FGL_J1422.3+3223_daily_bin1024.fits scfile=/scratch/kocevski/383044/ft2_4FGL_J1422.3+3223_daily_bin1024.fits outfile=/scratch/kocevski/383044/cmap_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383044/ft1_filtered_4FGL_J1422.3+3223_daily_bin1024.fits scfile=/scratch/kocevski/383044/ft2_4FGL_J1422.3+3223_daily_bin1024.fits outfile=/scratch/kocevski/383044/cmap_HighResolution_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.710       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .62365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3703       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6414       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39885E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.309       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4996       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88550       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0896       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=   4777.487     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2970 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9885        .81196E-07** at limit **
   2  Prefactor     50.741        40.103       -.55545E-05   -.35658E-05
   3  Prefactor     .10000E-03    24.157       -.64150E-07** at limit **
   4  Prefactor     .10000E-03    2.8410        .64589E-07** at limit **
   5  norm          20.773        18.567        .32006E-07   -.22137E-04
   6  Prefactor     .10000E-03    17.547        .10819E-06** at limit **
   7  norm          .10000E-03    1.0711        .80617E-08** at limit **
   8  Prefactor     3.9201        10.302       -.98285E-06   -.18550E-03
   9  Prefactor     .10004E-03    10.814        .82123E-07** at limit **
  10  Prefactor     2.3698        4.7304       -.27079E-06   -.64341E-03
  11  norm          .10000E-03    5.8514        .14911E-07** at limit **
  12  norm          5.0510        3.0239        .16808E-07   -.17176E-04
  13  Prefactor     7.6539        21.235        .24923E-04   -.22080E-04
  14  norm          4.9372        6.0107       -.35078E-06   -.25263E-03
  15  Prefactor     .10000E-03    14.881       -.74817E-07** at limit **
  16  norm          6.6118        5.1352        .60804E-08   -.63852E-04
  17  Prefactor     .36501        61.798        .33704E-05   -.31016E-04
  18  norm          7.2433        9.2149        .44875E-05   -.58574E-04
  19  Prefactor     17.301        15.325       -.89842E-05   -.91505E-04
  20  Prefactor     .10000E-03    4.0645        .58517E-07** at limit **
  21  norm          3.5011        2.0110        .19083E-06   -.25047E-03
  22  Normalizat    .88504        .20231       -.51638E-06   -.18295E-03
  23  Prefactor     1.0897        .20560        .81923E-07   -.16607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.7408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92012
  Prefactor  = 0.000100042
  Prefactor  = 2.36978
  norm       = 0.0001
  norm       = 5.05103
  Prefactor  = 7.65391
  norm       = 4.93716
  Prefactor  = 0.0001
  norm       = 6.61184
  Prefactor  = 0.365009
  norm       = 7.24325
  Prefactor  = 17.3008
  Prefactor  = 0.0001
  norm       = 3.50105
  Normalizat = 0.885039
  Prefactor  = 1.08972
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.487     FROM HESSE     STATUS=OK           384 CALLS     3354 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.741        40.134        .56317E-04   -1.4282    
   3  Prefactor     .10000E-03    24.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8663        .11370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.773        18.590        .87902E-04   -1.4796    
   6  Prefactor     .10000E-03    17.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0721        .69851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9201        9.0416        .20375E-03   -1.5312    
   9  Prefactor     .10004E-03    98.548        .37950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3698        4.7200        .19820E-03   -1.5400    
  11  norm          .10000E-03    5.8568        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0510        3.0278        .89968E-04   -1.5258    
  13  Prefactor     7.6539        21.160        .14507E-03   -1.5155    
  14  norm          4.9372        6.0013        .17950E-03   -1.5264    
  15  Prefactor     .10000E-03    14.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6118        5.1430        .13312E-03   -1.5194    
  17  Prefactor     .36501        58.751        .12760       -1.5587    
  18  norm          7.2433        9.2014        .14906E-03   -1.5170    
  19  Prefactor     17.301        15.346        .96268E-04   -1.4876    
  20  Prefactor     .10000E-03    4.0760        .13602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5011        2.0080        .70919E-04   -1.5334    
  22  Normalizat    .88504        .24105        .25346E-03   -.96988    
  23  Prefactor     1.0897        .24565        .24729E-03   -.89796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46626e-10
Minuit parameter uncertainties:
  1  2.53551e-05
  2  40.1552
  3  2.02121e-06
  4  1.08317e-05
  5  18.5948
  6  3.61117e-06
  7  7.57848e-07
  8  9.04473
  9  0.00405609
  10  4.7207
  11  2.57476e-06
  12  3.02787
  13  21.1809
  14  6.00204
  15  2.24391e-05
  16  5.14338
  17  9.26963
  18  9.20318
  19  15.3491
  20  1.18753e-05
  21  2.008
  22  0.241342
  23  0.245905
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.370e+00  4.721e+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.090e+00  2.459e-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:  8.850e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/383044/likelihoodResults_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.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) = 4777.45835899
delta logL = 0.0291310142411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4777.45481394
delta logL = 0.0326760684075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7036       1.0000          .0000       10.000    
     3 'Normalizat'    .87614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0958       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=   4777.455     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0217        292.67        .72784E-02    .61154E-03
   2  Index         2.7045        7.2703        .22879E-01    .33376E-04
   3  Normalizat    .87631        .13941        .44596E-01    .10437E-04
   4  Prefactor     1.0957        .17176        .55793E-01    .49567E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0217
  Index      = 2.70449
  Normalizat = 0.87631
  Prefactor  = 1.0957
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.455     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0217        4.4359        .16384E-03   -1.5424    
   2  Index         2.7045        1.2518        .91516E-03   -.47698    
   3  Normalizat    .87631        .23067        .25462E-03   -.97298    
   4  Prefactor     1.0957        .24332        .24670E-03   -.89604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36081e-13
Minuit parameter uncertainties:
  1  4.43664
  2  1.26894
  3  0.230933
  4  0.243567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383044': 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) = 4777.45481278
delta logL = 0.0326772224762

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.022e+00  4.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.704e+00  1.269e+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.096e+00  2.436e-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:  8.763e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 215.577 32.391

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/383044/cmap_HighResolution_504748801_505008001_4FGL_J1422.3+3223_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-09 11:55:30.521302', job_id='383044', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1631213730.52', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.27e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1024' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 383044: <4FGL_J1422.3+3223_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1024> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:30 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:32 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:41:32 2021
Terminated at Thu Sep  9 11:55:31 2021
Results reported at Thu Sep  9 11:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1024 215.577 32.3911 504748801 505008001 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

