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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1268
RA = 66.8294, Dec = 5.08
tmin = 567993601, tmax = 568252801
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='455217', job_status='RUN', time_executed='2021-08-20 15:58:11.639171', time_epoch_executed='1629500291.64' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455217/ft1_4FGL_J0427.3+0504_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455217/ft1_4FGL_J0427.3+0504_daily_bin1268.fits outfile=/scratch/kocevski/455217/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1268.fits ra=66.8294 dec=5.08 rad=12.0 tmin=567993601.0 tmax=568252801.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 6.65
user 2.14
sys 4.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.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/455217/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1268.fits evtable="EVENTS" outfile="/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.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 5.31
user 0.34
sys 4.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/455217/ltcube_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.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/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits
.....................!
real 17.87
user 12.68
sys 5.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/455217/ltcube_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits outfile=/scratch/kocevski/455217/expmap_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.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/455217/ltcube_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits
.....................!
real 195.01
user 184.92
sys 9.75

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 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits outfile=/scratch/kocevski/455217/cmap_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.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=66.8294 yref=5.08 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 4.74
user 0.37
sys 4.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits outfile=/scratch/kocevski/455217/cmap_HighResolution_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.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=66.8294 yref=5.08 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 4.69
user 0.38
sys 4.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455217/Model_4FGL_J0427.3+0504_daily_bin1268.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/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits.....................!
real 73.06
user 66.05
sys 6.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits', '/scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits', expMap='/scratch/kocevski/455217/expmap_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits', expCube='/scratch/kocevski/455217/ltcube_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455217/Model_4FGL_J0427.3+0504_daily_bin1268.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455217/ft1_filtered_4FGL_J0427.3+0504_daily_bin1268.fits
Spacecraft file(s): /scratch/kocevski/455217/ft2_4FGL_J0427.3+0504_daily_bin1268.fits
Exposure map: /scratch/kocevski/455217/expmap_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits
Exposure cube: /scratch/kocevski/455217/ltcube_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455217/Model_4FGL_J0427.3+0504_daily_bin1268.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) = 4130.57599531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14419E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.238       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    34.324       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23425E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17593E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22755E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.044       1.0000         .10000E-03   10000.    
    15 'norm      '    .38583E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12367E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5566       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.430       1.0000         .10000E-03   10000.    
    19 'norm      '    6.2842       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7124       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.438       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6632       1.0000         .10000E-03   10000.    
    24 'norm      '    6.4715       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .20937       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3765       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4130.564     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3353 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    539.70       -.17915E-04** at limit **
   2  Prefactor     .10000E-03    27.829        .11955E-05** at limit **
   3  norm          26.240        21.904        .55634E-07   -.68765E-05
   4  Prefactor     .10000E-03    11.845        .23447E-06** at limit **
   5  norm          13.424        7.1546        .89225E-07   -.24993E-03
   6  Prefactor     .10000E-03    71.109        .51696E-07** at limit **
   7  norm          .10000E-03    8.4379       -.17269E-07** at limit **
   8  norm          34.361        43.527        .34550E-06   -.45794E-04
   9  norm          .10000E-03    .77836        .50352E-07** at limit **
  10  Prefactor     .10004E-03    1.5854        .31859E-07** at limit **
  11  Prefactor     .10000E-03    41.198        .60584E-06** at limit **
  12  Prefactor     .10000E-03    264.92        .86009E-05** at limit **
  13  Prefactor     .10002E-03    13.837        .24873E-05** at limit **
  14  Prefactor     34.063        29.634       -.30871E-06   -.21646E-05
  15  norm          .10023E-03    2.8401        .96169E-07** at limit **
  16  Prefactor     .10000E-03    102.31       -.22449E-05** at limit **
  17  norm          3.5554        4.1128        .35111E-06   -.34426E-03
  18  Prefactor     22.435        17.181       -.21012E-05    .15823E-04
  19  norm          6.2838        4.4972       -.24155E-06    .28830E-04
  20  Prefactor     4.3592        1184.3       -.12654E-04   -.55211E-05
  21  norm          .10000E-03    1.6092        .12879E-06** at limit **
  22  Prefactor     39.804        176.59        .12899E-04   -.17241E-04
  23  norm          2.6598        2.1279       -.24139E-05    .35681E-03
  24  norm          6.4727        6.0599        .54562E-06   -.86957E-04
  25  Prefactor     .19149        8.3906        .60101E-06    .75890E-04
  26  Normalizat    1.3768        .35531       -.64694E-05   -.13852E-03
  27  Prefactor     .77550        .10400        .12319E-05   -.43123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 26.2401
  Prefactor  = 0.0001
  norm       = 13.4237
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.361
  norm       = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 34.0626
  norm       = 0.000100227
  Prefactor  = 0.0001
  norm       = 3.5554
  Prefactor  = 22.4345
  norm       = 6.28377
  Prefactor  = 4.35922
  norm       = 0.0001
  Prefactor  = 39.8037
  norm       = 2.65982
  norm       = 6.47266
  Prefactor  = 0.191488
  Normalizat = 1.37685
  Prefactor  = 0.775502
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.564     FROM HESSE     STATUS=OK           492 CALLS     3845 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    548.02        .20502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.240        21.904        .78207E-04   -1.4683    
   4  Prefactor     .10000E-03    11.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.424        7.1326        .10932E-03   -1.4975    
   6  Prefactor     .10000E-03    71.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.4568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.361        40.816        .68400E-04   -1.4535    
   9  norm          .10000E-03    .81028        .11034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    35.561        .14506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    267.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    68.161        .43601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.063        29.653        .68680E-04   -1.4540    
  15  norm          .10023E-03    34.618        .20479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    102.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5554        4.1243        .12946E-03   -1.5331    
  18  Prefactor     22.435        17.139        .84574E-04   -1.4760    
  19  norm          6.2838        4.4952        .11045E-03   -1.5207    
  20  Prefactor     4.3592        1365.8        .18537E-02   -1.5290    
  21  norm          .10000E-03    1.6262        .79611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.804        194.33        .63826E-04   -1.4445    
  23  norm          2.6598        2.1407        .57238E-04   -1.5382    
  24  norm          6.4727        6.0609        .14653E-03   -1.5199    
  25  Prefactor     .19149        66.829        .35679E-02   -1.5620    
  26  Normalizat    1.3768        .38140        .39029E-03   -.81301    
  27  Prefactor     .77550        .11514        .16071E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55722e-09
