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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin270
RA = 215.577, Dec = 32.3911
tmin = 309312001, tmax = 309571201
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='379916', job_status='RUN', time_executed='2021-09-09 11:31:36.377101', time_epoch_executed='1631212296.38' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379916/ft1_4FGL_J1422.3+3223_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379916/ft2_4FGL_J1422.3+3223_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379916/ft1_4FGL_J1422.3+3223_daily_bin270.fits outfile=/scratch/kocevski/379916/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin270.fits ra=215.577 dec=32.3911 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.02
user 3.78
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379916/ft1_filtered_4FGL_J1422.3+3223_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/379916/ft2_4FGL_J1422.3+3223_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/379916/ltcube_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.fits outfile=/scratch/kocevski/379916/expmap_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.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/379916/ltcube_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.fits
.....................!
real 191.05
user 186.16
sys 4.46

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/379916/ft1_filtered_4FGL_J1422.3+3223_daily_bin270.fits scfile=/scratch/kocevski/379916/ft2_4FGL_J1422.3+3223_daily_bin270.fits outfile=/scratch/kocevski/379916/cmap_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379916/ft1_filtered_4FGL_J1422.3+3223_daily_bin270.fits scfile=/scratch/kocevski/379916/ft2_4FGL_J1422.3+3223_daily_bin270.fits outfile=/scratch/kocevski/379916/cmap_HighResolution_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.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.71
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.391       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.635       1.0000         .10000E-03   10000.    
     5 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17948E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96608       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.2168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3682       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.5890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4494       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7013       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0273       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93389       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=   6063.850     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     2620 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.028        .18142E-02** at limit **
   2  Prefactor     51.368        28.763        .55945E-04    .24386E-04
   3  Prefactor     .10001E-03    136.03        .18142E-02** at limit **
   4  Prefactor     31.633        6.8402        .71239E-04   -.10574E-03
   5  norm          .10000E-03    20.768        .18142E-02** at limit **
   6  Prefactor     .10000E-03    11.077        .90648E-01** at limit **
   7  norm          2.4782        3.5902        .17104E-03    .30642E-04
   8  Prefactor     32.524        14.893        .70264E-04    .16665E-04
   9  Prefactor     .10000E-03    17.390        .18142E-02** at limit **
  10  Prefactor     .96613        2.3137        .18922E-02    .31177E-03
  11  norm          .10000E-03    4.6852        .16458E-02** at limit **
  12  norm          8.2169        2.9609        .78025E-04    .44149E-04
  13  Prefactor     4.3539        27.712        .19271E-03   -.63712E-05
  14  norm          8.7700        6.8049        .13532E-03   -.26548E-04
  15  Prefactor     .10000E-03    161.10        .41992E-03** at limit **
  16  norm          1.2899        3.8829        .25365E-03    .34826E-04
  17  Prefactor     .10000E-03    12.440        .18142E-02** at limit **
  18  norm          7.5892        7.2699        .14557E-03   -.33581E-05
  19  Prefactor     7.4511        13.720        .14694E-03    .16015E-04
  20  Prefactor     .10000E-03    7.5953        .18142E-02** at limit **
  21  norm          1.7018        1.4305        .82633E-04    .66864E-04
  22  Normalizat    1.0272        .21449        .24500E-03    .38978E-04
  23  Prefactor     .93393        .21805        .26921E-03    .30532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.3678
  Prefactor  = 0.000100005
  Prefactor  = 31.6335
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47816
  Prefactor  = 32.524
  Prefactor  = 0.0001
  Prefactor  = 0.966129
  norm       = 0.0001
  norm       = 8.21686
  Prefactor  = 4.35386
  norm       = 8.76997
  Prefactor  = 0.0001
  norm       = 1.2899
  Prefactor  = 0.0001
  norm       = 7.5892
  Prefactor  = 7.45108
  Prefactor  = 0.0001
  norm       = 1.70178
  Normalizat = 1.02724
  Prefactor  = 0.933928
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.850     FROM HESSE     STATUS=OK           358 CALLS     2978 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.368        28.762        .11189E-04   -1.4273    
   3  Prefactor     .10001E-03    136.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.633        6.8403        .14248E-04   -1.4582    
   5  norm          .10000E-03    20.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.072        .90695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4782        3.5897        .68415E-05   -1.5393    
   8  Prefactor     32.524        14.892        .28106E-05   -1.4567    
   9  Prefactor     .10000E-03    17.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .96613        2.3098        .75689E-04   -1.5511    
  11  norm          .10000E-03    4.6852        .32917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.2169        2.9608        .31210E-05   -1.5135    
  13  Prefactor     4.3539        27.711        .77085E-05   -1.5291    
  14  norm          8.7700        6.8047        .54129E-05   -1.5116    
  15  Prefactor     .10000E-03    161.11        .83984E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2899        3.8824        .10146E-04   -1.5481    
  17  Prefactor     .10000E-03    12.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.5892        7.2698        .58230E-05   -1.5157    
  19  Prefactor     7.4511        13.719        .58777E-05   -1.5162    
  20  Prefactor     .10000E-03    7.5990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7018        1.4304        .33053E-05   -1.5447    
  22  Normalizat    1.0272        .21461        .98000E-05   -.92123    
  23  Prefactor     .93393        .21826        .10768E-04   -.94965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66257e-11
