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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin981
RA = 173.196, Dec = 0.5737
tmin = 493603201, tmax = 493862401
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='921528', job_status='RUN', time_executed='2021-09-04 03:42:15.201528', time_epoch_executed='1630752135.2' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921528

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921528/ft1_4FGL_J1132.7+0034_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921528/ft1_4FGL_J1132.7+0034_daily_bin981.fits outfile=/scratch/kocevski/921528/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin981.fits ra=173.196 dec=0.5737 rad=12.0 tmin=493603201.0 tmax=493862401.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.57
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921528/ft1_filtered_4FGL_J1132.7+0034_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/921528/ltcube_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.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/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits
.....................!
real 11.76
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921528/ft1_filtered_4FGL_J1132.7+0034_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/921528/ltcube_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.fits outfile=/scratch/kocevski/921528/expmap_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.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/921528/ltcube_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.fits
.....................!
real 191.20
user 185.41
sys 5.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/921528/ft1_filtered_4FGL_J1132.7+0034_daily_bin981.fits scfile=/scratch/kocevski/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits outfile=/scratch/kocevski/921528/cmap_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921528/ft1_filtered_4FGL_J1132.7+0034_daily_bin981.fits scfile=/scratch/kocevski/921528/ft2_4FGL_J1132.7+0034_daily_bin981.fits outfile=/scratch/kocevski/921528/cmap_HighResolution_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.686       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.041       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1379       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .98004       1.0000         .10000E-03   10000.    
    11 'norm      '    31.933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7622       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.2663       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85751       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=   5222.757     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3788 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7415        .56229E-07** at limit **
   2  norm          1.1082        1.1532       -.18042E-06   -.53631E-03
   3  Prefactor     37.519        18.879        .13876E-05    .32329E-03
   4  Prefactor     16.689        21.322       -.21924E-06   -.22190E-04
   5  Prefactor     30.037        22.462        .33924E-07   -.21535E-04
   6  Prefactor     .10000E-03    4.3819       -.92772E-08** at limit **
   7  Prefactor     5.1338        5.7422       -.34719E-06   -.18499E-03
   8  Prefactor     .10000E-03    34.334        .34652E-06** at limit **
   9  norm          .10000E-03    5.9355       -.12969E-06** at limit **
  10  Prefactor     .99268        9.6060        .41569E-05   -.18764E-03
  11  norm          31.872        33.116       -.27714E-05   -.95913E-04
  12  Prefactor     2.1720        2.3719        .58332E-07   -.12806E-03
  13  Prefactor     .10000E-03    15.994       -.13179E-06** at limit **
  14  norm          4.7119        6.9950        .28489E-06   -.41834E-04
  15  Prefactor     2.7626        3.8421        .51070E-08   -.11585E-03
  16  Prefactor     15.743        24.481       -.27857E-06   -.31136E-04
  17  Prefactor     41.787        80.711        .19305E-05    .20943E-04
  18  Prefactor     12.056        12.793        .81968E-06   -.19151E-03
  19  Prefactor     27.217        35.924       -.87552E-07   -.51948E-05
  20  Prefactor     .10000E-03    6.5960       -.32576E-07** at limit **
  21  Prefactor     .10000E-03    4.7372       -.82845E-08** at limit **
  22  Prefactor     .10000E-03    46.064       -.10839E-05** at limit **
  23  Prefactor     .10000E-03    230.19       -.25576E-05** at limit **
  24  Prefactor     .10000E-03    5.4083       -.24606E-07** at limit **
  25  Prefactor     .10000E-03    16.196       -.97577E-07** at limit **
  26  Prefactor     6.2670        7.4452       -.31622E-06   -.95299E-04
  27  norm          .10000E-03    .79190       -.17427E-07** at limit **
  28  Normalizat    1.2287        .22726       -.14457E-05    .55832E-05
  29  Prefactor     .85754        .17695        .64064E-07   -.79644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.10821
  Prefactor  = 37.5185
  Prefactor  = 16.6893
  Prefactor  = 30.0368
  Prefactor  = 0.0001
  Prefactor  = 5.13378
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.992683
  norm       = 31.872
  Prefactor  = 2.17199
  Prefactor  = 0.0001
  norm       = 4.71187
  Prefactor  = 2.76259
  Prefactor  = 15.7432
  Prefactor  = 41.7866
  Prefactor  = 12.0558
  Prefactor  = 27.217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26699
  norm       = 0.0001
  Normalizat = 1.22869
  Prefactor  = 0.857536
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.757     FROM HESSE     STATUS=OK           551 CALLS     4339 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7446        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1082        1.1518        .56620E-04   -1.5497    
   3  Prefactor     37.519        19.650        .65406E-04   -1.4482    
   4  Prefactor     16.689        21.418        .98049E-04   -1.4891    
   5  Prefactor     30.037        22.453        .73099E-04   -1.4611    
   6  Prefactor     .10000E-03    4.3839        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1338        5.7198        .17104E-03   -1.5255    
   8  Prefactor     .10000E-03    34.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0462        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99268        10.143        .34043E-03   -1.5509    
  11  norm          31.872        33.123        .70907E-04   -1.4578    
  12  Prefactor     2.1720        2.3578        .11138E-03   -1.5413    
  13  Prefactor     .10000E-03    16.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7119        6.9431        .18537E-03   -1.5274    
  15  Prefactor     2.7626        3.8127        .15367E-03   -1.5376    
  16  Prefactor     15.743        24.531        .10096E-03   -1.4914    
  17  Prefactor     41.787        81.000        .62019E-04   -1.4414    
  18  Prefactor     12.056        12.814        .57692E-03   -1.5013    
  19  Prefactor     27.217        35.906        .76788E-04   -1.4664    
  20  Prefactor     .10000E-03    6.6433        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7408        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    239.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4101        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.2670        7.4578        .16036E-03   -1.5207    
  27  norm          .10000E-03    .79286        .62765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2287        .26215        .27020E-03   -.85721    
  29  Prefactor     .85754        .20493        .25526E-03   -.97641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40937e-10
