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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin681
RA = 145.45, Dec = 41.4216
tmin = 415843201, tmax = 416102401
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='426515', job_status='RUN', time_executed='2021-08-31 22:14:46.528405', time_epoch_executed='1630473286.53' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426515/ft1_4FGL_J0941.7+4125_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426515/ft1_4FGL_J0941.7+4125_daily_bin681.fits outfile=/scratch/kocevski/426515/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin681.fits ra=145.45 dec=41.4216 rad=12.0 tmin=415843201.0 tmax=416102401.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.87
user 5.61
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.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/426515/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin681.fits evtable="EVENTS" outfile="/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/426515/ltcube_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.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/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits
.....................!
real 13.02
user 12.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/426515/ltcube_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits outfile=/scratch/kocevski/426515/expmap_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.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/426515/ltcube_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits
.....................!
real 192.54
user 186.60
sys 5.50

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits outfile=/scratch/kocevski/426515/cmap_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.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.45 yref=41.4216 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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits outfile=/scratch/kocevski/426515/cmap_HighResolution_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.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.45 yref=41.4216 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426515/Model_4FGL_J0941.7+4125_daily_bin681.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/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits......................!
real 30.78
user 29.42
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits', '/scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits', expMap='/scratch/kocevski/426515/expmap_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits', expCube='/scratch/kocevski/426515/ltcube_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426515/Model_4FGL_J0941.7+4125_daily_bin681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/426515/ft1_filtered_4FGL_J0941.7+4125_daily_bin681.fits
Spacecraft file(s): /scratch/kocevski/426515/ft2_4FGL_J0941.7+4125_daily_bin681.fits
Exposure map: /scratch/kocevski/426515/expmap_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits
Exposure cube: /scratch/kocevski/426515/ltcube_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426515/Model_4FGL_J0941.7+4125_daily_bin681.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) = 2876.53579508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5131       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.525       1.0000         .10000E-03   10000.    
    20 'norm      '    .15586E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7422       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7901       1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.056       1.0000         .10000E-03   10000.    
    24 'norm      '    3.5280       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3555       1.0000         .10000E-03   10000.    
    26 'norm      '    .74552E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.580       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .40730       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2876.508     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4359 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7360       -.10044E-05** at limit **
   2  Prefactor     .10000E-03    2.2477       -.11437E-05** at limit **
   3  Prefactor     12.015        78.759       -.41189E-05   -.30865E-04
   4  Prefactor     .10000E-03    1.6352        .11339E-06** at limit **
   5  Prefactor     .10000E-03    17.584       -.24344E-06** at limit **
   6  Prefactor     1.7424        3.3045       -.66056E-06    .10247E-03
   7  Prefactor     .10000E-03    18.692        .11327E-05** at limit **
   8  norm          1.0747        .53073        .93986E-08    .44881E-03
   9  Prefactor     .10000E-03    1.1848       -.37823E-07** at limit **
  10  norm          2.8634        8.1116       -.25331E-05    .28276E-04
  11  Prefactor     .10000E-03    .68095        .13606E-06** at limit **
  12  Prefactor     28.912        18.147        .52352E-06   -.72786E-05
  13  Prefactor     4.5075        8.6178       -.38579E-06   -.55103E-04
  14  Prefactor     .10000E-03    32.553        .14491E-05** at limit **
  15  norm          .10000E-03    5.9572        .20449E-07** at limit **
  16  Prefactor     .10000E-03    7.2275        .82265E-07** at limit **
  17  Prefactor     .10000E-03    19.178        .27815E-05** at limit **
  18  Prefactor     .10000E-03    14.603        .46799E-06** at limit **
  19  Prefactor     10.526        9.5313        .70951E-07    .20760E-04
  20  norm          .10110E-03    23.258       -.44624E-05** at limit **
  21  Prefactor     2.7334        8.4535       -.27690E-05   -.72105E-05
  22  Prefactor     2.7918        5.0957       -.10186E-06    .10236E-03
  23  Prefactor     43.058        48.902       -.82012E-06    .31765E-04
  24  norm          3.5281        3.3079        .11253E-06    .57082E-04
  25  Prefactor     1.3539        4.2399       -.11606E-05    .11296E-04
  26  norm          .10001E-03    67.084        .10413E-04** at limit **
  27  Prefactor     .10000E-03    10.144       -.92163E-08** at limit **
  28  Prefactor     .10000E-03    3.0274        .25319E-06** at limit **
  29  Prefactor     .10000E-03    1.5999        .45251E-07** at limit **
  30  Prefactor     23.576        30.164       -.72752E-07    .10915E-04
  31  Normalizat    .40728        .21339        .27763E-06    .13291E-03
  32  Prefactor     1.3536        .25631        .11533E-05    .75333E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74244
  Prefactor  = 0.0001
  norm       = 1.07475
  Prefactor  = 0.0001
  norm       = 2.86336
  Prefactor  = 0.0001
  Prefactor  = 28.9125
  Prefactor  = 4.50745
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.5263
  norm       = 0.000101098
  Prefactor  = 2.73339
  Prefactor  = 2.79182
  Prefactor  = 43.0577
  norm       = 3.5281
  Prefactor  = 1.35386
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5765
  Normalizat = 0.407284
  Prefactor  = 1.35355
 **********
 **   18 **HESSE 
 **********

 FCN=   2876.508     FROM HESSE     STATUS=OK           655 CALLS     5014 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7334        .10110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2845        .15614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.015        78.989        .11576E-03   -1.5015    
   4  Prefactor     .10000E-03    1.6416        .66961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7424        3.2591        .12557E-03   -1.5444    
   7  Prefactor     .10000E-03    18.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0747        .52831        .26472E-04   -1.5501    
   9  Prefactor     .10000E-03    1.1925        .56848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8634        8.0708        .24027E-03   -1.5370    
  11  Prefactor     .10000E-03    .68351        .43240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.912        18.086        .74509E-04   -1.4632    
  13  Prefactor     4.5075        8.5529        .18951E-03   -1.5283    
  14  Prefactor     .10000E-03    32.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9576        .12786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2296        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.526        9.5272        .12350E-03   -1.5059    
  20  norm          .10110E-03    191.75        .37489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7334        8.4326        .24586E-03   -1.5377    
  22  Prefactor     2.7918        4.9733        .13554E-03   -1.5374    
  23  Prefactor     43.058        47.938        .61096E-04   -1.4395    
  24  norm          3.5281        3.3085        .91406E-04   -1.5332    
  25  Prefactor     1.3539        4.1083        .16513E-03   -1.5475    
  26  norm          .10001E-03    68.361        .36242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.145        .16686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.0439        .91068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.6001        .66256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     23.576        30.140        .82489E-04   -1.4736    
  31  Normalizat    .40728        .24051        .28685E-03   -1.1693    
  32  Prefactor     1.3536        .29381        .21221E-03   -.81728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77068e-09
