/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 124 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1552.0+0850_daily_bin253
RA = 238.01, Dec = 8.8419
tmin = 304905601, tmax = 305164801
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='750043', job_status='RUN', time_executed='2021-09-12 15:39:28.235420', time_epoch_executed='1631486368.24' WHERE source_name='4FGL J1552.0+0850' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750043/ft1_4FGL_J1552.0+0850_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750043/ft1_4FGL_J1552.0+0850_daily_bin253.fits outfile=/scratch/kocevski/750043/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin253.fits ra=238.01 dec=8.8419 rad=12.0 tmin=304905601.0 tmax=305164801.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.61
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.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/750043/ft1_filteredMKT_4FGL_J1552.0+0850_daily_bin253.fits evtable="EVENTS" outfile="/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.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.66
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits" evtable="EVENTS" scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits sctable="SC_DATA" outfile=/scratch/kocevski/750043/ltcube_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.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/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits
.....................!
real 17.83
user 16.70
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/750043/ltcube_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits outfile=/scratch/kocevski/750043/expmap_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.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/750043/ltcube_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits
.....................!
real 193.08
user 187.26
sys 5.22

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1552.0+0850 @ 238.01 8.8419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits outfile=/scratch/kocevski/750043/cmap_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.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=238.01 yref=8.8419 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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits outfile=/scratch/kocevski/750043/cmap_HighResolution_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.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=238.01 yref=8.8419 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750043/Model_4FGL_J1552.0+0850_daily_bin253.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/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits.....................!
real 73.29
user 71.91
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits', '/scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits', expMap='/scratch/kocevski/750043/expmap_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits', expCube='/scratch/kocevski/750043/ltcube_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750043/Model_4FGL_J1552.0+0850_daily_bin253.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1552.0+0850'

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  7.420e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/750043/ft1_filtered_4FGL_J1552.0+0850_daily_bin253.fits
Spacecraft file(s): /scratch/kocevski/750043/ft2_4FGL_J1552.0+0850_daily_bin253.fits
Exposure map: /scratch/kocevski/750043/expmap_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits
Exposure cube: /scratch/kocevski/750043/ltcube_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750043/Model_4FGL_J1552.0+0850_daily_bin253.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) = 9320.02952416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37108       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.946       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24112E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.347       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.130       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3948       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4280       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9320.028     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2430 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37112        .19752        .17396E-07    .26244E-03
   2  norm          .10000E-03    1.5378       -.44017E-08** at limit **
   3  Prefactor     27.915        30.919       -.29931E-06    .56378E-05
   4  Prefactor     30.175        36.433       -.21930E-05    .40379E-04
   5  Prefactor     3.9266        4.0472        .15806E-05    .49130E-04
   6  Prefactor     22.948        34.364        .76021E-06    .11955E-04
   7  Prefactor     11.825        25.498        .25726E-07    .68795E-05
   8  norm          2.5130        2.2599        .10254E-06    .50864E-04
   9  Prefactor     .10000E-03    1.7351       -.19694E-06** at limit **
  10  Prefactor     54.358        43.157       -.95265E-06    .21886E-04
  11  norm          2.5037        4.0341        .17677E-06    .22885E-04
  12  Prefactor     25.135        32.660       -.48477E-06    .92266E-05
  13  norm          .10000E-03    8.9096        .25447E-07** at limit **
  14  norm          3.3947        1.5246        .15213E-08    .89222E-05
  15  norm          3.4139        11.624        .69101E-06   -.14133E-05
  16  norm          .10000E-03    33.853        .11896E-06** at limit **
  17  Prefactor     16.930        60.108        .44784E-05   -.11649E-04
  18  Prefactor     .10000E-03    55.349       -.68400E-06** at limit **
  19  Prefactor     4.2720        10.507        .24867E-06    .22875E-05
  20  Prefactor     .10000E-03    3.9403       -.84126E-07** at limit **
  21  Normalizat    1.1821        .25124       -.21767E-05    .91925E-05
  22  Prefactor     1.0293        .10397        .82423E-06    .99508E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.371122
  norm       = 0.0001
  Prefactor  = 27.9148
  Prefactor  = 30.1749
  Prefactor  = 3.92658
  Prefactor  = 22.9481
  Prefactor  = 11.8255
  norm       = 2.51295
  Prefactor  = 0.0001
  Prefactor  = 54.3581
  norm       = 2.50368
  Prefactor  = 25.135
  norm       = 0.0001
  norm       = 3.39474
  norm       = 3.41393
  norm       = 0.0001
  Prefactor  = 16.9302
  Prefactor  = 0.0001
  Prefactor  = 4.27196
  Prefactor  = 0.0001
  Normalizat = 1.18211
  Prefactor  = 1.02935
 **********
 **   18 **HESSE 
 **********

 FCN=   9320.028     FROM HESSE     STATUS=OK           352 CALLS     2782 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37112        .19657        .30352E-04   -1.5586    
   2  norm          .10000E-03    1.5379        .11692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.915        30.922        .75829E-04   -1.4651    
   4  Prefactor     30.175        36.656        .72966E-04   -1.4609    
   5  Prefactor     3.9266        4.0967        .95428E-03   -1.5312    
   6  Prefactor     22.948        34.411        .83620E-04   -1.4750    
   7  Prefactor     11.825        25.374        .11648E-03   -1.5020    
   8  norm          2.5130        2.2540        .13186E-03   -1.5391    
   9  Prefactor     .10000E-03    22.448        .24013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     54.358        43.119        .54410E-04   -1.4232    
  11  norm          2.5037        3.9952        .22865E-03   -1.5391    
  12  Prefactor     25.135        32.657        .79908E-04   -1.4705    
  13  norm          .10000E-03    9.2653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3947        1.5253        .77660E-04   -1.5339    
  15  norm          3.4139        11.618        .21847E-03   -1.5338    
  16  norm          .10000E-03    33.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.930        60.169        .97287E-04   -1.4885    
  18  Prefactor     .10000E-03    55.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2720        10.486        .19477E-03   -1.5295    
  20  Prefactor     .10000E-03    3.9667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1821        .29104        .37547E-03   -.87158    
  22  Prefactor     1.0293        .12320        .17806E-03   -.91758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35736e-11
