/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 0 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 = 7466
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.7+4125_daily_bin442
RA = 145.45, Dec = 41.4216
tmin = 353894401, tmax = 354153601
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='424476', job_status='RUN', time_executed='2021-08-31 22:05:41.994563', time_epoch_executed='1630472741.99' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424476/ft1_4FGL_J0941.7+4125_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424476/ft1_4FGL_J0941.7+4125_daily_bin442.fits outfile=/scratch/kocevski/424476/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin442.fits ra=145.45 dec=41.4216 rad=12.0 tmin=353894401.0 tmax=354153601.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 3.46
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/424476/ltcube_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.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/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits
.....................!
real 11.99
user 11.65
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/424476/ltcube_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.fits outfile=/scratch/kocevski/424476/expmap_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.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/424476/ltcube_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.fits
.....................!
real 191.56
user 186.34
sys 4.75

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/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits scfile=/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits outfile=/scratch/kocevski/424476/cmap_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits scfile=/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits outfile=/scratch/kocevski/424476/cmap_HighResolution_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/424476/ft2_4FGL_J0941.7+4125_daily_bin442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424476/Model_4FGL_J0941.7+4125_daily_bin442.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/424476/ft1_filtered_4FGL_J0941.7+4125_daily_bin442.fits.....................!
real 52.78
user 51.53
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1120       1.0000         .10000E-03   10000.    
     8 'norm      '    .60515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86985       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.502       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.419       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.091       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9145       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3524       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8651       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1922       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3993       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.2969       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74038       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=   5986.245     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3717 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3017        8.3228       -.47051E-07   -.10700E-03
   2  Prefactor     1.8680        2.8757        .41916E-06   -.93308E-03
   3  Prefactor     .10000E-03    99.961       -.56777E-05** at limit **
   4  Prefactor     3.7675        4.7045        .79334E-07   -.10979E-04
   5  Prefactor     .10000E-03    9.9204        .17050E-05** at limit **
   6  Prefactor     .10000E-03    .76738       -.25097E-07** at limit **
   7  Prefactor     8.1154        16.006       -.26716E-05    .56605E-05
   8  norm          .60474        .61454        .29933E-06    .71647E-03
   9  Prefactor     .87339        5.3026       -.23348E-05   -.13621E-03
  10  norm          4.5805        7.1658        .54752E-06    .32239E-04
  11  Prefactor     1.3634        1.5745        .42658E-07    .21007E-03
  12  Prefactor     .10000E-03    2.5057       -.86337E-07** at limit **
  13  Prefactor     .10000E-03    3.3634       -.12165E-07** at limit **
  14  Prefactor     22.487        20.061        .26631E-05    .58619E-04
  15  norm          .10000E-03    4.7377       -.29955E-07** at limit **
  16  Prefactor     11.418        14.715        .53736E-06    .36639E-04
  17  Prefactor     2.6461        7.6768       -.13132E-05   -.34249E-04
  18  Prefactor     .10000E-03    15.099       -.64944E-05** at limit **
  19  Prefactor     21.093        12.844       -.81284E-06   -.18040E-04
  20  norm          .10000E-03    7.4905        .14837E-05** at limit **
  21  Prefactor     4.9140        6.8039       -.30356E-06    .12043E-04
  22  Prefactor     2.3513        4.4355        .17108E-05    .10009E-04
  23  Prefactor     .10000E-03    10.553        .78086E-05** at limit **
  24  norm          1.8652        1.9392        .21485E-07    .60823E-05
  25  Prefactor     2.1940        3.2980       -.19352E-06   -.12001E-02
  26  norm          1.3997        4.8037        .60946E-07   -.58395E-04
  27  Prefactor     .10000E-03    19.451        .38460E-05** at limit **
  28  Prefactor     6.2973        4.0949       -.35509E-07   -.20702E-05
  29  Prefactor     .10000E-03    2.0214       -.14665E-07** at limit **
  30  Prefactor     .10000E-03    9.1756       -.75833E-05** at limit **
  31  Normalizat    1.2642        .17943        .62260E-06    .76991E-04
  32  Prefactor     .74050        .19604       -.87574E-06    .96175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30167
  Prefactor  = 1.86802
  Prefactor  = 0.0001
  Prefactor  = 3.76752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.11544
  norm       = 0.604743
  Prefactor  = 0.873389
  norm       = 4.58053
  Prefactor  = 1.36337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4867
  norm       = 0.0001
  Prefactor  = 11.4178
  Prefactor  = 2.64612
  Prefactor  = 0.0001
  Prefactor  = 21.0934
  norm       = 0.0001
  Prefactor  = 4.91402
  Prefactor  = 2.35133
  Prefactor  = 0.0001
  norm       = 1.8652
  Prefactor  = 2.19402
  norm       = 1.39972
  Prefactor  = 0.0001
  Prefactor  = 6.29725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26421
  Prefactor  = 0.740504
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.245     FROM HESSE     STATUS=OK           663 CALLS     4380 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3017        8.2840        .74217E-03   -1.5167    
   2  Prefactor     1.8680        3.2232        .83511E-03   -1.5435    
   3  Prefactor     .10000E-03    100.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7675        4.7094        .17840E-03   -1.5320    
   5  Prefactor     .10000E-03    9.9223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .76969        .66158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1154        15.986        .14077E-03   -1.5138    
   8  norm          .60474        .58023        .40336E-04   -1.5552    
   9  Prefactor     .87339        4.7583        .22167E-03   -1.5521    
  10  norm          4.5805        7.1304        .18807E-03   -1.5280    
  11  Prefactor     1.3634        1.5457        .99796E-04   -1.5474    
  12  Prefactor     .10000E-03    2.5073        .11959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4790        .27637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.487        20.000        .84440E-04   -1.4759    
  15  norm          .10000E-03    4.7389        .16447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.418        14.713        .11855E-03   -1.5032    
  17  Prefactor     2.6461        7.5534        .25096E-03   -1.5383    
  18  Prefactor     .10000E-03    15.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.093        12.874        .87215E-04   -1.4789    
  20  norm          .10000E-03    7.5122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9140        6.7722        .18143E-03   -1.5265    
  22  Prefactor     2.3513        4.8616        .19501E-03   -1.5401    
  23  Prefactor     .10000E-03    10.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8652        1.9389        .10622E-03   -1.5435    
  25  Prefactor     2.1940        6.4489        .13190E-02   -1.5412    
  26  norm          1.3997        4.7432        .30412E-03   -1.5471    
  27  Prefactor     .10000E-03    19.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.2973        4.0977        .12155E-03   -1.5206    
  29  Prefactor     .10000E-03    2.0292        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.1417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2642        .21325        .21851E-03   -.84641    
  32  Prefactor     .74050        .22793        .32251E-03   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36104e-09
