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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin828
RA = 173.196, Dec = 0.5737
tmin = 453945601, tmax = 454204801
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='921306', job_status='RUN', time_executed='2021-09-04 03:43:33.353734', time_epoch_executed='1630752213.35' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921306

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921306/ft1_4FGL_J1132.7+0034_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921306/ft1_4FGL_J1132.7+0034_daily_bin828.fits outfile=/scratch/kocevski/921306/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin828.fits ra=173.196 dec=0.5737 rad=12.0 tmin=453945601.0 tmax=454204801.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.49
user 3.83
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.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/921306/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.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.27
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/921306/ltcube_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.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/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits
.....................!
real 11.93
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/921306/ltcube_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits outfile=/scratch/kocevski/921306/expmap_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.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/921306/ltcube_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits
.....................!
real 190.32
user 185.58
sys 4.32

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/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits outfile=/scratch/kocevski/921306/cmap_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits outfile=/scratch/kocevski/921306/cmap_HighResolution_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.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.60
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921306/Model_4FGL_J1132.7+0034_daily_bin828.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/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits.....................!
real 72.19
user 68.55
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits', '/scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits', expMap='/scratch/kocevski/921306/expmap_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits', expCube='/scratch/kocevski/921306/ltcube_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/921306/Model_4FGL_J1132.7+0034_daily_bin828.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/921306/ft1_filtered_4FGL_J1132.7+0034_daily_bin828.fits
Spacecraft file(s): /scratch/kocevski/921306/ft2_4FGL_J1132.7+0034_daily_bin828.fits
Exposure map: /scratch/kocevski/921306/expmap_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits
Exposure cube: /scratch/kocevski/921306/ltcube_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/921306/Model_4FGL_J1132.7+0034_daily_bin828.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) = 7462.26869132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.321       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10616E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25269E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.500       1.0000         .10000E-03   10000.    
     9 'norm      '    25.928       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6094       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4234       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7214       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19016       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3611       1.0000         .10000E-03   10000.    
    23 'Prefactor '    74.506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.791       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99403       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96191       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.

 FCN=   7462.261     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3766 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.319        8.2373        .46972E-07   -.98015E-06
   2  norm          2.0026        .70617       -.20683E-07   -.12233E-03
   3  Prefactor     6.6307        8.4012        .33142E-06    .48099E-04
   4  Prefactor     .10000E-03    7.9704        .21336E-06** at limit **
   5  Prefactor     .10000E-03    5.7211        .41723E-07** at limit **
   6  Prefactor     .10007E-03    8.3869        .11317E-05** at limit **
   7  Prefactor     .80819E-02    2.4271       -.50816E-06    .92780E-03
   8  Prefactor     24.478        46.881        .47510E-07   -.41708E-04
   9  norm          25.981        11.085       -.97326E-06   -.66028E-03
  10  Prefactor     2.6097        3.0954        .17989E-06   -.34157E-04
  11  norm          .10000E-03    8.0932        .14031E-06** at limit **
  12  Prefactor     2.3943        1.5970       -.67385E-08   -.10700E-03
  13  Prefactor     7.4245        18.256       -.15020E-06   -.28847E-04
  14  norm          .10000E-03    1.5684        .10424E-06** at limit **
  15  Prefactor     3.7204        2.7813        .12150E-06    .15801E-04
  16  Prefactor     .71570E-01    17.292        .27591E-05   -.37798E-03
  17  Prefactor     63.428        110.30       -.60942E-06   -.50243E-04
  18  Prefactor     .10000E-03    3.0237       -.41100E-06** at limit **
  19  Prefactor     .10000E-03    11.373       -.90112E-08** at limit **
  20  Prefactor     1.6508        5.6206        .17927E-05    .16202E-03
  21  Prefactor     .10000E-03    3.4417        .82632E-07** at limit **
  22  Prefactor     4.3572        15.841        .56947E-06    .52223E-05
  23  Prefactor     74.506        43.781       -.44426E-06   -.65418E-04
  24  Prefactor     30.790        17.910       -.92040E-07   -.11025E-03
  25  Prefactor     .10000E-03    11.536       -.83558E-07** at limit **
  26  Prefactor     .10000E-03    10.914        .25548E-06** at limit **
  27  norm          .10000E-03    1.2016        .69316E-07** at limit **
  28  Normalizat    .99391        .19335        .10624E-05   -.36570E-03
  29  Prefactor     .96228        .15382       -.17218E-05   -.40716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3188
  norm       = 2.00259
  Prefactor  = 6.63066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.00808185
  Prefactor  = 24.4779
  norm       = 25.9809
  Prefactor  = 2.6097
  norm       = 0.0001
  Prefactor  = 2.39429
  Prefactor  = 7.42447
  norm       = 0.0001
  Prefactor  = 3.7204
  Prefactor  = 0.0715699
  Prefactor  = 63.4284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65081
  Prefactor  = 0.0001
  Prefactor  = 4.35723
  Prefactor  = 74.506
  Prefactor  = 30.7898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.99391
  Prefactor  = 0.962279
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.261     FROM HESSE     STATUS=OK           571 CALLS     4337 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.319        8.2362        .11907E-03   -1.5035    
   2  norm          2.0026        .71676        .37181E-04   -1.5425    
   3  Prefactor     6.6307        8.5409        .15581E-03   -1.5193    
   4  Prefactor     .10000E-03    7.9788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    110.21        .44557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .80819E-02    9.7984        .36107E-01   -1.5690    
   8  Prefactor     24.478        46.905        .80929E-04   -1.4718    
   9  norm          25.981        12.143        .78672E-04   -1.4688    
  10  Prefactor     2.6097        3.0584        .15204E-03   -1.5385    
  11  norm          .10000E-03    8.0997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3943        1.5958        .86172E-04   -1.5398    
  13  Prefactor     7.4245        18.182        .14720E-03   -1.5163    
  14  norm          .10000E-03    1.5737        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7204        2.7775        .11929E-03   -1.5322    
  16  Prefactor     .71570E-01    13.538        .10351       -1.5654    
  17  Prefactor     63.428        110.75        .25166E-03   -1.4113    
  18  Prefactor     .10000E-03    3.0135        .14637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6508        5.5014        .32893E-03   -1.5451    
  21  Prefactor     .10000E-03    3.4540        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3572        15.826        .19287E-03   -1.5290    
  23  Prefactor     74.506        43.675        .46516E-04   -1.3979    
  24  Prefactor     30.790        17.898        .72206E-04   -1.4598    
  25  Prefactor     .10000E-03    11.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2594        .18483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99391        .21839        .28295E-03   -.93235    
  29  Prefactor     .96228        .17003        .23350E-03   -.93998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81884e-09
