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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin116
RA = 215.577, Dec = 32.3911
tmin = 269395201, tmax = 269654401
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='379689', job_status='RUN', time_executed='2021-09-09 11:31:17.891726', time_epoch_executed='1631212277.89' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379689/ft1_4FGL_J1422.3+3223_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379689/ft2_4FGL_J1422.3+3223_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379689/ft1_4FGL_J1422.3+3223_daily_bin116.fits outfile=/scratch/kocevski/379689/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin116.fits ra=215.577 dec=32.3911 rad=12.0 tmin=269395201.0 tmax=269654401.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.83
user 1.60
sys 0.17

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379689/ft1_filtered_4FGL_J1422.3+3223_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/379689/ft2_4FGL_J1422.3+3223_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/379689/ltcube_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.fits outfile=/scratch/kocevski/379689/expmap_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.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/379689/ltcube_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.fits
.....................!
real 191.56
user 186.01
sys 5.12

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/379689/ft1_filtered_4FGL_J1422.3+3223_daily_bin116.fits scfile=/scratch/kocevski/379689/ft2_4FGL_J1422.3+3223_daily_bin116.fits outfile=/scratch/kocevski/379689/cmap_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379689/ft1_filtered_4FGL_J1422.3+3223_daily_bin116.fits scfile=/scratch/kocevski/379689/ft2_4FGL_J1422.3+3223_daily_bin116.fits outfile=/scratch/kocevski/379689/cmap_HighResolution_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    32.994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.381       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2414       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1723       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1589       1.0000         .10000E-03   10000.    
    12 'norm      '    13.923       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.621       1.0000         .10000E-03   10000.    
    14 'norm      '    45.975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0824       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0590       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=   8812.279     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2503 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3166        .83634E-08** at limit **
   2  Prefactor     32.996        22.767        .47513E-07   -.18151E-04
   3  Prefactor     .10000E-03    127.03       -.32036E-07** at limit **
   4  Prefactor     .10000E-03    1.5025        .13476E-07** at limit **
   5  norm          2.0100        16.882        .15600E-05    .16562E-04
   6  Prefactor     10.379        15.277       -.20251E-06   -.43044E-04
   7  norm          1.2430        3.6091        .12115E-05   -.23418E-03
   8  Prefactor     .10000E-03    12.771       -.96987E-06** at limit **
   9  Prefactor     3.1727        20.133       -.75687E-06   -.12888E-03
  10  Prefactor     .10000E-03    1.9312       -.24226E-07** at limit **
  11  norm          1.1441        20.178        .23977E-05   -.89558E-04
  12  norm          13.923        3.4388       -.31469E-07   -.72054E-03
  13  Prefactor     18.620        19.580        .72691E-07    .34565E-05
  14  norm          45.976        9.5157       -.26587E-07    .11382E-03
  15  Prefactor     .10000E-03    21.233        .27133E-07** at limit **
  16  norm          4.3023        4.3144        .50158E-06    .45509E-03
  17  Prefactor     19.664        28.692        .15132E-06   -.12032E-04
  18  norm          8.3399        6.8048       -.16324E-07   -.44458E-04
  19  Prefactor     .10000E-03    2.8599        .14206E-08** at limit **
  20  Prefactor     .10000E-03    1.5464       -.18405E-07** at limit **
  21  norm          1.0825        1.4958        .30524E-06   -.19816E-03
  22  Normalizat    1.0417        .15849        .47234E-07   -.10964E-03
  23  Prefactor     1.0590        .16224       -.71960E-06   -.31969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.9959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00998
  Prefactor  = 10.3791
  norm       = 1.24298
  Prefactor  = 0.0001
  Prefactor  = 3.17275
  Prefactor  = 0.0001
  norm       = 1.14409
  norm       = 13.9232
  Prefactor  = 18.6197
  norm       = 45.9765
  Prefactor  = 0.0001
  norm       = 4.30231
  Prefactor  = 19.6637
  norm       = 8.33992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08246
  Normalizat = 1.04169
  Prefactor  = 1.05903
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.279     FROM HESSE     STATUS=OK           372 CALLS     2875 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.996        22.800        .69760E-04   -1.4558    
   3  Prefactor     .10000E-03    128.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5180        .11231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0100        16.982        .29162E-03   -1.5424    
   6  Prefactor     10.379        15.205        .12436E-03   -1.5064    
   7  norm          1.2430        3.5871        .28546E-03   -1.5485    
   8  Prefactor     .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1727        20.072        .22754E-03   -1.5352    
  10  Prefactor     .10000E-03    1.9689        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1441        19.754        .42832E-03   -1.5494    
  12  norm          13.923        3.4786        .83819E-04   -1.4962    
  13  Prefactor     18.620        19.571        .92815E-04   -1.4845    
  14  norm          45.976        9.5425        .59132E-04   -1.4351    
  15  Prefactor     .10000E-03    21.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3023        4.4073        .18954E-03   -1.5293    
  17  Prefactor     19.664        28.728        .90320E-04   -1.4821    
  18  norm          8.3399        6.8086        .13882E-03   -1.5130    
  19  Prefactor     .10000E-03    2.8626        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5480        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0825        1.4837        .12918E-03   -1.5500    
  22  Normalizat    1.0417        .18501        .25760E-03   -.91647    
  23  Prefactor     1.0590        .18885        .26854E-03   -.90787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48597e-10
