/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7427
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin636
RA = 215.577, Dec = 32.3911
tmin = 404179201, tmax = 404438401
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='381462', job_status='RUN', time_executed='2021-09-09 11:36:43.921464', time_epoch_executed='1631212603.92' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381462/ft1_4FGL_J1422.3+3223_daily_bin636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381462/ft1_4FGL_J1422.3+3223_daily_bin636.fits outfile=/scratch/kocevski/381462/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin636.fits ra=215.577 dec=32.3911 rad=12.0 tmin=404179201.0 tmax=404438401.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.64
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.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/381462/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin636.fits evtable="EVENTS" outfile="/scratch/kocevski/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/381462/ltcube_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.fits outfile=/scratch/kocevski/381462/expmap_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.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/381462/ltcube_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.fits
.....................!
real 192.75
user 188.39
sys 3.95

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/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits scfile=/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.fits outfile=/scratch/kocevski/381462/cmap_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.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/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits scfile=/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.fits outfile=/scratch/kocevski/381462/cmap_HighResolution_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.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/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/381462/ft2_4FGL_J1422.3+3223_daily_bin636.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381462/Model_4FGL_J1422.3+3223_daily_bin636.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/381462/ft1_filtered_4FGL_J1422.3+3223_daily_bin636.fits.....................!
real 48.87
user 47.56
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    126.48       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1809       1.0000         .10000E-03   10000.    
     5 'norm      '    12.078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0639       1.0000         .10000E-03   10000.    
    11 'norm      '    10.696       1.0000         .10000E-03   10000.    
    12 'norm      '    14.771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5773       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0479       1.0000         .10000E-03   10000.    
    21 'norm      '    .79981       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0198       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=   6208.548     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2513 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10224E-03    17.638        .44090E-05** at limit **
   2  Prefactor     .10000E-03    10.361       -.16701E-06** at limit **
   3  Prefactor     126.58        85.186        .67627E-04   -.36002E-04
   4  Prefactor     4.1814        3.6937        .10323E-06   -.71337E-03
   5  norm          12.072        14.219        .73000E-06   -.10080E-03
   6  Prefactor     .10000E-03    4.3141       -.17444E-05** at limit **
   7  norm          4.8319        3.9756       -.65370E-06   -.29877E-03
   8  Prefactor     .10000E-03    3.7676       -.72512E-07** at limit **
   9  Prefactor     .10000E-03    4.4124        .87796E-06** at limit **
  10  Prefactor     3.0642        4.1787        .42774E-06   -.63689E-03
  11  norm          10.701        10.357        .22124E-05    .48893E-05
  12  norm          14.769        4.2167        .34819E-06   -.46098E-04
  13  Prefactor     .10000E-03    7.8254        .94892E-07** at limit **
  14  norm          4.1161        4.4044        .26329E-06   -.12867E-03
  15  Prefactor     .10000E-03    13.745        .46679E-07** at limit **
  16  norm          5.5755        4.4644        .34935E-06   -.10131E-03
  17  Prefactor     .10000E-03    29.750       -.45742E-06** at limit **
  18  norm          .10000E-03    3.0019       -.77083E-08** at limit **
  19  Prefactor     .10000E-03    4.1486        .93483E-06** at limit **
  20  Prefactor     4.0453        7.0764        .37173E-06   -.31442E-03
  21  norm          .79880        1.7194        .38021E-06   -.10454E-02
  22  Normalizat    1.0231        .18951       -.98053E-05   -.59642E-04
  23  Prefactor     1.0203        .19061        .39539E-05   -.63325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102236
  Prefactor  = 0.0001
  Prefactor  = 126.577
  Prefactor  = 4.18143
  norm       = 12.0722
  Prefactor  = 0.0001
  norm       = 4.83188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0642
  norm       = 10.7007
  norm       = 14.7692
  Prefactor  = 0.0001
  norm       = 4.11607
  Prefactor  = 0.0001
  norm       = 5.57549
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04529
  norm       = 0.798805
  Normalizat = 1.02306
  Prefactor  = 1.0203
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.548     FROM HESSE     STATUS=OK           380 CALLS     2893 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10224E-03    25.326        .92038E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     126.58        85.091        .17897E-03   -1.3453    
   4  Prefactor     4.1814        3.6935        .13571E-03   -1.5299    
   5  norm          12.072        14.232        .11526E-03   -1.5013    
   6  Prefactor     .10000E-03    4.3160        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8319        3.9695        .13677E-03   -1.5268    
   8  Prefactor     .10000E-03    3.7785        .14935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4225        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0642        4.1785        .17565E-03   -1.5358    
  11  norm          10.701        10.358        .12250E-03   -1.5054    
  12  norm          14.769        4.2194        .82996E-04   -1.4939    
  13  Prefactor     .10000E-03    7.8366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1161        4.4007        .16554E-03   -1.5302    
  15  Prefactor     .10000E-03    13.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5755        4.4699        .14319E-03   -1.5236    
  17  Prefactor     .10000E-03    30.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0048        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1546        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0453        6.8839        .20042E-03   -1.5306    
  21  norm          .79880        1.6547        .13001E-03   -1.5529    
  22  Normalizat    1.0231        .22101        .24574E-03   -.92262    
  23  Prefactor     1.0203        .22287        .26089E-03   -.92056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88402e-09
