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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin600
RA = 145.45, Dec = 41.4216
tmin = 394848001, tmax = 395107201
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='426367', job_status='RUN', time_executed='2021-08-31 22:10:45.096778', time_epoch_executed='1630473045.1' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426367

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426367/ft1_4FGL_J0941.7+4125_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426367/ft1_4FGL_J0941.7+4125_daily_bin600.fits outfile=/scratch/kocevski/426367/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin600.fits ra=145.45 dec=41.4216 rad=12.0 tmin=394848001.0 tmax=395107201.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 6.35
user 4.96
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426367/ft1_filtered_4FGL_J0941.7+4125_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/426367/ltcube_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.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/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits
.....................!
real 12.12
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426367/ft1_filtered_4FGL_J0941.7+4125_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/426367/ltcube_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.fits outfile=/scratch/kocevski/426367/expmap_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.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/426367/ltcube_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.fits
.....................!
real 192.31
user 185.60
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 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/426367/ft1_filtered_4FGL_J0941.7+4125_daily_bin600.fits scfile=/scratch/kocevski/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits outfile=/scratch/kocevski/426367/cmap_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426367/ft1_filtered_4FGL_J0941.7+4125_daily_bin600.fits scfile=/scratch/kocevski/426367/ft2_4FGL_J0941.7+4125_daily_bin600.fits outfile=/scratch/kocevski/426367/cmap_HighResolution_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.441       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22692       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3739       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7278       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0123       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.4396       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2472       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87176       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=   5608.160     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4396 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.440        10.102       -.12513E-07   -.22767E-04
   2  Prefactor     3.4959        3.8219        .29911E-06   -.14285E-03
   3  Prefactor     .10000E-03    60.277        .16711E-05** at limit **
   4  Prefactor     1.9437        3.8399        .18120E-05    .56793E-04
   5  Prefactor     .10000E-03    17.696       -.26571E-05** at limit **
   6  Prefactor     .10000E-03    1.6127       -.88264E-08** at limit **
   7  Prefactor     .71944E-01    12.066       -.11133E-06    .24352E-04
   8  norm          .10000E-03    .15131        .97756E-08** at limit **
   9  Prefactor     .10000E-03    1.0508       -.40805E-08** at limit **
  10  norm          3.8507        8.8721       -.24906E-06   -.23566E-03
  11  Prefactor     .10000E-03    1.6388        .91878E-06** at limit **
  12  Prefactor     30.178        13.120        .11297E-06    .30182E-05
  13  Prefactor     .10000E-03    1.4766       -.60534E-08** at limit **
  14  Prefactor     .10000E-03    16.719       -.10074E-05** at limit **
  15  norm          .10000E-03    6.2018        .27083E-07** at limit **
  16  Prefactor     .10000E-03    14.455        .12177E-06** at limit **
  17  Prefactor     .10000E-03    3.2032        .72885E-06** at limit **
  18  Prefactor     34.404        41.264       -.58634E-05   -.14076E-03
  19  Prefactor     7.3751        15.036        .99497E-06    .33746E-05
  20  norm          2.7265        4.5047        .12110E-05   -.14945E-02
  21  Prefactor     6.0739        5.5925        .31102E-06   -.33062E-04
  22  Prefactor     .10000E-03    4.4454        .37765E-08** at limit **
  23  Prefactor     .10000E-03    26.091       -.41111E-05** at limit **
  24  norm          .10000E-03    1.0914       -.13951E-07** at limit **
  25  Prefactor     6.0143        4.3727        .27888E-06    .61743E-04
  26  norm          .10000E-03    3.1303       -.19942E-05** at limit **
  27  Prefactor     .10000E-03    22.647        .52853E-05** at limit **
  28  Prefactor     .10000E-03    1.7963        .39343E-08** at limit **
  29  Prefactor     9.4399        7.2718        .10304E-05    .56523E-04
  30  Prefactor     .10000E-03    15.880        .18997E-05** at limit **
  31  Normalizat    1.2473        .19004        .24283E-08   -.23715E-03
  32  Prefactor     .87181        .20925       -.86235E-06   -.11883E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4405
  Prefactor  = 3.49594
  Prefactor  = 0.0001
  Prefactor  = 1.94368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0719445
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85074
  Prefactor  = 0.000100001
  Prefactor  = 30.1779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4041
  Prefactor  = 7.37508
  norm       = 2.72653
  Prefactor  = 6.07388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.01432
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43989
  Prefactor  = 0.0001
  Normalizat = 1.24729
  Prefactor  = 0.871814
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.160     FROM HESSE     STATUS=OK           663 CALLS     5059 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.440        10.076        .10925E-03   -1.4975    
   2  Prefactor     3.4959        3.8152        .13906E-03   -1.5334    
   3  Prefactor     .10000E-03    60.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9437        3.8318        .19806E-03   -1.5429    
   5  Prefactor     .10000E-03    17.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6466        .92713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71944E-01    14.968        .83162E-01   -1.5654    
   8  norm          .10000E-03    .16280        .56701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0611        .74866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8507        8.8033        .20607E-03   -1.5315    
  11  Prefactor     .10000E-03    3.0983        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.178        13.121        .72933E-04   -1.4609    
  13  Prefactor     .10000E-03    1.4795        .88855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.2051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2229        .13082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.404        41.771        .68313E-04   -1.4534    
  19  Prefactor     7.3751        15.080        .14770E-03   -1.5165    
  20  norm          2.7265        8.7098        .12328E-02   -1.5378    
  21  Prefactor     6.0739        5.6216        .16194E-03   -1.5215    
  22  Prefactor     .10000E-03    4.5721        .30712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7241        .15232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0143        4.3644        .12807E-03   -1.5217    
  26  norm          .10000E-03    3.1441        .12958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.8065        .97994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.4399        7.2734        .13044E-03   -1.5093    
  30  Prefactor     .10000E-03    15.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2473        .23033        .22541E-03   -.85154    
  32  Prefactor     .87181        .24935        .30791E-03   -.97133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7232e-09
