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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1101
RA = 215.577, Dec = 32.3911
tmin = 524707201, tmax = 524966401
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='384254', job_status='RUN', time_executed='2021-09-09 11:46:19.986909', time_epoch_executed='1631213179.99' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384254/ft1_4FGL_J1422.3+3223_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384254/ft2_4FGL_J1422.3+3223_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384254/ft1_4FGL_J1422.3+3223_daily_bin1101.fits outfile=/scratch/kocevski/384254/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1101.fits ra=215.577 dec=32.3911 rad=12.0 tmin=524707201.0 tmax=524966401.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.37
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384254/ft2_4FGL_J1422.3+3223_daily_bin1101.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/384254/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/384254/ft1_filtered_4FGL_J1422.3+3223_daily_bin1101.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.58
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384254/ft1_filtered_4FGL_J1422.3+3223_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/384254/ft2_4FGL_J1422.3+3223_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/384254/ltcube_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.fits outfile=/scratch/kocevski/384254/expmap_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.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/384254/ltcube_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.fits
.....................!
real 191.10
user 185.09
sys 5.59

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/384254/ft1_filtered_4FGL_J1422.3+3223_daily_bin1101.fits scfile=/scratch/kocevski/384254/ft2_4FGL_J1422.3+3223_daily_bin1101.fits outfile=/scratch/kocevski/384254/cmap_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8733       1.0000         .10000E-03   10000.    
     5 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0556       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35230E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23493E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.186       1.0000         .10000E-03   10000.    
    14 'norm      '    9.4563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.180       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93380       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86979       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=   5157.281     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2577 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.012        17.239        .74844E-07    .34787E-04
   2  Prefactor     5.3696        25.865       -.24352E-06   -.45889E-04
   3  Prefactor     .10000E-03    21.818        .86304E-06** at limit **
   4  Prefactor     2.8749        4.5038        .48395E-06    .21969E-03
   5  norm          .10000E-03    20.200       -.99424E-06** at limit **
   6  Prefactor     7.0548        13.846        .34382E-05    .24759E-03
   7  norm          .10000E-03    .96627        .64059E-08** at limit **
   8  Prefactor     .10002E-03    15.055        .21186E-05** at limit **
   9  Prefactor     .10006E-03    20.628       -.39076E-05** at limit **
  10  Prefactor     .10000E-03    .96086        .22053E-07** at limit **
  11  norm          .10000E-03    4.9525       -.36182E-08** at limit **
  12  norm          1.3403        2.0925        .20892E-06    .10843E-03
  13  Prefactor     19.180        19.243       -.50349E-07   -.10369E-05
  14  norm          9.4563        5.8397        .71820E-07    .11670E-03
  15  Prefactor     26.170        44.331       -.56766E-06   -.73372E-04
  16  norm          2.9974        3.4980        .19217E-06    .57732E-04
  17  Prefactor     .10000E-03    8.5500        .24511E-07** at limit **
  18  norm          .10000E-03    2.1684       -.48345E-08** at limit **
  19  Prefactor     .10000E-03    2.3263       -.74060E-08** at limit **
  20  Prefactor     .10000E-03    2.4015       -.54672E-08** at limit **
  21  norm          .10000E-03    .67087        .19956E-07** at limit **
  22  Normalizat    .93358        .16011        .24809E-06    .20094E-03
  23  Prefactor     .86999        .16635       -.63220E-06    .12899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0119
  Prefactor  = 5.36959
  Prefactor  = 0.000100002
  Prefactor  = 2.87492
  norm       = 0.000100002
  Prefactor  = 7.05481
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.34027
  Prefactor  = 19.1801
  norm       = 9.45625
  Prefactor  = 26.1699
  norm       = 2.99741
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.933575
  Prefactor  = 0.869987
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.281     FROM HESSE     STATUS=OK           370 CALLS     2947 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.012        17.199        .11560E-03   -1.5015    
   2  Prefactor     5.3696        25.935        .17334E-03   -1.5244    
   3  Prefactor     .10000E-03    22.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8749        4.4990        .17744E-03   -1.5369    
   5  norm          .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0548        14.440        .75512E-03   -1.5177    
   7  norm          .10000E-03    .96944        .68930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    49.122        .41701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    52.449        .44387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .96909        .68729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9555        .15607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3403        2.0628        .12477E-03   -1.5476    
  13  Prefactor     19.180        19.215        .91439E-04   -1.4832    
  14  norm          9.4563        5.8421        .12982E-03   -1.5093    
  15  Prefactor     26.170        44.495        .78293E-04   -1.4684    
  16  norm          2.9974        3.4963        .13948E-03   -1.5362    
  17  Prefactor     .10000E-03    8.5581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1692        .10328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3271        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4181        .10864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2494        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93358        .18465        .21229E-03   -.95290    
  23  Prefactor     .86999        .19450        .23492E-03   -.97198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03129e-09
Minuit parameter uncertainties:
  1  17.2056
  2  23.6179
  3  0.000399552
  4  4.49955
  5  0.00038207
  6  14.4471
  7  1.65458e-07
  8  0.00201851
  9  0.00355661
  10  5.59944e-07
  11  1.09789e-06
  12  2.06287
  13  19.2214
  14  5.84247
  15  44.5518
  16  3.49656
  17  2.93324e-06
  18  1.85873e-07
  19  8.78876e-07
  20  8.43579e-07
  21  1.42949e-06
  22  0.184777
  23  0.194654
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.599e-07  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:  8.700e-01  1.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.336e-01  1.848e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384254/likelihoodResults_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.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) = 5157.28550245
delta logL = -0.00485261117228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5157.28064928
delta logL = 5.60881744605e-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.3847       1.0000          .0000       10.000    
     3 'Normalizat'    .93357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5157.281     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.062        .69484E-02** at limit **
   2  Index         1.9499        5.9724        .50000        .29029E-06
   3  Normalizat    .93357        .11718E-01    .21229E-03   -.10819E-02
   4  Prefactor     .86999        .12630E-01    .23493E-03   -.97421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94985
  Normalizat = 0.933573
  Prefactor  = 0.869986
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.281     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.615        .74937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9499        5.6383        .50000       -.65610    
   3  Normalizat    .93357        .37702E-01    .42459E-04   -.95290    
   4  Prefactor     .86999        .40635E-01    .46985E-04   -.97198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07666e-09
Minuit parameter uncertainties:
  1  7.42807e-06
  2  524.304
  3  0.0377033
  4  0.0406368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384254': 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) = 5157.28064192
delta logL = 7.91894672147e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.428e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.950e+00  5.243e+02  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:  8.700e-01  4.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.336e-01  3.770e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/384254/cmap_HighResolution_524707201_524966401_4FGL_J1422.3+3223_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-09 11:56:05.092861', job_id='384254', GAL2='0.87', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631213765.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1101' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:56:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 384254: <4FGL_J1422.3+3223_daily_bin1101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1101 215.577 32.3911 524707201 524966401 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 :                                   577.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            598 sec.

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

