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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin910
RA = 215.577, Dec = 32.3911
tmin = 475200001, tmax = 475459201
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='382863', job_status='RUN', time_executed='2021-09-09 11:41:27.119373', time_epoch_executed='1631212887.12' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382863/ft1_4FGL_J1422.3+3223_daily_bin910.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382863/ft2_4FGL_J1422.3+3223_daily_bin910.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382863/ft1_4FGL_J1422.3+3223_daily_bin910.fits outfile=/scratch/kocevski/382863/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin910.fits ra=215.577 dec=32.3911 rad=12.0 tmin=475200001.0 tmax=475459201.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.51
user 3.30
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382863/ft1_filtered_4FGL_J1422.3+3223_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/382863/ft2_4FGL_J1422.3+3223_daily_bin910.fits sctable="SC_DATA" expcube=/scratch/kocevski/382863/ltcube_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.fits outfile=/scratch/kocevski/382863/expmap_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.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/382863/ltcube_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.fits
.....................!
real 190.70
user 184.11
sys 6.25

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/382863/ft1_filtered_4FGL_J1422.3+3223_daily_bin910.fits scfile=/scratch/kocevski/382863/ft2_4FGL_J1422.3+3223_daily_bin910.fits outfile=/scratch/kocevski/382863/cmap_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382863/ft1_filtered_4FGL_J1422.3+3223_daily_bin910.fits scfile=/scratch/kocevski/382863/ft2_4FGL_J1422.3+3223_daily_bin910.fits outfile=/scratch/kocevski/382863/cmap_HighResolution_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.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/382863/ft1_filtered_4FGL_J1422.3+3223_daily_bin910.fits evtable="EVENTS" scfile=/scratch/kocevski/382863/ft2_4FGL_J1422.3+3223_daily_bin910.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382863/Model_4FGL_J1422.3+3223_daily_bin910.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/382863/ft1_filtered_4FGL_J1422.3+3223_daily_bin910.fits....................!
real 52.84
user 51.51
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2062       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.131       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6112       1.0000         .10000E-03   10000.    
    11 'norm      '    .92269       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    37.911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2177       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74500       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7081.867     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2149 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.655         .0000    ** at limit **
   2  Prefactor     .10004E-03    17.300         .0000    ** at limit **
   3  Prefactor     .10012E-03    21.429         .0000    ** at limit **
   4  Prefactor     7.2068        4.3022         .0000        .12169E-02
   5  norm          .10003E-03    16.813         .0000    ** at limit **
   6  Prefactor     13.132        11.135         .0000        .76890E-05
   7  norm          3.4171        2.9850         .0000        .10748E-03
   8  Prefactor     7.5550        7.5005         .0000       -.93610E-04
   9  Prefactor     .10000E-03    3.3211         .0000    ** at limit **
  10  Prefactor     2.6111        3.4946         .0000        .71575E-03
  11  norm          .92202        18.120         .0000        .21526E-01
  12  norm          5.7462        2.7176         .0000        .55101E-04
  13  Prefactor     .10000E-03    9.9878         .0000    ** at limit **
  14  norm          12.876        5.6912         .0000       -.13599E-02
  15  Prefactor     .10004E-03    14.929         .0000    ** at limit **
  16  norm          37.911        7.9062         .0000        .50258E-04
  17  Prefactor     .10001E-03    35.147         .0000    ** at limit **
  18  norm          3.0979        5.3002         .0000        .52638E-02
  19  Prefactor     9.7153        10.581         .0000        .99178E-03
  20  Prefactor     .10000E-03    4.8547         .0000    ** at limit **
  21  norm          6.2178        1.9664         .0000        .45585E-04
  22  Normalizat    1.2098        .16207         .0000       -.87852E-05
  23  Prefactor     .74505        .16694         .0000        .13977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100124
  Prefactor  = 7.20679
  norm       = 0.000100032
  Prefactor  = 13.1319
  norm       = 3.41714
  Prefactor  = 7.55504
  Prefactor  = 0.0001
  Prefactor  = 2.61114
  norm       = 0.922018
  norm       = 5.74621
  Prefactor  = 0.0001
  norm       = 12.8764
  Prefactor  = 0.000100041
  norm       = 37.9108
  Prefactor  = 0.00010001
  norm       = 3.09795
  Prefactor  = 9.71531
  Prefactor  = 0.0001
  norm       = 6.2178
  Normalizat = 1.20983
  Prefactor  = 0.745048
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.867     FROM HESSE     STATUS=OK           370 CALLS     2519 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    17.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10012E-03    21.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2068        4.3215        .12819E-03   -1.5171    
   5  norm          .10003E-03    17.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.132        11.134        .11054E-03   -1.4983    
   7  norm          3.4171        2.9795        .13074E-03   -1.5338    
   8  Prefactor     7.5550        7.4441        .14591E-03   -1.5158    
   9  Prefactor     .10000E-03    3.3237        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6111        3.4895        .17220E-03   -1.5385    
  11  norm          .92202        18.293        .25779E-02   -1.5516    
  12  norm          5.7462        2.7182        .92210E-04   -1.5228    
  13  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.876        5.6955        .11163E-03   -1.4990    
  15  Prefactor     .10004E-03    14.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          37.911        7.9074        .65094E-04   -1.4476    
  17  Prefactor     .10001E-03    35.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0979        5.2850        .11520E-02   -1.5356    
  19  Prefactor     9.7153        10.578        .64282E-03   -1.5084    
  20  Prefactor     .10000E-03    4.9067        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2178        1.9660        .63706E-04   -1.5209    
  22  Normalizat    1.2098        .19180        .22988E-03   -.86300    
  23  Prefactor     .74505        .19610        .29988E-03   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40506e-08
