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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin751
RA = 173.196, Dec = 0.5737
tmin = 433987201, tmax = 434246401
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='921186', job_status='RUN', time_executed='2021-09-04 03:44:22.456065', time_epoch_executed='1630752262.46' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921186/ft1_4FGL_J1132.7+0034_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921186/ft1_4FGL_J1132.7+0034_daily_bin751.fits outfile=/scratch/kocevski/921186/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin751.fits ra=173.196 dec=0.5737 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.32
user 6.05
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921186/ft1_filtered_4FGL_J1132.7+0034_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/921186/ltcube_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.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/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits
.....................!
real 12.38
user 11.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921186/ft1_filtered_4FGL_J1132.7+0034_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/921186/ltcube_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.fits outfile=/scratch/kocevski/921186/expmap_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.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/921186/ltcube_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.fits
.....................!
real 191.56
user 186.17
sys 4.90

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/921186/ft1_filtered_4FGL_J1132.7+0034_daily_bin751.fits scfile=/scratch/kocevski/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits outfile=/scratch/kocevski/921186/cmap_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.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.57
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/921186/ft1_filtered_4FGL_J1132.7+0034_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/921186/ft2_4FGL_J1132.7+0034_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921186/Model_4FGL_J1132.7+0034_daily_bin751.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/921186/ft1_filtered_4FGL_J1132.7+0034_daily_bin751.fits.....................!
real 49.45
user 45.22
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7191       1.0000         .10000E-03   10000.    
     2 'norm      '    .89005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.158       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.230       1.0000         .10000E-03   10000.    
    14 'norm      '    .33421E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9892       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14460E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.657       1.0000         .10000E-03   10000.    
    27 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71062       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1651       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=   4424.085     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3776 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7202        9.5160       -.10462E-05   -.22171E-03
   2  norm          .89026        .73998       -.61058E-07   -.38645E-03
   3  Prefactor     .10000E-03    5.6815        .73196E-07** at limit **
   4  Prefactor     29.902        27.423        .65520E-06    .23915E-05
   5  Prefactor     14.016        20.950       -.36286E-06   -.36114E-04
   6  Prefactor     .10000E-03    11.525        .93280E-06** at limit **
   7  Prefactor     .46951        4.9828       -.28104E-06   -.13261E-03
   8  Prefactor     .10000E-03    52.846        .22885E-04** at limit **
   9  norm          10.781        15.034       -.44239E-06    .23569E-04
  10  Prefactor     32.160        12.706        .84100E-06    .26733E-03
  11  norm          .10000E-03    36.514       -.13590E-04** at limit **
  12  Prefactor     .31109        2.2032       -.38885E-06   -.46157E-04
  13  Prefactor     36.223        47.693       -.75461E-05    .86481E-04
  14  norm          .10000E-03    5.2476       -.11947E-06** at limit **
  15  Prefactor     .10000E-03    3.4980        .68154E-07** at limit **
  16  Prefactor     .10000E-03    9.4978       -.22091E-06** at limit **
  17  Prefactor     .10000E-03    94.095       -.13090E-04** at limit **
  18  Prefactor     14.308        14.119       -.72373E-07   -.10812E-04
  19  Prefactor     .10000E-03    39.335       -.12837E-04** at limit **
  20  Prefactor     6.9865        7.8681       -.25096E-06   -.73584E-04
  21  Prefactor     .10000E-03    7.2906        .19992E-06** at limit **
  22  Prefactor     .10000E-03    14.607       -.10145E-05** at limit **
  23  Prefactor     .10000E-03    29.299        .10399E-04** at limit **
  24  Prefactor     .10000E-03    45.437        .30688E-05** at limit **
  25  Prefactor     16.015        34.212       -.35364E-05   -.11440E-04
  26  Prefactor     19.638        13.681       -.37169E-06   -.77316E-04
  27  norm          .10000E-03    2.4513        .19028E-06** at limit **
  28  Normalizat    .71044        .25548        .13303E-05    .38110E-04
  29  Prefactor     1.1652        .20048        .26637E-06    .10099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72019
  norm       = 0.890257
  Prefactor  = 0.0001
  Prefactor  = 29.9021
  Prefactor  = 14.0165
  Prefactor  = 0.0001
  Prefactor  = 0.469508
  Prefactor  = 0.0001
  norm       = 10.7811
  Prefactor  = 32.1604
  norm       = 0.0001
  Prefactor  = 0.311085
  Prefactor  = 36.2225
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3084
  Prefactor  = 0.0001
  Prefactor  = 6.98649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0155
  Prefactor  = 19.6382
  norm       = 0.0001
  Normalizat = 0.710443
  Prefactor  = 1.16516
 **********
 **   18 **HESSE 
 **********

 FCN=   4424.085     FROM HESSE     STATUS=OK           557 CALLS     4333 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7202        9.5120        .24698E-03   -1.5378    
   2  norm          .89026        .71545        .49696E-03   -1.5519    
   3  Prefactor     .10000E-03    5.6921        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.902        27.424        .73274E-04   -1.4614    
   5  Prefactor     14.016        20.887        .10697E-03   -1.4959    
   6  Prefactor     .10000E-03    11.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46951        20.673        .25986E-02   -1.5571    
   8  Prefactor     .10000E-03    52.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.781        15.018        .12204E-03   -1.5051    
  10  Prefactor     32.160        12.643        .70659E-04   -1.4573    
  11  norm          .10000E-03    36.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31109        7.2913        .18295E-02   -1.5596    
  13  Prefactor     36.223        47.363        .66582E-04   -1.4504    
  14  norm          .10000E-03    19.236        .29423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5480        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.308        14.145        .10589E-03   -1.4951    
  19  Prefactor     .10000E-03    39.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9865        7.8704        .15175E-03   -1.5179    
  21  Prefactor     .10000E-03    7.3139        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.015        34.234        .10007E-03   -1.4907    
  26  Prefactor     19.638        13.540        .90338E-04   -1.4821    
  27  norm          .10000E-03    2.5132        .20122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71044        .28859        .33362E-03   -1.0348    
  29  Prefactor     1.1652        .22896        .21866E-03   -.87410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17665e-08
