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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin666
RA = 145.45, Dec = 41.4216
tmin = 411955201, tmax = 412214401
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='426488', job_status='RUN', time_executed='2021-08-31 22:12:51.442616', time_epoch_executed='1630473171.44' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426488/ft1_4FGL_J0941.7+4125_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426488/ft1_4FGL_J0941.7+4125_daily_bin666.fits outfile=/scratch/kocevski/426488/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin666.fits ra=145.45 dec=41.4216 rad=12.0 tmin=411955201.0 tmax=412214401.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.70
user 5.37
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/426488/ltcube_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.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/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits
.....................!
real 13.14
user 12.64
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/426488/ltcube_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.fits outfile=/scratch/kocevski/426488/expmap_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.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/426488/ltcube_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.fits
.....................!
real 192.45
user 186.02
sys 5.55

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/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits scfile=/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits outfile=/scratch/kocevski/426488/cmap_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits scfile=/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits outfile=/scratch/kocevski/426488/cmap_HighResolution_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.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/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/426488/ft2_4FGL_J0941.7+4125_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426488/Model_4FGL_J0941.7+4125_daily_bin666.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/426488/ft1_filtered_4FGL_J0941.7+4125_daily_bin666.fits......................!
real 38.19
user 36.22
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.117       1.0000         .10000E-03   10000.    
     8 'norm      '    .74547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1227       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.912       1.0000         .10000E-03   10000.    
    15 'norm      '    12.155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.791       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0003       1.0000         .10000E-03   10000.    
    20 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2743       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6234       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.0774       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.6274       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59933       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1811       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=   3916.458     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4434 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9792        8.8331        .48318E-06   -.98713E-04
   2  Prefactor     .10000E-03    1.9987        .16938E-06** at limit **
   3  Prefactor     .10000E-03    396.22       -.16106E-04** at limit **
   4  Prefactor     1.2911        3.5417       -.33837E-06   -.58379E-03
   5  Prefactor     .10000E-03    22.350        .52747E-06** at limit **
   6  Prefactor     .10000E-03    .66461        .16036E-07** at limit **
   7  Prefactor     16.124        22.361       -.85600E-05   -.36435E-04
   8  norm          .74542        .47616       -.47734E-07   -.43989E-03
   9  Prefactor     .10000E-03    2.3453       -.82109E-07** at limit **
  10  norm          7.1258        11.708        .36438E-05   -.96082E-04
  11  Prefactor     1.6450        1.8505       -.25482E-06   -.23657E-03
  12  Prefactor     .10000E-03    11.813        .12213E-05** at limit **
  13  Prefactor     .10000E-03    2.5647        .49389E-07** at limit **
  14  Prefactor     18.915        17.202       -.26275E-05   -.31166E-04
  15  norm          12.154        20.207        .75113E-06   -.35821E-04
  16  Prefactor     8.1600        47.082        .16152E-04   -.19346E-04
  17  Prefactor     .10000E-03    6.6604        .14763E-06** at limit **
  18  Prefactor     56.788        45.919        .60616E-05   -.31161E-04
  19  Prefactor     4.0019        6.5339        .14408E-05   -.14224E-03
  20  norm          .10000E-03    14.591       -.97285E-07** at limit **
  21  Prefactor     9.5540        6.7667       -.71132E-07   -.78035E-04
  22  Prefactor     3.2761        3.7208       -.16789E-06   -.28112E-03
  23  Prefactor     .10000E-03    47.910       -.11852E-05** at limit **
  24  norm          8.6238        4.1780       -.38937E-06    .94979E-06
  25  Prefactor     .10000E-03    3.6473        .21862E-07** at limit **
  26  norm          7.0790        12.786        .89212E-06   -.62705E-04
  27  Prefactor     .10000E-03    10.844        .20477E-07** at limit **
  28  Prefactor     1.6305        3.9420       -.38649E-06   -.48023E-03
  29  Prefactor     .10000E-03    1.6571        .59716E-08** at limit **
  30  Prefactor     .10000E-03    12.098       -.86816E-06** at limit **
  31  Normalizat    .59893        .19201       -.27094E-05    .49650E-05
  32  Prefactor     1.1813        .22294        .84442E-06   -.85909E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.97918
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.29107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.124
  norm       = 0.745425
  Prefactor  = 0.0001
  norm       = 7.12583
  Prefactor  = 1.64502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9154
  norm       = 12.154
  Prefactor  = 8.15998
  Prefactor  = 0.0001
  Prefactor  = 56.7881
  Prefactor  = 4.00191
  norm       = 0.0001
  Prefactor  = 9.554
  Prefactor  = 3.27614
  Prefactor  = 0.0001
  norm       = 8.62383
  Prefactor  = 0.0001
  norm       = 7.07902
  Prefactor  = 0.0001
  Prefactor  = 1.63048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.598928
  Prefactor  = 1.18134
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.458     FROM HESSE     STATUS=OK           659 CALLS     5093 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9792        8.7718        .16398E-03   -1.5219    
   2  Prefactor     .10000E-03    3.7812        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    399.51        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2911        3.5306        .18749E-03   -1.5481    
   5  Prefactor     .10000E-03    22.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .66535        .49813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.124        22.236        .99764E-04   -1.4905    
   8  norm          .74542        .46866        .32715E-04   -1.5535    
   9  Prefactor     .10000E-03    2.4047        .18528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1258        11.582        .15030E-03   -1.5174    
  11  Prefactor     1.6450        1.8351        .85621E-04   -1.5451    
  12  Prefactor     .10000E-03    11.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5812        .97858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.915        17.205        .92100E-04   -1.4838    
  15  norm          12.154        20.163        .11490E-03   -1.5011    
  16  Prefactor     8.1600        45.825        .14018E-03   -1.5137    
  17  Prefactor     .10000E-03    6.7539        .15759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.788        45.626        .53232E-04   -1.4199    
  19  Prefactor     4.0019        6.5029        .19748E-03   -1.5308    
  20  norm          .10000E-03    14.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5540        6.7731        .12965E-03   -1.5090    
  22  Prefactor     3.2761        3.7066        .12169E-03   -1.5346    
  23  Prefactor     .10000E-03    48.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6238        4.1780        .85975E-04   -1.5121    
  25  Prefactor     .10000E-03    3.6847        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.0790        12.695        .15079E-03   -1.5176    
  27  Prefactor     .10000E-03    10.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.6305        3.8951        .18043E-03   -1.5453    
  29  Prefactor     .10000E-03    1.6590        .78672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    12.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .59893        .22018        .25426E-03   -1.0803    
  32  Prefactor     1.1813        .25952        .23564E-03   -.86907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19727e-10
