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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin68
RA = 145.494, Dec = 27.4136
tmin = 256953601, tmax = 257212801
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='432682', job_status='RUN', time_executed='2021-08-31 22:33:47.744374', time_epoch_executed='1630474427.74' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432682/ft1_4FGL_J0941.9+2724_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432682/ft2_4FGL_J0941.9+2724_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432682/ft1_4FGL_J0941.9+2724_daily_bin68.fits outfile=/scratch/kocevski/432682/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin68.fits ra=145.494 dec=27.4136 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.59
user 1.25
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432682/ft1_filtered_4FGL_J0941.9+2724_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/432682/ft2_4FGL_J0941.9+2724_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/432682/ltcube_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.fits outfile=/scratch/kocevski/432682/expmap_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.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/432682/ltcube_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.fits
.....................!
real 194.13
user 185.60
sys 5.27

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/432682/ft1_filtered_4FGL_J0941.9+2724_daily_bin68.fits scfile=/scratch/kocevski/432682/ft2_4FGL_J0941.9+2724_daily_bin68.fits outfile=/scratch/kocevski/432682/cmap_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432682/ft1_filtered_4FGL_J0941.9+2724_daily_bin68.fits scfile=/scratch/kocevski/432682/ft2_4FGL_J0941.9+2724_daily_bin68.fits outfile=/scratch/kocevski/432682/cmap_HighResolution_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4472       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4452       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.147       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23820       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15481E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2639       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88261       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=   8274.655     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1813 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5941        7.2530        .15611E-05    .28524E-03
   2  Prefactor     2.4486        9.2182        .38069E-05    .43360E-03
   3  norm          4.6079        32.281        .74888E-05   -.11994E-03
   4  Prefactor     6.4453        3.6072        .10163E-06   -.80577E-04
   5  norm          2.5903        1.3716       -.11786E-07   -.86005E-04
   6  Prefactor     13.219        28.532       -.10137E-05   -.95486E-04
   7  Prefactor     2.9991        2.9417        .16894E-06   -.21556E-03
   8  Prefactor     10.147        11.491        .83541E-07   -.28866E-05
   9  Prefactor     1.8776        135.41       -.14984E-05   -.43725E-04
  10  Prefactor     .10000E-03    11.400       -.46455E-08** at limit **
  11  Prefactor     5.5694        5.2858        .83333E-07   -.24581E-03
  12  Prefactor     .42175        6.3607        .17380E-05   -.63143E-03
  13  Prefactor     .23877        1.5505        .15540E-05   -.64104E-03
  14  norm          5.6103        5.0887        .95665E-08   -.21596E-03
  15  Prefactor     1.1277        2.7881        .67862E-06   -.30736E-03
  16  Prefactor     .10001E-03    56.184        .30059E-05** at limit **
  17  Prefactor     6.2637        4.7070       -.20814E-06   -.47116E-03
  18  Prefactor     .10000E-03    47.802       -.22872E-05** at limit **
  19  Normalizat    1.1311        .15075       -.11034E-05   -.40804E-03
  20  Prefactor     .88280        .15146       -.23831E-06   -.31240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5941
  Prefactor  = 2.4486
  norm       = 4.60789
  Prefactor  = 6.44529
  norm       = 2.5903
  Prefactor  = 13.2188
  Prefactor  = 2.99905
  Prefactor  = 10.1467
  Prefactor  = 1.87763
  Prefactor  = 0.0001
  Prefactor  = 5.56944
  Prefactor  = 0.421745
  Prefactor  = 0.238769
  norm       = 5.61033
  Prefactor  = 1.12769
  Prefactor  = 0.000100008
  Prefactor  = 6.26371
  Prefactor  = 0.000100004
  Normalizat = 1.1311
  Prefactor  = 0.8828
 **********
 **   18 **HESSE 
 **********

 FCN=   8274.655     FROM HESSE     STATUS=OK           307 CALLS     2120 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5941        7.3090        .25319E-03   -1.5386    
   2  Prefactor     2.4486        9.5782        .26151E-03   -1.5395    
   3  norm          4.6079        34.126        .93676E-03   -1.5279    
   4  Prefactor     6.4453        3.6080        .12420E-03   -1.5200    
   5  norm          2.5903        1.3738        .74753E-04   -1.5386    
   6  Prefactor     13.219        28.601        .11024E-03   -1.4981    
   7  Prefactor     2.9991        2.9354        .14619E-03   -1.5362    
   8  Prefactor     10.147        11.493        .12579E-03   -1.5071    
   9  Prefactor     1.8776        138.20        .28865E-03   -1.5434    
  10  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5694        5.2767        .17024E-03   -1.5236    
  12  Prefactor     .42175        32.571        .41395E-02   -1.5578    
  13  Prefactor     .23877        1.6651        .21994E-02   -1.5610    
  14  norm          5.6103        5.0892        .16960E-03   -1.5234    
  15  Prefactor     1.1277        2.7030        .21307E-03   -1.5496    
  16  Prefactor     .10001E-03    57.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2637        4.6409        .15306E-03   -1.5207    
  18  Prefactor     .10000E-03    48.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1311        .17357        .22438E-03   -.88759    
  20  Prefactor     .88280        .17520        .25812E-03   -.96745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04114e-07