Minuit parameter uncertainties:
  1  8.28535
  2  3.22353
  3  2.25888e-05
  4  4.70988
  5  7.90596e-06
  6  1.81823e-06
  7  15.9943
  8  0.580233
  9  4.07744
  10  7.1317
  11  1.54578
  12  3.50053e-06
  13  2.37014e-06
  14  20.0058
  15  3.68805e-07
  16  14.7179
  17  7.55615
  18  2.24849e-07
  19  12.876
  20  1.59902e-06
  21  6.77329
  22  4.86244
  23  1.1812e-06
  24  1.93893
  25  6.45099
  26  4.74446
  27  9.48885e-06
  28  4.09787
  29  2.28884e-06
  30  4.77208e-06
  31  0.213393
  32  0.228218
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  3.688e-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:  7.405e-01  2.282e-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.264e+00  2.134e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424476/likelihoodResults_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.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) = 5986.24561036
delta logL = -0.000968689350884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.24464153
delta logL = 1.36627022584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74054       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=   5986.245     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    462.79        .16732E-01** at limit **
   2  alpha         1.1931        2.9551        .16613        .11100E-06
   3  Normalizat    1.2642        .31358E-01    .21851E-03    .30577E-02
   4  Prefactor     .74051        .36557E-01    .32251E-03    .20167E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 1.19309
  Normalizat = 1.26421
  Prefactor  = 0.740508
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.245     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    10.003        .23594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1931        3.8240        .66452E-02   -.55009    
   3  Normalizat    1.2642        .19213        .43701E-04   -.84641    
   4  Prefactor     .74051        .22383        .64503E-04   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78371e-09
Minuit parameter uncertainties:
  1  0.000642353
  2  560.031
  3  0.192236
  4  0.224103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424476': 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) = 5986.24463624
delta logL = 5.427981705e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  6.424e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.193e+00  5.600e+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:  7.405e-01  2.241e-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.264e+00  1.922e-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/424476/cmap_HighResolution_353894401_354153601_4FGL_J0941.7+4125_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-05', job_status='DONE', photon_flux_upper_limit='2.38e-08', time_completed='2021-08-31 22:21:31.390642', job_id='424476', GAL2='0.74', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630473691.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='442' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:21:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 424476: <4FGL_J0941.7+4125_daily_bin442> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin442> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:05:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:05:33 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:05:33 2021
Terminated at Tue Aug 31 22:21:32 2021
Results reported at Tue Aug 31 22:21:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin442 145.45 41.4216 353894401 354153601 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 :                                   942.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