Minuit parameter uncertainties:
  1  8.77372
  2  3.10606e-05
  3  0.00130064
  4  3.53119
  5  0.000156817
  6  1.50281e-06
  7  22.2472
  8  0.468661
  9  1.20129e-05
  10  11.5852
  11  1.83515
  12  0.000117127
  13  8.17779e-06
  14  17.2093
  15  20.1747
  16  38.7197
  17  3.60543e-05
  18  45.6543
  19  6.50403
  20  2.09115e-05
  21  6.77362
  22  3.70683
  23  0.000129333
  24  4.17817
  25  6.84075e-06
  26  12.7003
  27  1.5426e-07
  28  3.8957
  29  2.04843e-07
  30  1.11898e-06
  31  0.220507
  32  0.259797
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.215e+01  2.017e+01  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.181e+00  2.598e-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:  5.989e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/426488/likelihoodResults_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.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) = 3915.89282868
delta logL = 0.5654446478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3915.87569841
delta logL = 0.582574920149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8560       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4097       1.0000          .0000       5.0000    
     3 'Normalizat'    .56927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1958       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.

 FCN=   3915.876     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      286 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8527        117.53        .51377E-02    .19274E-03
   2  alpha         4.4100        2.5029        .50000        .24685E-04
   3  Normalizat    .56944        .74725E-01    .58785E-01    .20315E-04
   4  Prefactor     1.1956        .83321E-01    .52931E-01   -.32792E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85274
  alpha      = 4.40998
  Normalizat = 0.569439
  Prefactor  = 1.19555
 **********
 **   18 **HESSE 
 **********

 FCN=   3915.876     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8527        14.509        .11317E-03   -1.5315    
   2  alpha         4.4100        4.1554        .25305E-01    .86948    
   3  Normalizat    .56944        .20744        .26005E-03   -1.0930    
   4  Prefactor     1.1956        .25728        .23401E-03   -.86468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18548e-11
Minuit parameter uncertainties:
  1  14.5227
  2  2.36197
  3  0.207722
  4  0.257554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426488': 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) = 3915.87569771
delta logL = 0.582575614024

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  3.853e+00  1.452e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  4.410e+00  2.362e+00  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.196e+00  2.576e-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:  5.694e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 145.450 41.422
Photon Index (Free Index): 4.41 +/- 2.36
Photon Flux (Free Index): 4.35e-08 +/- 5.40e-08
Energy Flux (Free Index): 1.01e-05 +/- 9.77e-06

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/426488/cmap_HighResolution_411955201_412214401_4FGL_J0941.7+4125_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='5.83e-01', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-08-31 22:26:15.665860', photon_index_error2='2.36', photon_index2='4.41', ts='0.64', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='6.01e-08', energy_flux_error2='9.77e-06', EG='0.60', time_epoch_completed='1630473975.67', return_code='0', job_id='426488', GAL2='1.20', EG2='0.57', return_code2='0', photon_flux_error2='5.40e-08', ts2='1.82', photon_index='2.82' WHERE bin_id='666' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 426488: <4FGL_J0941.7+4125_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin666 145.45 41.4216 411955201 412214401 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 :                                   798.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