Minuit parameter uncertainties:
  1  2.48213e-06
  2  22.806
  3  0.000129727
  4  1.12399e-06
  5  11.689
  6  15.211
  7  3.58767
  8  1.9103e-05
  9  15.9678
  10  1.43305e-06
  11  9.51112
  12  3.47863
  13  19.5777
  14  9.54283
  15  1.47427e-05
  16  4.40759
  17  28.7487
  18  6.80921
  19  5.41301e-08
  20  1.07131e-06
  21  1.4838
  22  0.185127
  23  0.188965
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.433e-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:  1.059e+00  1.890e-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.042e+00  1.851e-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: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379689/likelihoodResults_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.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) = 8812.28141104
delta logL = -0.00241927489333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8812.2789913
delta logL = 4.64058757643e-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.4257       1.0000          .0000       10.000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0591       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=   8812.279     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.1346        .26068E-03** at limit **
   2  Index         2.4515        6.2252        .50000       -.11211E-03
   3  Normalizat    1.0417        .17207        .25760E-03   -.12640E-03
   4  Prefactor     1.0590        .18144        .26854E-03    .28364E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8812.279     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      366 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2.1346        .15166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4515        6.2252        .19012E-02   -.53484    
   3  Normalizat    1.0417        .17207        .92375E-04   -.91647    
   4  Prefactor     1.0590        .18144        .47422E-04   -.90787    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8812.179     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      525 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61551E-01    3.4425        .52135E-03   -.16756E-02
   2  Index         4.6839        3.1248        .28897        .66392E-04
   3  Normalizat    1.0145        .28003E-01    .10304E-04   -.29127E-04
   4  Prefactor     1.0761        .29365E-01    .10742E-04   -.77896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0615512
  Index      = 4.68395
  Normalizat = 1.01455
  Prefactor  = 1.07612
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.179     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      554 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61551E-01    14.921        .20854E-04   -1.5758    
   2  Index         4.6839        5.8630        .89945E-02   -.63253E-01
   3  Normalizat    1.0145        .15942        .20608E-05   -.92545    
   4  Prefactor     1.0761        .16195        .21483E-05   -.90234    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.08622e-10
Minuit parameter uncertainties:
  1  1.91558
  2  16.7873
  3  0.159495
  4  0.162021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379689': 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) = 8812.17871855
delta logL = 0.100273214863

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.155e-02  1.916e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  4.684e+00  1.679e+01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.076e+00  1.620e-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.015e+00  1.595e-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/379689/cmap_HighResolution_269395201_269654401_4FGL_J1422.3+3223_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-09 11:44:31.844811', job_id='379689', GAL2='1.08', fit_tolerance='1e-08', EG2='1.01', EG='1.04', time_epoch_completed='1631213071.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.00e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='116' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 379689: <4FGL_J1422.3+3223_daily_bin116> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin116> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:06 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:07 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:07 2021
Terminated at Thu Sep  9 11:44:32 2021
Results reported at Thu Sep  9 11:44:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin116 215.577 32.3911 269395201 269654401 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 :                                   792.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

