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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1348
RA = 116.628, Dec = 27.5153
tmin = 588729601, tmax = 588988801
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='846556', job_status='RUN', time_executed='2021-08-28 11:10:51.824287', time_epoch_executed='1630174251.82' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846556/ft1_4FGL_J0746.5+2730_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846556/ft1_4FGL_J0746.5+2730_daily_bin1348.fits outfile=/scratch/kocevski/846556/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1348.fits ra=116.628 dec=27.5153 rad=12.0 tmin=588729601.0 tmax=588988801.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.43
user 2.96
sys 3.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.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/846556/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1348.fits evtable="EVENTS" outfile="/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.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 3.77
user 0.30
sys 3.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/846556/ltcube_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.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/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits
.....................!
real 15.85
user 11.73
sys 3.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/846556/ltcube_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits outfile=/scratch/kocevski/846556/expmap_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.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/846556/ltcube_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits
.....................!
real 195.66
user 185.73
sys 8.70

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 IC 443 in ROI with RadialGaussian spatial model.
Added 178 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 J0746.5+2730 @ 116.628 27.5153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits outfile=/scratch/kocevski/846556/cmap_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.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.628 yref=27.5153 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 3.72
user 0.37
sys 3.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits outfile=/scratch/kocevski/846556/cmap_HighResolution_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.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.628 yref=27.5153 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 3.70
user 0.38
sys 3.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846556/Model_4FGL_J0746.5+2730_daily_bin1348.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 IC 443
Working on...
/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits.....................!
real 81.13
user 75.58
sys 4.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits', '/scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits', expMap='/scratch/kocevski/846556/expmap_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits', expCube='/scratch/kocevski/846556/ltcube_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846556/Model_4FGL_J0746.5+2730_daily_bin1348.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.5+2730'

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  7.489e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/846556/ft1_filtered_4FGL_J0746.5+2730_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/846556/ft2_4FGL_J0746.5+2730_daily_bin1348.fits
Exposure map: /scratch/kocevski/846556/expmap_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits
Exposure cube: /scratch/kocevski/846556/ltcube_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846556/Model_4FGL_J0746.5+2730_daily_bin1348.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) = 6607.74806404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2745       1.0000         .10000E-03   10000.    
     2 'norm      '    26.442       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9451       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6011       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59359E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8613       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12747E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4158       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6607.710     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     1904 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2747        8.8690        .23468E-05   -.97801E-04
   2  norm          26.445        12.909        .14540E-06   -.71318E-04
   3  norm          .10000E-03    .18762       -.55533E-07** at limit **
   4  Prefactor     3.4580        6.1261        .14354E-05    .55284E-04
   5  Prefactor     1.9449        8.8792        .90937E-05   -.16346E-03
   6  norm          2.3926        2.2638        .16789E-06   -.13966E-02
   7  Prefactor     1.6103        30.957       -.35356E-05   -.45370E-03
   8  norm          1.0662        2.6904       -.21376E-06   -.65644E-03
   9  Prefactor     .10000E-03    13.956        .33998E-07** at limit **
  10  Prefactor     14.553        11.946        .75716E-07   -.72510E-04
  11  Prefactor     .10001E-03    222.04        .93488E-05** at limit **
  12  Prefactor     .10000E-03    9.4110        .31006E-07** at limit **
  13  norm          6.8630        15.068        .47304E-06   -.35341E-04
  14  norm          .10000E-03    28.563       -.21356E-05** at limit **
  15  Prefactor     .10000E-03    93.667       -.35547E-06** at limit **
  16  Prefactor     .10000E-03    11.623       -.10675E-06** at limit **
  17  Prefactor     1.0587        19.871        .44531E-05   -.20722E-03
  18  Prefactor     .10000E-03    27.249        .17234E-05** at limit **
  19  norm          .10000E-03    .53800        .10458E-07** at limit **
  20  Normalizat    1.4157        .20409       -.80872E-06   -.56521E-03
  21  Prefactor     .72099        .12228       -.12899E-05   -.66392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27472
  norm       = 26.4451
  norm       = 0.0001
  Prefactor  = 3.45799
  Prefactor  = 1.94494
  norm       = 2.39264
  Prefactor  = 1.61031
  norm       = 1.06623
  Prefactor  = 0.0001
  Prefactor  = 14.5534
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 6.86298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05865
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.41567
  Prefactor  = 0.720991
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.710     FROM HESSE     STATUS=OK           319 CALLS     2223 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2747        8.8644        .97436E-03   -1.5294    
   2  norm          26.445        12.905        .38953E-03   -1.4679    
   3  norm          .10000E-03    .22442        .68485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4580        6.1384        .21751E-03   -1.5336    
   5  Prefactor     1.9449        9.0097        .14881E-02   -1.5429    
   6  norm          2.3926        2.1702        .77029E-04   -1.5399    
   7  Prefactor     1.6103        29.749        .33503E-03   -1.5454    
   8  norm          1.0662        2.2940        .20111E-02   -1.5501    
   9  Prefactor     .10000E-03    13.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.553        11.891        .10499E-03   -1.4945    
  11  Prefactor     .10001E-03    224.32        .42139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8630        15.114        .15317E-03   -1.5184    
  14  norm          .10000E-03    28.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    95.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0587        206.30        .65886E-02   -1.5502    
  18  Prefactor     .10000E-03    27.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .55886        .11641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4157        .23931        .25687E-03   -.80176    
  21  Prefactor     .72099        .14373        .21768E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45394e-09