Minuit parameter uncertainties:
  1  4.22374e-06
  2  1.1518
  3  19.6533
  4  21.4278
  5  22.4592
  6  1.72194e-06
  7  5.72043
  8  3.46732e-05
  9  9.36524e-06
  10  6.34719
  11  33.1419
  12  2.35792
  13  1.51728e-05
  14  6.94426
  15  3.81302
  16  24.5464
  17  81.2139
  18  12.8166
  19  35.9344
  20  9.83007e-06
  21  1.6187e-06
  22  0.000120883
  23  1.42001e-05
  24  1.48891e-06
  25  4.7108e-06
  26  7.45894
  27  1.64836e-06
  28  0.262433
  29  0.205117
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.172e+00  2.358e+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:  8.575e-01  2.051e-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.229e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 173.196 0.574
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.78e-05

TS (Fixed Index): 1.28
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921528/likelihoodResults_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.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) = 5222.58369227
delta logL = 0.17302197658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5222.04394707
delta logL = 0.712767183709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.1499       1.0000          .0000       10.000    
     3 'Normalizat'    1.0914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94838       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=   5222.044     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      365 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24834E-03    .45764E-02    .18004E-03** at limit **
   2  Index         7.1558        2.4123        .10691        .13297E-03
   3  Normalizat    1.0914        .59468E-01    .64261E-01    .95298E-05
   4  Prefactor     .94860        .48170E-01    .45619E-01    .78747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00024834
  Index      = 7.1558
  Normalizat = 1.09137
  Prefactor  = 0.948604
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.044     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      398 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24834E-03    .10353E-01    .10141E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.1558        3.7300        .42295E-02    .44578    
   3  Normalizat    1.0914        .22582        .28426E-03   -.90029    
   4  Prefactor     .94860        .17826        .24439E-03   -.94463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58308e-07
Minuit parameter uncertainties:
  1  0.0024785
  2  4.39132
  3  0.226019
  4  0.178366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921528': 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): 102
logL (Free Index) = 5222.04394382
delta logL = 0.712770428

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.483e-04  2.479e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  7.156e+00  4.391e+00  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.486e-01  1.784e-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.091e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 173.196 0.574
Photon Index (Free Index): 7.16 +/- 4.39
Photon Flux (Free Index): 1.18e-07 +/- 8.34e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.05e-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/921528/cmap_HighResolution_493603201_493862401_4FGL_J1132.7+0034_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='1.40e-05', photon_flux_error='3.49e-08', dlogl='7.13e-01', energy_flux='1.64e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-04 03:55:29.656794', photon_index_error2='4.39', photon_index2='7.16', ts='1.28', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.05e-05', EG='1.23', time_epoch_completed='1630752929.66', return_code='0', job_id='921528', GAL2='0.95', EG2='1.09', return_code2='102', energy_flux_error='1.78e-05', photon_flux_error2='8.34e-08', ts2='2.97', photon_index='2.14' WHERE bin_id='981' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 921528: <4FGL_J1132.7+0034_daily_bin981> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin981> 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) <bullet0047>, 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:55:30 2021
Results reported at Sat Sep  4 03:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin981 173.196 0.5737 493603201 493862401 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 :                                   788.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

