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


Performing analysis on: 4FGL_J0746.3-0225_daily_bin1071
RA = 116.599, Dec = -2.428
tmin = 516931201, tmax = 517190401
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='820368', job_status='RUN', time_executed='2021-08-28 09:51:50.653375', time_epoch_executed='1630169510.65' WHERE source_name='4FGL J0746.3-0225' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820368/ft1_4FGL_J0746.3-0225_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820368/ft1_4FGL_J0746.3-0225_daily_bin1071.fits outfile=/scratch/kocevski/820368/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin1071.fits ra=116.599 dec=-2.428 rad=12.0 tmin=516931201.0 tmax=517190401.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.32
user 3.72
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/820368/ltcube_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.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/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits
.....................!
real 11.91
user 11.19
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/820368/ltcube_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.fits outfile=/scratch/kocevski/820368/expmap_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.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/820368/ltcube_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.fits
.....................!
real 196.74
user 190.34
sys 6.02

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/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits scfile=/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits outfile=/scratch/kocevski/820368/cmap_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.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.85
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits scfile=/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits outfile=/scratch/kocevski/820368/cmap_HighResolution_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.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.83
user 0.36
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/820368/ft2_4FGL_J0746.3-0225_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820368/Model_4FGL_J0746.3-0225_daily_bin1071.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/820368/ft1_filtered_4FGL_J0746.3-0225_daily_bin1071.fits.....................!
real 117.30
user 114.80
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7041       1.0000         .10000E-03   10000.    
     2 'norm      '    11.486       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2505       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0111       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.822       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
    11 'norm      '    23.139       1.0000         .10000E-03   10000.    
    12 'norm      '    21.375       1.0000         .10000E-03   10000.    
    13 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5211       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.316       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6090       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33103       1.0000         .10000E-03   10000.    
    24 'norm      '    .10870E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3001       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82315       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=   7937.317     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3131 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7049        19.943       -.74956E-06   -.86105E-04
   2  norm          11.487        5.7780       -.24977E-05   -.37311E-04
   3  norm          1.5933        1.9428       -.26496E-06   -.90950E-03
   4  Prefactor     .10000E-03    45.023       -.38795E-05** at limit **
   5  Prefactor     3.2509        4.4281       -.18254E-05   -.12406E-03
   6  norm          5.0114        1.9448       -.12140E-06   -.13423E-03
   7  Prefactor     .10000E-03    5.3207       -.80923E-07** at limit **
   8  Prefactor     37.820        41.706        .65279E-07    .36068E-05
   9  norm          .10000E-03    .64510       -.18451E-07** at limit **
  10  Prefactor     23.566        37.390        .42389E-05   -.93742E-06
  11  norm          23.141        21.942        .92532E-06    .28384E-05
  12  norm          21.377        22.356        .10251E-05   -.79327E-05
  13  norm          .10000E-03    4.8220       -.12680E-06** at limit **
  14  Prefactor     .10000E-03    3.1516        .18024E-06** at limit **
  15  Prefactor     .10000E-03    56.865        .13597E-04** at limit **
  16  norm          .10000E-03    4.2795        .14961E-07** at limit **
  17  norm          2.5214        2.1592       -.18066E-07    .77896E-05
  18  Prefactor     .10000E-03    24.796       -.18942E-06** at limit **
  19  norm          .10000E-03    .55423        .47704E-07** at limit **
  20  norm          12.314        18.921        .87790E-06   -.12922E-03
  21  norm          2.6090        2.5240        .36863E-07    .21108E-03
  22  Prefactor     .10000E-03    14.104        .50298E-06** at limit **
  23  Prefactor     .38797        7.4493       -.93633E-06    .10562E-03
  24  norm          .10000E-03    68.870       -.14577E-04** at limit **
  25  Normalizat    1.2999        .20758       -.83949E-06    .10867E-03
  26  Prefactor     .82314        .68735E-01    .97739E-06    .57674E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70492
  norm       = 11.4871
  norm       = 1.59329
  Prefactor  = 0.0001
  Prefactor  = 3.25089
  norm       = 5.01144
  Prefactor  = 0.0001
  Prefactor  = 37.8198
  norm       = 0.0001
  Prefactor  = 23.5665
  norm       = 23.1409
  norm       = 21.3771
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.52142
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.3138
  norm       = 2.609
  Prefactor  = 0.0001
  Prefactor  = 0.387974
  norm       = 0.000100001
  Normalizat = 1.29994
  Prefactor  = 0.823143
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.317     FROM HESSE     STATUS=OK           464 CALLS     3595 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7049        20.086        .24772E-03   -1.5379    
   2  norm          11.487        5.8004        .11820E-03   -1.5030    
   3  norm          1.5933        1.9322        .12939E-03   -1.5456    
   4  Prefactor     .10000E-03    45.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2509        4.4402        .21406E-03   -1.5347    
   6  norm          5.0114        1.9528        .73560E-04   -1.5260    
   7  Prefactor     .10000E-03    5.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.820        41.762        .65170E-04   -1.4477    
   9  norm          .10000E-03    .65433        .69812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.566        37.366        .82518E-04   -1.4737    
  11  norm          23.141        21.946        .83271E-04   -1.4745    
  12  norm          21.377        22.357        .86635E-04   -1.4783    
  13  norm          .10000E-03    4.9743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1557        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2860        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5214        2.1485        .11687E-03   -1.5390    
  18  Prefactor     .10000E-03    25.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3204        .12542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.314        18.922        .11414E-03   -1.5006    
  21  norm          2.6090        2.5355        .13542E-03   -1.5385    
  22  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .38797        77.365        .45565E-02   -1.5583    
  24  norm          .10000E-03    69.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2999        .22193        .37308E-03   -.83568    
  26  Prefactor     .82314        .74144E-01    .15516E-03   -.98881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02244e-09
