/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1083
RA = 145.494, Dec = 27.4136
tmin = 520041601, tmax = 520300801
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='437869', job_status='RUN', time_executed='2021-08-31 22:47:28.954631', time_epoch_executed='1630475248.95' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437869/ft1_4FGL_J0941.9+2724_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437869/ft1_4FGL_J0941.9+2724_daily_bin1083.fits outfile=/scratch/kocevski/437869/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1083.fits ra=145.494 dec=27.4136 rad=12.0 tmin=520041601.0 tmax=520300801.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.25
user 4.02
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/437869/ltcube_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.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/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits
.....................!
real 16.64
user 16.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/437869/ltcube_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits outfile=/scratch/kocevski/437869/expmap_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.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/437869/ltcube_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits
.....................!
real 190.66
user 185.53
sys 4.74

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/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits scfile=/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits outfile=/scratch/kocevski/437869/cmap_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.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.63
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits scfile=/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits outfile=/scratch/kocevski/437869/cmap_HighResolution_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.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.75
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437869/Model_4FGL_J0941.9+2724_daily_bin1083.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/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits.....................!
real 49.95
user 47.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits', '/scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits', expMap='/scratch/kocevski/437869/expmap_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits', expCube='/scratch/kocevski/437869/ltcube_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437869/Model_4FGL_J0941.9+2724_daily_bin1083.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/437869/ft1_filtered_4FGL_J0941.9+2724_daily_bin1083.fits
Spacecraft file(s): /scratch/kocevski/437869/ft2_4FGL_J0941.9+2724_daily_bin1083.fits
Exposure map: /scratch/kocevski/437869/expmap_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits
Exposure cube: /scratch/kocevski/437869/ltcube_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437869/Model_4FGL_J0941.9+2724_daily_bin1083.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) = 5520.39282212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9884       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.811       1.0000         .10000E-03   10000.    
     3 'norm      '    27.671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3067       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17243E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9628       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.011       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96748       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0252       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=   5520.382     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2029 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9883        12.088       -.89497E-06    .28249E-05
   2  Prefactor     23.809        17.032       -.15987E-05    .19302E-03
   3  norm          27.671        35.736       -.10695E-05    .13855E-04
   4  Prefactor     1.3067        4.2014       -.79520E-05   -.70916E-03
   5  norm          2.3343        1.6640       -.75050E-07    .60524E-03
   6  Prefactor     43.151        39.581        .70161E-06    .82463E-05
   7  Prefactor     .10000E-03    2.1828       -.64716E-06** at limit **
   8  Prefactor     32.763        24.500       -.27258E-05    .16880E-03
   9  Prefactor     28.194        46.497       -.77661E-05    .75650E-04
  10  Prefactor     25.755        36.908       -.33085E-04    .40156E-03
  11  Prefactor     2.8562        5.0804       -.29676E-07   -.46600E-03
  12  Prefactor     2.9783        7.5067       -.11909E-06   -.35049E-03
  13  Prefactor     1.9626        1.6975       -.25381E-06    .49966E-05
  14  norm          .10000E-03    3.5286       -.13247E-06** at limit **
  15  Prefactor     .10000E-03    1.1844        .55247E-07** at limit **
  16  Prefactor     .10000E-03    14.861       -.22213E-06** at limit **
  17  Prefactor     1.7913        3.4282       -.10407E-05   -.58571E-03
  18  Prefactor     32.002        46.171       -.15091E-04    .13589E-03
  19  Normalizat    .96752        .17778        .54406E-05    .32808E-03
  20  Prefactor     1.0251        .18276        .20865E-05    .44502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.98832
  Prefactor  = 23.8093
  norm       = 27.6709
  Prefactor  = 1.30667
  norm       = 2.33427
  Prefactor  = 43.1505
  Prefactor  = 0.0001
  Prefactor  = 32.7632
  Prefactor  = 28.1942
  Prefactor  = 25.7547
  Prefactor  = 2.8562
  Prefactor  = 2.97834
  Prefactor  = 1.96258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7913
  Prefactor  = 32.0018
  Normalizat = 0.967519
  Prefactor  = 1.02513
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.382     FROM HESSE     STATUS=OK           291 CALLS     2320 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9883        12.083        .12679E-03   -1.5076    
   2  Prefactor     23.809        17.021        .82089E-04   -1.4732    
   3  norm          27.671        35.756        .76158E-04   -1.4655    
   4  Prefactor     1.3067        4.3341        .26277E-03   -1.5479    
   5  norm          2.3343        1.6542        .77901E-04   -1.5402    
   6  Prefactor     43.151        39.570        .61029E-04   -1.4393    
   7  Prefactor     .10000E-03    21.055        .20419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.763        24.429        .70002E-04   -1.4563    
   9  Prefactor     28.194        46.510        .75445E-04   -1.4646    
  10  Prefactor     25.755        36.632        .78906E-04   -1.4693    
  11  Prefactor     2.8562        5.0628        .21317E-03   -1.5370    
  12  Prefactor     2.9783        7.5027        .23525E-03   -1.5363    
  13  Prefactor     1.9626        1.6953        .86823E-04   -1.5428    
  14  norm          .10000E-03    3.5523        .13629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1895        .78813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7913        3.4138        .18325E-03   -1.5440    
  18  Prefactor     32.002        46.128        .70821E-04   -1.4576    
  19  Normalizat    .96752        .20329        .23446E-03   -.94127    
  20  Prefactor     1.0251        .21106        .24632E-03   -.91897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76865e-09
