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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin330
RA = 158.275, Dec = 41.262
tmin = 324864001, tmax = 325123201
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='973092', job_status='RUN', time_executed='2021-09-02 03:17:51.357140', time_epoch_executed='1630577871.36' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973092/ft1_4FGL_J1033.1+4115_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973092/ft1_4FGL_J1033.1+4115_daily_bin330.fits outfile=/scratch/kocevski/973092/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin330.fits ra=158.275 dec=41.262 rad=12.0 tmin=324864001.0 tmax=325123201.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.86
user 5.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.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/973092/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin330.fits evtable="EVENTS" outfile="/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.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 1.09
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/973092/ltcube_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.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/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits
.....................!
real 14.79
user 14.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/973092/ltcube_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits outfile=/scratch/kocevski/973092/expmap_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.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/973092/ltcube_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits
.....................!
real 191.94
user 187.19
sys 3.97

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 J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits outfile=/scratch/kocevski/973092/cmap_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.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=158.275 yref=41.262 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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits outfile=/scratch/kocevski/973092/cmap_HighResolution_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.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=158.275 yref=41.262 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.56
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/973092/Model_4FGL_J1033.1+4115_daily_bin330.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/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits.....................!
real 44.53
user 43.20
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits', '/scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits', expMap='/scratch/kocevski/973092/expmap_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits', expCube='/scratch/kocevski/973092/ltcube_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/973092/Model_4FGL_J1033.1+4115_daily_bin330.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/973092/ft1_filtered_4FGL_J1033.1+4115_daily_bin330.fits
Spacecraft file(s): /scratch/kocevski/973092/ft2_4FGL_J1033.1+4115_daily_bin330.fits
Exposure map: /scratch/kocevski/973092/expmap_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits
Exposure cube: /scratch/kocevski/973092/ltcube_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/973092/Model_4FGL_J1033.1+4115_daily_bin330.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) = 4938.4796749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.749       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0093       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13426E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5702       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15880E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22642E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10241       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.592       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    28.154       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.671       1.0000         .10000E-03   10000.    
    27 'norm      '    .14001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1057       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4938.456     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3766 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6317        12.986        .76395E-06   -.28964E-04
   2  Prefactor     20.749        25.764        .18138E-05   -.47497E-04
   3  Prefactor     12.209        37.814       -.12293E-05   -.32056E-04
   4  Prefactor     .10000E-03    3.7269        .69238E-07** at limit **
   5  norm          2.0120        18.305        .28224E-04   -.19668E-03
   6  Prefactor     .10000E-03    3.5888       -.35173E-06** at limit **
   7  Prefactor     .10003E-03    3.2293        .28969E-06** at limit **
   8  Prefactor     .10000E-03    12.788       -.45298E-06** at limit **
   9  norm          5.5181        3.1916       -.39936E-06   -.38640E-03
  10  Prefactor     4.5640        6.3647        .33275E-06   -.71433E-03
  11  norm          .10000E-03    7.1180       -.14431E-07** at limit **
  12  Prefactor     .10000E-03    89.839        .57430E-04** at limit **
  13  Prefactor     .10000E-03    13.585        .35236E-06** at limit **
  14  Prefactor     .10000E-03    2.2975       -.12826E-07** at limit **
  15  Prefactor     .19014E-01    3.0537        .44609E-06   -.47376E-03
  16  Prefactor     7.9406        24.468        .45090E-05   -.46247E-04
  17  Prefactor     .10000E-03    55.474        .27524E-04** at limit **
  18  Prefactor     27.311        27.697        .16957E-05   -.69168E-04
  19  Prefactor     .10000E-03    61.333       -.22322E-04** at limit **
  20  norm          1.2750        .38545       -.13376E-08   -.20871E-02
  21  Prefactor     .10447E-03    16.007        .35029E-05** at limit **
  22  Prefactor     14.598        13.810        .36559E-05   -.21517E-03
  23  Prefactor     .10000E-03    72.029       -.42706E-04** at limit **
  24  norm          28.153        20.711       -.84799E-05   -.43921E-03
  25  Prefactor     .10000E-03    2.3787        .17787E-06** at limit **
  26  Prefactor     52.687        42.720       -.30168E-06   -.49387E-04
  27  norm          .10000E-03    1.6832        .22881E-06** at limit **
  28  Normalizat    1.1056        .18638       -.14812E-05   -.64240E-03
  29  Prefactor     .85766        .22383       -.11843E-05   -.47462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.6317
  Prefactor  = 20.7488
  Prefactor  = 12.2092
  Prefactor  = 0.0001
  norm       = 2.01198
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  norm       = 5.51809
  Prefactor  = 4.56405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.019014
  Prefactor  = 7.94064
  Prefactor  = 0.0001
  Prefactor  = 27.3111
  Prefactor  = 0.0001
  norm       = 1.27503
  Prefactor  = 0.000104469
  Prefactor  = 14.598
  Prefactor  = 0.0001
  norm       = 28.1535
  Prefactor  = 0.0001
  Prefactor  = 52.6871
  norm       = 0.0001
  Normalizat = 1.10564
  Prefactor  = 0.857662
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.456     FROM HESSE     STATUS=OK           563 CALLS     4329 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6317        12.979        .13644E-03   -1.5120    
   2  Prefactor     20.749        25.708        .87931E-04   -1.4797    
   3  Prefactor     12.209        37.708        .11464E-03   -1.5009    
   4  Prefactor     .10000E-03    3.7342        .13248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0120        17.785        .29207E-03   -1.5424    
   6  Prefactor     .10000E-03    3.6161        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    47.186        .20706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5181        3.1887        .91973E-04   -1.5238    
  10  Prefactor     4.5640        5.5444        .16908E-03   -1.5281    
  11  norm          .10000E-03    7.1884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    90.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5470        .20609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .19014E-01    5.8277        .41267E-01   -1.5680    
  16  Prefactor     7.9406        24.385        .14221E-03   -1.5144    
  17  Prefactor     .10000E-03    55.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.311        27.689        .76652E-04   -1.4662    
  19  Prefactor     .10000E-03    61.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2750        .38692        .22721E-04   -1.5482    
  21  Prefactor     .10447E-03    21.019        .78799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.598        13.822        .10485E-03   -1.4944    
  23  Prefactor     .10000E-03    71.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          28.153        20.952        .75504E-04   -1.4646    
  25  Prefactor     .10000E-03    2.4435        .21140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     52.687        42.476        .55264E-04   -1.4255    
  27  norm          .10000E-03    2.8857        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1056        .21861        .21910E-03   -.89571    
  29  Prefactor     .85766        .26168        .30467E-03   -.97637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62384e-09
