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


Performing analysis on: 4FGL_J1033.1+4115_monthly_bin118
RA = 158.275, Dec = 41.262
tmin = 542851201, tmax = 545443201
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='139884', job_status='RUN', time_executed='2021-10-21 19:40:13.833296', time_epoch_executed='1634870413.83' WHERE source_name='4FGL J1033.1+4115' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139884

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139884/ft1_4FGL_J1033.1+4115_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139884/ft1_4FGL_J1033.1+4115_monthly_bin118.fits outfile=/scratch/kocevski/139884/ft1_filteredMKT_4FGL_J1033.1+4115_monthly_bin118.fits ra=158.275 dec=41.262 rad=12.0 tmin=542851201.0 tmax=545443201.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 19.38
user 17.83
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.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/139884/ft1_filteredMKT_4FGL_J1033.1+4115_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.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.59
user 0.43
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/139884/ltcube_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.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/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits
.....................!
real 42.93
user 42.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/139884/ltcube_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits outfile=/scratch/kocevski/139884/expmap_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.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/139884/ltcube_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits
.....................!
real 191.15
user 185.97
sys 4.21

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/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits scfile=/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits outfile=/scratch/kocevski/139884/cmap_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.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.61
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits scfile=/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits outfile=/scratch/kocevski/139884/cmap_HighResolution_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.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.62
user 0.45
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits', '/scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits', expMap='/scratch/kocevski/139884/expmap_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits', expCube='/scratch/kocevski/139884/ltcube_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/139884/Model_4FGL_J1033.1+4115_monthly_bin118.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/139884/ft1_filtered_4FGL_J1033.1+4115_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/139884/ft2_4FGL_J1033.1+4115_monthly_bin118.fits
Exposure map: /scratch/kocevski/139884/expmap_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits
Exposure cube: /scratch/kocevski/139884/ltcube_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/139884/Model_4FGL_J1033.1+4115_monthly_bin118.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) = 972.800131595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    145.99       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.557       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.614       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.813       1.0000         .10000E-03   10000.    
    11 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    79.253       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2289.7       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .84483       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14085E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.7481       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96791       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=   972.7943     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     4407 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.360        .93130E-07** at limit **
   2  Prefactor     145.99        141.75       -.11156E-05    .18149E-04
   3  Prefactor     .10000E-03    97.043       -.15060E-05** at limit **
   4  Prefactor     .10000E-03    14.087        .48295E-06** at limit **
   5  norm          .10000E-03    83.589        .58054E-06** at limit **
   6  Prefactor     65.394        58.913       -.40353E-06    .10046E-04
   7  Prefactor     10.539        18.998       -.87983E-06    .29031E-04
   8  Prefactor     35.328        126.42        .65552E-05    .67404E-04
   9  norm          6.0354        29.329       -.13557E-05    .49167E-05
  10  Prefactor     32.826        25.825       -.61227E-06    .75746E-04
  11  norm          .10000E-03    16.078       -.10882E-05** at limit **
  12  Prefactor     78.974        131.77       -.17983E-05    .76877E-04
  13  Prefactor     .10000E-03    27.913       -.28763E-06** at limit **
  14  Prefactor     .10000E-03    32.344       -.40413E-05** at limit **
  15  Prefactor     .10000E-03    5.3066       -.40639E-07** at limit **
  16  Prefactor     .10000E-03    39.437       -.75501E-06** at limit **
  17  Prefactor     2290.7        1824.9       -.10740E-04   -.61765E-05
  18  Prefactor     .10000E-03    18.444        .40932E-06** at limit **
  19  Prefactor     .10001E-03    266.98       -.70815E-05** at limit **
  20  norm          .84479        .61636       -.10273E-06   -.92999E-04
  21  Prefactor     .10000E-03    53.382        .15934E-05** at limit **
  22  Prefactor     38.744        40.441        .27571E-07    .16800E-04
  23  Prefactor     .10004E-03    601.14        .14353E-04** at limit **
  24  norm          8.2043        20.067       -.22397E-05   -.53808E-05
  25  Prefactor     .10000E-03    5.5894        .79643E-06** at limit **
  26  Prefactor     .10000E-03    86.415        .12445E-05** at limit **
  27  norm          8.7475        6.5764       -.47944E-06   -.65684E-04
  28  Normalizat    .10000E-01    .21040       -.16961E-04** at limit **
  29  Prefactor     .96894        .24813        .27516E-07    .29251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 145.986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.3938
  Prefactor  = 10.5385
  Prefactor  = 35.3275
  norm       = 6.03538
  Prefactor  = 32.8255
  norm       = 0.0001
  Prefactor  = 78.9739
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2290.69
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.844794
  Prefactor  = 0.000100002
  Prefactor  = 38.744
  Prefactor  = 0.000100036
  norm       = 8.2043
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.74751
  Normalizat = 0.01
  Prefactor  = 0.968937
 **********
 **   18 **HESSE 
 **********

 FCN=   972.7943     FROM HESSE     STATUS=OK           541 CALLS     4948 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    58.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     145.99        141.77        .16675E-03   -1.3286    
   3  Prefactor     .10000E-03    97.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.115        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    83.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.394        58.868        .49625E-04   -1.4089    
   7  Prefactor     10.539        19.078        .12332E-03   -1.5059    
   8  Prefactor     35.328        128.36        .33577E-03   -1.4519    
   9  norm          6.0354        29.280        .16342E-03   -1.5217    
  10  Prefactor     32.826        25.945        .69953E-04   -1.4561    
  11  norm          .10000E-03    16.141        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     78.974        132.77        .22556E-03   -1.3928    
  13  Prefactor     .10000E-03    27.915        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.382        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3083        .70177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2290.7        1825.8        .47599E-04   -.57265    
  18  Prefactor     .10000E-03    18.464        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    268.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .84479        .62557        .18450E-04   -1.5524    
  21  Prefactor     .10000E-03    53.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.744        41.080        .64377E-04   -1.4462    
  23  Prefactor     .10004E-03    607.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2043        20.260        .13979E-03   -1.5135    
  25  Prefactor     .10000E-03    5.7448        .72250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    86.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.7475        6.5856        .65974E-04   -1.5116    
  28  Normalizat    .10000E-01    .23862        .72832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .96894        .26042        .20815E-03   -.93772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6638e-09
