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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin712
RA = 145.45, Dec = 41.4216
tmin = 423878401, tmax = 424137601
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='426572', job_status='RUN', time_executed='2021-08-31 22:13:08.175248', time_epoch_executed='1630473188.18' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426572/ft1_4FGL_J0941.7+4125_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426572/ft1_4FGL_J0941.7+4125_daily_bin712.fits outfile=/scratch/kocevski/426572/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin712.fits ra=145.45 dec=41.4216 rad=12.0 tmin=423878401.0 tmax=424137601.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.31
user 5.04
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.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/426572/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/426572/ltcube_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.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/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits
.....................!
real 11.64
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/426572/ltcube_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits outfile=/scratch/kocevski/426572/expmap_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.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/426572/ltcube_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits
.....................!
real 190.90
user 186.65
sys 3.90

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/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits outfile=/scratch/kocevski/426572/cmap_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.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.61
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits outfile=/scratch/kocevski/426572/cmap_HighResolution_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426572/Model_4FGL_J0941.7+4125_daily_bin712.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/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits.....................!
real 41.05
user 39.82
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits', '/scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits', expMap='/scratch/kocevski/426572/expmap_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits', expCube='/scratch/kocevski/426572/ltcube_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426572/Model_4FGL_J0941.7+4125_daily_bin712.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/426572/ft1_filtered_4FGL_J0941.7+4125_daily_bin712.fits
Spacecraft file(s): /scratch/kocevski/426572/ft2_4FGL_J0941.7+4125_daily_bin712.fits
Exposure map: /scratch/kocevski/426572/expmap_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits
Exposure cube: /scratch/kocevski/426572/ltcube_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426572/Model_4FGL_J0941.7+4125_daily_bin712.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) = 4365.48166296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.858       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.785       1.0000         .10000E-03   10000.    
     8 'norm      '    .30147       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2784       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46661E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0583       1.0000         .10000E-03   10000.    
    20 'norm      '    14.921       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6405       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.213       1.0000         .10000E-03   10000.    
    24 'norm      '    6.5038       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .70557       1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.448       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.582       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3365       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .51832       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=   4365.457     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4453 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.694        11.697       -.88261E-07   -.24154E-04
   2  Prefactor     3.0233        2.9181        .11132E-06   -.25818E-03
   3  Prefactor     30.742        70.634        .20157E-05    .42466E-04
   4  Prefactor     .10000E-03    4.4621       -.16624E-06** at limit **
   5  Prefactor     .10000E-03    22.511       -.26642E-06** at limit **
   6  Prefactor     .66977        2.0870       -.48922E-06   -.18409E-03
   7  Prefactor     41.773        33.252        .58250E-06    .53463E-04
   8  norm          .30144        .25571        .53367E-08   -.13086E-03
   9  Prefactor     .10000E-03    1.2360       -.31405E-08** at limit **
  10  norm          4.2824        13.144        .75416E-07    .74447E-04
  11  Prefactor     .10000E-03    1.2177       -.47065E-07** at limit **
  12  Prefactor     .10000E-03    3.2030        .15994E-06** at limit **
  13  Prefactor     .10000E-03    2.3018        .10027E-06** at limit **
  14  Prefactor     .10000E-03    5.6035        .52061E-07** at limit **
  15  norm          .10000E-03    4.8793       -.18541E-07** at limit **
  16  Prefactor     .10000E-03    12.921       -.15640E-06** at limit **
  17  Prefactor     .10000E-03    2.3255        .38546E-08** at limit **
  18  Prefactor     .10000E-03    171.65       -.24785E-05** at limit **
  19  Prefactor     1.0607        19.290        .84377E-05   -.74800E-04
  20  norm          14.924        13.776       -.64807E-07   -.23070E-04
  21  Prefactor     .10000E-03    3.6057       -.12583E-06** at limit **
  22  Prefactor     1.6415        2.9845       -.59638E-07    .31749E-04
  23  Prefactor     59.033        51.041        .37764E-05   -.28314E-04
  24  norm          6.5041        3.2990        .81534E-09    .54267E-06
  25  Prefactor     .10000E-03    1.7346       -.11258E-06** at limit **
  26  norm          .75843        21.499       -.69313E-05   -.10363E-03
  27  Prefactor     53.419        37.805        .75881E-06   -.17708E-04
  28  Prefactor     11.568        7.2491        .11507E-05   -.14601E-04
  29  Prefactor     .10000E-03    2.9728       -.67475E-06** at limit **
  30  Prefactor     .10000E-03    20.190       -.24112E-06** at limit **
  31  Normalizat    1.3362        .20647        .36546E-06    .17191E-03
  32  Prefactor     .51855        .23008       -.46792E-06   -.28273E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.6944
  Prefactor  = 3.02327
  Prefactor  = 30.7423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.66977
  Prefactor  = 41.7729
  norm       = 0.301439
  Prefactor  = 0.0001
  norm       = 4.28235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06073
  norm       = 14.9239
  Prefactor  = 0.0001
  Prefactor  = 1.64149
  Prefactor  = 59.0332
  norm       = 6.5041
  Prefactor  = 0.0001
  norm       = 0.758433
  Prefactor  = 53.4189
  Prefactor  = 11.5684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33619
  Prefactor  = 0.51855
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.457     FROM HESSE     STATUS=OK           659 CALLS     5112 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.694        11.684        .77541E-04   -1.4674    
   2  Prefactor     3.0233        2.9009        .10324E-03   -1.5360    
   3  Prefactor     30.742        70.618        .72128E-04   -1.4598    
   4  Prefactor     .10000E-03    4.6010        .27245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66977        1.8698        .15780E-02   -1.5544    
   7  Prefactor     41.773        32.460        .62014E-04   -1.4414    
   8  norm          .30144        .25886        .29803E-04   -1.5598    
   9  Prefactor     .10000E-03    1.2847        .14284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2824        12.847        .19478E-03   -1.5294    
  11  Prefactor     .10000E-03    1.9281        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2068        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3320        .97819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6102        .15274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8797        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3366        .98389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    174.63        .21191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0607        20.349        .23868E-02   -1.5502    
  20  norm          14.924        13.807        .10369E-03   -1.4935    
  21  Prefactor     .10000E-03    3.6754        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.6415        2.9507        .14860E-03   -1.5452    
  23  Prefactor     59.033        52.669        .52138E-04   -1.4170    
  24  norm          6.5041        3.3003        .83004E-04   -1.5198    
  25  Prefactor     .10000E-03    1.7404        .84948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .75843        86.385        .46176E-02   -1.5534    
  27  Prefactor     53.419        37.904        .27431E-03   -1.4245    
  28  Prefactor     11.568        7.3784        .11771E-03   -1.5028    
  29  Prefactor     .10000E-03    2.9665        .11078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3362        .22961        .20247E-03   -.82492    
  32  Prefactor     .51855        .25057        .36272E-03   -1.1113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03231e-09
