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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1656
RA = 60.4867, Dec = -20.5804
tmin = 668563201, tmax = 668822401
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='371364', job_status='RUN', time_executed='2022-03-13 00:10:09.179028', time_epoch_executed='1647159009.18' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371364/ft1_4FGL_J0401.9-2034_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371364/ft1_4FGL_J0401.9-2034_daily_bin1656.fits outfile=/scratch/kocevski/371364/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1656.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=668563201.0 tmax=668822401.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 5.37
user 5.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.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/371364/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.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.51
user 0.33
sys 0.15
Number of photons that survived the gtmktime cut: 331

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/371364/ltcube_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.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/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits
.....................!
real 13.96
user 13.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/371364/ltcube_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits outfile=/scratch/kocevski/371364/expmap_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.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/371364/ltcube_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits
.....................!
real 190.78
user 185.78
sys 4.60

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/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits outfile=/scratch/kocevski/371364/cmap_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits outfile=/scratch/kocevski/371364/cmap_HighResolution_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371364/Model_4FGL_J0401.9-2034_daily_bin1656.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/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits.....................!
real 91.66
user 89.60
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits', '/scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits', expMap='/scratch/kocevski/371364/expmap_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits', expCube='/scratch/kocevski/371364/ltcube_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371364/Model_4FGL_J0401.9-2034_daily_bin1656.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/371364/ft1_filtered_4FGL_J0401.9-2034_daily_bin1656.fits
Spacecraft file(s): /scratch/kocevski/371364/ft2_4FGL_J0401.9-2034_daily_bin1656.fits
Exposure map: /scratch/kocevski/371364/expmap_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits
Exposure cube: /scratch/kocevski/371364/ltcube_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371364/Model_4FGL_J0401.9-2034_daily_bin1656.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) = 3833.81632171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    113.14       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73377       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53995       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3485       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=   3833.807     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2788 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.13        .10118E-04** at limit **
   2  Prefactor     .10000E-03    4.6733        .33315E-06** at limit **
   3  Prefactor     88.358        40.349       -.77753E-05    .26798E-04
   4  Prefactor     .10000E-03    14.224       -.15921E-07** at limit **
   5  Prefactor     113.13        102.48       -.74945E-05    .13466E-04
   6  Prefactor     .10000E-03    27.021       -.19540E-04** at limit **
   7  Prefactor     .10000E-03    1.6773        .11158E-06** at limit **
   8  Prefactor     .10000E-03    2.3281        .56297E-07** at limit **
   9  Prefactor     .73562        6.4876       -.22737E-05   -.80999E-03
  10  norm          8.0988        2.2558        .85992E-07    .42675E-03
  11  Prefactor     .10000E-03    25.815        .17034E-04** at limit **
  12  norm          .10000E-03    .91534        .38178E-07** at limit **
  13  Prefactor     .10000E-03    19.081       -.13485E-04** at limit **
  14  Prefactor     .10000E-03    1.2228        .65604E-09** at limit **
  15  norm          .10000E-03    20.491        .23029E-05** at limit **
  16  Prefactor     .20183        35.229       -.35639E-05    .11156E-03
  17  Prefactor     26.473        12.682       -.27441E-06    .14969E-04
  18  Prefactor     .10000E-03    1.8599       -.21062E-07** at limit **
  19  Prefactor     .10000E-03    18.762        .10644E-04** at limit **
  20  Prefactor     .10000E-03    73.593       -.87189E-05** at limit **
  21  Prefactor     .10000E-03    2.6226       -.26037E-07** at limit **
  22  Prefactor     .10000E-03    35.346        .46297E-05** at limit **
  23  Normalizat    .53989        .26999        .67404E-05    .85478E-04
  24  Prefactor     1.3485        .21234       -.58488E-06    .23205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.3583
  Prefactor  = 0.0001
  Prefactor  = 113.132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.735618
  norm       = 8.09876
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.201831
  Prefactor  = 26.4731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.539894
  Prefactor  = 1.34854
 **********
 **   18 **HESSE 
 **********

 FCN=   3833.807     FROM HESSE     STATUS=OK           389 CALLS     3177 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6955        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     88.358        40.202        .42745E-04   -1.3825    
   4  Prefactor     .10000E-03    14.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     113.13        102.56        .37820E-04   -1.3577    
   6  Prefactor     .10000E-03    26.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6962        .78245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3319        .92201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73562        6.8240        .30372E-03   -1.5536    
  10  norm          8.0988        2.2595        .45289E-04   -1.5139    
  11  Prefactor     .10000E-03    25.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .93829        .11550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2287        .66848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20183        44.905        .10588       -1.5618    
  17  Prefactor     26.473        12.677        .77858E-04   -1.4678    
  18  Prefactor     .10000E-03    1.8661        .82456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6233        .97931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .53989        .29776        .38259E-03   -1.1060    
  24  Prefactor     1.3485        .23742        .21145E-03   -.81875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73736e-09
Minuit parameter uncertainties:
  1  7.22386e-05
  2  7.43536e-05
  3  40.2148
  4  7.66998e-06
  5  102.724
  6  4.93689e-05
  7  1.4647e-05
  8  8.69824e-06
  9  4.48137
  10  2.25951
  11  2.38468e-05
  12  5.00442e-06
  13  1.09583e-06
  14  1.11929e-06
  15  1.49968e-05
  16  6.02409
  17  12.6779
  18  4.57866e-06
  19  7.00726e-05
  20  0.000105835
  21  2.33368e-06
  22  5.25153e-05
  23  0.298648
  24  0.237616
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.119e-06  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:  1.349e+00  2.376e-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:  5.399e-01  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371364/likelihoodResults_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.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) = 3833.81091683
delta logL = -0.00352909343428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3833.8073876
delta logL = 1.31336946652e-07

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 'Index     '    2.3003       1.0000          .0000       10.000    
     3 'Normalizat'    .53990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3486       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.

 FCN=   3833.807     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5806        .67119E-02** at limit **
   2  Index         1.9826        8.7452        .50000       -.12374E-05
   3  Normalizat    .53989        .17143E-01    .38259E-03   -.24321E-03
   4  Prefactor     1.3485        .14495E-01    .21145E-03   -.42341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98259
  Normalizat = 0.539894
  Prefactor  = 1.34854
 **********
 **   18 **HESSE 
 **********

 FCN=   3833.807     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      281 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.662        .69422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9826        5.6880        .50000       -.64786    
   3  Normalizat    .53989        .58838E-01    .15303E-04   -1.1060    
   4  Prefactor     1.3485        .49749E-01    .42290E-04   -.81875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47431e-08
Minuit parameter uncertainties:
  1  6.67562e-05
  2  599.958
  3  0.0588449
  4  0.0497504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371364': 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) = 3833.80738493
delta logL = 2.80167841993e-06

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  6.676e-05  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.983e+00  6.000e+02  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:  1.349e+00  4.975e-02  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:  5.399e-01  5.884e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.487 -20.580

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/371364/cmap_HighResolution_668563201_668822401_4FGL_J0401.9-2034_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2022-03-13 00:19:30.194172', job_id='371364', GAL2='1.35', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1647159570.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1656' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:19:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 371364: <4FGL_J0401.9-2034_daily_bin1656> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:05:08 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:09:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:09:05 2022
Terminated at Sun Mar 13 00:19:30 2022
Results reported at Sun Mar 13 00:19:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1656 60.4867 -20.5804 668563201 668822401 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 :                                   559.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            862 sec.

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