Minuit parameter uncertainties:
  1  2.51438e-05
  2  142.106
  3  0.000422981
  4  7.83476e-05
  5  0.000178877
  6  58.9201
  7  19.0893
  8  129.379
  9  26.6077
  10  25.954
  11  0.000138195
  12  133.269
  13  3.08943e-05
  14  0.000696222
  15  4.78558e-06
  16  0.000120117
  17  1888.7
  18  7.68113e-05
  19  0.00303817
  20  0.625577
  21  0.000672019
  22  41.1095
  23  0.00948867
  24  20.2769
  25  0.000103387
  26  0.000469138
  27  6.58612
  28  1.21944e-05
  29  0.26076
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  6.962e-04  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:  9.689e-01  2.608e-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.000e-02  1.219e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 4.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139884/likelihoodResults_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.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) = 972.79445002
delta logL = -0.000149526858877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 972.794303715
delta logL = -3.22183973367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3404       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96894       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.

 FCN=   972.7943     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6654.4        .17680E-02** at limit **
   2  Index         2.4180        8.7826        .50000       -.30091E-04
   3  Normalizat    .10000E-01    .62294E-01    .72839E-02** at limit **
   4  Prefactor     .96893        .10756        .20813E-03   -.11887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100032
  Index      = 2.41796
  Normalizat = 0.01
  Prefactor  = 0.968933
 **********
 **   18 **HESSE 
 **********

 FCN=   972.7943     FROM HESSE     STATUS=OK            29 CALLS      312 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    71.418        .35360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4180        5.9858        .50000       -.54265    
   3  Normalizat    .10000E-01    .21782        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96893        .20142        .83254E-05   -.93772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06209e-09
Minuit parameter uncertainties:
  1  0.00303519
  2  6.22519
  3  4.98739e-07
  4  0.20158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139884': 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) = 972.794300454
delta logL = 3.91424919144e-08

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  3.035e-03  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.418e+00  6.225e+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:  9.689e-01  2.016e-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.000e-02  4.987e-07  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/139884/cmap_HighResolution_542851201_545443201_4FGL_J1033.1+4115_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-02', job_status='DONE', photon_flux_upper_limit='4.31e-07', time_completed='2021-10-21 19:50:00.471823', job_id='139884', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1634871000.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='118' AND source_name='4FGL J1033.1+4115' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 19:50:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 139884: <4FGL_J1033.1+4115_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1033.1+4115_monthly_bin118> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct 21 19:39:52 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 19:39:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 19:39:54 2021
Terminated at Thu Oct 21 19:50:00 2021
Results reported at Thu Oct 21 19:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_monthly_bin118 158.275 41.262 542851201 545443201 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 :                                   548.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             283.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            608 sec.

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