Minuit parameter uncertainties:
  1  0.0150579
  2  8.6534e-06
  3  85.173
  4  3.69371
  5  14.2356
  6  3.44291e-06
  7  3.9697
  8  2.35992e-06
  9  4.0205e-06
  10  4.1789
  11  10.3594
  12  4.21949
  13  2.00287e-05
  14  4.40104
  15  1.86061e-05
  16  4.47016
  17  0.000205083
  18  3.48712e-06
  19  1.44801e-05
  20  6.88528
  21  1.65483
  22  0.221209
  23  0.223067
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.064e+00  4.179e+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.020e+00  2.231e-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.023e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/381462/likelihoodResults_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.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) = 6208.18025015
delta logL = 0.367282621993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6208.17845895
delta logL = 0.369073822209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6198       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2790       1.0000          .0000       10.000    
     3 'Normalizat'    .98681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       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=   6208.178     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6203        33.543        .83140E-02    .86615E-03
   2  Index         3.2791        3.8881        .14208        .13142E-03
   3  Normalizat    .98687        .50516E-01    .46001E-01   -.18899E-04
   4  Prefactor     1.0459        .53438E-01    .58390E-01   -.24062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62029
  Index      = 3.27912
  Normalizat = 0.986871
  Prefactor  = 1.04589
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.178     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6203        4.6639        .88937E-04   -1.5453    
   2  Index         3.2791        1.7303        .74851E-02   -.35136    
   3  Normalizat    .98687        .21110        .24969E-03   -.93472    
   4  Prefactor     1.0459        .22000        .25820E-03   -.91215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78681e-11
Minuit parameter uncertainties:
  1  4.66494
  2  1.77207
  3  0.211276
  4  0.22019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381462': 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) = 6208.17845795
delta logL = 0.369074816726

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.620e+00  4.665e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.279e+00  1.772e+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.046e+00  2.202e-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:  9.869e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 215.577 32.391
Photon Index (Free Index): 3.28 +/- 1.77
Photon Flux (Free Index): 5.27e-08 +/- 5.03e-08
Energy Flux (Free Index): 9.38e-06 +/- 1.02e-05

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/381462/cmap_HighResolution_404179201_404438401_4FGL_J1422.3+3223_daily_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', energy_flux2='9.38e-06', dlogl='3.69e-01', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-09-09 11:47:28.518793', photon_index_error2='1.77', photon_index2='3.28', ts='0.67', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.02e-05', EG='1.02', time_epoch_completed='1631213248.52', return_code='0', job_id='381462', GAL2='1.05', EG2='0.99', return_code2='0', photon_flux_error2='5.03e-08', ts2='1.47', photon_index='2.40' WHERE bin_id='636' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 381462: <4FGL_J1422.3+3223_daily_bin636> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin636 215.577 32.3911 404179201 404438401 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 :                                   637.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            666 sec.

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