Minuit parameter uncertainties:
  1  12.983
  2  25.7219
  3  37.7818
  4  3.75683e-06
  5  11.9683
  6  4.82894e-05
  7  0.00250591
  8  1.75481e-06
  9  3.18881
  10  5.54507
  11  4.79102e-06
  12  9.59515e-05
  13  6.26908e-06
  14  2.27421e-06
  15  0.664068
  16  24.4152
  17  3.03526e-05
  18  27.7022
  19  5.26967e-05
  20  0.386919
  21  0.0193917
  22  13.8248
  23  5.51848e-05
  24  20.9573
  25  3.56036e-05
  26  42.5009
  27  4.15465e-05
  28  0.21879
  29  0.262065
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.274e-06  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.577e-01  2.621e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.106e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973092/likelihoodResults_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.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) = 4938.45728431
delta logL = -0.00104753873438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4938.4562346
delta logL = 2.17123488255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11877E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3206       1.0000          .0000       10.000    
     3 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4938.456     FROM MIGRAD    STATUS=FAILED       110 CALLS      277 TOTAL
                     EDM=   .13E+00    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21749E-03    6076.1        .20403E-02** at limit **
   2  Index         1.7120        3.0990        .50000       -.55259E-04
   3  Normalizat    1.1056        .74653E-01    .21911E-03   -.13176E-03
   4  Prefactor     .85766        .12870        .30467E-03    .14441E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4938.452     FROM SIMPLEX   STATUS=PROGRESS     150 CALLS      427 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31396        6076.1        .39601E-03   -.31231E-01
   2  Index         1.7119        3.0990        .11989E-05   -.55259E-04
   3  Normalizat    1.1056        .74653E-01    .13190E-06   -.13176E-03
   4  Prefactor     .85766        .12870        .42014E-07    .14441E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4938.451     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      525 TOTAL
                     EDM=   .95E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35454        8.7245        .16323E-03    .10587E-04
   2  Index         1.7903        1.7669        .17820E-01   -.13678E-05
   3  Normalizat    1.1072        .20971        .87642E-05    .33726E-05
   4  Prefactor     .85393        .26272        .24373E-05    .18658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.354542
  Index      = 1.7903
  Normalizat = 1.10721
  Prefactor  = 0.853926
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.451     FROM HESSE     STATUS=OK            25 CALLS      550 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35454        8.5338        .65290E-05   -1.5589    
   2  Index         1.7903        1.7498        .71282E-03   -.69703    
   3  Normalizat    1.1072        .21169        .17528E-05   -.89521    
   4  Prefactor     .85393        .26577        .48747E-06   -.97770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57892e-13
Minuit parameter uncertainties:
  1  3.47891
  2  1.81707
  3  0.211857
  4  0.266173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973092': 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) = 4938.45080738
delta logL = 0.00542938780836

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.545e-01  3.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.790e+00  1.817e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.539e-01  2.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.107e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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/973092/cmap_HighResolution_324864001_325123201_4FGL_J1033.1+4115_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-02 03:31:55.619691', job_id='973092', GAL2='0.85', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630578715.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='330' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 973092: <4FGL_J1033.1+4115_daily_bin330> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:15:32 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:15:35 2021
Terminated at Thu Sep  2 03:31:56 2021
Results reported at Thu Sep  2 03:31:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin330 158.275 41.262 324864001 325123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            984 sec.

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