Minuit parameter uncertainties:
  1  8.86709
  2  12.9066
  3  1.02115e-06
  4  6.13948
  5  8.37402
  6  2.17024
  7  13.8502
  8  2.29421
  9  3.66718e-07
  10  11.8932
  11  0.0034111
  12  3.36771e-06
  13  15.1222
  14  2.2577e-05
  15  0.000343265
  16  3.86856e-06
  17  29.6595
  18  1.4211e-05
  19  7.74245e-08
  20  0.239502
  21  0.143799
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.667e-07  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.210e-01  1.438e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.416e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846556/likelihoodResults_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.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) = 6607.71049635
delta logL = -0.000340437430168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6607.7101559
delta logL = 1.90284481505e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6047       1.0000          .0000       10.000    
     3 'Normalizat'    1.4156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   6607.710     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      258 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.179        .18142E-01** at limit **
   2  Index         2.0135        8.9397        .50000        .12392E-06
   3  Normalizat    1.4157        .10837E-01    .25687E-03   -.60458E-04
   4  Prefactor     .72099        .68389E-02    .21768E-03   -.68154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01351
  Normalizat = 1.41567
  Prefactor  = 0.720992
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    456.10        .33731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0135        5.9566        .50000       -.64013    
   3  Normalizat    1.4157        .26099E-01    .10275E-04   -.80176    
   4  Prefactor     .72099        .16470E-01    .87074E-05   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38607e-09
Minuit parameter uncertainties:
  1  4.59982e-05
  2  1163.56
  3  0.0260993
  4  0.0164699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846556': 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) = 6607.7101551
delta logL = 8.15112798591e-07

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.600e-05  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.014e+00  1.164e+03  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.210e-01  1.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.416e+00  2.610e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.628 27.515

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/846556/cmap_HighResolution_588729601_588988801_4FGL_J0746.5+2730_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-08-28 11:22:26.666937', job_id='846556', GAL2='0.72', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630174946.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1348' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 846556: <4FGL_J0746.5+2730_daily_bin1348> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1348> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 11:06:17 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:06:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 11:06:28 2021
Terminated at Sat Aug 28 11:22:27 2021
Results reported at Sat Aug 28 11:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1348 116.628 27.5153 588729601 588988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.5+2730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            970 sec.

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

