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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1444
RA = 210.446, Dec = -32.2877
tmin = 613612801, tmax = 613872001
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='164674', job_status='RUN', time_executed='2021-09-08 23:46:42.571990', time_epoch_executed='1631170002.57' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164674

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164674/ft1_4FGL_J1401.7-3217_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164674/ft1_4FGL_J1401.7-3217_daily_bin1444.fits outfile=/scratch/kocevski/164674/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1444.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=613612801.0 tmax=613872001.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 2.55
user 2.32
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.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/164674/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/164674/ltcube_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.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/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits
.....................!
real 12.88
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/164674/ltcube_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits outfile=/scratch/kocevski/164674/expmap_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.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/164674/ltcube_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits
.....................!
real 190.67
user 185.38
sys 4.96

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits outfile=/scratch/kocevski/164674/cmap_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.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=210.446 yref=-32.2877 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits outfile=/scratch/kocevski/164674/cmap_HighResolution_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.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=210.446 yref=-32.2877 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164674/Model_4FGL_J1401.7-3217_daily_bin1444.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits.....................!
real 100.69
user 99.36
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits', '/scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits', expMap='/scratch/kocevski/164674/expmap_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits', expCube='/scratch/kocevski/164674/ltcube_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164674/Model_4FGL_J1401.7-3217_daily_bin1444.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164674/ft1_filtered_4FGL_J1401.7-3217_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/164674/ft2_4FGL_J1401.7-3217_daily_bin1444.fits
Exposure map: /scratch/kocevski/164674/expmap_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits
Exposure cube: /scratch/kocevski/164674/ltcube_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164674/Model_4FGL_J1401.7-3217_daily_bin1444.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) = 5743.81258522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    463.99       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2871       1.0000         .10000E-03   10000.    
     6 'norm      '    13.922       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3215       1.0000         .10000E-03   10000.    
     8 'norm      '    .48046E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21155E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.758       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .34142       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    83.039       1.0000         .10000E-03   10000.    
    23 'Prefactor '    125.24       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1236       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75606       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5743.809     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2999 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8354        5.4196        .12689E-05    .68387E-03
   2  Prefactor     464.19        294.53        .98255E-06    .15736E-04
   3  Prefactor     .10000E-03    35.315       -.10227E-05** at limit **
   4  Prefactor     15.953        11.752        .13362E-06    .16823E-03
   5  Prefactor     5.4343        266.72       -.22856E-05    .93540E-05
   6  norm          13.925        21.231        .23244E-07    .18601E-04
   7  norm          2.3385        55.549        .29526E-05    .23939E-04
   8  norm          .10031E-03    13.449       -.30077E-05** at limit **
   9  Prefactor     2.3142        4.9918        .74572E-06    .74792E-03
  10  Prefactor     .10000E-03    46.155        .38168E-07** at limit **
  11  Prefactor     10.837        71.208        .14789E-05    .32358E-04
  12  Prefactor     .10000E-03    34.244       -.35949E-06** at limit **
  13  Prefactor     .10000E-03    246.63        .22812E-06** at limit **
  14  Prefactor     .10000E-03    109.36       -.72993E-06** at limit **
  15  Prefactor     29.760        31.486        .25780E-06    .16461E-04
  16  Prefactor     .10000E-03    12.989       -.86669E-08** at limit **
  17  norm          .10000E-03    2.1253       -.83038E-07** at limit **
  18  Prefactor     .10000E-03    14.983       -.42442E-07** at limit **
  19  norm          .34140        .31145        .46606E-07    .27468E-03
  20  Prefactor     .10000E-03    15.175       -.37397E-07** at limit **
  21  Prefactor     .10000E-03    21.263        .10546E-06** at limit **
  22  norm          83.038        46.993        .19349E-06    .73435E-05
  23  Prefactor     125.30        298.32        .20601E-05    .46105E-05
  24  Normalizat    1.1235        .28207        .11763E-05    .19250E-03
  25  Prefactor     .75605        .10788       -.84073E-06    .40051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.83542
  Prefactor  = 464.192
  Prefactor  = 0.0001
  Prefactor  = 15.9531
  Prefactor  = 5.43427
  norm       = 13.9251
  norm       = 2.3385
  norm       = 0.000100312
  Prefactor  = 2.31419
  Prefactor  = 0.0001
  Prefactor  = 10.8367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.341402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 83.0378
  Prefactor  = 125.298
  Normalizat = 1.12352
  Prefactor  = 0.756053
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.809     FROM HESSE     STATUS=OK           425 CALLS     3424 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8354        5.4715        .70544E-03   -1.5148    
   2  Prefactor     464.19        294.96        .95081E-04   -1.1365    
   3  Prefactor     .10000E-03    35.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.953        11.752        .10030E-03   -1.4909    
   5  Prefactor     5.4343        260.85        .17480E-03   -1.5242    
   6  norm          13.925        21.247        .10735E-03   -1.4961    
   7  norm          2.3385        55.626        .26921E-03   -1.5402    
   8  norm          .10031E-03    55.055        .41279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3142        4.8057        .21710E-03   -1.5404    
  10  Prefactor     .10000E-03    46.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.837        70.989        .12230E-03   -1.5049    
  12  Prefactor     .10000E-03    34.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    246.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    109.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.760        31.490        .73446E-04   -1.4616    
  16  Prefactor     .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1310        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .34140        .30021        .38071E-03   -1.5591    
  20  Prefactor     .10000E-03    15.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          83.038        46.954        .44080E-04   -1.3883    
  23  Prefactor     125.30        298.32        .35968E-04   -1.3465    
  24  Normalizat    1.1235        .33181        .35978E-03   -.89000    
  25  Prefactor     .75605        .12704        .16626E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01601e-09