Minuit parameter uncertainties:
  1  0.196574
  2  1.87109e-08
  3  30.9395
  4  36.6832
  5  4.09695
  6  34.4406
  7  25.397
  8  2.25404
  9  6.47527e-05
  10  43.1435
  11  3.9956
  12  32.6805
  13  7.24024e-06
  14  1.52536
  15  11.6258
  16  7.21709e-06
  17  60.3863
  18  5.29196e-05
  19  10.4901
  20  6.319e-06
  21  0.291436
  22  0.12323
Done.

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

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  2.513e+01  3.268e+01  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  2.059e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.029e+00  1.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.182e+00  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 238.010 8.842
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 8.24e-06 +/- 1.07e-05

TS (Fixed Index): 1.24
Ra Dec: 238.010 8.842
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750043/likelihoodResults_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.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) = 9320.00855801
delta logL = 0.0192238902055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9320.00260229
delta logL = 0.0251796087141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.290       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8507       1.0000          .0000       10.000    
     3 'Normalizat'    1.1861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+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=   9320.003     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      258 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.294        41.181        .74029E-04   -.15787E-03
   2  Index         1.8507        .91690        .12826E-01   -.95001E-04
   3  Normalizat    1.1860        .26622        .37494E-03    .22450E-03
   4  Prefactor     1.0285        .11945        .17812E-03    .48805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2935
  Index      = 1.85065
  Normalizat = 1.18598
  Prefactor  = 1.02848
 **********
 **   18 **HESSE 
 **********

 FCN=   9320.003     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.294        40.369        .14806E-04   -1.4625    
   2  Index         1.8507        .89948        .51303E-03   -.68139    
   3  Normalizat    1.1860        .26638        .14998E-04   -.87037    
   4  Prefactor     1.0285        .11954        .35625E-04   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37906e-10
Minuit parameter uncertainties:
  1  40.4067
  2  0.907721
  3  0.266682
  4  0.11957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750043': 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) = 9320.00260223
delta logL = 0.0251796708453

Extracting fit parameters...

4FGL J1552.0+0850
   Spectrum: PowerLaw
249    Prefactor:  2.929e+01  4.041e+01  1.000e-04  1.000e+04 ( 1.000e-14)
250        Index:  1.851e+00  9.077e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  2.194e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.028e+00  1.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.186e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 238.010 8.842
Photon Index (Free Index): 1.85 +/- 0.91
Photon Flux (Free Index): 1.04e-08 +/- 1.91e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/750043/cmap_HighResolution_304905601_305164801_4FGL_J1552.0+0850_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='1.08e-05', photon_flux_error='1.78e-08', dlogl='2.52e-02', energy_flux='8.24e-06', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-12 15:52:29.663559', photon_index_error2='0.91', photon_index2='1.85', ts='1.24', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='1.99e-05', EG='1.18', time_epoch_completed='1631487149.66', return_code='0', job_id='750043', GAL2='1.03', EG2='1.19', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.91e-08', ts2='1.29', photon_index='2.06' WHERE bin_id='253' AND source_name='4FGL J1552.0+0850' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 15:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 750043: <4FGL_J1552.0+0850_daily_bin253> in cluster <slac> Done

Job <4FGL_J1552.0+0850_daily_bin253> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 15:35:52 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 15:37:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 15:37:11 2021
Terminated at Sun Sep 12 15:52:30 2021
Results reported at Sun Sep 12 15:52:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1552.0+0850_daily_bin253 238.01 8.8419 304905601 305164801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1552.0+0850 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            998 sec.

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