Minuit parameter uncertainties:
  1  5.02516e-05
  2  28.7698
  3  0.00165975
  4  6.84051
  5  3.93155e-06
  6  9.15569e-05
  7  3.58997
  8  14.8935
  9  6.54012e-05
  10  2.31002
  11  6.27628e-06
  12  2.9609
  13  21.9829
  14  6.80534
  15  3.95325e-06
  16  3.88316
  17  5.02044e-06
  18  7.27068
  19  13.7251
  20  3.12883e-05
  21  1.43042
  22  0.214792
  23  0.218463
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  9.661e-01  2.310e+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:  9.339e-01  2.185e-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.027e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/379916/likelihoodResults_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.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) = 6063.24050549
delta logL = 0.60975511101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6062.89555506
delta logL = 0.954705544651

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 'Index     '    8.7999       1.0000          .0000       10.000    
     3 'Normalizat'    .94795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99375       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=   6062.896     FROM MIGRAD    STATUS=CONVERGED    290 CALLS      612 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28743E-02    .32833E-03** at limit **
   2  Index         8.8000        7.4164        .21591        .12789E-03
   3  Normalizat    .94798        .44321E-01    .45511E-01   -.38285E-03
   4  Prefactor     .99365        .46210E-01    .46189E-01    .29542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.79997
  Normalizat = 0.947976
  Prefactor  = 0.993646
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.896     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      649 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .21978E-01    .15153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8000        8.8414        .90470E-02    .86330    
   3  Normalizat    .94798        .10621        .25356E-03   -2.1937    
   4  Prefactor     .99365        .11082        .26208E-03   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72754e-09
Minuit parameter uncertainties:
  1  1.04511e-07
  2  5.69511
  3  0.106238
  4  0.110846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379916': 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) = 6062.89555339
delta logL = 0.954707219387

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.045e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  8.800e+00  5.695e+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:  9.936e-01  1.108e-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.480e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 215.577 32.391
Photon Index (Free Index): 8.80 +/- 5.70
Photon Flux (Free Index): 6.59e-08 +/- 6.91e-07
Energy Flux (Free Index): 7.51e-06 +/- 7.85e-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/379916/cmap_HighResolution_309312001_309571201_4FGL_J1422.3+3223_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', comment='SUCCESS', energy_flux2='7.51e-06', dlogl='9.55e-01', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-09 11:42:58.880652', photon_index_error2='5.70', photon_index2='8.80', ts='0.24', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.13e-08', energy_flux_error2='7.85e-05', EG='1.03', time_epoch_completed='1631212978.88', return_code='0', job_id='379916', GAL2='0.99', EG2='0.95', return_code2='102', photon_flux_error2='6.91e-07', ts2='2.31', photon_index='2.40' WHERE bin_id='270' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:42:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 379916: <4FGL_J1422.3+3223_daily_bin270> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin270> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:22 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:31:23 2021
Terminated at Thu Sep  9 11:42:59 2021
Results reported at Thu Sep  9 11:42:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin270 215.577 32.3911 309312001 309571201 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 :                                   672.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            697 sec.

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