Minuit parameter uncertainties:
  1  6.85394e-06
  2  1.04178e-05
  3  61.7316
  4  1.08478e-06
  5  2.9493e-05
  6  3.25946
  7  0.000165233
  8  0.528313
  9  1.92584e-06
  10  8.07385
  11  3.29637e-06
  12  18.0893
  13  8.55526
  14  7.46465e-05
  15  5.31292e-07
  16  2.8704e-06
  17  0.000227928
  18  3.30646e-05
  19  9.52852
  20  0.0291083
  21  8.43626
  22  4.97406
  23  47.9804
  24  3.30864
  25  4.10918
  26  0.00199988
  27  2.71162e-06
  28  2.9414e-06
  29  7.77138e-07
  30  30.1596
  31  0.241124
  32  0.294167
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  5.313e-07  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.354e+00  2.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  4.073e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.450 41.422
Photon Flux Upper Limit: 3.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426515/likelihoodResults_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.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) = 2876.50831244
delta logL = -0.000622760866008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2876.50768955
delta logL = 1.26061877381e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8004       1.0000          .0000       5.0000    
     3 'Normalizat'    .40732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+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=   2876.508     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      255 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    771.32        .13073E-01** at limit **
   2  alpha         1.2226        3.0753        .16613        .67062E-08
   3  Normalizat    .40728        .37109E-01    .28685E-03   -.29627E-03
   4  Prefactor     1.3536        .48208E-01    .21221E-03   -.36619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.22261
  Normalizat = 0.407281
  Prefactor  = 1.35355
 **********
 **   18 **HESSE 
 **********

 FCN=   2876.508     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.831        .20144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2226        4.1480        .66453E-02   -.53630    
   3  Normalizat    .40728        .22276        .11474E-04   -1.1693    
   4  Prefactor     1.3536        .28965        .42443E-04   -.81728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67959e-10
Minuit parameter uncertainties:
  1  2.96566e-05
  2  590.945
  3  0.223242
  4  0.289999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426515': 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) = 2876.50768467
delta logL = 5.01138856634e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  2.966e-05  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.223e+00  5.909e+02  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.354e+00  2.900e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  4.073e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.450 41.422

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/426515/cmap_HighResolution_415843201_416102401_4FGL_J0941.7+4125_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='3.15e-08', time_completed='2021-08-31 22:25:55.445865', job_id='426515', GAL2='1.35', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630473955.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='5.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='681' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 426515: <4FGL_J0941.7+4125_daily_bin681> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin681> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:10:38 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:10:40 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:10:40 2021
Terminated at Tue Aug 31 22:25:57 2021
Results reported at Tue Aug 31 22:25:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin681 145.45 41.4216 415843201 416102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            919 sec.

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