Minuit parameter uncertainties:
  1  14.7484
  2  5.80069
  3  1.93231
  4  2.46902e-05
  5  4.44065
  6  1.95281
  7  1.82318e-06
  8  41.7944
  9  4.09248e-07
  10  37.4034
  11  21.9541
  12  22.366
  13  9.94512e-06
  14  2.31702e-06
  15  0.000241
  16  3.57835e-06
  17  2.14857
  18  2.65997e-05
  19  1.3508e-05
  20  18.9314
  21  2.53557
  22  5.46997e-06
  23  10.9703
  24  0.000460955
  25  0.222093
  26  0.0741527
Done.

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

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  2.357e+01  3.740e+01  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.231e-01  7.415e-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.300e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 116.599 -2.428
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/820368/likelihoodResults_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.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): 0
logL (Free Index) = 7936.50033442
delta logL = 0.816730413547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7936.48802361
delta logL = 0.829041222443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2741       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6407       1.0000          .0000       10.000    
     3 'Normalizat'    1.2568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82661       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=   7936.488     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      276 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2741        183.88        .32900E-02    .65296E-03
   2  Index         2.6410        2.3988        .86368E-01    .26360E-03
   3  Normalizat    1.2567        .94349E-01    .85395E-01    .12868E-03
   4  Prefactor     .82656        .29756E-01    .44063E-01    .34830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.27407
  Index      = 2.64098
  Normalizat = 1.25671
  Prefactor  = 0.826564
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.488     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2741        27.191        .13160E-03   -1.5099    
   2  Index         2.6410        1.0001        .44461E-02   -.49134    
   3  Normalizat    1.2567        .20805        .37808E-03   -.84868    
   4  Prefactor     .82656        .69673E-01    .15479E-03   -.98756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39492e-09
Minuit parameter uncertainties:
  1  27.2269
  2  1.00887
  3  0.208187
  4  0.0696806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820368': 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): 0
logL (Free Index) = 7936.48802241
delta logL = 0.829042431385

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  9.274e+00  2.723e+01  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  2.641e+00  1.009e+00  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.266e-01  6.968e-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.257e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 116.599 -2.428
Photon Index (Free Index): 2.64 +/- 1.01
Photon Flux (Free Index): 7.50e-08 +/- 6.33e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.02e-05

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/820368/cmap_HighResolution_516931201_517190401_4FGL_J0746.3-0225_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='8.29e-01', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-08-28 10:05:44.624527', photon_index_error2='1.01', photon_index2='2.64', ts='0.54', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='2.02e-05', EG='1.30', time_epoch_completed='1630170344.62', return_code='0', job_id='820368', GAL2='0.83', EG2='1.26', return_code2='0', photon_flux_error2='6.33e-08', ts2='2.24', photon_index='1.86' WHERE bin_id='1071' AND source_name='4FGL J0746.3-0225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 820368: <4FGL_J0746.3-0225_daily_bin1071> in cluster <slac> Done

Job <4FGL_J0746.3-0225_daily_bin1071> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 09:51:09 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 09:51:20 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:51:20 2021
Terminated at Sat Aug 28 10:05:45 2021
Results reported at Sat Aug 28 10:05:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.3-0225_daily_bin1071 116.599 -2.428 516931201 517190401 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 :                                   834.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            876 sec.

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