Minuit parameter uncertainties:
  1  12.0861
  2  17.0244
  3  35.7835
  4  4.33518
  5  1.65419
  6  39.5937
  7  8.50402e-05
  8  24.4368
  9  46.5695
  10  36.6638
  11  5.06353
  12  7.50511
  13  1.6953
  14  1.87853e-05
  15  2.05691e-06
  16  9.31986e-07
  17  3.41414
  18  46.179
  19  0.203455
  20  0.211233
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.276e+01  2.444e+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.025e+00  2.112e-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:  9.675e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.43
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 9.79e-06

TS (Fixed Index): 3.43
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437869/likelihoodResults_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.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) = 5520.25912498
delta logL = 0.123177585787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5520.25017711
delta logL = 0.132125454079

Fit tolerance = 1e-08

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

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

 FCN=   5520.250     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      276 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.401        330.36        .22150E-02    .34159E-03
   2  Index         2.9183        6.4522        .12986        .10698E-03
   3  Normalizat    .94612        .80598E-01    .45494E-01    .58128E-05
   4  Prefactor     1.0420        .73070E-01    .40433E-01    .25362E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4007
  Index      = 2.91828
  Normalizat = 0.946118
  Prefactor  = 1.04201
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.250     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.401        40.231        .44299E-03   -1.4804    
   2  Index         2.9183        1.3940        .63610E-02   -.42942    
   3  Normalizat    .94612        .20090        .23673E-03   -.94858    
   4  Prefactor     1.0420        .21315        .24457E-03   -.91342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96872e-08
Minuit parameter uncertainties:
  1  40.2846
  2  1.41687
  3  0.201055
  4  0.21332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437869': 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) = 5520.25017221
delta logL = 0.132130355573

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.040e+01  4.028e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.918e+00  1.417e+00  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.042e+00  2.133e-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:  9.461e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.92 +/- 1.42
Photon Flux (Free Index): 5.50e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.15e-05 +/- 8.78e-06

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/437869/cmap_HighResolution_520041601_520300801_4FGL_J0941.9+2724_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='1.15e-05', photon_flux_error='3.11e-08', dlogl='1.32e-01', energy_flux='1.31e-05', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-08-31 22:57:43.925137', photon_index_error2='1.42', photon_index2='2.92', ts='3.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='8.78e-06', EG='0.97', time_epoch_completed='1630475863.93', return_code='0', job_id='437869', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='9.79e-06', photon_flux_error2='4.48e-08', ts2='3.72', photon_index='2.43' WHERE bin_id='1083' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:57:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 437869: <4FGL_J0941.9+2724_daily_bin1083> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1083> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:45:58 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:46:00 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:46:00 2021
Terminated at Tue Aug 31 22:57:44 2021
Results reported at Tue Aug 31 22:57:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1083 145.494 27.4136 520041601 520300801 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 :                                   579.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