Minuit parameter uncertainties:
  1  8.23703
  2  0.716759
  3  8.54246
  4  1.65757e-05
  5  9.38213e-06
  6  0.00558662
  7  0.55941
  8  46.9762
  9  12.1446
  10  3.05854
  11  1.33965e-05
  12  1.5958
  13  18.1959
  14  3.34269e-06
  15  2.77756
  16  1.96774
  17  111.117
  18  1.52099e-05
  19  7.63876e-07
  20  5.50309
  21  4.27211e-06
  22  15.8414
  23  43.6938
  24  17.9014
  25  6.93122e-06
  26  2.95426e-05
  27  2.81625e-06
  28  0.218582
  29  0.170128
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.394e+00  1.596e+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:  9.623e-01  1.701e-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.939e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.20e-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) = 7459.91357952
delta logL = 2.34730053649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7459.8701016
delta logL = 2.39077846345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0706       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2184       1.0000          .0000       10.000    
     3 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95045       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=   7459.870     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0682        1.3893        .71770E-02    .77850E-03
   2  Index         1.2174        .28366        .16883       -.21640E-03
   3  Normalizat    1.0206        .17415        .63225E-01    .16803E-03
   4  Prefactor     .95026        .14228        .45645E-01    .15827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06823
  Index      = 1.21744
  Normalizat = 1.02063
  Prefactor  = 0.950262
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.870     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0682        1.7539        .78701E-04   -1.5420    
   2  Index         1.2174        .37723        .70798E-02   -.85796    
   3  Normalizat    1.0206        .20368        .27964E-03   -.92342    
   4  Prefactor     .95026        .16657        .23466E-03   -.94406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85653e-10
Minuit parameter uncertainties:
  1  1.75394
  2  0.378072
  3  0.203836
  4  0.166659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921306': 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) = 7459.87009804
delta logL = 2.39078201991

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.068e+00  1.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.217e+00  3.781e-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:  9.503e-01  1.667e-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:  1.021e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.06
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.22 +/- 0.38
Photon Flux (Free Index): 1.37e-08 +/- 1.10e-08
Energy Flux (Free Index): 1.09e-04 +/- 1.03e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/921306/cmap_HighResolution_453945601_454204801_4FGL_J1132.7+0034_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.09e-04', photon_flux_error='2.36e-08', dlogl='2.39e+00', energy_flux='1.81e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-04 03:58:00.203005', photon_index_error2='0.38', photon_index2='1.22', ts='6.29', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='0.99', time_epoch_completed='1630753080.2', return_code='0', job_id='921306', GAL2='0.95', EG2='1.02', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.10e-08', ts2='11.06', photon_index='2.14' WHERE bin_id='828' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 921306: <4FGL_J1132.7+0034_daily_bin828> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin828> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:38 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:40 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:40 2021
Terminated at Sat Sep  4 03:58:00 2021
Results reported at Sat Sep  4 03:58:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin828 173.196 0.5737 453945601 454204801 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 :                                   858.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