Minuit parameter uncertainties:
  1  0.00088734
  2  0.00156884
  3  0.00326135
  4  4.32172
  5  0.00148922
  6  11.1357
  7  2.97962
  8  7.44501
  9  1.3848e-06
  10  3.4898
  11  8.21611
  12  2.71823
  13  4.81559e-05
  14  5.69578
  15  0.00155735
  16  7.90758
  17  0.00116242
  18  5.2858
  19  10.5797
  20  5.50447e-06
  21  1.96606
  22  0.191911
  23  0.19628
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.611e+00  3.490e+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:  7.450e-01  1.963e-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.210e+00  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382863/likelihoodResults_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.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) = 7081.3503371
delta logL = 0.51666018678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7081.32394293
delta logL = 0.543054359845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47797       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1478       1.0000          .0000       10.000    
     3 'Normalizat'    1.1478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79059       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=   7081.324     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47620        5.4105        .99896E-02    .11597E-02
   2  Index         4.1499        3.0409        .12460        .13784E-03
   3  Normalizat    1.1479        .37638E-01    .53167E-01   -.42827E-04
   4  Prefactor     .79056        .39601E-01    .66002E-01   -.91236E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.476198
  Index      = 4.14988
  Normalizat = 1.14791
  Prefactor  = 0.790563
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.324     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      300 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47620        14.353        .45337E-03   -1.5570    
   2  Index         4.1499        7.0728        .64799E-02   -.17085    
   3  Normalizat    1.1479        .15127        .23508E-03   -.88228    
   4  Prefactor     .79056        .15554        .29198E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61986e-07
Minuit parameter uncertainties:
  1  5.2295
  2  6.69509
  3  0.151329
  4  0.155622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382863': 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) = 7081.32394194
delta logL = 0.543055347332

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.762e-01  5.229e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.150e+00  6.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:  7.906e-01  1.556e-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.148e+00  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 215.577 32.391
Photon Index (Free Index): 4.15 +/- 6.70
Photon Flux (Free Index): 6.49e-08 +/- 5.70e-08
Energy Flux (Free Index): 9.49e-06 +/- 9.20e-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/382863/cmap_HighResolution_475200001_475459201_4FGL_J1422.3+3223_daily_bin910.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='9.49e-06', dlogl='5.43e-01', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-09 11:52:13.391881', photon_index_error2='6.70', photon_index2='4.15', ts='0.71', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='9.20e-06', EG='1.21', time_epoch_completed='1631213533.39', return_code='0', job_id='382863', GAL2='0.79', EG2='1.15', return_code2='102', photon_flux_error2='5.70e-08', ts2='1.92', photon_index='2.40' WHERE bin_id='910' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 382863: <4FGL_J1422.3+3223_daily_bin910> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin910 215.577 32.3911 475200001 475459201 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 :                                   642.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             363.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            658 sec.

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

