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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1267
RA = 60.4867, Dec = -20.5804
tmin = 567734401, tmax = 567993601
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='164525', job_status='RUN', time_executed='2021-08-19 23:36:38.337204', time_epoch_executed='1629441398.34' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164525/ft1_4FGL_J0401.9-2034_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164525/ft1_4FGL_J0401.9-2034_daily_bin1267.fits outfile=/scratch/kocevski/164525/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1267.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=567734401.0 tmax=567993601.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.09
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.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/164525/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1267.fits evtable="EVENTS" outfile="/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.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.73
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/164525/ltcube_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.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/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits
.....................!
real 12.87
user 12.24
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/164525/ltcube_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits outfile=/scratch/kocevski/164525/expmap_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.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/164525/ltcube_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits
.....................!
real 190.77
user 184.75
sys 5.61

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 146 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits outfile=/scratch/kocevski/164525/cmap_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.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=60.4867 yref=-20.5804 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.75
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits outfile=/scratch/kocevski/164525/cmap_HighResolution_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.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=60.4867 yref=-20.5804 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.76
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164525/Model_4FGL_J0401.9-2034_daily_bin1267.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits.....................!
real 127.58
user 125.80
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits', '/scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits', expMap='/scratch/kocevski/164525/expmap_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits', expCube='/scratch/kocevski/164525/ltcube_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164525/Model_4FGL_J0401.9-2034_daily_bin1267.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164525/ft1_filtered_4FGL_J0401.9-2034_daily_bin1267.fits
Spacecraft file(s): /scratch/kocevski/164525/ft2_4FGL_J0401.9-2034_daily_bin1267.fits
Exposure map: /scratch/kocevski/164525/expmap_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits
Exposure cube: /scratch/kocevski/164525/ltcube_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164525/Model_4FGL_J0401.9-2034_daily_bin1267.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) = 5315.51579564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.006       1.0000         .10000E-03   10000.    
    12 'norm      '    .94419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85521       1.0000         .10000E-03   10000.    
    15 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8612       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.973       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13797E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5245       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .48814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5315.509     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2720 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.547       -.13665E-05** at limit **
   2  Prefactor     .10000E-03    4.8367       -.50180E-06** at limit **
   3  Prefactor     25.992        28.131        .67995E-06   -.76943E-04
   4  Prefactor     .10000E-03    6.0382        .42828E-08** at limit **
   5  Prefactor     33.063        39.742        .10890E-06   -.69889E-06
   6  Prefactor     80.751        68.007        .33601E-06   -.31609E-04
   7  Prefactor     .58036        3.8392        .68429E-06    .17053E-04
   8  Prefactor     .10000E-03    3.6416        .48146E-07** at limit **
   9  Prefactor     .10000E-03    5.3547       -.99519E-07** at limit **
  10  norm          23.134        2.5916       -.35555E-07   -.19681E-03
  11  Prefactor     21.983        51.857        .32834E-05   -.94415E-04
  12  norm          .94352        1.9793       -.21902E-06   -.48212E-03
  13  Prefactor     5.1717        62.459       -.11095E-05   -.70270E-04
  14  Prefactor     .85624        2.7243       -.38438E-06   -.22786E-03
  15  norm          .10000E-03    12.107       -.74137E-06** at limit **
  16  Prefactor     7.8330        40.564        .49430E-05   -.55471E-04
  17  Prefactor     3.3225        8.1235        .45530E-06   -.47315E-04
  18  Prefactor     2.5086        4.8856        .47217E-05    .63945E-03
  19  Prefactor     14.057        14.964       -.11279E-06    .75271E-05
  20  Prefactor     55.961        54.087        .13162E-05    .23887E-04
  21  Prefactor     .10071E-03    9.8016       -.49290E-05** at limit **
  22  Prefactor     .10000E-03    69.980        .58068E-06** at limit **
  23  Normalizat    1.5246        .24478        .19299E-05    .20463E-03
  24  Prefactor     .48815        .18547       -.58757E-05   -.53951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9921
  Prefactor  = 0.0001
  Prefactor  = 33.0626
  Prefactor  = 80.7514
  Prefactor  = 0.580362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1336
  Prefactor  = 21.9828
  norm       = 0.94352
  Prefactor  = 5.17166
  Prefactor  = 0.856235
  norm       = 0.0001
  Prefactor  = 7.83297
  Prefactor  = 3.32254
  Prefactor  = 2.50862
  Prefactor  = 14.0572
  Prefactor  = 55.9608
  Prefactor  = 0.000100705
  Prefactor  = 0.0001
  Normalizat = 1.52458
  Prefactor  = 0.488152
 **********
 **   18 **HESSE 
 **********

 FCN=   5315.509     FROM HESSE     STATUS=OK           397 CALLS     3117 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8875        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.992        28.398        .78548E-04   -1.4688    
   4  Prefactor     .10000E-03    6.0400        .17498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.063        39.753        .69688E-04   -1.4557    
   6  Prefactor     80.751        67.979        .44694E-04   -1.3908    
   7  Prefactor     .58036        3.5526        .24522E-03   -1.5556    
   8  Prefactor     .10000E-03    3.6857        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5047        .32840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.134        2.6095        .36896E-04   -1.4746    
  11  Prefactor     21.983        51.114        .85385E-04   -1.4770    
  12  norm          .94352        1.8119        .12501E-03   -1.5514    
  13  Prefactor     5.1717        60.408        .17648E-03   -1.5253    
  14  Prefactor     .85624        2.6334        .19859E-03   -1.5523    
  15  norm          .10000E-03    12.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8330        41.179        .14301E-03   -1.5148    
  17  Prefactor     3.3225        8.0971        .22203E-03   -1.5343    
  18  Prefactor     2.5086        5.0389        .10998E-02   -1.5391    
  19  Prefactor     14.057        14.961        .10682E-03   -1.4958    
  20  Prefactor     55.961        53.712        .53617E-04   -1.4210    
  21  Prefactor     .10071E-03    58.149        .36280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    70.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5246        .28806        .26165E-03   -.77090    
  24  Prefactor     .48815        .21143        .34617E-03   -1.1252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30517e-08
