/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7395
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin945
RA = 145.494, Dec = 27.4136
tmin = 484272001, tmax = 484531201
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='437669', job_status='RUN', time_executed='2021-08-31 22:45:58.022403', time_epoch_executed='1630475158.02' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437669/ft1_4FGL_J0941.9+2724_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437669/ft1_4FGL_J0941.9+2724_daily_bin945.fits outfile=/scratch/kocevski/437669/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin945.fits ra=145.494 dec=27.4136 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.20
user 4.83
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437669/ft1_filtered_4FGL_J0941.9+2724_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/437669/ltcube_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.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/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits
.....................!
real 11.86
user 11.40
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437669/ft1_filtered_4FGL_J0941.9+2724_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/437669/ltcube_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.fits outfile=/scratch/kocevski/437669/expmap_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.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/437669/ltcube_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.fits
.....................!
real 193.67
user 186.27
sys 6.36

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/437669/ft1_filtered_4FGL_J0941.9+2724_daily_bin945.fits scfile=/scratch/kocevski/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits outfile=/scratch/kocevski/437669/cmap_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=145.494 yref=27.4136 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437669/ft1_filtered_4FGL_J0941.9+2724_daily_bin945.fits scfile=/scratch/kocevski/437669/ft2_4FGL_J0941.9+2724_daily_bin945.fits outfile=/scratch/kocevski/437669/cmap_HighResolution_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.028       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7419       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.319       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    45.812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4717       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66378       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2730       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=   5463.579     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2095 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.350        14.580       -.41413E-06    .12243E-04
   2  Prefactor     17.028        14.318       -.32929E-06    .55585E-04
   3  norm          .10000E-03    9.4655       -.53260E-07** at limit **
   4  Prefactor     2.7417        2.7852       -.14113E-06   -.12430E-03
   5  norm          2.3110        2.0057       -.59453E-07   -.19769E-04
   6  Prefactor     .10000E-03    29.111       -.49350E-07** at limit **
   7  Prefactor     .24877        2.0719       -.59822E-06   -.38811E-04
   8  Prefactor     22.317        23.312       -.23239E-05    .41129E-04
   9  Prefactor     36.571        35.505        .17968E-05    .83848E-05
  10  Prefactor     16.050        35.823       -.14160E-04   -.67174E-06
  11  Prefactor     .10000E-03    2.6651        .44665E-08** at limit **
  12  Prefactor     7.8389        9.3381       -.33675E-06   -.46523E-04
  13  Prefactor     .10000E-03    1.4183       -.10500E-06** at limit **
  14  norm          45.811        12.558       -.17624E-06    .23809E-04
  15  Prefactor     2.4712        3.9922       -.55992E-06   -.51914E-03
  16  Prefactor     11.045        33.845       -.62550E-05   -.55329E-05
  17  Prefactor     6.4848        5.4098        .42995E-07   -.89329E-04
  18  Prefactor     .10000E-03    17.203       -.21033E-07** at limit **
  19  Normalizat    .66403        .17025        .20668E-05    .87527E-04
  20  Prefactor     1.2728        .17988        .41718E-06    .14718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.35
  Prefactor  = 17.0277
  norm       = 0.0001
  Prefactor  = 2.7417
  norm       = 2.31097
  Prefactor  = 0.0001
  Prefactor  = 0.248772
  Prefactor  = 22.3169
  Prefactor  = 36.5709
  Prefactor  = 16.0499
  Prefactor  = 0.0001
  Prefactor  = 7.83889
  Prefactor  = 0.0001
  norm       = 45.8109
  Prefactor  = 2.47124
  Prefactor  = 11.0454
  Prefactor  = 6.48485
  Prefactor  = 0.0001
  Normalizat = 0.664027
  Prefactor  = 1.27277
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.579     FROM HESSE     STATUS=OK           303 CALLS     2398 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.350        14.582        .76602E-04   -1.4662    
   2  Prefactor     17.028        14.299        .97060E-04   -1.4882    
   3  norm          .10000E-03    9.4677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7417        2.7787        .12060E-03   -1.5377    
   5  norm          2.3110        1.9952        .92465E-04   -1.5404    
   6  Prefactor     .10000E-03    29.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24877        8.9577        .19529E-02   -1.5608    
   8  Prefactor     22.317        23.238        .84784E-04   -1.4763    
   9  Prefactor     36.571        35.497        .66273E-04   -1.4498    
  10  Prefactor     16.050        35.808        .99951E-04   -1.4907    
  11  Prefactor     .10000E-03    2.6974        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8389        9.3452        .14320E-03   -1.5148    
  13  Prefactor     .10000E-03    4.0747        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          45.811        12.560        .59237E-04   -1.4353    
  15  Prefactor     2.4712        3.9863        .16131E-03   -1.5394    
  16  Prefactor     11.045        33.890        .12053E-03   -1.5043    
  17  Prefactor     6.4848        5.3710        .13504E-03   -1.5199    
  18  Prefactor     .10000E-03    17.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .66403        .19643        .27534E-03   -1.0533    
  20  Prefactor     1.2728        .20900        .22749E-03   -.84120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62465e-08
