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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin980
RA = 173.196, Dec = 0.5737
tmin = 493344001, tmax = 493603201
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='921527', job_status='RUN', time_executed='2021-09-04 03:44:58.469974', time_epoch_executed='1630752298.47' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='980'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921527/ft1_4FGL_J1132.7+0034_daily_bin980.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921527/ft1_4FGL_J1132.7+0034_daily_bin980.fits outfile=/scratch/kocevski/921527/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin980.fits ra=173.196 dec=0.5737 rad=12.0 tmin=493344001.0 tmax=493603201.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 4.50
user 4.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.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/921527/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin980.fits evtable="EVENTS" outfile="/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits" evtable="EVENTS" scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits sctable="SC_DATA" outfile=/scratch/kocevski/921527/ltcube_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.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/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits
.....................!
real 12.20
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits sctable="SC_DATA" expcube=/scratch/kocevski/921527/ltcube_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits outfile=/scratch/kocevski/921527/expmap_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.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/921527/ltcube_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits
.....................!
real 192.19
user 186.53
sys 5.25

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits outfile=/scratch/kocevski/921527/cmap_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.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=173.196 yref=0.5737 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits outfile=/scratch/kocevski/921527/cmap_HighResolution_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.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=173.196 yref=0.5737 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921527/Model_4FGL_J1132.7+0034_daily_bin980.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/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits.....................!
real 50.81
user 49.31
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits', '/scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits', expMap='/scratch/kocevski/921527/expmap_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits', expCube='/scratch/kocevski/921527/ltcube_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/921527/Model_4FGL_J1132.7+0034_daily_bin980.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1132.7+0034'

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.058e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/921527/ft1_filtered_4FGL_J1132.7+0034_daily_bin980.fits
Spacecraft file(s): /scratch/kocevski/921527/ft2_4FGL_J1132.7+0034_daily_bin980.fits
Exposure map: /scratch/kocevski/921527/expmap_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits
Exposure cube: /scratch/kocevski/921527/ltcube_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/921527/Model_4FGL_J1132.7+0034_daily_bin980.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) = 5237.16736977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17809E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    109.62       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28765       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4744       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23166E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17975E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.249       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.998       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.604       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.9198       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94344       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   5237.160     FROM MIGRAD    STATUS=CONVERGED   1359 CALLS     4311 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3958        .16357E-02** at limit **
   2  norm          1.9605        .66600        .33110E-04    .17614E-03
   3  Prefactor     .10000E-03    3.9852        .14071E-02** at limit **
   4  Prefactor     .10000E-03    12.756        .18142E-02** at limit **
   5  Prefactor     .10001E-03    164.54        .55428E-02** at limit **
   6  Prefactor     .10000E-03    8.0389        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.4127        .10924E-02** at limit **
   8  Prefactor     109.26        107.68        .19208E-03    .11305E-04
   9  norm          2.2819        6.7343        .27110E-03   -.22645E-04
  10  Prefactor     .10000E-03    2.3568        .10729E-02** at limit **
  11  norm          .10000E-03    11.444        .18142E-02** at limit **
  12  Prefactor     2.3441        2.0062        .91328E-04    .63237E-04
  13  Prefactor     .31169        19.158        .95705E-01    .21634E-03
  14  norm          2.4754        5.7171        .24930E-03   -.75153E-04
  15  Prefactor     2.8711        3.2573        .13223E-03   -.43848E-04
  16  Prefactor     .10000E-03    13.728        .18142E-02** at limit **
  17  Prefactor     .10000E-03    106.89        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.240        .18142E-02** at limit **
  19  Prefactor     .10000E-03    47.548        .18142E-02** at limit **
  20  Prefactor     .10002E-03    35.232        .32299E-02** at limit **
  21  Prefactor     .10000E-03    29.019        .18142E-02** at limit **
  22  Prefactor     25.326        37.546        .79721E-04    .54589E-04
  23  Prefactor     33.975        42.368        .68726E-04    .19152E-03
  24  Prefactor     16.612        16.702        .98292E-04    .10838E-03
  25  Prefactor     .10000E-03    14.531        .18142E-02** at limit **
  26  Prefactor     .10000E-03    7.3117        .18142E-02** at limit **
  27  norm          3.9205        2.9086        .10330E-03    .56127E-04
  28  Normalizat    .94395        .24185        .28153E-03    .14259E-03
  29  Prefactor     1.0900        .20098        .22121E-03    .42400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.96053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.255
  norm       = 2.28186
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.34409
  Prefactor  = 0.31169
  norm       = 2.4754
  Prefactor  = 2.87105
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 25.3257
  Prefactor  = 33.9747
  Prefactor  = 16.6125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92047
  Normalizat = 0.943945
  Prefactor  = 1.09004
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.160     FROM HESSE     STATUS=OK           533 CALLS     4844 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3970        .32715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9605        .66599        .13244E-05   -1.5428    
   3  Prefactor     .10000E-03    3.9855        .28141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    169.28        .22171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4130        .21848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     109.26        107.35        .76833E-05   -1.3614    
   9  norm          2.2819        6.7328        .10844E-04   -1.5406    
  10  Prefactor     .10000E-03    2.3575        .21458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3441        2.0062        .36531E-05   -1.5402    
  13  Prefactor     .31169        18.824        .97093E-01   -1.5596    
  14  norm          2.4754        5.7162        .99720E-05   -1.5393    
  15  Prefactor     2.8711        3.2569        .52892E-05   -1.5369    
  16  Prefactor     .10000E-03    13.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    106.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    35.567        .64599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.326        37.544        .15944E-04   -1.4701    
  23  Prefactor     33.975        42.348        .13745E-04   -1.4542    
  24  Prefactor     16.612        16.702        .39317E-05   -1.4893    
  25  Prefactor     .10000E-03    14.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.3127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.9205        2.9086        .41321E-05   -1.5312    
  28  Normalizat    .94395        .24202        .11261E-04   -.94933    
  29  Prefactor     1.0900        .20114        .44241E-04   -.89786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40292e-09
