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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1393
RA = 145.494, Dec = 27.4136
tmin = 600393601, tmax = 600652801
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='439430', job_status='RUN', time_executed='2021-08-31 22:51:17.272532', time_epoch_executed='1630475477.27' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439430/ft1_4FGL_J0941.9+2724_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439430/ft1_4FGL_J0941.9+2724_daily_bin1393.fits outfile=/scratch/kocevski/439430/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1393.fits ra=145.494 dec=27.4136 rad=12.0 tmin=600393601.0 tmax=600652801.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.90
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.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/439430/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1393.fits evtable="EVENTS" outfile="/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.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.85
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/439430/ltcube_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.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/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits
.....................!
real 11.95
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/439430/ltcube_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits outfile=/scratch/kocevski/439430/expmap_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.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/439430/ltcube_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits
.....................!
real 193.73
user 187.04
sys 4.24

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
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits outfile=/scratch/kocevski/439430/cmap_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.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=145.494 yref=27.4136 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits outfile=/scratch/kocevski/439430/cmap_HighResolution_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.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=145.494 yref=27.4136 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439430/Model_4FGL_J0941.9+2724_daily_bin1393.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
Working on...
/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits.....................!
real 56.27
user 54.94
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits', '/scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits', expMap='/scratch/kocevski/439430/expmap_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits', expCube='/scratch/kocevski/439430/ltcube_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439430/Model_4FGL_J0941.9+2724_daily_bin1393.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/439430/ft1_filtered_4FGL_J0941.9+2724_daily_bin1393.fits
Spacecraft file(s): /scratch/kocevski/439430/ft2_4FGL_J0941.9+2724_daily_bin1393.fits
Exposure map: /scratch/kocevski/439430/expmap_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits
Exposure cube: /scratch/kocevski/439430/ltcube_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439430/Model_4FGL_J0941.9+2724_daily_bin1393.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) = 6409.55133459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7202       1.0000         .10000E-03   10000.    
    14 'norm      '    .44542E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.58       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6409.550     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2576 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.013        23.507        .55824E-07   -.24154E-04
   2  Prefactor     .10000E-03    9.1157       -.27232E-07** at limit **
   3  norm          .10000E-03    17.685       -.75016E-06** at limit **
   4  Prefactor     .10000E-03    1.2962        .21450E-07** at limit **
   5  norm          4.1527        2.2043        .13931E-07   -.20797E-04
   6  Prefactor     5.7217        83.929       -.10573E-06   -.84021E-05
   7  Prefactor     .10000E-03    2.2957        .14788E-07** at limit **
   8  Prefactor     87.195        36.077        .13916E-05    .31360E-03
   9  Prefactor     .10000E-03    28.077       -.36499E-06** at limit **
  10  Prefactor     35.359        43.504        .22450E-06   -.10813E-04
  11  Prefactor     .10000E-03    5.5657        .13117E-05** at limit **
  12  Prefactor     .91654        9.0698        .34109E-05   -.31497E-03
  13  Prefactor     1.7201        1.9975        .58282E-07   -.16962E-03
  14  norm          .10000E-03    4.1253       -.38953E-07** at limit **
  15  Prefactor     .10000E-03    2.0041       -.53430E-07** at limit **
  16  Prefactor     100.57        59.631       -.53993E-06   -.80758E-04
  17  Prefactor     .10000E-03    5.5413       -.12149E-05** at limit **
  18  Prefactor     .10000E-03    18.170        .80745E-06** at limit **
  19  Normalizat    1.0085        .18265       -.69388E-06   -.10678E-04
  20  Prefactor     1.1323        .18464        .29547E-07   -.56002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0133
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15272
  Prefactor  = 5.72168
  Prefactor  = 0.0001
  Prefactor  = 87.1946
  Prefactor  = 0.0001
  Prefactor  = 35.3589
  Prefactor  = 0.0001
  Prefactor  = 0.916543
  Prefactor  = 1.72012
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 100.574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00851
  Prefactor  = 1.13234
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.550     FROM HESSE     STATUS=OK           291 CALLS     2867 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.013        23.515        .63367E-04   -1.4442    
   2  Prefactor     .10000E-03    9.1395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3014        .89006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1527        2.2037        .83697E-04   -1.5300    
   6  Prefactor     5.7217        84.177        .16791E-03   -1.5230    
   7  Prefactor     .10000E-03    2.3308        .11836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     87.195        37.350        .43027E-04   -1.3838    
   9  Prefactor     .10000E-03    28.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.359        43.540        .67395E-04   -1.4518    
  11  Prefactor     .10000E-03    5.9151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .91654        10.968        .50420E-03   -1.5516    
  13  Prefactor     1.7201        1.9794        .11716E-03   -1.5446    
  14  norm          .10000E-03    30.812        .31529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0300        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     100.57        59.974        .40088E-04   -1.3699    
  17  Prefactor     .10000E-03    5.8824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0085        .21649        .26010E-03   -.92746    
  20  Prefactor     1.1323        .22015        .25440E-03   -.88440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08699e-10
