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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1514
RA = 145.494, Dec = 27.4136
tmin = 631756801, tmax = 632016001
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='439631', job_status='RUN', time_executed='2021-08-31 22:51:19.065493', time_epoch_executed='1630475479.07' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439631/ft1_4FGL_J0941.9+2724_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439631/ft1_4FGL_J0941.9+2724_daily_bin1514.fits outfile=/scratch/kocevski/439631/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1514.fits ra=145.494 dec=27.4136 rad=12.0 tmin=631756801.0 tmax=632016001.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.57
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.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/439631/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/439631/ft1_filtered_4FGL_J0941.9+2724_daily_bin1514.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.85
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439631/ft1_filtered_4FGL_J0941.9+2724_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/439631/ltcube_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.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/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits
.....................!
real 12.78
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439631/ft1_filtered_4FGL_J0941.9+2724_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/439631/ltcube_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.fits outfile=/scratch/kocevski/439631/expmap_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.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/439631/ltcube_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.fits
.....................!
real 192.42
user 185.37
sys 4.47

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/439631/ft1_filtered_4FGL_J0941.9+2724_daily_bin1514.fits scfile=/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits outfile=/scratch/kocevski/439631/cmap_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439631/ft1_filtered_4FGL_J0941.9+2724_daily_bin1514.fits scfile=/scratch/kocevski/439631/ft2_4FGL_J0941.9+2724_daily_bin1514.fits outfile=/scratch/kocevski/439631/cmap_HighResolution_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=145.494 yref=27.4136 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9047       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38399E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    91.162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.923       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73913       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2439       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=   2130.305     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2009 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9849        41.855        .79062E-06   -.21476E-05
   2  Prefactor     .10004E-03    223.19        .59633E-05** at limit **
   3  norm          .10000E-03    46.693        .69340E-06** at limit **
   4  Prefactor     5.8975        18.595        .18496E-06    .17021E-04
   5  norm          .10000E-03    8.5642        .11677E-05** at limit **
   6  Prefactor     .10000E-03    60.440        .10815E-05** at limit **
   7  Prefactor     .10003E-03    121.77        .64223E-04** at limit **
   8  Prefactor     90.998        92.806        .18733E-05    .24613E-03
   9  Prefactor     .10000E-03    32.419        .49663E-06** at limit **
  10  Prefactor     .10000E-03    41.998       -.15267E-06** at limit **
  11  Prefactor     .10000E-03    10.777        .19031E-05** at limit **
  12  Prefactor     .10004E-03    62.800        .40394E-05** at limit **
  13  Prefactor     .10000E-03    3.3496        .12261E-05** at limit **
  14  norm          .10000E-03    3.6428        .29395E-06** at limit **
  15  Prefactor     .10000E-03    4.0668        .45822E-06** at limit **
  16  Prefactor     74.892        77.916        .22693E-05   -.15331E-04
  17  Prefactor     12.547        10.909        .19449E-06   -.27724E-03
  18  Prefactor     .10000E-03    53.426        .19749E-05** at limit **
  19  Normalizat    .73893        .28713       -.42966E-05   -.36690E-03
  20  Prefactor     1.2439        .28924       -.15581E-05   -.33016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9849
  Prefactor  = 0.000100044
  norm       = 0.0001
  Prefactor  = 5.89749
  norm       = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100025
  Prefactor  = 90.9985
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 74.8924
  Prefactor  = 12.5467
  Prefactor  = 0.000100005
  Normalizat = 0.738932
  Prefactor  = 1.24393
 **********
 **   18 **HESSE 
 **********

 FCN=   2130.305     FROM HESSE     STATUS=OK           277 CALLS     2286 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9849        42.172        .16406E-03   -1.5219    
   2  Prefactor     .10004E-03    224.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    46.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8975        18.611        .16526E-03   -1.5222    
   5  norm          .10000E-03    8.7282        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    119.41        .38332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     90.998        92.594        .21044E-03   -1.3797    
   9  Prefactor     .10000E-03    32.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.948        .14837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    63.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4618        .16551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6488        .86062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0819        .90903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     74.892        77.944        .46387E-04   -1.3975    
  17  Prefactor     12.547        10.962        .11309E-03   -1.4999    
  18  Prefactor     .10000E-03    53.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73893        .33889        .28629E-03   -1.0238    
  20  Prefactor     1.2439        .34193        .22665E-03   -.84990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34081e-09
Minuit parameter uncertainties:
  1  31.8054
  2  0.00629685
  3  0.000293472
  4  18.6296
  5  0.000298046
  6  0.000412738
  7  0.00346926
  8  92.7409
  9  0.000144701
  10  0.000415489
  11  1.90495e-05
  12  0.0032249
  13  4.27058e-06
  14  4.34992e-05
  15  0.000111354
  16  78.0505
  17  10.964
  18  0.000992789
  19  0.339863
  20  0.342543
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
554   Normalization:  7.389e-01  3.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 1.18e-07
Energy Flux (Fixed Index): 3.65e-05 +/- 3.72e-05

TS (Fixed Index): 1.28
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 3.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439631/likelihoodResults_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.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) = 2130.30453893
delta logL = 0.000539689877314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2130.30433279
delta logL = 0.000745829383504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.026       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4072       1.0000          .0000       10.000    
     3 'Normalizat'    .74033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2427       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=   2130.304     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      256 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.038        109.16        .41667E-04   -.32643E-03
   2  Index         2.4071        .67683        .54506E-02   -.27351E-03
   3  Normalizat    .74036        .33159        .28603E-03    .18077E-03
   4  Prefactor     1.2427        .33261        .22673E-03    .21248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.0376
  Index      = 2.40708
  Normalizat = 0.740362
  Prefactor  = 1.24273
 **********
 **   18 **HESSE 
 **********

 FCN=   2130.304     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.038        106.97        .83334E-05   -1.3776    
   2  Index         2.4071        .66299        .21802E-03   -.54519    
   3  Normalizat    .74036        .33178        .57205E-04   -1.0232    
   4  Prefactor     1.2427        .33268        .45347E-04   -.85026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12061e-09
Minuit parameter uncertainties:
  1  107.196
  2  0.66568
  3  0.332689
  4  0.333244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439631': 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) = 2130.30433276
delta logL = 0.000745855369587

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  9.304e+01  1.072e+02  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.407e+00  6.657e-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.243e+00  3.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  7.404e-01  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.41 +/- 0.67
Photon Flux (Free Index): 1.14e-07 +/- 1.24e-07
Energy Flux (Free Index): 3.71e-05 +/- 4.14e-05

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/439631/cmap_HighResolution_631756801_632016001_4FGL_J0941.9+2724_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-02', comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='3.71e-05', photon_flux_error='1.18e-07', dlogl='7.46e-04', energy_flux='3.65e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-08-31 22:58:10.900048', photon_index_error2='0.67', photon_index2='2.41', ts='1.28', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='3.62e-07', energy_flux_error2='4.14e-05', EG='0.74', time_epoch_completed='1630475890.9', return_code='0', job_id='439631', GAL2='1.24', EG2='0.74', return_code2='0', energy_flux_error='3.72e-05', photon_flux_error2='1.24e-07', ts2='1.27', photon_index='2.43' WHERE bin_id='1514' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:58:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 439631: <4FGL_J0941.9+2724_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1514> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:51:00 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:51:01 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:51:01 2021
Terminated at Tue Aug 31 22:58:11 2021
Results reported at Tue Aug 31 22:58:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1514 145.494 27.4136 631756801 632016001 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 :                                   396.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   430 sec.
    Turnaround time :                            431 sec.

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

