/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 53 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin75
RA = 178.35, Dec = 49.5169
tmin = 258768001, tmax = 259027201
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='147913', job_status='RUN', time_executed='2021-09-04 14:58:17.723726', time_epoch_executed='1630792697.72' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147913

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147913/ft1_4FGL_J1153.4+4931_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147913/ft1_4FGL_J1153.4+4931_daily_bin75.fits outfile=/scratch/kocevski/147913/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin75.fits ra=178.35 dec=49.5169 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.18
user 0.96
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.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/147913/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/147913/ltcube_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.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/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits
.....................!
real 8.67
user 8.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/147913/ltcube_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits outfile=/scratch/kocevski/147913/expmap_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.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/147913/ltcube_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits
.....................!
real 190.86
user 185.44
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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits outfile=/scratch/kocevski/147913/cmap_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.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=178.35 yref=49.5169 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits outfile=/scratch/kocevski/147913/cmap_HighResolution_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.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=178.35 yref=49.5169 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147913/Model_4FGL_J1153.4+4931_daily_bin75.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/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits.....................!
real 32.84
user 31.55
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits', '/scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits', expMap='/scratch/kocevski/147913/expmap_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits', expCube='/scratch/kocevski/147913/ltcube_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147913/Model_4FGL_J1153.4+4931_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.4+4931'

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147913/ft1_filtered_4FGL_J1153.4+4931_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/147913/ft2_4FGL_J1153.4+4931_daily_bin75.fits
Exposure map: /scratch/kocevski/147913/expmap_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits
Exposure cube: /scratch/kocevski/147913/ltcube_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147913/Model_4FGL_J1153.4+4931_daily_bin75.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) = 3170.19389272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.789       1.0000         .10000E-03   10000.    
     4 'norm      '    10.206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5802       1.0000         .10000E-03   10000.    
    11 'norm      '    .55001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.127       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .41058       1.0000         .10000E-03   10000.    
    15 'norm      '    .10445E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .86434       1.0000         .10000E-03   10000.    
    17 'Prefactor '    262.25       1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22791       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4265       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12751E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7825       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61351       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3170.146     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3765 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.696        .56204E-06** at limit **
   2  Prefactor     .10000E-03    76.506        .72750E-06** at limit **
   3  Prefactor     26.962        136.34        .95419E-05   -.23305E-04
   4  norm          10.206        4.6605        .39306E-07   -.14688E-04
   5  Prefactor     .10000E-03    23.717        .22936E-07** at limit **
   6  Prefactor     .10000E-03    36.168       -.35137E-06** at limit **
   7  Prefactor     .10000E-03    81.142        .19287E-07** at limit **
   8  norm          .10000E-03    40.559        .64058E-06** at limit **
   9  Prefactor     4.3080        11.730       -.62975E-07   -.55373E-04
  10  Prefactor     5.4210        131.70        .10819E-05   -.89549E-05
  11  norm          .54996        2.6605       -.18028E-06   -.73342E-04
  12  Prefactor     19.160        32.023       -.16264E-05   -.55387E-04
  13  norm          .10000E-03    12.091       -.18184E-07** at limit **
  14  norm          .40904        1.2676        .39005E-06    .70923E-03
  15  norm          .10000E-03    37.905       -.26139E-05** at limit **
  16  Prefactor     .86529        5.6048        .12870E-05    .24298E-03
  17  Prefactor     262.38        119.14        .68018E-06   -.16370E-03
  18  norm          .10000E-03    4.3796        .18228E-06** at limit **
  19  Prefactor     .10000E-03    35.363       -.83804E-06** at limit **
  20  Prefactor     .32233        108.81        .28730E-04   -.36761E-04
  21  norm          4.4264        3.1801        .20270E-07   -.16919E-03
  22  norm          3.1574        7.3964       -.13202E-05    .92526E-04
  23  Prefactor     .10002E-03    115.81        .45152E-06** at limit **
  24  Prefactor     .10000E-03    18.811        .11435E-05** at limit **
  25  norm          4.7825        4.3238       -.11922E-07   -.16027E-03
  26  Prefactor     .10000E-03    10.417        .19261E-06** at limit **
  27  norm          .10000E-03    .92254        .99332E-07** at limit **
  28  Normalizat    .61360        .23147       -.14868E-05   -.23278E-03
  29  Prefactor     1.4238        .28484       -.11937E-05   -.24109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9619
  norm       = 10.2057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.308
  Prefactor  = 5.42103
  norm       = 0.549963
  Prefactor  = 19.1599
  norm       = 0.0001
  norm       = 0.409042
  norm       = 0.000100002
  Prefactor  = 0.865293
  Prefactor  = 262.383
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.322329
  norm       = 4.42642
  norm       = 3.15743
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  norm       = 4.78245
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.613602
  Prefactor  = 1.42382
 **********
 **   18 **HESSE 
 **********

 FCN=   3170.146     FROM HESSE     STATUS=OK           551 CALLS     4316 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.962        134.94        .77400E-04   -1.4669    
   4  norm          10.206        4.6605        .79760E-04   -1.5069    
   5  Prefactor     .10000E-03    23.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    81.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    40.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3080        11.563        .19429E-03   -1.5293    
  10  Prefactor     5.4210        127.72        .17007E-03   -1.5242    
  11  norm          .54996        2.5333        .17852E-03   -1.5560    
  12  Prefactor     19.160        31.892        .91580E-04   -1.4832    
  13  norm          .10000E-03    12.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .40904        1.1880        .98475E-03   -1.5580    
  15  norm          .10000E-03    38.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .86529        5.6571        .24727E-03   -1.5522    
  17  Prefactor     262.38        114.99        .12515E-03   -1.2454    
  18  norm          .10000E-03    4.3937        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32233        106.49        .39728E-02   -1.5594    
  21  norm          4.4264        3.1822        .80907E-04   -1.5287    
  22  norm          3.1574        7.3824        .11241E-02   -1.5353    
  23  Prefactor     .10002E-03    119.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7825        4.3178        .10783E-03   -1.5271    
  26  Prefactor     .10000E-03    10.432        .17752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .92932        .52828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61360        .27373        .27922E-03   -1.0741    
  29  Prefactor     1.4238        .34078        .24649E-03   -.79696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81709e-08