Minuit parameter uncertainties:
  1  9.51725
  2  0.715456
  3  2.47414e-06
  4  27.4351
  5  20.8983
  6  3.36636e-06
  7  6.23259
  8  1.68492e-05
  9  15.023
  10  12.6438
  11  0.000209048
  12  3.01204
  13  47.4125
  14  0.000376259
  15  1.46374e-06
  16  1.38042e-06
  17  2.38518e-05
  18  14.1479
  19  1.05789e-05
  20  7.8716
  21  8.63573e-07
  22  5.93881e-07
  23  1.06756e-05
  24  5.21977e-05
  25  34.2763
  26  13.5419
  27  3.29853e-06
  28  0.289208
  29  0.229154
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  3.111e-01  3.012e+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.165e+00  2.292e-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:  7.104e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/921186/likelihoodResults_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.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): 0
logL (Free Index) = 4423.86014855
delta logL = 0.22534289243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4423.82834638
delta logL = 0.257145061429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56726       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1383       1.0000          .0000       10.000    
     3 'Normalizat'    .66833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1805       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=   4423.828     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56994        17.867        .16598E-01    .14557E-02
   2  Index         3.1378        3.6479        .13125        .12742E-03
   3  Normalizat    .66850        .46207E-01    .77480E-01   -.11452E-04
   4  Prefactor     1.1802        .38314E-01    .35108E-01   -.39535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.569941
  Index      = 3.13782
  Normalizat = 0.668496
  Prefactor  = 1.18019
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.828     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56994        62.570        .74491E-03   -1.5557    
   2  Index         3.1378        5.3468        .79699E-02   -.38163    
   3  Normalizat    .66850        .25873        .34304E-03   -1.0515    
   4  Prefactor     1.1802        .22740        .21736E-03   -.86943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06139e-11
Minuit parameter uncertainties:
  1  11.9552
  2  10.3173
  3  0.259198
  4  0.227592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921186': 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) = 4423.82834142
delta logL = 0.25715002853

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  5.699e-01  1.196e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        Index:  3.138e+00  1.032e+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.180e+00  2.276e-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:  6.685e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 173.196 0.574

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/921186/cmap_HighResolution_433987201_434246401_4FGL_J1132.7+0034_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-04 03:56:30.610042', job_id='921186', GAL2='1.18', fit_tolerance='1e-08', EG2='0.67', EG='0.71', time_epoch_completed='1630752990.61', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.57e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='751' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 921186: <4FGL_J1132.7+0034_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin751 173.196 0.5737 433987201 434246401 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 :                                   714.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

