aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 = 17299
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_weekly_bin658
RA = 145.494, Dec = 27.4136
tmin = 636940801, tmax = 637545601
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='991276', job_status='RUN', time_executed='2021-07-15 23:41:47.228116', time_epoch_executed='1626417707.23' WHERE source_name='4FGL J0941.9+2724' and cadence='weekly' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991276

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991276/ft1_4FGL_J0941.9+2724_weekly_bin658.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991276/ft2_4FGL_J0941.9+2724_weekly_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991276/ft1_4FGL_J0941.9+2724_weekly_bin658.fits outfile=/scratch/kocevski/991276/ft1_filteredMKT_4FGL_J0941.9+2724_weekly_bin658.fits ra=145.494 dec=27.4136 rad=12.0 tmin=636940801.0 tmax=637545601.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 11.84
user 11.41
sys 0.36

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991276/ft1_filtered_4FGL_J0941.9+2724_weekly_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/991276/ft2_4FGL_J0941.9+2724_weekly_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/991276/ltcube_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.fits outfile=/scratch/kocevski/991276/expmap_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.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/991276/ltcube_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.fits
.....................!
real 192.65
user 186.92
sys 5.13

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/991276/ft1_filtered_4FGL_J0941.9+2724_weekly_bin658.fits scfile=/scratch/kocevski/991276/ft2_4FGL_J0941.9+2724_weekly_bin658.fits outfile=/scratch/kocevski/991276/cmap_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991276/ft1_filtered_4FGL_J0941.9+2724_weekly_bin658.fits scfile=/scratch/kocevski/991276/ft2_4FGL_J0941.9+2724_weekly_bin658.fits outfile=/scratch/kocevski/991276/cmap_HighResolution_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.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.60
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.430       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9398       1.0000         .10000E-03   10000.    
    14 'norm      '    13.621       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1217       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.102       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.382       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92038       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89484       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=   10070.48     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2039 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1424       -.44342E-07** at limit **
   2  Prefactor     19.434        13.906       -.35260E-07    .14011E-03
   3  norm          .10000E-03    14.443       -.28080E-06** at limit **
   4  Prefactor     .10000E-03    .92715        .97178E-08** at limit **
   5  norm          2.1481        1.1980        .32045E-07    .48221E-03
   6  Prefactor     30.024        28.035        .34524E-05   -.11410E-03
   7  Prefactor     .47084        1.7603       -.13012E-05   -.65999E-03
   8  Prefactor     9.6315        22.303        .44172E-05   -.16802E-04
   9  Prefactor     .10000E-03    26.879        .12015E-05** at limit **
  10  Prefactor     .10000E-03    45.383       -.82561E-06** at limit **
  11  Prefactor     10.063        6.0305       -.10003E-05    .19654E-03
  12  Prefactor     4.5204        7.1586        .35368E-05   -.63817E-03
  13  Prefactor     1.9397        1.6145       -.20106E-07   -.28731E-03
  14  norm          13.621        6.5448       -.10206E-05    .36196E-03
  15  Prefactor     5.1327        4.3706       -.93975E-06   -.10931E-02
  16  Prefactor     19.101        26.216       -.77253E-06    .25630E-04
  17  Prefactor     .10000E-03    3.1802        .46631E-06** at limit **
  18  Prefactor     43.384        43.036        .25200E-05   -.73065E-04
  19  Normalizat    .92046        .13286        .21556E-06    .15251E-03
  20  Prefactor     .89473        .12638       -.21430E-06    .15897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4345
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14813
  Prefactor  = 30.0239
  Prefactor  = 0.470835
  Prefactor  = 9.63146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0627
  Prefactor  = 4.52039
  Prefactor  = 1.93966
  norm       = 13.6211
  Prefactor  = 5.1327
  Prefactor  = 19.1006
  Prefactor  = 0.000100001
  Prefactor  = 43.384
  Normalizat = 0.920457
  Prefactor  = 0.894726
 **********
 **   18 **HESSE 
 **********

 FCN=   10070.48     FROM HESSE     STATUS=OK           299 CALLS     2338 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1503        .17373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.434        13.880        .90864E-04   -1.4826    
   3  norm          .10000E-03    14.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .94438        .94330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1481        1.1937        .78774E-04   -1.5415    
   6  Prefactor     30.024        27.894        .36563E-03   -1.4612    
   7  Prefactor     .47084        3.4119        .24438E-02   -1.5571    
   8  Prefactor     9.6315        22.316        .12916E-03   -1.5087    
   9  Prefactor     .10000E-03    26.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.063        6.0442        .12631E-03   -1.5073    
  12  Prefactor     4.5204        6.8943        .18934E-03   -1.5283    
  13  Prefactor     1.9397        1.6120        .11098E-03   -1.5429    
  14  norm          13.621        6.5358        .10853E-03   -1.4970    
  15  Prefactor     5.1327        3.9952        .16242E-03   -1.5255    
  16  Prefactor     19.101        26.227        .91641E-04   -1.4834    
  17  Prefactor     .10000E-03    5.7029        .30198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.384        42.898        .60867E-04   -1.4390    
  19  Normalizat    .92046        .15500        .24020E-03   -.95745    
  20  Prefactor     .89473        .14751        .24310E-03   -.96326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38253e-09