Minuit parameter uncertainties:
  1  4.7392e-05
  2  8.71227e-05
  3  121.076
  4  4.66071
  5  2.43754e-05
  6  0.000102193
  7  0.000125218
  8  3.61113e-05
  9  11.5686
  10  52.7519
  11  2.36066
  12  31.9207
  13  3.74032e-06
  14  1.18805
  15  0.00053088
  16  4.42531
  17  115.091
  18  6.67439e-06
  19  5.25264e-05
  20  11.7368
  21  3.18228
  22  7.38452
  23  0.0027444
  24  0.000213205
  25  4.31809
  26  4.01121e-05
  27  5.07556e-06
  28  0.274335
  29  0.341322
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  8.653e-01  4.425e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.424e+00  3.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  6.136e-01  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147913/likelihoodResults_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.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) = 3170.03691568
delta logL = 0.108788496824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3170.03569219
delta logL = 0.110011989666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90830       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1626       1.0000          .0000       10.000    
     3 'Normalizat'    .59411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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=   3170.036     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      252 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90892        3.1282        .10743E-03    .62614E-03
   2  Index         3.1630        1.7449        .84728E-02    .10125E-03
   3  Normalizat    .59401        .26546        .28356E-03    .19711E-03
   4  Prefactor     1.4342        .33861        .24570E-03    .17303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.90892
  Index      = 3.16303
  Normalizat = 0.594008
  Prefactor  = 1.43421
 **********
 **   18 **HESSE 
 **********

 FCN=   3170.036     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90892        2.7107        .42970E-05   -1.5517    
   2  Index         3.1630        1.5202        .33891E-03   -.37621    
   3  Normalizat    .59401        .26580        .11343E-04   -1.0824    
   4  Prefactor     1.4342        .33888        .49141E-04   -.79399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48433e-10
Minuit parameter uncertainties:
  1  2.71102
  2  1.5487
  3  0.266374
  4  0.339409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147913': 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) = 3170.03569178
delta logL = 0.110012400027

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  9.089e-01  2.711e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.163e+00  1.549e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.434e+00  3.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  5.940e-01  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 178.350 49.517

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/147913/cmap_HighResolution_258768001_259027201_4FGL_J1153.4+4931_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-04 15:08:29.081607', job_id='147913', GAL2='1.43', fit_tolerance='1e-08', EG2='0.59', EG='0.61', time_epoch_completed='1630793309.08', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='1.10e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='75' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 147913: <4FGL_J1153.4+4931_daily_bin75> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin75> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:15 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 14:57:16 2021
Terminated at Sat Sep  4 15:08:29 2021
Results reported at Sat Sep  4 15:08:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin75 178.35 49.5169 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            674 sec.

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

