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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1600
RA = 116.628, Dec = 27.5153
tmin = 654048001, tmax = 654307201
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='256317', job_status='RUN', time_executed='2021-09-26 00:14:41.206992', time_epoch_executed='1632640481.21' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256317

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256317/ft1_4FGL_J0746.5+2730_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256317/ft1_4FGL_J0746.5+2730_daily_bin1600.fits outfile=/scratch/kocevski/256317/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1600.fits ra=116.628 dec=27.5153 rad=12.0 tmin=654048001.0 tmax=654307201.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.71
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.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/256317/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.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.65
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/256317/ltcube_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.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/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits
.....................!
real 14.88
user 14.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/256317/ltcube_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits outfile=/scratch/kocevski/256317/expmap_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.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/256317/ltcube_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits
.....................!
real 192.10
user 186.18
sys 4.98

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/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits outfile=/scratch/kocevski/256317/cmap_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.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 0.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits outfile=/scratch/kocevski/256317/cmap_HighResolution_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.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 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256317/Model_4FGL_J0746.5+2730_daily_bin1600.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/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits.....................!
real 75.68
user 74.13
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits', '/scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits', expMap='/scratch/kocevski/256317/expmap_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits', expCube='/scratch/kocevski/256317/ltcube_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256317/Model_4FGL_J0746.5+2730_daily_bin1600.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/256317/ft1_filtered_4FGL_J0746.5+2730_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/256317/ft2_4FGL_J0746.5+2730_daily_bin1600.fits
Exposure map: /scratch/kocevski/256317/expmap_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits
Exposure cube: /scratch/kocevski/256317/ltcube_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256317/Model_4FGL_J0746.5+2730_daily_bin1600.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) = 6810.64264472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    8.3903       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1819       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.237       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9449       1.0000         .10000E-03   10000.    
    14 'norm      '    47.468       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6628       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0343       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93754       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=   6810.617     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2178 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5383       -.90661E-07** at limit **
   2  norm          8.3895        8.0925        .20642E-06   -.55417E-05
   3  norm          1.5759        .80645        .16440E-07    .96003E-04
   4  Prefactor     .10000E-03    4.7250        .11004E-06** at limit **
   5  Prefactor     2.1812        9.9441        .80542E-05   -.11207E-03
   6  norm          1.0608        1.1363       -.27157E-07    .13351E-04
   7  Prefactor     15.238        10.413        .34532E-06    .68317E-04
   8  norm          1.6467        3.5636        .16550E-05    .58169E-03
   9  Prefactor     33.519        41.300       -.37189E-05    .96635E-05
  10  Prefactor     .10000E-03    13.486       -.39918E-07** at limit **
  11  Prefactor     .10000E-03    26.450       -.94013E-06** at limit **
  12  Prefactor     .10000E-03    28.378        .24866E-05** at limit **
  13  norm          3.9446        10.285        .32830E-05   -.54576E-04
  14  norm          47.491        69.043       -.14624E-05    .81032E-04
  15  Prefactor     15.119        25.388        .90453E-06   -.65958E-04
  16  Prefactor     .10000E-03    13.438       -.15032E-06** at limit **
  17  Prefactor     .88571        13.044        .15371E-06   -.35753E-04
  18  Prefactor     .10000E-03    7.4218       -.74432E-07** at limit **
  19  norm          3.6628        1.4192        .56865E-07    .45634E-04
  20  Normalizat    1.0341        .19012       -.25825E-05   -.99668E-04
  21  Prefactor     .93774        .12370        .85422E-06    .93505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.38948
  norm       = 1.57588
  Prefactor  = 0.0001
  Prefactor  = 2.18116
  norm       = 1.06083
  Prefactor  = 15.2383
  norm       = 1.64673
  Prefactor  = 33.5194
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.94461
  norm       = 47.4909
  Prefactor  = 15.1191
  Prefactor  = 0.0001
  Prefactor  = 0.885712
  Prefactor  = 0.0001
  norm       = 3.66284
  Normalizat = 1.03411
  Prefactor  = 0.937735
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.617     FROM HESSE     STATUS=OK           323 CALLS     2501 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.3895        8.0950        .69199E-03   -1.5129    
   3  norm          1.5759        .80002        .50782E-04   -1.5457    
   4  Prefactor     .10000E-03    4.7831        .17506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1812        10.015        .13935E-02   -1.5413    
   6  norm          1.0608        1.1365        .81151E-04   -1.5502    
   7  Prefactor     15.238        10.333        .10261E-03   -1.4927    
   8  norm          1.6467        3.5436        .20114E-03   -1.5451    
   9  Prefactor     33.519        41.548        .69237E-04   -1.4549    
  10  Prefactor     .10000E-03    13.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9446        10.269        .10155E-02   -1.5311    
  14  norm          47.491        68.880        .58199E-04   -1.4329    
  15  Prefactor     15.119        25.387        .10299E-03   -1.4930    
  16  Prefactor     .10000E-03    13.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .88571        70.483        .57506E-02   -1.5520    
  18  Prefactor     .10000E-03    7.4350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6628        1.4184        .58973E-04   -1.5325    
  20  Normalizat    1.0341        .22149        .27819E-03   -.91896    
  21  Prefactor     .93774        .14589        .20059E-03   -.94835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73306e-08
