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


Performing analysis on: 4FGL_J0746.3-0225_daily_bin1162
RA = 116.599, Dec = -2.428
tmin = 540518401, tmax = 540777601
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='821624', job_status='RUN', time_executed='2021-08-28 09:56:02.761580', time_epoch_executed='1630169762.76' WHERE source_name='4FGL J0746.3-0225' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821624/ft1_4FGL_J0746.3-0225_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821624/ft1_4FGL_J0746.3-0225_daily_bin1162.fits outfile=/scratch/kocevski/821624/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin1162.fits ra=116.599 dec=-2.428 rad=12.0 tmin=540518401.0 tmax=540777601.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 4.85
user 3.47
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.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/821624/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.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 1.63
user 0.33
sys 1.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/821624/ltcube_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.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/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits
.....................!
real 12.91
user 11.26
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/821624/ltcube_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits outfile=/scratch/kocevski/821624/expmap_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.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/821624/ltcube_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits
.....................!
real 191.31
user 185.48
sys 5.39

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/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits outfile=/scratch/kocevski/821624/cmap_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.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 1.67
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits outfile=/scratch/kocevski/821624/cmap_HighResolution_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.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 1.75
user 0.38
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821624/Model_4FGL_J0746.3-0225_daily_bin1162.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/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits.....................!
real 140.00
user 137.02
sys 2.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits', '/scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits', expMap='/scratch/kocevski/821624/expmap_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits', expCube='/scratch/kocevski/821624/ltcube_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/821624/Model_4FGL_J0746.3-0225_daily_bin1162.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/821624/ft1_filtered_4FGL_J0746.3-0225_daily_bin1162.fits
Spacecraft file(s): /scratch/kocevski/821624/ft2_4FGL_J0746.3-0225_daily_bin1162.fits
Exposure map: /scratch/kocevski/821624/expmap_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits
Exposure cube: /scratch/kocevski/821624/ltcube_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/821624/Model_4FGL_J0746.3-0225_daily_bin1162.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) = 9402.39172301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.595       1.0000         .10000E-03   10000.    
     2 'norm      '    .18616E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.591       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4085       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.077       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.166       1.0000         .10000E-03   10000.    
    16 'norm      '    12.725       1.0000         .10000E-03   10000.    
    17 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20958E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .84923E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.552       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4481       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87211       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=   9402.386     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3137 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.587        20.990        .47842E-06   -.28467E-04
   2  norm          .10103E-03    2.9829        .67992E-06** at limit **
   3  norm          1.3320        1.9670        .45231E-06    .16691E-03
   4  Prefactor     .10000E-03    16.370       -.42824E-07** at limit **
   5  Prefactor     .10000E-03    6.0513        .18357E-06** at limit **
   6  norm          4.1406        1.5601        .67816E-07   -.62727E-04
   7  Prefactor     .10000E-03    12.103        .56162E-06** at limit **
   8  Prefactor     76.582        46.882       -.91504E-06   -.35023E-04
   9  norm          4.4094        2.3138       -.89856E-07   -.35315E-04
  10  Prefactor     .10000E-03    10.874       -.10430E-06** at limit **
  11  norm          .10000E-03    4.5709        .40772E-07** at limit **
  12  norm          18.078        20.029       -.28140E-06   -.57450E-06
  13  norm          .10000E-03    .83881        .48575E-07** at limit **
  14  Prefactor     .10000E-03    3.5914        .16258E-06** at limit **
  15  Prefactor     31.096        41.592       -.11154E-05   -.10642E-04
  16  norm          12.729        11.322       -.47629E-06    .22840E-04
  17  norm          .10000E-03    1.2503        .28570E-06** at limit **
  18  Prefactor     .10000E-03    4.6568        .24374E-06** at limit **
  19  norm          .21415E-01    .41021       -.18679E-06    .56831E-03
  20  norm          .10000E-03    53.179       -.11585E-04** at limit **
  21  norm          .10000E-03    1.3104       -.24934E-06** at limit **
  22  Prefactor     17.039        48.498       -.19758E-05   -.23113E-04
  23  Prefactor     .10000E-03    8.8898        .46534E-06** at limit **
  24  norm          14.557        15.620        .32698E-08    .32491E-05
  25  Normalizat    1.4477        .22627        .36703E-05   -.58893E-04
  26  Prefactor     .87227        .66890E-01   -.14156E-05   -.88841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5875
  norm       = 0.000101032
  norm       = 1.33199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14056
  Prefactor  = 0.0001
  Prefactor  = 76.582
  norm       = 4.40937
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.0784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0957
  norm       = 12.7287
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0214153
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.0386
  Prefactor  = 0.0001
  norm       = 14.5572
  Normalizat = 1.4477
  Prefactor  = 0.872268
 **********
 **   18 **HESSE 
 **********

 FCN=   9402.386     FROM HESSE     STATUS=OK           468 CALLS     3605 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.587        21.017        .10142E-03   -1.4918    
   2  norm          .10103E-03    3.0224        .52724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3320        1.9494        .15732E-03   -1.5477    
   4  Prefactor     .10000E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1406        1.5619        .71292E-04   -1.5301    
   7  Prefactor     .10000E-03    12.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.582        46.846        .45883E-04   -1.3955    
   9  norm          4.4094        2.3128        .10091E-03   -1.5288    
  10  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.078        20.030        .47100E-03   -1.4857    
  13  norm          .10000E-03    .84057        .86726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6110        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.096        41.594        .71772E-04   -1.4592    
  16  norm          12.729        11.342        .11229E-03   -1.4994    
  17  norm          .10000E-03    2.6573        .20678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .21415E-01    4.4843        .11748E-02   -1.5679    
  20  norm          .10000E-03    55.230        .36746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3154        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.039        48.568        .96907E-04   -1.4882    
  23  Prefactor     .10000E-03    9.1223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.557        15.596        .10499E-03   -1.4945    
  25  Normalizat    1.4477        .23297        .39450E-03   -.79259    
  26  Prefactor     .87227        .69667E-01    .15842E-03   -.97117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45806e-09