Minuit parameter uncertainties:
  1  0.00254503
  2  0.00010467
  3  21.9107
  4  7.16847e-06
  5  7.13302
  6  0.000201776
  7  6.49558e-06
  8  40.8492
  9  2.08839e-06
  10  0.00243697
  11  0.000145457
  12  0.00120525
  13  0.00234348
  14  29.6659
  15  0.00560642
  16  1.1215e-05
  17  4.12467
  18  17.1427
  19  4.49542
  20  158.104
  21  1.00396e-05
  22  176.829
  23  2.14077
  24  6.06152
  25  7.16078
  26  0.382187
  27  0.115179
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.455e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  7.755e-01  1.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.377e+00  3.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 2.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455217/likelihoodResults_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.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) = 4130.56363702
delta logL = -0.000115166866635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4130.56352342
delta logL = -1.56086662173e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4284       1.0000          .0000       10.000    
     3 'Normalizat'    1.3768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   4130.564     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      320 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.679        .13604    ** at limit **
   2  Index         2.2183        7.7118        .50000       -.35311E-07
   3  Normalizat    1.3768        .78491E-02    .39030E-03   -.45935E-04
   4  Prefactor     .77550        .25222E-02    .16071E-03   -.12399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21828
  Normalizat = 1.37685
  Prefactor  = 0.775503
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.564     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      351 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1439.7        .69303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2183        6.0369        .50000       -.58998    
   3  Normalizat    1.3768        .36927E-01    .15612E-04   -.81301    
   4  Prefactor     .77550        .11866E-01    .32142E-04   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44876e-11
Minuit parameter uncertainties:
  1  1.35864e-05
  2  786.227
  3  0.0369281
  4  0.0118665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455217': 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) = 4130.56352113
delta logL = 7.29986822989e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.359e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.218e+00  7.862e+02  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  7.755e-01  1.187e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.377e+00  3.693e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/455217/cmap_HighResolution_567993601_568252801_4FGL_J0427.3+0504_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-02', job_status='DONE', photon_flux_upper_limit='2.59e-07', time_completed='2021-08-20 16:08:31.652018', job_id='455217', GAL2='0.78', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1629500911.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1268' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 455217: <4FGL_J0427.3+0504_daily_bin1268> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1268> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:31 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 15:55:32 2021
Terminated at Fri Aug 20 16:08:33 2021
Results reported at Fri Aug 20 16:08:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1268 66.8294 5.08 567993601 568252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

