/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 8 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin359
RA = 145.494, Dec = 27.4136
tmin = 332380801, tmax = 332640001
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='434354', job_status='RUN', time_executed='2021-08-31 22:35:55.546554', time_epoch_executed='1630474555.55' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434354/ft1_4FGL_J0941.9+2724_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434354/ft1_4FGL_J0941.9+2724_daily_bin359.fits outfile=/scratch/kocevski/434354/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin359.fits ra=145.494 dec=27.4136 rad=12.0 tmin=332380801.0 tmax=332640001.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.26
user 3.03
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434354/ft1_filtered_4FGL_J0941.9+2724_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/434354/ltcube_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.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/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434354/ft1_filtered_4FGL_J0941.9+2724_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/434354/ltcube_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.fits outfile=/scratch/kocevski/434354/expmap_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.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/434354/ltcube_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.fits
.....................!
real 190.33
user 185.43
sys 4.45

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/434354/ft1_filtered_4FGL_J0941.9+2724_daily_bin359.fits scfile=/scratch/kocevski/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits outfile=/scratch/kocevski/434354/cmap_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434354/ft1_filtered_4FGL_J0941.9+2724_daily_bin359.fits scfile=/scratch/kocevski/434354/ft2_4FGL_J0941.9+2724_daily_bin359.fits outfile=/scratch/kocevski/434354/cmap_HighResolution_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.740       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0198       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53855E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48671E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34689       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.783       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82147       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3013       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=   5709.278     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2621 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.745        16.625        .50635E-05   -.45905E-03
   2  Prefactor     .10000E-03    4.0439        .32730E-07** at limit **
   3  norm          3.8835        136.39       -.43274E-05   -.14092E-04
   4  Prefactor     3.0200        2.7958        .59813E-07   -.90769E-05
   5  norm          1.7409        1.2707        .13795E-07    .28452E-03
   6  Prefactor     .10008E-03    46.635       -.11270E-05** at limit **
   7  Prefactor     .10000E-03    1.7248       -.42253E-06** at limit **
   8  Prefactor     27.990        25.469        .90765E-05   -.25536E-03
   9  Prefactor     8.0708        119.68       -.10897E-04    .18169E-04
  10  Prefactor     .10000E-03    14.620        .17908E-07** at limit **
  11  Prefactor     .10000E-03    1.6065       -.77247E-08** at limit **
  12  Prefactor     .10000E-03    4.3035        .38645E-07** at limit **
  13  Prefactor     .34685        1.8073       -.16654E-05   -.17548E-02
  14  norm          .10000E-03    2.8826        .62287E-07** at limit **
  15  Prefactor     7.9916        4.1140        .28707E-06   -.13186E-03
  16  Prefactor     39.244        39.301       -.40879E-05    .91185E-04
  17  Prefactor     .10000E-03    3.5628        .10109E-06** at limit **
  18  Prefactor     18.788        48.017       -.38222E-05    .29499E-04
  19  Normalizat    .82151        .17341       -.10835E-05    .25600E-03
  20  Prefactor     1.3011        .18496        .35929E-06    .17558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7453
  Prefactor  = 0.0001
  norm       = 3.8835
  Prefactor  = 3.02003
  norm       = 1.74095
  Prefactor  = 0.000100077
  Prefactor  = 0.000100001
  Prefactor  = 27.9896
  Prefactor  = 8.07085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.346852
  norm       = 0.0001
  Prefactor  = 7.9916
  Prefactor  = 39.2436
  Prefactor  = 0.0001
  Prefactor  = 18.7885
  Normalizat = 0.821509
  Prefactor  = 1.30112
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.278     FROM HESSE     STATUS=OK           299 CALLS     2920 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.745        16.331        .73468E-04   -1.4617    
   2  Prefactor     .10000E-03    4.0534        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8835        135.60        .20231E-03   -1.5314    
   4  Prefactor     3.0200        2.7963        .11780E-03   -1.5360    
   5  norm          1.7409        1.2691        .70578E-04   -1.5444    
   6  Prefactor     .10008E-03    46.063        .15311       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.659        .18793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.990        25.210        .75717E-04   -1.4649    
   9  Prefactor     8.0708        119.89        .14111E-03   -1.5140    
  10  Prefactor     .10000E-03    14.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6107        .93515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3252        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .34685        2.0305        .20423E-03   -1.5590    
  14  norm          .10000E-03    2.9018        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9916        4.1090        .10470E-03   -1.5143    
  16  Prefactor     39.244        39.262        .63986E-04   -1.4454    
  17  Prefactor     .10000E-03    3.6158        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.788        48.028        .92415E-04   -1.4841    
  19  Normalizat    .82151        .20086        .25548E-03   -.99276    
  20  Prefactor     1.3011        .21755        .22959E-03   -.83274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27203e-09
Minuit parameter uncertainties:
  1  16.3331
  2  1.7612e-06
  3  46.0081
  4  2.79644
  5  1.2691
  6  0.00376307
  7  0.000297252
  8  25.2196
  9  62.3634
  10  8.98215e-06
  11  1.33041e-07
  12  5.90604e-07
  13  1.67828
  14  2.5372e-06
  15  4.10914
  16  39.2878
  17  6.70476e-06
  18  48.1273
  19  0.201037
  20  0.217703
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.799e+01  2.522e+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.301e+00  2.177e-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:  8.215e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/434354/likelihoodResults_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.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) = 5709.25664349
delta logL = 0.0216156870038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.25515437
delta logL = 0.0231048142896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2534       1.0000          .0000       10.000    
     3 'Normalizat'    .83110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2953       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=   5709.255     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      281 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.143        27.549        .74235E-04   -.29250E-04
   2  Index         2.2537        .85099        .90762E-02    .92479E-05
   3  Normalizat    .83045        .19899        .25422E-03    .26832E-05
   4  Prefactor     1.2959        .21520        .22998E-03    .93924E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1431
  Index      = 2.25367
  Normalizat = 0.830447
  Prefactor  = 1.29591
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.255     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.143        27.491        .29694E-05   -1.4628    
   2  Index         2.2537        .84813        .36305E-03   -.58149    
   3  Normalizat    .83045        .19909        .10169E-04   -.98949    
   4  Prefactor     1.2959        .21535        .91991E-05   -.83429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45636e-12
Minuit parameter uncertainties:
  1  27.5026
  2  0.854068
  3  0.199261
  4  0.215495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434354': 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) = 5709.25514887
delta logL = 0.0231103128526

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.914e+01  2.750e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.254e+00  8.541e-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.296e+00  2.155e-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:  8.304e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.25 +/- 0.85
Photon Flux (Free Index): 2.89e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.18e-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/434354/cmap_HighResolution_332380801_332640001_4FGL_J0941.9+2724_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.18e-05', photon_flux_error='3.21e-08', dlogl='2.31e-02', energy_flux='1.12e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-08-31 22:46:13.101652', photon_index_error2='0.85', photon_index2='2.25', ts='2.75', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.18e-05', EG='0.82', time_epoch_completed='1630475173.1', return_code='0', job_id='434354', GAL2='1.30', EG2='0.83', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.25e-08', ts2='2.79', photon_index='2.43' WHERE bin_id='359' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 434354: <4FGL_J0941.9+2724_daily_bin359> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin359> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:35:36 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:35:37 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:35:37 2021
Terminated at Tue Aug 31 22:46:13 2021
Results reported at Tue Aug 31 22:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin359 145.494 27.4136 332380801 332640001 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 :                                   614.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            637 sec.

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

