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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1512
RA = 215.577, Dec = 32.3911
tmin = 631238401, tmax = 631497601
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='385902', job_status='RUN', time_executed='2021-09-09 11:53:33.763817', time_epoch_executed='1631213613.76' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385902/ft1_4FGL_J1422.3+3223_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385902/ft1_4FGL_J1422.3+3223_daily_bin1512.fits outfile=/scratch/kocevski/385902/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1512.fits ra=215.577 dec=32.3911 rad=12.0 tmin=631238401.0 tmax=631497601.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 2.74
user 2.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/385902/ltcube_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.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/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits
.....................!
real 16.13
user 15.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/385902/ltcube_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.fits outfile=/scratch/kocevski/385902/expmap_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.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/385902/ltcube_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.fits
.....................!
real 191.47
user 186.41
sys 4.68

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/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits scfile=/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits outfile=/scratch/kocevski/385902/cmap_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.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/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits scfile=/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits outfile=/scratch/kocevski/385902/cmap_HighResolution_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.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/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/385902/ft2_4FGL_J1422.3+3223_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385902/Model_4FGL_J1422.3+3223_daily_bin1512.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/385902/ft1_filtered_4FGL_J1422.3+3223_daily_bin1512.fits.....................!
real 62.99
user 61.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91274E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4797       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.103       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6887       1.0000         .10000E-03   10000.    
    11 'norm      '    .52168       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.698       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.164       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0663       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76026       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2464       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=   8784.040     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2568 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    18.282        .76439E-05** at limit **
   2  Prefactor     .10000E-03    62.030        .51564E-06** at limit **
   3  Prefactor     .10000E-03    31.963        .35482E-06** at limit **
   4  Prefactor     2.4812        3.8820        .37772E-06   -.17997E-03
   5  norm          3.0782        7.6744        .51448E-05    .34055E-03
   6  Prefactor     13.101        15.464       -.74045E-07    .10220E-03
   7  norm          1.5506        3.0810        .16079E-06    .71809E-04
   8  Prefactor     10.277        14.978        .23774E-05    .33458E-03
   9  Prefactor     2.3411        31.309       -.62210E-05   -.21195E-03
  10  Prefactor     3.6886        3.3140        .83081E-07    .12922E-04
  11  norm          .52914        5.1687       -.84937E-07   -.56615E-04
  12  norm          2.9008        1.5997        .30505E-07    .70070E-05
  13  Prefactor     21.668        23.991        .17474E-05   -.17006E-03
  14  norm          5.7966        5.4386        .31060E-06   -.14522E-03
  15  Prefactor     40.170        31.533       -.44785E-06    .61037E-04
  16  norm          .10000E-03    1.2396        .54560E-07** at limit **
  17  Prefactor     .10000E-03    16.678        .85821E-07** at limit **
  18  norm          8.9457        8.9344       -.59116E-07   -.12166E-03
  19  Prefactor     1.0429        20.314        .18103E-05   -.31843E-04
  20  Prefactor     .10000E-03    2.9066       -.81069E-07** at limit **
  21  norm          3.0660        1.2695       -.19675E-07   -.22623E-03
  22  Normalizat    .76014        .15192        .77444E-06   -.79423E-04
  23  Prefactor     1.2466        .15520       -.13866E-05   -.27510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48123
  norm       = 3.0782
  Prefactor  = 13.1013
  norm       = 1.55062
  Prefactor  = 10.2772
  Prefactor  = 2.34106
  Prefactor  = 3.68864
  norm       = 0.52914
  norm       = 2.90077
  Prefactor  = 21.6678
  norm       = 5.79658
  Prefactor  = 40.1695
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.94567
  Prefactor  = 1.04289
  Prefactor  = 0.0001
  norm       = 3.06604
  Normalizat = 0.760141
  Prefactor  = 1.24658
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.040     FROM HESSE     STATUS=OK           380 CALLS     2948 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10033E-03    57.224        .53743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4812        3.8563        .21315E-03   -1.5393    
   5  norm          3.0782        8.1498        .11557E-02   -1.5357    
   6  Prefactor     13.101        15.439        .11065E-03   -1.4984    
   7  norm          1.5506        3.0334        .21737E-03   -1.5459    
   8  Prefactor     10.277        14.856        .12492E-03   -1.5067    
   9  Prefactor     2.3411        29.879        .26863E-03   -1.5402    
  10  Prefactor     3.6886        3.3030        .15069E-03   -1.5324    
  11  norm          .52914        26.174        .39684E-02   -1.5562    
  12  norm          2.9008        1.6014        .85530E-04   -1.5367    
  13  Prefactor     21.668        23.910        .85988E-04   -1.4777    
  14  norm          5.7966        5.4153        .16680E-03   -1.5226    
  15  Prefactor     40.170        31.441        .31624E-03   -1.4440    
  16  norm          .10000E-03    1.2696        .10189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.9457        8.8347        .13400E-03   -1.5110    
  19  Prefactor     1.0429        20.417        .48844E-03   -1.5504    
  20  Prefactor     .10000E-03    2.9243        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0660        1.2640        .65070E-04   -1.5358    
  22  Normalizat    .76014        .18232        .26234E-03   -1.0156    
  23  Prefactor     1.2466        .18714        .23035E-03   -.84910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83974e-08
