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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin909
RA = 173.196, Dec = 0.5737
tmin = 474940801, tmax = 475200001
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='921429', job_status='RUN', time_executed='2021-09-04 03:44:23.848965', time_epoch_executed='1630752263.85' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921429

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921429/ft1_4FGL_J1132.7+0034_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921429/ft1_4FGL_J1132.7+0034_daily_bin909.fits outfile=/scratch/kocevski/921429/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin909.fits ra=173.196 dec=0.5737 rad=12.0 tmin=474940801.0 tmax=475200001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.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/921429/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/921429/ltcube_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.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/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits
.....................!
real 11.79
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/921429/ltcube_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.fits outfile=/scratch/kocevski/921429/expmap_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.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/921429/ltcube_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.fits
.....................!
real 190.31
user 184.74
sys 5.02

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/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits outfile=/scratch/kocevski/921429/cmap_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits outfile=/scratch/kocevski/921429/cmap_HighResolution_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/921429/ft2_4FGL_J1132.7+0034_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921429/Model_4FGL_J1132.7+0034_daily_bin909.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/921429/ft1_filtered_4FGL_J1132.7+0034_daily_bin909.fits.....................!
real 53.69
user 51.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1132       1.0000         .10000E-03   10000.    
     2 'norm      '    .91323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53578E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9277       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8914       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.297       1.0000         .10000E-03   10000.    
    14 'norm      '    7.8267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82111E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16083E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.187       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6086       1.0000         .10000E-03   10000.    
    27 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91202       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97982       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=   5421.134     FROM MIGRAD    STATUS=CONVERGED   1334 CALLS     3775 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1171        9.5510        .16238E-03   -.68333E-04
   2  norm          .91357        .53056        .38966E-04   -.12470E-02
   3  Prefactor     .10007E-03    55.154        .38646E-02** at limit **
   4  Prefactor     12.240        19.922        .11463E-03   -.24794E-05
   5  Prefactor     .10000E-03    10.459        .18142E-02** at limit **
   6  Prefactor     10.126        10.004        .12596E-03   -.20940E-04
   7  Prefactor     2.9273        4.7900        .96761E-03    .51932E-03
   8  Prefactor     3.9227        167.93        .20454E-03    .38352E-05
   9  norm          .10000E-03    6.5066        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.3439        .10914E-02** at limit **
  11  norm          11.533        14.412        .11801E-03   -.26975E-05
  12  Prefactor     4.3230        2.5815        .87414E-04   -.21589E-04
  13  Prefactor     14.305        15.413        .10593E-03    .17172E-05
  14  norm          7.8286        6.8025        .14333E-03   -.13564E-04
  15  Prefactor     17.145        6.0213        .96725E-04    .51128E-04
  16  Prefactor     .10000E-03    6.7527        .18142E-02** at limit **
  17  Prefactor     3.7227        473.51        .20613E-03   -.15167E-04
  18  Prefactor     .21821        150.62        .41353E-02   -.29244E-03
  19  Prefactor     .10000E-03    40.160        .18142E-02** at limit **
  20  Prefactor     1.2077        7.4853        .19350E-02    .93572E-03
  21  Prefactor     .10000E-03    5.0998        .16221E-02** at limit **
  22  Prefactor     .10003E-03    170.54        .65571E-02** at limit **
  23  Prefactor     .10000E-03    31.975        .18142E-02** at limit **
  24  Prefactor     16.197        14.940        .99548E-04   -.34261E-06
  25  Prefactor     .10000E-03    160.14        .36285E-03** at limit **
  26  Prefactor     9.6034        10.616        .12928E-03   -.18027E-04
  27  norm          .10000E-03    1.2494        .79889E-03** at limit **
  28  Normalizat    .91192        .23304        .27894E-03   -.93862E-04
  29  Prefactor     .97974        .18697        .22474E-03    .19639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11712
  norm       = 0.913571
  Prefactor  = 0.000100075
  Prefactor  = 12.2401
  Prefactor  = 0.0001
  Prefactor  = 10.1265
  Prefactor  = 2.92733
  Prefactor  = 3.92267
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5334
  Prefactor  = 4.32303
  Prefactor  = 14.3051
  norm       = 7.82859
  Prefactor  = 17.1452
  Prefactor  = 0.0001
  Prefactor  = 3.72271
  Prefactor  = 0.218215
  Prefactor  = 0.0001
  Prefactor  = 1.2077
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 16.1973
  Prefactor  = 0.0001
  Prefactor  = 9.60336
  norm       = 0.0001
  Normalizat = 0.911923
  Prefactor  = 0.97974
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.134     FROM HESSE     STATUS=OK           529 CALLS     4304 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1171        9.5464        .64951E-05   -1.5213    
   2  norm          .91357        .52720        .15587E-05   -1.5517    
   3  Prefactor     .10007E-03    55.624        .77293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.240        19.911        .45853E-05   -1.5008    
   5  Prefactor     .10000E-03    10.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.126        10.001        .50384E-05   -1.5071    
   7  Prefactor     2.9273        4.7850        .19352E-03   -1.5366    
   8  Prefactor     3.9227        167.56        .81815E-05   -1.5312    
   9  norm          .10000E-03    6.5095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3443        .21828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.533        14.411        .47203E-05   -1.5029    
  12  Prefactor     4.3230        2.5806        .34965E-05   -1.5292    
  13  Prefactor     14.305        15.411        .42372E-05   -1.4951    
  14  norm          7.8286        6.8018        .57332E-05   -1.5148    
  15  Prefactor     17.145        6.0197        .38690E-05   -1.4880    
  16  Prefactor     .10000E-03    6.7528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7227        468.38        .82453E-05   -1.5322    
  18  Prefactor     .21821        152.75        .16541E-03   -1.5615    
  19  Prefactor     .10000E-03    40.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2077        7.4709        .38700E-03   -1.5488    
  21  Prefactor     .10000E-03    5.1002        .32443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    177.33        .26228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.197        14.938        .39819E-05   -1.4903    
  25  Prefactor     .10000E-03    160.15        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.6034        10.615        .51712E-05   -1.5088    
  27  norm          .10000E-03    1.2494        .15978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91192        .23233        .11158E-04   -.96042    
  29  Prefactor     .97974        .18708        .44949E-04   -.93408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88565e-09
