/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 6 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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0746.3-0225_daily_bin428
RA = 116.599, Dec = -2.428
tmin = 350265601, tmax = 350524801
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='814143', job_status='RUN', time_executed='2021-08-28 09:31:01.279086', time_epoch_executed='1630168261.28' WHERE source_name='4FGL J0746.3-0225' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814143/ft1_4FGL_J0746.3-0225_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814143/ft1_4FGL_J0746.3-0225_daily_bin428.fits outfile=/scratch/kocevski/814143/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin428.fits ra=116.599 dec=-2.428 rad=12.0 tmin=350265601.0 tmax=350524801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.48
user 3.17
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.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/814143/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin428.fits evtable="EVENTS" outfile="/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.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.59
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/814143/ltcube_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.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/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits
.....................!
real 11.90
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/814143/ltcube_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits outfile=/scratch/kocevski/814143/expmap_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.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/814143/ltcube_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits
.....................!
real 190.69
user 186.00
sys 4.31

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 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 J0746.3-0225 @ 116.599 -2.428

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits outfile=/scratch/kocevski/814143/cmap_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.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=116.599 yref=-2.428 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits outfile=/scratch/kocevski/814143/cmap_HighResolution_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.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=116.599 yref=-2.428 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814143/Model_4FGL_J0746.3-0225_daily_bin428.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits.....................!
real 151.32
user 149.82
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits', '/scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits', expMap='/scratch/kocevski/814143/expmap_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits', expCube='/scratch/kocevski/814143/ltcube_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814143/Model_4FGL_J0746.3-0225_daily_bin428.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.3-0225'

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  3.439e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814143/ft1_filtered_4FGL_J0746.3-0225_daily_bin428.fits
Spacecraft file(s): /scratch/kocevski/814143/ft2_4FGL_J0746.3-0225_daily_bin428.fits
Exposure map: /scratch/kocevski/814143/expmap_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits
Exposure cube: /scratch/kocevski/814143/ltcube_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814143/Model_4FGL_J0746.3-0225_daily_bin428.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) = 10435.749875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.496       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12380E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3062       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1218       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.298       1.0000         .10000E-03   10000.    
    19 'norm      '    .87210       1.0000         .10000E-03   10000.    
    20 'norm      '    33.918       1.0000         .10000E-03   10000.    
    21 'norm      '    8.4096       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.630       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9689       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10435.67     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3139 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.1895        .20103E-05** at limit **
   2  norm          .10000E-03    3.0742        .71648E-08** at limit **
   3  norm          .10000E-03    .92733        .11257E-06** at limit **
   4  Prefactor     .10000E-03    53.437        .35177E-05** at limit **
   5  Prefactor     13.496        9.1775       -.20338E-08   -.82444E-05
   6  norm          5.7526        1.7884        .38159E-08   -.11152E-03
   7  Prefactor     .10000E-03    10.365       -.58094E-05** at limit **
   8  Prefactor     .10000E-03    56.980       -.59909E-05** at limit **
   9  norm          3.3068        2.2119        .30799E-07   -.13160E-03
  10  Prefactor     .10000E-03    12.175        .57691E-05** at limit **
  11  norm          .10000E-03    5.0064       -.63901E-07** at limit **
  12  norm          .10000E-03    34.868        .50407E-05** at limit **
  13  norm          .10000E-03    1.2176        .55331E-07** at limit **
  14  Prefactor     .10000E-03    4.0899       -.14595E-06** at limit **
  15  Prefactor     .10000E-03    19.750       -.34640E-05** at limit **
  16  norm          3.1188        8.0209        .39852E-05   -.11632E-02
  17  norm          5.9156        3.4387       -.69028E-07   -.15975E-03
  18  Prefactor     14.298        9.9807       -.13440E-07   -.30080E-04
  19  norm          .87197        .83259        .24027E-07   -.72290E-04
  20  norm          33.906        24.266       -.16919E-05   -.20392E-03
  21  norm          8.4083        5.2156        .36490E-06    .19159E-03
  22  Prefactor     13.617        27.597       -.50316E-05   -.17974E-03
  23  Prefactor     .10000E-03    3.0368        .84006E-08** at limit **
  24  norm          8.9690        11.982        .44609E-08   -.38394E-05
  25  Normalizat    .61673        .20349       -.39972E-06   -.34630E-06
  26  Prefactor     1.0427        .63182E-01   -.36352E-07    .63193E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.4959
  norm       = 5.75256
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 3.30682
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.11877
  norm       = 5.91562
  Prefactor  = 14.2976
  norm       = 0.871969
  norm       = 33.9059
  norm       = 8.40826
  Prefactor  = 13.6172
  Prefactor  = 0.0001
  norm       = 8.96898
  Normalizat = 0.616727
  Prefactor  = 1.04274
 **********
 **   18 **HESSE 
 **********

 FCN=   10435.67     FROM HESSE     STATUS=OK           454 CALLS     3593 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.2496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1807        .34961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7666        .18929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.496        9.1759        .10903E-03   -1.4973    
   6  norm          5.7526        1.7943        .72187E-04   -1.5228    
   7  Prefactor     .10000E-03    10.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3068        2.2021        .11508E-03   -1.5344    
  10  Prefactor     .10000E-03    12.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    35.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2253        .11005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1188        11.991        .11474E-02   -1.5355    
  17  norm          5.9156        3.4075        .13357E-03   -1.5221    
  18  Prefactor     14.298        9.9666        .10592E-03   -1.4952    
  19  norm          .87197        .81941        .85783E-04   -1.5521    
  20  norm          33.906        24.318        .68807E-04   -1.4543    
  21  norm          8.4083        5.2376        .13824E-03   -1.5128    
  22  Prefactor     13.617        27.791        .10850E-03   -1.4970    
  23  Prefactor     .10000E-03    3.0428        .17382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9690        11.977        .13383E-03   -1.5109    
  25  Normalizat    .61673        .20960        .54052E-03   -1.0728    
  26  Prefactor     1.0427        .65449E-01    .14520E-03   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16743e-09