Minuit parameter uncertainties:
  1  0.00865428
  2  2.55771e-05
  3  5.4731e-06
  4  3.85665
  5  8.15271
  6  15.4435
  7  3.03367
  8  14.8609
  9  16.737
  10  3.30315
  11  7.44577
  12  1.60141
  13  23.9202
  14  5.41578
  15  31.4535
  16  4.18648e-06
  17  2.28614e-05
  18  8.83595
  19  9.23193
  20  8.8605e-06
  21  1.26403
  22  0.182461
  23  0.187237
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.689e+00  3.303e+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.247e+00  1.872e-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:  7.601e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 9.74e-06

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

Saving results to:
/scratch/kocevski/385902/likelihoodResults_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.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) = 8784.03162971
delta logL = 0.00852827384188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8784.03011392
delta logL = 0.0100440656715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4980       1.0000          .0000       10.000    
     3 'Normalizat'    .75543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2501       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=   8784.030     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5188        3.5104        .14330E-03   -.30591E-03
   2  Index         2.4979        .71507        .82986E-02   -.27114E-04
   3  Normalizat    .75543        .17223        .26309E-03    .11978E-03
   4  Prefactor     1.2501        .18566        .23008E-03    .14084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.51879
  Index      = 2.49792
  Normalizat = 0.755434
  Prefactor  = 1.25007
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.030     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5188        3.3917        .57321E-05   -1.5333    
   2  Index         2.4979        .69000        .33194E-03   -.52408    
   3  Normalizat    .75543        .17230        .10524E-04   -1.0174    
   4  Prefactor     1.2501        .18570        .46016E-04   -.84804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38561e-11
Minuit parameter uncertainties:
  1  3.39184
  2  0.692955
  3  0.172423
  4  0.185797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385902': 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) = 8784.03011392
delta logL = 0.0100440696278

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.519e+00  3.392e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.498e+00  6.930e-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.250e+00  1.858e-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:  7.554e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.50 +/- 0.69
Photon Flux (Free Index): 3.61e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.05e-05 +/- 9.49e-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/385902/cmap_HighResolution_631238401_631497601_4FGL_J1422.3+3223_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='1.05e-05', photon_flux_error='2.97e-08', dlogl='1.00e-02', energy_flux='1.09e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-09 12:06:43.954966', photon_index_error2='0.69', photon_index2='2.50', ts='2.06', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='9.49e-06', EG='0.76', time_epoch_completed='1631214403.96', return_code='0', job_id='385902', GAL2='1.25', EG2='0.76', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='3.62e-08', ts2='2.09', photon_index='2.40' WHERE bin_id='1512' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 385902: <4FGL_J1422.3+3223_daily_bin1512> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1512> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:13 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:51:15 2021
Terminated at Thu Sep  9 12:06:44 2021
Results reported at Thu Sep  9 12:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1512 215.577 32.3911 631238401 631497601 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 :                                   779.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