Minuit parameter uncertainties:
  1  21.0267
  2  0.0035325
  3  1.9495
  4  2.15644e-05
  5  1.98414e-06
  6  1.56196
  7  7.86195e-05
  8  46.8688
  9  2.31281
  10  6.01028e-05
  11  3.12493e-07
  12  20.0376
  13  3.68163e-07
  14  4.23427e-07
  15  41.6325
  16  11.3444
  17  6.07343e-05
  18  2.90264e-06
  19  0.618382
  20  0.000523005
  21  3.58835e-06
  22  48.6814
  23  2.05735e-05
  24  15.6004
  25  0.233138
  26  0.0696744
Done.

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

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  6.010e-05  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:  8.723e-01  6.967e-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:  1.448e+00  2.331e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/821624/likelihoodResults_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.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) = 9402.3868863
delta logL = -0.000436802829427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9402.38644948
delta logL = 1.19107426144e-08

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     '    1.8492       1.0000          .0000       10.000    
     3 'Normalizat'    1.4477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87227       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=   9402.386     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.036        .90712E-02** at limit **
   2  Index         1.8410        6.0102        .50000        .56486E-05
   3  Normalizat    1.4477        .19108        .89093E-01   -.30324E-04
   4  Prefactor     .87227        .61816E-01    .44651E-01   -.21041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84104
  Normalizat = 1.4477
  Prefactor  = 0.872268
 **********
 **   18 **HESSE 
 **********

 FCN=   9402.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    725.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8410        5.4094        .50000       -.68386    
   3  Normalizat    1.4477        .58138E-01    .39449E-03   -.79259    
   4  Prefactor     .87227        .18835E-01    .15842E-03   -.97117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15515e-10
Minuit parameter uncertainties:
  1  0.00079124
  2  31.9893
  3  0.0581402
  4  0.0188356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821624': 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) = 9402.38644947
delta logL = 2.42871465161e-08

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  7.912e-04  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.841e+00  3.199e+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:  8.723e-01  1.884e-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:  1.448e+00  5.814e-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/821624/cmap_HighResolution_540518401_540777601_4FGL_J0746.3-0225_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-08-28 10:11:19.756818', job_id='821624', GAL2='0.87', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630170679.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='1162' AND source_name='4FGL J0746.3-0225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 821624: <4FGL_J0746.3-0225_daily_bin1162> in cluster <slac> Done

Job <4FGL_J0746.3-0225_daily_bin1162> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 09:55:23 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 09:55:25 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:55:25 2021
Terminated at Sat Aug 28 10:11:20 2021
Results reported at Sat Aug 28 10:11:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.3-0225_daily_bin1162 116.599 -2.428 540518401 540777601 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 :                                   931.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