Minuit parameter uncertainties:
  1  0.000104752
  2  2.00081e-07
  3  1.0295e-05
  4  0.000436378
  5  9.1769
  6  1.79433
  7  0.000319407
  8  0.000776309
  9  2.20216
  10  0.000352765
  11  2.8543e-06
  12  0.000486196
  13  8.81277e-07
  14  7.01337e-06
  15  0.000230174
  16  12.0006
  17  3.40763
  18  9.96779
  19  0.819425
  20  24.3254
  21  5.23786
  22  27.8171
  23  1.05358e-07
  24  11.98
  25  0.209867
  26  0.0654543
Done.

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

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  3.528e-04  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.043e+00  6.545e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  6.167e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.599 -2.428
Photon Flux Upper Limit: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814143/likelihoodResults_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.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) = 10435.6691671
delta logL = -0.000384967075661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10435.6687822
delta logL = -3.39096004609e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8354       1.0000          .0000       10.000    
     3 'Normalizat'    .61667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10435.67     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    134.51        .90712E-02** at limit **
   2  Index         1.8135        8.3858        .50000        .12824E-04
   3  Normalizat    .61673        .17785        .12176        .53704E-04
   4  Prefactor     1.0427        .61316E-01    .40355E-01   -.50493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81346
  Normalizat = 0.616727
  Prefactor  = 1.04274
 **********
 **   18 **HESSE 
 **********

 FCN=   10435.67     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    990.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8135        7.1274        .50000       -.69100    
   3  Normalizat    .61673        .56549E-01    .54051E-03   -1.0728    
   4  Prefactor     1.0427        .19582E-01    .14520E-03   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77213e-09
Minuit parameter uncertainties:
  1  0.000837067
  2  34.4813
  3  0.0565538
  4  0.0195823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814143': 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) = 10435.668782
delta logL = 1.51818312588e-07

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  8.371e-04  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.813e+00  3.448e+01  0.000e+00  1.000e+01 (-1.000e+00)
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.043e+00  1.958e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  6.167e-01  5.655e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.599 -2.428

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/814143/cmap_HighResolution_350265601_350524801_4FGL_J0746.3-0225_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-08-28 09:47:19.903643', job_id='814143', GAL2='1.04', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1630169239.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='428' AND source_name='4FGL J0746.3-0225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 09:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 814143: <4FGL_J0746.3-0225_daily_bin428> in cluster <slac> Done

Job <4FGL_J0746.3-0225_daily_bin428> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 09:30:43 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 09:30:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 09:30:45 2021
Terminated at Sat Aug 28 09:47:20 2021
Results reported at Sat Aug 28 09:47:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.3-0225_daily_bin428 116.599 -2.428 350265601 350524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.3-0225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   975.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

