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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1515
RA = 215.577, Dec = 32.3911
tmin = 632016001, tmax = 632275201
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='385907', job_status='RUN', time_executed='2021-09-09 11:54:33.892056', time_epoch_executed='1631213673.89' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385907/ft1_4FGL_J1422.3+3223_daily_bin1515.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385907/ft2_4FGL_J1422.3+3223_daily_bin1515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385907/ft1_4FGL_J1422.3+3223_daily_bin1515.fits outfile=/scratch/kocevski/385907/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1515.fits ra=215.577 dec=32.3911 rad=12.0 tmin=632016001.0 tmax=632275201.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.73
user 4.47
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385907/ft1_filtered_4FGL_J1422.3+3223_daily_bin1515.fits evtable="EVENTS" scfile=/scratch/kocevski/385907/ft2_4FGL_J1422.3+3223_daily_bin1515.fits sctable="SC_DATA" expcube=/scratch/kocevski/385907/ltcube_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.fits outfile=/scratch/kocevski/385907/expmap_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.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/385907/ltcube_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.fits
.....................!
real 191.43
user 185.33
sys 5.69

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/385907/ft1_filtered_4FGL_J1422.3+3223_daily_bin1515.fits scfile=/scratch/kocevski/385907/ft2_4FGL_J1422.3+3223_daily_bin1515.fits outfile=/scratch/kocevski/385907/cmap_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385907/ft1_filtered_4FGL_J1422.3+3223_daily_bin1515.fits scfile=/scratch/kocevski/385907/ft2_4FGL_J1422.3+3223_daily_bin1515.fits outfile=/scratch/kocevski/385907/cmap_HighResolution_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.53       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0484       1.0000         .10000E-03   10000.    
     5 'norm      '    31.073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55374E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.695       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70730E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49717       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0237       1.0000         .10000E-03   10000.    
    21 'norm      '    .34264       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58624       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.7184       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=   7060.081     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2573 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3825        .79130E-06** at limit **
   2  Prefactor     10.048        21.776       -.79026E-07   -.54463E-05
   3  Prefactor     100.57        79.105        .17149E-05    .20586E-04
   4  Prefactor     3.0528        5.7410       -.11849E-05   -.13748E-03
   5  norm          31.079        18.746       -.89948E-07    .32592E-04
   6  Prefactor     .10000E-03    8.5835       -.85911E-06** at limit **
   7  norm          7.5035        4.3497       -.57328E-06   -.31959E-03
   8  Prefactor     .10000E-03    5.1544        .13117E-07** at limit **
   9  Prefactor     5.6480        10.492       -.13042E-06    .37212E-04
  10  Prefactor     .55858E-01    1.5176        .50359E-06    .11015E-04
  11  norm          .10000E-03    3.7242        .10228E-07** at limit **
  12  norm          3.8799        2.1575       -.21267E-07   -.22471E-04
  13  Prefactor     22.691        22.061        .39560E-07    .68847E-04
  14  norm          1.3221        3.5217       -.38504E-06   -.48580E-04
  15  Prefactor     .10000E-03    127.65       -.41439E-05** at limit **
  16  norm          .10000E-03    2.7343        .11550E-06** at limit **
  17  Prefactor     .10000E-03    58.290        .48784E-06** at limit **
  18  norm          .10000E-03    2.5433       -.22253E-07** at limit **
  19  Prefactor     .54391        70.217       -.97858E-05    .47887E-04
  20  Prefactor     1.0223        8.1651        .11047E-05    .28703E-03
  21  norm          .34287        1.4841       -.78186E-06    .83922E-03
  22  Normalizat    .58591        .19589        .31739E-05    .24420E-03
  23  Prefactor     1.7185        .19432       -.77525E-06    .43997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.0481
  Prefactor  = 100.566
  Prefactor  = 3.0528
  norm       = 31.0787
  Prefactor  = 0.0001
  norm       = 7.50353
  Prefactor  = 0.0001
  Prefactor  = 5.64798
  Prefactor  = 0.0558585
  norm       = 0.0001
  norm       = 3.87994
  Prefactor  = 22.6906
  norm       = 1.32209
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.543909
  Prefactor  = 1.02234
  norm       = 0.342871
  Normalizat = 0.58591
  Prefactor  = 1.71849
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.081     FROM HESSE     STATUS=OK           380 CALLS     2953 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.048        21.753        .12644E-03   -1.5074    
   3  Prefactor     100.57        79.169        .20048E-03   -1.3699    
   4  Prefactor     3.0528        5.7697        .23237E-03   -1.5359    
   5  norm          31.079        18.738        .71879E-04   -1.4592    
   6  Prefactor     .10000E-03    8.6031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5035        4.3652        .64390E-03   -1.5160    
   8  Prefactor     .10000E-03    5.1557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6480        10.462        .16906E-03   -1.5233    
  10  Prefactor     .55858E-01    13.933        .18599E-02   -1.5661    
  11  norm          .10000E-03    3.7247        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8799        2.1595        .89389E-04   -1.5314    
  13  Prefactor     22.691        22.075        .84080E-04   -1.4755    
  14  norm          1.3221        3.4701        .24899E-03   -1.5478    
  15  Prefactor     .10000E-03    129.65        .41948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7666        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5446        .13086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54391        72.208        .44542E-02   -1.5560    
  20  Prefactor     1.0223        8.2131        .42183E-03   -1.5506    
  21  norm          .34287        1.9347        .15675E-02   -1.5591    
  22  Normalizat    .58591        .21875        .33342E-03   -1.0859    
  23  Prefactor     1.7185        .22347        .22778E-03   -.71591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01952e-09
