/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 105 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin48
RA = 145.494, Dec = 27.4136
tmin = 251769601, tmax = 252028801
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='432653', job_status='RUN', time_executed='2021-08-31 22:32:33.492950', time_epoch_executed='1630474353.49' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432653/ft1_4FGL_J0941.9+2724_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432653/ft2_4FGL_J0941.9+2724_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432653/ft1_4FGL_J0941.9+2724_daily_bin48.fits outfile=/scratch/kocevski/432653/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin48.fits ra=145.494 dec=27.4136 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.22
user 1.94
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432653/ft1_filtered_4FGL_J0941.9+2724_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/432653/ft2_4FGL_J0941.9+2724_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/432653/ltcube_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.fits outfile=/scratch/kocevski/432653/expmap_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.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/432653/ltcube_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.fits
.....................!
real 190.07
user 185.62
sys 4.11

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/432653/ft1_filtered_4FGL_J0941.9+2724_daily_bin48.fits scfile=/scratch/kocevski/432653/ft2_4FGL_J0941.9+2724_daily_bin48.fits outfile=/scratch/kocevski/432653/cmap_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432653/ft1_filtered_4FGL_J0941.9+2724_daily_bin48.fits scfile=/scratch/kocevski/432653/ft2_4FGL_J0941.9+2724_daily_bin48.fits outfile=/scratch/kocevski/432653/cmap_HighResolution_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.413       1.0000         .10000E-03   10000.    
     3 'norm      '    79.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6701       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4809       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15566E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .31262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.297       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66742       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3577       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=   8393.460     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     1877 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3593        10.757        .30692E-06    .10385E-04
   2  Prefactor     33.419        17.971       -.12873E-05   -.48711E-04
   3  norm          79.900        33.818       -.61417E-06   -.26500E-05
   4  Prefactor     3.6716        3.0648        .43997E-07    .13288E-04
   5  norm          2.1925        1.3726        .38726E-07    .53328E-04
   6  Prefactor     1.4741        131.29       -.83180E-05   -.40424E-05
   7  Prefactor     7.5905        3.7104        .12220E-06   -.88574E-05
   8  Prefactor     .32069        11.368        .60429E-06   -.14719E-03
   9  Prefactor     .10000E-03    41.736        .29122E-06** at limit **
  10  Prefactor     .10000E-03    23.813       -.53347E-07** at limit **
  11  Prefactor     4.5557        5.2586        .10796E-05    .87787E-04
  12  Prefactor     .10000E-03    9.7865       -.25428E-06** at limit **
  13  Prefactor     .10000E-03    .74656       -.14123E-06** at limit **
  14  norm          .10001E-03    3.9722       -.69996E-06** at limit **
  15  Prefactor     .10000E-03    1.1711       -.21565E-07** at limit **
  16  Prefactor     .10000E-03    23.841       -.22495E-06** at limit **
  17  Prefactor     4.4440        3.2557        .10908E-06    .26004E-04
  18  Prefactor     55.304        38.142       -.10828E-05   -.12084E-04
  19  Normalizat    .66707        .14723       -.11711E-06    .59002E-04
  20  Prefactor     1.3578        .15235        .20360E-06    .47348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35927
  Prefactor  = 33.4192
  norm       = 79.9004
  Prefactor  = 3.6716
  norm       = 2.1925
  Prefactor  = 1.47409
  Prefactor  = 7.59053
  Prefactor  = 0.320686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44404
  Prefactor  = 55.3041
  Normalizat = 0.667073
  Prefactor  = 1.35779
 **********
 **   18 **HESSE 
 **********

 FCN=   8393.460     FROM HESSE     STATUS=OK           305 CALLS     2182 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3593        10.736        .22092E-03   -1.5341    
   2  Prefactor     33.419        18.047        .69323E-04   -1.4551    
   3  norm          79.900        33.772        .22465E-03   -1.3918    
   4  Prefactor     3.6716        3.0572        .14107E-03   -1.5325    
   5  norm          2.1925        1.3722        .81940E-04   -1.5412    
   6  Prefactor     1.4741        131.40        .35269E-03   -1.5465    
   7  Prefactor     7.5905        3.7134        .11506E-03   -1.5157    
   8  Prefactor     .32069        12.814        .99859E-01   -1.5595    
   9  Prefactor     .10000E-03    41.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5557        5.3017        .94270E-03   -1.5281    
  12  Prefactor     .10000E-03    10.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1199        .15298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    20.290        .34184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1911        .96728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4440        3.2526        .68422E-03   -1.5286    
  18  Prefactor     55.304        38.169        .53942E-04   -1.4219    
  19  Normalizat    .66707        .17271        .28530E-03   -1.0521    
  20  Prefactor     1.3578        .18028        .22357E-03   -.81604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07701e-10
