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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin882
RA = 145.494, Dec = 27.4136
tmin = 467942401, tmax = 468201601
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='437577', job_status='RUN', time_executed='2021-08-31 22:46:04.459292', time_epoch_executed='1630475164.46' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437577/ft1_4FGL_J0941.9+2724_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437577/ft2_4FGL_J0941.9+2724_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437577/ft1_4FGL_J0941.9+2724_daily_bin882.fits outfile=/scratch/kocevski/437577/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin882.fits ra=145.494 dec=27.4136 rad=12.0 tmin=467942401.0 tmax=468201601.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.66
user 3.45
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437577/ft1_filtered_4FGL_J0941.9+2724_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/437577/ft2_4FGL_J0941.9+2724_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/437577/ltcube_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.fits outfile=/scratch/kocevski/437577/expmap_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.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/437577/ltcube_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.fits
.....................!
real 189.56
user 185.24
sys 4.01

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/437577/ft1_filtered_4FGL_J0941.9+2724_daily_bin882.fits scfile=/scratch/kocevski/437577/ft2_4FGL_J0941.9+2724_daily_bin882.fits outfile=/scratch/kocevski/437577/cmap_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437577/ft1_filtered_4FGL_J0941.9+2724_daily_bin882.fits scfile=/scratch/kocevski/437577/ft2_4FGL_J0941.9+2724_daily_bin882.fits outfile=/scratch/kocevski/437577/cmap_HighResolution_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3680       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13736E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.410       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79664       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3880       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=   6958.750     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2059 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3340       -.18124E-06** at limit **
   2  Prefactor     3.3557        14.385       -.25583E-06   -.48246E-03
   3  norm          .10000E-03    11.064       -.61320E-06** at limit **
   4  Prefactor     .10000E-03    1.7127        .85994E-07** at limit **
   5  norm          1.6462        1.1371       -.18145E-07    .10921E-03
   6  Prefactor     18.809        46.979       -.73383E-05   -.25927E-04
   7  Prefactor     .44655        2.8885       -.59317E-06   -.47725E-03
   8  Prefactor     19.356        27.643       -.16397E-05   -.15510E-04
   9  Prefactor     .10000E-03    17.032       -.29717E-06** at limit **
  10  Prefactor     43.286        34.854       -.18029E-05   -.20814E-04
  11  Prefactor     10.229        7.5839       -.18898E-05   -.21559E-03
  12  Prefactor     .10000E-03    5.0935        .55748E-07** at limit **
  13  Prefactor     .10000E-03    1.5683        .23527E-06** at limit **
  14  norm          13.125        7.9561        .27658E-06    .26806E-04
  15  Prefactor     4.2451        5.0733       -.90199E-06   -.15305E-03
  16  Prefactor     7.8387        60.894       -.26873E-05   -.42510E-05
  17  Prefactor     5.0041        4.7428        .95326E-06   -.20953E-02
  18  Prefactor     34.395        65.989       -.13262E-04   -.55285E-04
  19  Normalizat    .79651        .17205        .30534E-05   -.73999E-04
  20  Prefactor     1.3882        .17216       -.35751E-06    .99788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.35566
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64618
  Prefactor  = 18.8089
  Prefactor  = 0.446555
  Prefactor  = 19.3556
  Prefactor  = 0.0001
  Prefactor  = 43.2858
  Prefactor  = 10.2294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1245
  Prefactor  = 4.24507
  Prefactor  = 7.83867
  Prefactor  = 5.00405
  Prefactor  = 34.3954
  Normalizat = 0.796514
  Prefactor  = 1.38821
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.750     FROM HESSE     STATUS=OK           297 CALLS     2356 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3557        19.356        .11025E-02   -1.5342    
   3  norm          .10000E-03    11.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7383        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6462        1.1475        .71913E-04   -1.5451    
   6  Prefactor     18.809        47.029        .92335E-04   -1.4840    
   7  Prefactor     .44655        2.9890        .27339E-03   -1.5574    
   8  Prefactor     19.356        27.620        .91030E-04   -1.4828    
   9  Prefactor     .10000E-03    17.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.286        34.906        .60933E-04   -1.4391    
  11  Prefactor     10.229        7.6200        .12528E-03   -1.5068    
  12  Prefactor     .10000E-03    5.1375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7396        .20013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.125        7.9556        .11057E-03   -1.4983    
  15  Prefactor     4.2451        5.5248        .16298E-03   -1.5296    
  16  Prefactor     7.8387        60.990        .14196E-03   -1.5148    
  17  Prefactor     5.0041        6.7280        .89882E-03   -1.5261    
  18  Prefactor     34.395        66.442        .68315E-04   -1.4534    
  19  Normalizat    .79651        .20237        .28129E-03   -1.0020    
  20  Prefactor     1.3882        .20339        .23430E-03   -.80721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76709e-09
Minuit parameter uncertainties:
  1  7.1893e-06
  2  16.1262
  3  8.20101e-06
  4  5.24357e-06
  5  1.14752
  6  47.1219
  7  2.31054
  8  27.6378
  9  1.64394e-06
  10  34.9223
  11  7.62071
  12  9.36232e-06
  13  9.57875e-06
  14  7.95623
  15  5.52545
  16  43.7918
  17  6.72904
  18  66.585
  19  0.202563
  20  0.203511
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.936e+01  2.764e+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.388e+00  2.035e-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:  7.965e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437577/likelihoodResults_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.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) = 6956.7970236
delta logL = 1.95275016156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6956.19292038
delta logL = 2.55685337846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.7128       1.0000          .0000       10.000    
     3 'Normalizat'    .65356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5037       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=   6956.193     FROM MIGRAD    STATUS=CONVERGED    239 CALLS      676 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25764E-02    .29201E-03** at limit **
   2  Index         9.7129        9.2634        .26621        .31100E-04
   3  Normalizat    .65319        .64603E-01    .69520E-01   -.16260E-03
   4  Prefactor     1.5041        .69036E-01    .51262E-01   -.22899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.71289
  Normalizat = 0.653194
  Prefactor  = 1.50412
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.193     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      715 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16000E-01    .11362E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7129        9.1962        .14180E-01   -30.186    
   3  Normalizat    .65319        .12371        .30768E-03   -2.0839    
   4  Prefactor     1.5041        .13055        .22662E-03   -.77425    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17302e-09
Minuit parameter uncertainties:
  1  2.0672e-07
  2  3.43552
  3  0.123763
  4  0.13058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437577': 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) = 6956.19291431
delta logL = 2.55685945484

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.067e-07  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  9.713e+00  3.436e+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.504e+00  1.306e-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:  6.532e-01  1.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.41
Ra Dec: 145.494 27.414
Photon Index (Free Index): 9.71 +/- 3.44
Photon Flux (Free Index): 1.26e-07 +/- 8.54e-07
Energy Flux (Free Index): 1.42e-05 +/- 9.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/437577/cmap_HighResolution_467942401_468201601_4FGL_J0941.9+2724_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='2.56e+00', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-08-31 22:57:02.744326', photon_index_error2='3.44', photon_index2='9.71', ts='0.63', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.58e-05', EG='0.80', time_epoch_completed='1630475822.74', return_code='0', job_id='437577', GAL2='1.50', EG2='0.65', return_code2='102', photon_flux_error2='8.54e-07', ts2='6.41', photon_index='2.43' WHERE bin_id='882' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 437577: <4FGL_J0941.9+2724_daily_bin882> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin882 145.494 27.4136 467942401 468201601 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 :                                   651.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