Minuit parameter uncertainties:
  1  11.6852
  2  2.90106
  3  70.8112
  4  2.63045e-06
  5  3.26079e-05
  6  1.86994
  7  32.4739
  8  0.258859
  9  6.8271e-06
  10  12.855
  11  1.8e-05
  12  2.26232e-05
  13  1.75344e-05
  14  1.52041e-05
  15  3.36606e-07
  16  1.03896e-06
  17  4.98124e-06
  18  0.000110759
  19  9.29515
  20  13.8102
  21  3.99938e-06
  22  2.951
  23  52.7101
  24  3.30034
  25  2.09045e-06
  26  16.2115
  27  37.9208
  28  7.37902
  29  4.83221e-05
  30  4.60005e-06
  31  0.229781
  32  0.251102
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  3.366e-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:  5.186e-01  2.511e-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:  1.336e+00  2.298e-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: 2.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426572/likelihoodResults_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.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) = 4365.45785382
delta logL = -0.000836562969198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4365.45701721
delta logL = 5.12181941303e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51849       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=   4365.457     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      234 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    489.54        .14412E-01** at limit **
   2  alpha         1.3321        4.2436        .16619        .77302E-08
   3  Normalizat    1.3362        .38840E-01    .20247E-03   -.23644E-03
   4  Prefactor     .51855        .45384E-01    .36273E-03   -.11929E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.33212
  Normalizat = 1.33619
  Prefactor  = 0.518553
 **********
 **   18 **HESSE 
 **********

 FCN=   4365.457     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5543        .18859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3321        4.2233        .66475E-02   -.48607    
   3  Normalizat    1.3362        .21083        .40495E-04   -.82493    
   4  Prefactor     .51855        .24602        .14509E-04   -1.1113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92422e-11
Minuit parameter uncertainties:
  1  6.69893e-06
  2  550.061
  3  0.210968
  4  0.246523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426572': 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) = 4365.45701287
delta logL = 4.39113773609e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  6.699e-06  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.332e+00  5.501e+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:  5.186e-01  2.465e-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:  1.336e+00  2.110e-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/426572/cmap_HighResolution_423878401_424137601_4FGL_J0941.7+4125_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-05', job_status='DONE', photon_flux_upper_limit='2.58e-08', time_completed='2021-08-31 22:27:12.815624', job_id='426572', GAL2='0.52', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630474032.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='4.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='712' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:27:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 426572: <4FGL_J0941.7+4125_daily_bin712> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:10:42 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:10:44 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:44 2021
Terminated at Tue Aug 31 22:27:15 2021
Results reported at Tue Aug 31 22:27:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin712 145.45 41.4216 423878401 424137601 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 :                                   840.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