Minuit parameter uncertainties:
  1  0.000184665
  2  5.40061e-05
  3  28.4131
  4  2.87983e-06
  5  39.7847
  6  68.0444
  7  2.87181
  8  3.29761e-06
  9  8.92914e-06
  10  2.60948
  11  51.2164
  12  1.81203
  13  35.3947
  14  2.63379
  15  0.000124427
  16  35.9584
  17  8.0998
  18  5.03977
  19  14.9653
  20  53.7586
  21  0.0128216
  22  0.000332344
  23  0.28837
  24  0.211772
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  8.562e-01  2.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  4.882e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.525e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164525/likelihoodResults_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.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) = 5314.90957246
delta logL = 0.598937499407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5314.81650523
delta logL = 0.692004727723

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     '    8.1246       1.0000          .0000       10.000    
     3 'Normalizat'    1.4310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+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=   5314.817     FROM MIGRAD    STATUS=FAILED       399 CALLS      805 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28337E-01    .14925E-03** at limit **
   2  Index         8.1237        8.3735        .64652E-02    .40104E-03
   3  Normalizat    1.4313        .13905        .26818E-03    .50644E-03
   4  Prefactor     .54186        .10872        .33012E-03    .39789E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5314.817     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      967 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28337E-01    .92056E-05** at limit **
   2  Index         8.1237        8.3735        .24453E-03    .40104E-03
   3  Normalizat    1.4313        .13905        .73187E-05    .50644E-03
   4  Prefactor     .54186        .10872        .46788E-05    .39789E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5314.817     FROM MIGRAD    STATUS=CONVERGED     42 CALLS     1009 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15548E-01    .20388E-03** at limit **
   2  Index         8.1237        8.2711        .12930E-02    .10551E-04
   3  Normalizat    1.4313        .11902        .53635E-04    .51846E-03
   4  Prefactor     .54186        .93362E-01    .13205E-04    .40172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.1237
  Normalizat = 1.43128
  Prefactor  = 0.541861
 **********
 **   18 **HESSE 
 **********

 FCN=   5314.817     FROM HESSE     STATUS=NOT POSDEF    33 CALLS     1042 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20589E-01    .17759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1237        8.3408        .51722E-04    .67480    
   3  Normalizat    1.4313        .13089        .10727E-04   -.79728    
   4  Prefactor     .54186        .10271        .26410E-05   -1.1009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23824e-09
Minuit parameter uncertainties:
  1  2.7415e-07
  2  5.72573
  3  0.130918
  4  0.102741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164525': 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) = 5314.81650267
delta logL = 0.692007290932

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.742e-07  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  8.124e+00  5.726e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  5.419e-01  1.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.431e+00  1.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 8.12 +/- 5.73
Photon Flux (Free Index): 1.04e-07 +/- 1.22e-06
Energy Flux (Free Index): 1.20e-05 +/- 1.40e-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/164525/cmap_HighResolution_567734401_567993601_4FGL_J0401.9-2034_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='6.92e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-19 23:48:11.349951', photon_index_error2='5.73', photon_index2='8.12', ts='0.13', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.40e-04', EG='1.52', time_epoch_completed='1629442091.35', return_code='0', job_id='164525', GAL2='0.54', EG2='1.43', return_code2='102', photon_flux_error2='1.22e-06', ts2='1.63', photon_index='2.31' WHERE bin_id='1267' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:48:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 164525: <4FGL_J0401.9-2034_daily_bin1267> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1267> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:37 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:35:39 2021
Terminated at Thu Aug 19 23:48:11 2021
Results reported at Thu Aug 19 23:48:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1267 60.4867 -20.5804 567734401 567993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