Minuit parameter uncertainties:
  1  3.84666e-06
  2  21.7704
  3  79.2522
  4  5.7708
  5  18.7419
  6  1.38673e-05
  7  4.3654
  8  2.59325e-08
  9  10.4655
  10  1.76321
  11  9.15601e-07
  12  2.1595
  13  22.0829
  14  3.47061
  15  0.00061352
  16  1.21401e-06
  17  6.03832e-05
  18  4.69488e-07
  19  12.5482
  20  5.79619
  21  1.62879
  22  0.219069
  23  0.223597
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.718e+00  2.236e-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:  5.859e-01  2.191e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385907/likelihoodResults_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.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) = 7060.08092925
delta logL = 0.000119015900054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7060.08047702
delta logL = 0.000571251117435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60531E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5823       1.0000          .0000       10.000    
     3 'Normalizat'    .58556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7188       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=   7060.080     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      248 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73757E-01    4.5957        .48624E-01    .54116E-03
   2  Index         2.5695        3.1754        .50000        .11960E-04
   3  Normalizat    .58561        .86138E-02    .75328E-01   -.29090E-04
   4  Prefactor     1.7186        .95341E-02    .51528E-01    .39932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0737566
  Index      = 2.56951
  Normalizat = 0.585614
  Prefactor  = 1.71858
 **********
 **   18 **HESSE 
 **********

 FCN=   7060.080     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73757E-01    22.528        .17343E-02   -1.5654    
   2  Index         2.5695        5.8498        .32904E-01   -.50762    
   3  Normalizat    .58561        .19918        .33351E-03   -1.0860    
   4  Prefactor     1.7186        .21990        .22778E-03   -.71588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45548e-08
Minuit parameter uncertainties:
  1  2.57726
  2  7.26209
  3  0.19942
  4  0.22002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385907': 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) = 7060.08044141
delta logL = 0.0006068536768

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.719e+00  2.200e-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:  5.856e-01  1.994e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/385907/cmap_HighResolution_632016001_632275201_4FGL_J1422.3+3223_daily_bin1515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-09 12:05:55.962583', job_id='385907', GAL2='1.72', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631214355.96', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.72', dlogl='6.07e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1515' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 385907: <4FGL_J1422.3+3223_daily_bin1515> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1515> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:14 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:15 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:51:15 2021
Terminated at Thu Sep  9 12:05:56 2021
Results reported at Thu Sep  9 12:05:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1515 215.577 32.3911 632016001 632275201 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 :                                   676.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