Minuit parameter uncertainties:
  1  10.0777
  2  3.81543
  3  0.000102994
  4  3.83227
  5  9.28475e-05
  6  1.76318e-06
  7  2.07456
  8  5.46881e-08
  9  1.11874e-08
  10  8.80625
  11  8.48692e-05
  12  13.1223
  13  5.54821e-07
  14  4.19247e-05
  15  1.18101e-05
  16  5.85849e-05
  17  8.34222e-06
  18  41.8067
  19  15.0879
  20  8.71388
  21  5.62205
  22  1.65692e-05
  23  0.000135976
  24  2.0184e-06
  25  4.36461
  26  3.02149e-05
  27  0.000148679
  28  5.71327e-07
  29  7.27411
  30  4.90275e-05
  31  0.230514
  32  0.24968
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  1.181e-05  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:  8.718e-01  2.497e-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.247e+00  2.305e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426367/likelihoodResults_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.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) = 5608.16043524
delta logL = -0.000753427809286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5608.15968182
delta logL = -3.2332536648e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8081       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87186       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=   5608.160     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    438.92        .18142E-01** at limit **
   2  alpha         1.5147        3.7509        .16621        .16074E-07
   3  Normalizat    1.2473        .34159E-01    .22541E-03   -.72490E-03
   4  Prefactor     .87181        .39953E-01    .30791E-03   -.56241E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.51475
  Normalizat = 1.24729
  Prefactor  = 0.871811
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.160     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8273        .21694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5147        2.9619        .66486E-02   -.40509    
   3  Normalizat    1.2473        .21013        .45082E-04   -.85154    
   4  Prefactor     .87181        .24563        .61582E-04   -.97133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09152e-10
Minuit parameter uncertainties:
  1  8.48503e-05
  2  605.466
  3  0.210275
  4  0.24594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426367': 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) = 5608.15967944
delta logL = 2.37648418988e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  8.485e-05  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.515e+00  6.055e+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:  8.718e-01  2.459e-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.247e+00  2.103e-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/426367/cmap_HighResolution_394848001_395107201_4FGL_J0941.7+4125_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='2.98e-08', time_completed='2021-08-31 22:26:58.206735', job_id='426367', GAL2='0.87', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630474018.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='600' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 426367: <4FGL_J0941.7+4125_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin600 145.45 41.4216 394848001 395107201 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 :                                   963.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