Minuit parameter uncertainties:
  1  5.47186
  2  295.931
  3  0.000105489
  4  11.7533
  5  75.6524
  6  21.2584
  7  22.834
  8  0.0082976
  9  4.80654
  10  2.19193e-05
  11  55.5679
  12  6.17061e-05
  13  0.000491076
  14  0.000177143
  15  31.5077
  16  3.12642e-06
  17  2.29594e-06
  18  1.02095e-06
  19  0.300209
  20  5.44539e-06
  21  5.98521e-06
  22  46.9746
  23  302.021
  24  0.332427
  25  0.127092
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.084e+01  5.557e+01  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.561e-01  1.271e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.124e+00  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164674/likelihoodResults_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.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) = 5742.11865914
delta logL = 1.69051300223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5741.56915489
delta logL = 2.24001724817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8594       1.0000          .0000       10.000    
     3 'Normalizat'    .86673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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=   5741.569     FROM MIGRAD    STATUS=CONVERGED    323 CALLS      713 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .67958E-04    .18142E-03** at limit **
   2  Index         7.8593        .22428        .73789E-01   -.23347E-03
   3  Normalizat    .86634        .33160        .35925E-02    .15902E-04
   4  Prefactor     .82071        .12618        .16622E-02   -.97874E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.85926
  Normalizat = 0.86634
  Prefactor  = 0.82071
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.569     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      752 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13192E-01    .12814E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8593        2.4163        .30654E-02   -41.449    
   3  Normalizat    .86634        .22037        .14370E-03   -2.1651    
   4  Prefactor     .82071        .82335E-01    .66488E-04   -2.1519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05919e-09
Minuit parameter uncertainties:
  1  6.4763e-09
  2  2.58377
  3  0.220601
  4  0.0823471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164674': 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) = 5741.5691466
delta logL = 2.24002554774

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  6.476e-09  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  7.859e+00  2.584e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.207e-01  8.235e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  8.663e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 210.446 -32.288
Photon Index (Free Index): 7.86 +/- 2.58
Photon Flux (Free Index): 2.20e-07 +/- 1.58e-06
Energy Flux (Free Index): 2.57e-05 +/- 1.84e-04

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/164674/cmap_HighResolution_613612801_613872001_4FGL_J1401.7-3217_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', comment='SUCCESS', energy_flux2='2.57e-05', dlogl='2.24e+00', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-09 00:00:56.516153', photon_index_error2='2.58', photon_index2='7.86', ts='0.04', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.84e-04', EG='1.12', time_epoch_completed='1631170856.52', return_code='0', job_id='164674', GAL2='0.82', EG2='0.87', return_code2='102', photon_flux_error2='1.58e-06', ts2='5.13', photon_index='2.19' WHERE bin_id='1444' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 164674: <4FGL_J1401.7-3217_daily_bin1444> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1444> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 23:45:27 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 23:45:28 2021
Terminated at Thu Sep  9 00:00:57 2021
Results reported at Thu Sep  9 00:00:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1444 210.446 -32.2877 613612801 613872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1401.7-3217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