Minuit parameter uncertainties:
  1  1.17588e-05
  2  8.09604
  3  0.800025
  4  1.6254e-05
  5  9.34987
  6  1.13657
  7  10.3338
  8  3.54407
  9  41.584
  10  2.43795e-05
  11  0.000230554
  12  0.000199697
  13  10.2735
  14  68.9953
  15  25.405
  16  8.7993e-05
  17  15.8207
  18  4.05398e-06
  19  1.41842
  20  0.221688
  21  0.145951
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  3.352e+01  4.158e+01  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:  9.377e-01  1.460e-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.034e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256317/likelihoodResults_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.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) = 6809.34214109
delta logL = 1.27491901684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6809.32916762
delta logL = 1.28789248742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4746       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3530       1.0000          .0000       10.000    
     3 'Normalizat'    .95620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97343       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.

 FCN=   6809.329     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4698        60.073        .42932E-02    .33159E-03
   2  Index         4.3537        3.0814        .12666        .15192E-03
   3  Normalizat    .95618        .65221E-01    .45616E-01    .87814E-05
   4  Prefactor     .97344        .44471E-01    .45934E-01   -.98796E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46983
  Index      = 4.3537
  Normalizat = 0.956179
  Prefactor  = 0.973439
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.329     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4698        100.70        .11178E-03   -1.5240    
   2  Index         4.3537        6.9485        .48236E-02   -.12962    
   3  Normalizat    .95618        .20521        .28746E-03   -.94513    
   4  Prefactor     .97344        .13973        .19723E-03   -.93620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79385e-07
Minuit parameter uncertainties:
  1  47.0313
  2  5.01002
  3  0.205381
  4  0.139783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256317': 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) = 6809.32916731
delta logL = 1.28789279602

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  5.470e+00  4.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  4.354e+00  5.010e+00  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:  9.734e-01  1.398e-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:  9.562e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 116.628 27.515
Photon Index (Free Index): 4.35 +/- 5.01
Photon Flux (Free Index): 9.09e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.29e-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/256317/cmap_HighResolution_654048001_654307201_4FGL_J0746.5+2730_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.29e+00', photon_flux2='9.09e-08', job_status='DONE', time_completed='2021-09-26 00:26:11.624758', photon_index_error2='5.01', photon_index2='4.35', ts='0.99', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.29e-05', EG='1.03', time_epoch_completed='1632641171.62', return_code='0', job_id='256317', GAL2='0.97', EG2='0.96', return_code2='102', photon_flux_error2='5.76e-08', ts2='3.82', photon_index='2.62' WHERE bin_id='1600' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 256317: <4FGL_J0746.5+2730_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1600> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 00:10:21 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:10:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:10:28 2021
Terminated at Sun Sep 26 00:26:12 2021
Results reported at Sun Sep 26 00:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1600 116.628 27.5153 654048001 654307201 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 :                                   690.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            951 sec.

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