Minuit parameter uncertainties:
  1  7.31153
  2  9.5842
  3  25.0998
  4  3.60811
  5  1.37386
  6  28.6303
  7  2.9355
  8  11.4953
  9  32.2941
  10  6.32775e-06
  11  5.2771
  12  7.41594
  13  1.26087
  14  5.08958
  15  2.70333
  16  0.00135741
  17  4.64115
  18  0.000905478
  19  0.17366
  20  0.175316
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.015e+01  1.150e+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.828e-01  1.753e-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:  1.131e+00  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 4.07e-06 +/- 4.61e-06

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

Saving results to:
/scratch/kocevski/432682/likelihoodResults_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.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) = 8274.17339978
delta logL = 0.481226170119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8274.17167437
delta logL = 0.482951576128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.146       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6004       1.0000          .0000       10.000    
     3 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87711       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=   8274.172     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      193 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.146        11.351        .31449E-02   -.29872E-02
   2  Index         1.6005        .53446        .28756       -.61463E-04
   3  Normalizat    1.1409        .14362        .36539E-01   -.42358E-05
   4  Prefactor     .87700        .14846        .44713E-01    .20932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1461
  Index      = 1.60049
  Normalizat = 1.14088
  Prefactor  = 0.877004
 **********
 **   18 **HESSE 
 **********

 FCN=   8274.172     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.146        12.485        .12579E-03   -1.5071    
   2  Index         1.6005        .74005        .12702E-01   -.74763    
   3  Normalizat    1.1409        .16540        .22352E-03   -.88450    
   4  Prefactor     .87700        .17097        .25883E-03   -.96949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38224e-08
Minuit parameter uncertainties:
  1  12.4877
  2  0.745174
  3  0.165473
  4  0.171079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432682': 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) = 8274.17167418
delta logL = 0.482951763383

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.015e+01  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.600e+00  7.452e-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:  8.770e-01  1.711e-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:  1.141e+00  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 145.494 27.414
Photon Index (Free Index): 1.60 +/- 0.75
Photon Flux (Free Index): 5.11e-09 +/- 7.58e-09
Energy Flux (Free Index): 1.16e-05 +/- 2.12e-05

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/432682/cmap_HighResolution_256953601_257212801_4FGL_J0941.9+2724_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='1.16e-05', photon_flux_error='1.47e-08', dlogl='4.83e-01', energy_flux='4.07e-06', photon_flux2='5.11e-09', job_status='DONE', time_completed='2021-08-31 22:44:49.823049', photon_index_error2='0.75', photon_index2='1.60', ts='1.93', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.70e-08', energy_flux_error2='2.12e-05', EG='1.13', time_epoch_completed='1630475089.82', return_code='0', job_id='432682', GAL2='0.88', EG2='1.14', return_code2='0', energy_flux_error='4.61e-06', photon_flux_error2='7.58e-09', ts2='2.90', photon_index='2.43' WHERE bin_id='68' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 432682: <4FGL_J0941.9+2724_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin68 145.494 27.4136 256953601 257212801 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 :                                   654.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

