/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 214 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin31
RA = 215.577, Dec = 32.3911
tmin = 247363201, tmax = 247622401
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='378624', job_status='RUN', time_executed='2021-09-09 11:30:01.243769', time_epoch_executed='1631212201.24' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378624/ft1_4FGL_J1422.3+3223_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378624/ft2_4FGL_J1422.3+3223_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378624/ft1_4FGL_J1422.3+3223_daily_bin31.fits outfile=/scratch/kocevski/378624/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin31.fits ra=215.577 dec=32.3911 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.45
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378624/ft1_filtered_4FGL_J1422.3+3223_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/378624/ft2_4FGL_J1422.3+3223_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/378624/ltcube_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.fits outfile=/scratch/kocevski/378624/expmap_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.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/378624/ltcube_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.fits
.....................!
real 191.06
user 185.19
sys 5.51

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/378624/ft1_filtered_4FGL_J1422.3+3223_daily_bin31.fits scfile=/scratch/kocevski/378624/ft2_4FGL_J1422.3+3223_daily_bin31.fits outfile=/scratch/kocevski/378624/cmap_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378624/ft1_filtered_4FGL_J1422.3+3223_daily_bin31.fits scfile=/scratch/kocevski/378624/ft2_4FGL_J1422.3+3223_daily_bin31.fits outfile=/scratch/kocevski/378624/cmap_HighResolution_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.274       1.0000         .10000E-03   10000.    
     5 'norm      '    22.147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11742E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.416       1.0000         .10000E-03   10000.    
    16 'norm      '    .17607E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4211       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0054       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94013       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=   7528.437     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2172 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.140        13.731       -.33639E-06   -.24573E-04
   2  Prefactor     .10000E-03    12.287       -.20852E-05** at limit **
   3  Prefactor     .10000E-03    29.331        .21392E-04** at limit **
   4  Prefactor     10.273        4.6771       -.13083E-06   -.21015E-03
   5  norm          22.145        15.169       -.60442E-06   -.74242E-04
   6  Prefactor     .10000E-03    5.3184        .35610E-05** at limit **
   7  norm          5.2434        4.2495        .11663E-05   -.35079E-03
   8  Prefactor     .10000E-03    7.8977        .31455E-05** at limit **
   9  Prefactor     19.566        14.387       -.22768E-06   -.99753E-04
  10  Prefactor     .10000E-03    1.0933       -.39763E-07** at limit **
  11  norm          .10000E-03    6.5972       -.30416E-05** at limit **
  12  norm          4.7326        2.3065       -.29276E-06   -.24892E-02
  13  Prefactor     .10000E-03    10.992        .29791E-05** at limit **
  14  norm          .10000E-03    7.2971        .12618E-05** at limit **
  15  Prefactor     13.414        26.087       -.24420E-05   -.92977E-05
  16  norm          .10001E-03    1.6747       -.57037E-06** at limit **
  17  Prefactor     .10000E-03    13.750       -.43115E-05** at limit **
  18  norm          .10000E-03    4.9290       -.19195E-05** at limit **
  19  Prefactor     .10000E-03    34.823       -.20363E-04** at limit **
  20  Prefactor     .10000E-03    2.3013        .67223E-08** at limit **
  21  norm          4.4211        1.7507        .57812E-07    .59566E-03
  22  Normalizat    1.0055        .15754        .56391E-07    .31089E-03
  23  Prefactor     .94008        .16034        .40387E-06    .26084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2729
  norm       = 22.1449
  Prefactor  = 0.0001
  norm       = 5.2434
  Prefactor  = 0.0001
  Prefactor  = 19.5664
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.73265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4135
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.4211
  Normalizat = 1.00548
  Prefactor  = 0.940084
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.437     FROM HESSE     STATUS=OK           366 CALLS     2538 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.140        13.730        .12003E-03   -1.5040    
   2  Prefactor     .10000E-03    12.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.273        4.6932        .11938E-03   -1.5067    
   5  norm          22.145        15.189        .85113E-04   -1.4766    
   6  Prefactor     .10000E-03    5.3175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2434        4.2230        .15231E-03   -1.5250    
   8  Prefactor     .10000E-03    7.9094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.566        14.442        .90538E-04   -1.4823    
  10  Prefactor     .10000E-03    1.1090        .88556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7326        2.3395        .44759E-03   -1.5273    
  13  Prefactor     .10000E-03    11.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.6273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.414        26.092        .10936E-03   -1.4975    
  16  norm          .10001E-03    6.9465        .21563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3052        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4211        1.7515        .69467E-04   -1.5287    
  22  Normalizat    1.0055        .18735        .23698E-03   -.92847    
  23  Prefactor     .94008        .18893        .25419E-03   -.94754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1463e-09
Minuit parameter uncertainties:
  1  13.7337
  2  3.66127e-06
  3  1.05439e-05
  4  4.69338
  5  15.1918
  6  3.09577e-06
  7  4.22323
  8  1.6013e-05
  9  14.4443
  10  2.88411e-06
  11  1.11999e-05
  12  2.33958
  13  6.24265e-07
  14  8.25238e-06
  15  26.1146
  16  0.00046738
  17  7.21944e-06
  18  7.30273e-06
  19  0.000303306
  20  1.92695e-06
  21  1.7515
  22  0.187474
  23  0.18906
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.884e-06  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.401e-01  1.891e-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.005e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378624/likelihoodResults_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.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): 102
logL (Free Index) = 7528.44096727
delta logL = -0.00428140672375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7528.43668575
delta logL = 1.10836481326e-07

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     '    2.3931       1.0000          .0000       10.000    
     3 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94008       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7528.437     FROM MIGRAD    STATUS=FAILED        86 CALLS      235 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    48.862        .88788E-03** at limit **
   2  Index         2.3401        7.7644        .50000        .46474E-04
   3  Normalizat    1.0055        .25841E-01    .23698E-03   -.82994E-05
   4  Prefactor     .94008        .27033E-01    .25419E-03   -.56802E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7528.437     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      369 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    48.862        .12945E-03** at limit **
   2  Index         2.3390        7.7644        .35703E-03    .46474E-04
   3  Normalizat    1.0055        .25841E-01    .35523E-05   -.82994E-05
   4  Prefactor     .94008        .27033E-01    .42323E-05   -.56802E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7528.437     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      414 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    237.86        .17758E-03** at limit **
   2  Index         2.1557        8.4592        .50000       -.85720E-07
   3  Normalizat    1.0055        .90118E-01    .94792E-05   -.71001E-04
   4  Prefactor     .94008        .94188E-01    .10167E-04   -.68431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15571
  Normalizat = 1.00548
  Prefactor  = 0.940084
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.437     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2554        .35515E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1557        8.7065        .50000       -.60512    
   3  Normalizat    1.0055        .17708        .18958E-05   -.92847    
   4  Prefactor     .94008        .18523        .20335E-05   -.94754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81421e-11
Minuit parameter uncertainties:
  1  9.93987e-06
  2  66.8444
  3  0.177187
  4  0.185357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378624': 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) = 7528.43668408
delta logL = 1.78126538231e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.940e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.156e+00  6.684e+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:  9.401e-01  1.854e-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.005e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.577 32.391

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/378624/cmap_HighResolution_247363201_247622401_4FGL_J1422.3+3223_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-09 11:41:01.191596', job_id='378624', GAL2='0.94', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631212861.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='31' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:41:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 378624: <4FGL_J1422.3+3223_daily_bin31> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin31 215.577 32.3911 247363201 247622401 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 :                                   658.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