Minuit parameter uncertainties:
  1  10.7424
  2  18.0504
  3  33.7798
  4  3.05733
  5  1.37218
  6  27.8972
  7  3.7135
  8  4.05454
  9  2.52103e-06
  10  1.35838e-05
  11  5.30225
  12  1.48547e-05
  13  4.08393e-06
  14  0.000787325
  15  6.15295e-07
  16  1.06989e-05
  17  3.25277
  18  38.1863
  19  0.172852
  20  0.180367
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.207e-01  4.055e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.358e+00  1.804e-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.671e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432653/likelihoodResults_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.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): 102
logL (Free Index) = 8393.45336329
delta logL = 0.00635391757169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8392.99361045
delta logL = 0.46610675995

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.1639       1.0000          .0000       10.000    
     3 'Normalizat'    .61164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3992       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=   8392.994     FROM MIGRAD    STATUS=CONVERGED    208 CALLS      547 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95329E-03    .11800E-04** at limit **
   2  Index         9.1640        .53772        .16520E-02    .37162E-06
   3  Normalizat    .61140        .17215        .29714E-03   -.99172E-04
   4  Prefactor     1.3993        .18263        .22075E-03   -.11594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.16399
  Normalizat = 0.6114
  Prefactor  = 1.39928
 **********
 **   18 **HESSE 
 **********

 FCN=   8392.994     FROM HESSE     STATUS=OK            23 CALLS      570 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95122E-03    .47200E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1640        .52958        .66079E-04    .98414    
   3  Normalizat    .61140        .17225        .11885E-04   -1.0750    
   4  Prefactor     1.3993        .18275        .44150E-04   -.80401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64824e-11
Minuit parameter uncertainties:
  1  7.30155e-09
  2  0.532868
  3  0.172405
  4  0.182838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432653': 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) = 8392.99360507
delta logL = 0.466112143062

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  7.302e-09  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  9.164e+00  5.329e-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.399e+00  1.828e-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.114e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 145.494 27.414
Photon Index (Free Index): 9.16 +/- 0.53
Photon Flux (Free Index): 4.15e-08 +/- 4.35e-08
Energy Flux (Free Index): 4.70e-06 +/- 4.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/432653/cmap_HighResolution_251769601_252028801_4FGL_J0941.9+2724_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', comment='SUCCESS', energy_flux2='4.70e-06', dlogl='4.66e-01', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-08-31 22:44:18.397532', photon_index_error2='0.53', photon_index2='9.16', ts='0.00', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='5.36e-08', energy_flux_error2='4.92e-06', EG='0.67', time_epoch_completed='1630475058.4', return_code='0', job_id='432653', GAL2='1.40', EG2='0.61', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.03', photon_index='2.43' WHERE bin_id='48' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:44:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 432653: <4FGL_J0941.9+2724_daily_bin48> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin48> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 22:30:28 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:30:29 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:30:29 2021
Terminated at Tue Aug 31 22:44:19 2021
Results reported at Tue Aug 31 22:44:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin48 145.494 27.4136 251769601 252028801 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 :                                   703.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