Minuit parameter uncertainties:
  1  1.81999e-05
  2  0.665993
  3  1.03503e-05
  4  5.6388e-05
  5  0.00284008
  6  2.27876e-06
  7  8.83773e-06
  8  107.544
  9  6.73504
  10  1.10731e-06
  11  2.30044e-05
  12  2.00621
  13  4.8453
  14  5.71746
  15  3.2571
  16  5.47104e-06
  17  0.00055261
  18  6.86871e-05
  19  0.000120339
  20  0.00149116
  21  1.17074e-05
  22  37.579
  23  42.3855
  24  16.7069
  25  2.46065e-05
  26  1.56005e-05
  27  2.90867
  28  0.242303
  29  0.201284
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.344e+00  2.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.090e+00  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.439e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.51e-05

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) = 5235.65147098
delta logL = 1.50832727957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.62407291
delta logL = 1.53572535565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0989       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2521       1.0000          .0000       10.000    
     3 'Normalizat'    .96853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5235.624     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1000        1.7214        .71218E-02    .45970E-03
   2  Index         1.2516        .34326        .17226       -.14955E-03
   3  Normalizat    .96866        .20550        .45771E-01    .64380E-04
   4  Prefactor     1.0790        .17305        .38434E-01   -.71871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09999
  Index      = 1.25163
  Normalizat = 0.968661
  Prefactor  = 1.07898
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.624     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1000        2.1150        .81970E-04   -1.5418    
   2  Index         1.2516        .44688        .71765E-02   -.84757    
   3  Normalizat    .96866        .23513        .27812E-03   -.94088    
   4  Prefactor     1.0790        .19815        .22204E-03   -.90141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07118e-10
Minuit parameter uncertainties:
  1  2.11508
  2  0.448254
  3  0.23538
  4  0.198287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921527': 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) = 5235.62406959
delta logL = 1.53572867139

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.100e+00  2.115e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.252e+00  4.483e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.079e+00  1.983e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.687e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.25 +/- 0.45
Photon Flux (Free Index): 1.39e-08 +/- 1.36e-08
Energy Flux (Free Index): 9.90e-05 +/- 1.14e-04

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/921527/cmap_HighResolution_493344001_493603201_4FGL_J1132.7+0034_daily_bin980.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='9.90e-05', photon_flux_error='2.97e-08', dlogl='1.54e+00', energy_flux='1.77e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-04 03:57:10.955946', photon_index_error2='0.45', photon_index2='1.25', ts='4.91', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.14e-04', EG='0.94', time_epoch_completed='1630753030.96', return_code='0', job_id='921527', GAL2='1.08', EG2='0.97', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='1.36e-08', ts2='7.98', photon_index='2.14' WHERE bin_id='980' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 921527: <4FGL_J1132.7+0034_daily_bin980> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin980> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:56 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:41:57 2021
Terminated at Sat Sep  4 03:57:11 2021
Results reported at Sat Sep  4 03:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin980 173.196 0.5737 493344001 493603201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1132.7+0034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