Minuit parameter uncertainties:
  1  3.51896e-07
  2  13.8828
  3  4.53045e-07
  4  3.10031e-07
  5  1.19376
  6  27.9057
  7  2.53486
  8  22.3349
  9  5.42325e-05
  10  8.78984e-05
  11  6.0446
  12  6.89553
  13  1.61208
  14  6.53616
  15  3.99537
  16  26.2426
  17  0.000153383
  18  42.9281
  19  0.155076
  20  0.147579
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  9.631e+00  2.233e+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:  8.947e-01  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.205e-01  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/991276/likelihoodResults_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.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) = 10069.4384432
delta logL = 1.03929060094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10069.2970142
delta logL = 1.18071954717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29546E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5960       1.0000          .0000       10.000    
     3 'Normalizat'    .85097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94700       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=   10069.30     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      312 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28251E-01    .22470        .25338E-02    .48098E-02
   2  Index         6.6193        2.0598        .15637        .15128E-03
   3  Normalizat    .85104        .27216E-01    .44272E-01   -.59247E-04
   4  Prefactor     .94699        .27386E-01    .45601E-01    .13417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0282507
  Index      = 6.61935
  Normalizat = 0.85104
  Prefactor  = 0.946995
 **********
 **   18 **HESSE 
 **********

 FCN=   10069.30     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      347 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28251E-01    .67515        .11616E-03   -1.5674    
   2  Index         6.6193        7.4061        .55200E-02    .32982    
   3  Normalizat    .85104        .10884        .24861E-03   -.98202    
   4  Prefactor     .94699        .10682        .23712E-03   -.94518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.01326e-07
Minuit parameter uncertainties:
  1  0.275728
  2  4.83666
  3  0.108868
  4  0.106844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991276': 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) = 10069.2970037
delta logL = 1.18073005294

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.825e-02  2.757e-01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  6.619e+00  4.837e+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:  9.470e-01  1.068e-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.510e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 145.494 27.414
Photon Index (Free Index): 6.62 +/- 4.84
Photon Flux (Free Index): 7.25e-08 +/- 5.01e-08
Energy Flux (Free Index): 8.78e-06 +/- 6.84e-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/991276/cmap_HighResolution_636940801_637545601_4FGL_J0941.9+2724_weekly_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', comment='SUCCESS', energy_flux2='8.78e-06', dlogl='1.18e+00', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-07-15 23:56:07.535481', photon_index_error2='4.84', photon_index2='6.62', ts='0.23', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.71e-08', energy_flux_error2='6.84e-06', EG='0.92', time_epoch_completed='1626418567.54', return_code='0', job_id='991276', GAL2='0.95', EG2='0.85', return_code2='102', photon_flux_error2='5.01e-08', ts2='2.82', photon_index='2.43' WHERE bin_id='658' AND source_name='4FGL J0941.9+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 15 23:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 991276: <4FGL_J0941.9+2724_weekly_bin658> in cluster <slac> Done

Job <4FGL_J0941.9+2724_weekly_bin658> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Jul 15 23:40:46 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 15 23:41:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 15 23:41:31 2021
Terminated at Thu Jul 15 23:56:08 2021
Results reported at Thu Jul 15 23:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_weekly_bin658 145.494 27.4136 636940801 637545601 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 :                                   841.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            922 sec.

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