Minuit parameter uncertainties:
  1  9.54878
  2  0.5272
  3  0.00407675
  4  19.9215
  5  1.92433e-05
  6  10.0029
  7  4.78559
  8  51.4293
  9  1.15509e-05
  10  8.25141e-06
  11  14.4157
  12  2.58071
  13  15.4152
  14  6.80247
  15  6.01994
  16  4.72907e-06
  17  84.1946
  18  11.5739
  19  0.000118261
  20  6.00841
  21  8.0375e-06
  22  0.00461518
  23  0.000190804
  24  14.9412
  25  0.000113185
  26  10.6167
  27  2.27867e-07
  28  0.232587
  29  0.187205
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.323e+00  2.581e+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.797e-01  1.872e-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.119e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.95e-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) = 5421.08019109
delta logL = 0.0534232499158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.07346761
delta logL = 0.0601467336037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8027       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9858       1.0000          .0000       10.000    
     3 'Normalizat'    .92197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97395       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=   5421.073     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8021        74.597        .45894E-02    .18981E-03
   2  Index         1.9855        5.9425        .15775        .42442E-04
   3  Normalizat    .92200        .13326        .45182E-01    .94106E-05
   4  Prefactor     .97396        .93752E-01    .45941E-01    .97995E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8021
  Index      = 1.98553
  Normalizat = 0.921999
  Prefactor  = 0.973958
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.073     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8021        3.0839        .92844E-04   -1.5270    
   2  Index         1.9855        .42323        .60101E-02   -.64712    
   3  Normalizat    .92200        .22322        .27757E-03   -.95691    
   4  Prefactor     .97396        .18581        .22530E-03   -.93603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99533e-13
Minuit parameter uncertainties:
  1  3.08398
  2  0.424024
  3  0.223442
  4  0.185932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921429': 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) = 5421.0734673
delta logL = 0.0601470415522

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  4.802e+00  3.084e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  1.986e+00  4.240e-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.740e-01  1.859e-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.220e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 173.196 0.574
Photon Index (Free Index): 1.99 +/- 0.42
Photon Flux (Free Index): 5.72e-08 +/- 3.98e-08
Energy Flux (Free Index): 4.10e-05 +/- 3.79e-05

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/921429/cmap_HighResolution_474940801_475200001_4FGL_J1132.7+0034_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='4.10e-05', photon_flux_error='3.82e-08', dlogl='6.01e-02', energy_flux='3.26e-05', photon_flux2='5.72e-08', job_status='DONE', time_completed='2021-09-04 03:56:10.860225', photon_index_error2='0.42', photon_index2='1.99', ts='4.56', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.79e-05', EG='0.91', time_epoch_completed='1630752970.86', return_code='0', job_id='921429', GAL2='0.97', EG2='0.92', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='3.98e-08', ts2='4.65', photon_index='2.14' WHERE bin_id='909' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 921429: <4FGL_J1132.7+0034_daily_bin909> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin909> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:41:48 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:41:50 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:50 2021
Terminated at Sat Sep  4 03:56:11 2021
Results reported at Sat Sep  4 03:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin909 173.196 0.5737 474940801 475200001 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 :                                   702.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