Minuit parameter uncertainties:
  1  23.5199
  2  2.63293e-06
  3  0.000125877
  4  1.17495e-06
  5  2.20379
  6  43.9664
  7  4.57783e-06
  8  37.3602
  9  8.52015e-05
  10  43.5792
  11  9.46624e-05
  12  6.34219
  13  1.97945
  14  0.000368109
  15  2.09189e-06
  16  60.0105
  17  9.23061e-05
  18  0.000143377
  19  0.216679
  20  0.220324
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  8.719e+01  3.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.132e+00  2.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.009e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.65
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.76e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.50e-05

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) = 6409.51049853
delta logL = 0.0396337109842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.50283178
delta logL = 0.04730045837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.659       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3199       1.0000          .0000       10.000    
     3 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   6409.503     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      298 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.648        45.211        .41528E-04    .73916E-05
   2  Index         2.3200        .36855        .52939E-02    .30964E-03
   3  Normalizat    1.0193        .21609        .25890E-03   -.72587E-04
   4  Prefactor     1.1252        .21948        .25511E-03    .26248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.6479
  Index      = 2.31998
  Normalizat = 1.01933
  Prefactor  = 1.12523
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.503     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.648        44.690        .83055E-05   -1.3769    
   2  Index         2.3200        .36407        .10588E-02   -.56570    
   3  Normalizat    1.0193        .21630        .10356E-04   -.92385    
   4  Prefactor     1.1252        .21969        .10205E-04   -.88664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69561e-11
Minuit parameter uncertainties:
  1  44.7058
  2  0.364527
  3  0.216483
  4  0.219867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439430': 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) = 6409.50283105
delta logL = 0.0473011869362

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  9.365e+01  4.471e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.320e+00  3.645e-01  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.125e+00  2.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.019e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.68
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.32 +/- 0.36
Photon Flux (Free Index): 1.02e-07 +/- 5.45e-08
Energy Flux (Free Index): 3.74e-05 +/- 1.87e-05

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/439430/cmap_HighResolution_600393601_600652801_4FGL_J0941.9+2724_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.74e-05', photon_flux_error='4.76e-08', dlogl='4.73e-02', energy_flux='3.49e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-31 23:01:14.970020', photon_index_error2='0.36', photon_index2='2.32', ts='11.65', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='1.01', time_epoch_completed='1630476074.97', return_code='0', job_id='439430', GAL2='1.13', EG2='1.02', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.45e-08', ts2='11.68', photon_index='2.43' WHERE bin_id='1393' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 439430: <4FGL_J0941.9+2724_daily_bin1393> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1393> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:50:48 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:50:49 2021
Terminated at Tue Aug 31 23:01:15 2021
Results reported at Tue Aug 31 23:01:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1393 145.494 27.4136 600393601 600652801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            627 sec.

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