Minuit parameter uncertainties:
  1  14.5839
  2  14.3019
  3  2.11291e-06
  4  2.77881
  5  1.99529
  6  1.31299e-05
  7  2.98546
  8  23.247
  9  35.5176
  10  35.8557
  11  1.62522e-06
  12  9.34691
  13  1.86441e-05
  14  12.5606
  15  3.98678
  16  33.9492
  17  5.3714
  18  6.2135e-06
  19  0.196635
  20  0.209142
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.232e+01  2.325e+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.273e+00  2.091e-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.640e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 8.94e-06 +/- 9.32e-06

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

Saving results to:
/scratch/kocevski/437669/likelihoodResults_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.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) = 5463.5757467
delta logL = 0.00362466378374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5463.57258066
delta logL = 0.00679070175738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5464       1.0000          .0000       10.000    
     3 'Normalizat'    .66102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2753       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=   5463.573     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.959        33.462        .89634E-04    .45102E-03
   2  Index         2.5470        1.1246        .89501E-02    .14647E-03
   3  Normalizat    .66102        .18914        .27593E-03   -.68091E-03
   4  Prefactor     1.2753        .20896        .22731E-03   -.10142E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9591
  Index      = 2.54697
  Normalizat = 0.661017
  Prefactor  = 1.27531
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.573     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.959        30.007        .17927E-04   -1.4814    
   2  Index         2.5470        1.0098        .35800E-03   -.51278    
   3  Normalizat    .66102        .18893        .55186E-04   -1.0545    
   4  Prefactor     1.2753        .20873        .45461E-04   -.84044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7796e-09
Minuit parameter uncertainties:
  1  30.0296
  2  1.01909
  3  0.189114
  4  0.208866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437669': 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) = 5463.5725805
delta logL = 0.00679086936816

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.996e+01  3.003e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.547e+00  1.019e+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.275e+00  2.089e-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.610e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.55 +/- 1.02
Photon Flux (Free Index): 3.01e-08 +/- 3.35e-08
Energy Flux (Free Index): 8.31e-06 +/- 9.97e-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/437669/cmap_HighResolution_484272001_484531201_4FGL_J0941.9+2724_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='8.31e-06', photon_flux_error='2.96e-08', dlogl='6.79e-03', energy_flux='8.94e-06', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-08-31 22:56:10.479519', photon_index_error2='1.02', photon_index2='2.55', ts='1.43', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='9.76e-08', energy_flux_error2='9.97e-06', EG='0.66', time_epoch_completed='1630475770.48', return_code='0', job_id='437669', GAL2='1.28', EG2='0.66', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='3.35e-08', ts2='1.44', photon_index='2.43' WHERE bin_id='945' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 437669: <4FGL_J0941.9+2724_daily_bin945> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin945 145.494 27.4136 484272001 484531201 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 :                                   605.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

