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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin618
RA = 28.0727, Dec = 22.1133
tmin = 399513601, tmax = 399772801
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='873802', job_status='RUN', time_executed='2021-08-14 18:17:26.860755', time_epoch_executed='1628990246.86' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873802/ft1_4FGL_J0152.2+2206_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873802/ft1_4FGL_J0152.2+2206_daily_bin618.fits outfile=/scratch/kocevski/873802/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin618.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=399513601.0 tmax=399772801.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 9.93
user 4.96
sys 4.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.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/873802/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.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 5.07
user 0.33
sys 4.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/873802/ltcube_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.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/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits
.....................!
real 17.55
user 11.97
sys 5.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/873802/ltcube_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits outfile=/scratch/kocevski/873802/expmap_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.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/873802/ltcube_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits
.....................!
real 197.23
user 185.25
sys 10.64

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

Setting source of interest to:
4FGL J0152.2+2206 @ 28.0727 22.1133

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits outfile=/scratch/kocevski/873802/cmap_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.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=28.0727 yref=22.1133 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 5.06
user 0.36
sys 4.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits outfile=/scratch/kocevski/873802/cmap_HighResolution_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.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=28.0727 yref=22.1133 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 5.04
user 0.38
sys 4.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873802/Model_4FGL_J0152.2+2206_daily_bin618.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/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits.....................!
real 52.64
user 45.26
sys 7.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits', '/scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits', expMap='/scratch/kocevski/873802/expmap_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits', expCube='/scratch/kocevski/873802/ltcube_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873802/Model_4FGL_J0152.2+2206_daily_bin618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+2206'

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/873802/ft1_filtered_4FGL_J0152.2+2206_daily_bin618.fits
Spacecraft file(s): /scratch/kocevski/873802/ft2_4FGL_J0152.2+2206_daily_bin618.fits
Exposure map: /scratch/kocevski/873802/expmap_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits
Exposure cube: /scratch/kocevski/873802/ltcube_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873802/Model_4FGL_J0152.2+2206_daily_bin618.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) = 3673.21818727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62122E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18175E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14281E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1833       1.0000         .10000E-03   10000.    
    18 'norm      '    98.759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74828       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3673.195     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2580 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.490       -.25896E-06** at limit **
   2  norm          .93839        .78124        .37500E-06    .58247E-03
   3  Prefactor     .10000E-03    37.171       -.35760E-07** at limit **
   4  Prefactor     .10000E-03    2.5792        .84453E-09** at limit **
   5  Prefactor     5.1381        10.273        .30659E-06    .17088E-04
   6  Prefactor     .10093E-03    11.861       -.52341E-05** at limit **
   7  Prefactor     .10000E-03    17.534        .10713E-06** at limit **
   8  Prefactor     .10000E-03    72.979        .27071E-06** at limit **
   9  norm          .10000E-03    .17982        .47010E-07** at limit **
  10  Prefactor     13.975        12.421        .14247E-06    .94254E-05
  11  Prefactor     .10000E-03    56.864       -.75011E-06** at limit **
  12  Prefactor     .10020E-03    10.900        .33558E-05** at limit **
  13  norm          .10000E-03    3.6760        .17845E-05** at limit **
  14  Prefactor     .10000E-03    72.171        .59422E-07** at limit **
  15  Prefactor     .10002E-03    38.116       -.16097E-04** at limit **
  16  Prefactor     1.0405        14.708       -.73622E-05    .13504E-04
  17  Prefactor     2.1798        7.2468       -.25181E-05   -.18553E-03
  18  norm          98.759        92.382        .28871E-06   -.89114E-06
  19  Prefactor     .10000E-03    54.575       -.19743E-05** at limit **
  20  Prefactor     .10000E-03    13.473        .18737E-06** at limit **
  21  Prefactor     .10000E-03    74.998        .12873E-05** at limit **
  22  Normalizat    1.0821        .24441        .31667E-07    .85698E-04
  23  Prefactor     .74821        .13023       -.61221E-06    .24715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.938389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13806
  Prefactor  = 0.000100926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9754
  Prefactor  = 0.000100004
  Prefactor  = 0.000100197
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 1.04047
  Prefactor  = 2.17984
  norm       = 98.7587
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.08212
  Prefactor  = 0.748205
 **********
 **   18 **HESSE 
 **********

 FCN=   3673.195     FROM HESSE     STATUS=OK           372 CALLS     2952 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93839        .77667        .47109E-04   -1.5514    
   3  Prefactor     .10000E-03    37.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5897        .95043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1381        10.308        .17731E-03   -1.5255    
   6  Prefactor     .10093E-03    16.427        .57006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    73.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .18197        .25097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.975        12.426        .10714E-03   -1.4960    
  11  Prefactor     .10000E-03    57.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10020E-03    37.739        .31885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8970        .11569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    41.081        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0405        14.635        .42877E-03   -1.5504    
  17  Prefactor     2.1798        7.3217        .13929E-02   -1.5413    
  18  norm          98.759        92.392        .40451E-04   -1.3717    
  19  Prefactor     .10000E-03    55.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    75.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0821        .27951        .27190E-03   -.90328    
  23  Prefactor     .74821        .14983        .17904E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55098e-09
Minuit parameter uncertainties:
  1  0.000130979
  2  0.77668
  3  1.26426e-05
  4  3.75305e-06
  5  10.3113
  6  0.00780381
  7  1.35026e-05
  8  0.000371737
  9  1.09338e-06
  10  12.4281
  11  0.000996816
  12  0.00545193
  13  0.000181947
  14  0.000200296
  15  0.00194346
  16  7.80643
  17  7.32468
  18  92.5265
  19  0.000403353
  20  3.09402e-05
  21  0.00071542
  22  0.279891
  23  0.149912
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.398e+01  1.243e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  7.482e-01  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.082e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.21e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.35e-05

TS (Fixed Index): 2.14
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873802/likelihoodResults_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.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) = 3672.82518872
delta logL = 0.369593535033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3672.79600025
delta logL = 0.398782009065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0528       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3672.796     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.245        16.958        .24106E-02    .34270E-04
   2  Index         2.0530        .59659        .20002       -.47527E-04
   3  Normalizat    1.1073        .23102        .60860E-01    .19166E-05
   4  Prefactor     .73789        .12917        .42904E-01   -.23855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2451
  Index      = 2.05295
  Normalizat = 1.10734
  Prefactor  = 0.737887
 **********
 **   18 **HESSE 
 **********

 FCN=   3672.796     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.245        15.144        .96423E-04   -1.4877    
   2  Index         2.0530        .61794        .76133E-02   -.63033    
   3  Normalizat    1.1073        .26646        .26917E-03   -.89516    
   4  Prefactor     .73789        .14870        .18008E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09891e-10
Minuit parameter uncertainties:
  1  15.1471
  2  0.620375
  3  0.266781
  4  0.148781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873802': 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) = 3672.79599988
delta logL = 0.398782376927

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.725e+01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  2.053e+00  6.204e-01  0.000e+00  1.000e+01 (-1.000e+00)
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  7.379e-01  1.488e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.107e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 28.073 22.113
Photon Index (Free Index): 2.05 +/- 0.62
Photon Flux (Free Index): 4.46e-08 +/- 4.65e-08
Energy Flux (Free Index): 2.72e-05 +/- 3.26e-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/873802/cmap_HighResolution_399513601_399772801_4FGL_J0152.2+2206_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', photon_flux='6.21e-08', energy_flux2='2.72e-05', photon_flux_error='5.52e-08', dlogl='3.99e-01', energy_flux='1.52e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-08-14 18:27:20.173645', photon_index_error2='0.62', photon_index2='2.05', ts='2.14', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='3.26e-05', EG='1.08', time_epoch_completed='1628990840.17', return_code='0', job_id='873802', GAL2='0.74', EG2='1.11', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.65e-08', ts2='2.94', photon_index='2.68' WHERE bin_id='618' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 18:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 873802: <4FGL_J0152.2+2206_daily_bin618> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 18:15:31 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 18:15:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 18:15:59 2021
Terminated at Sat Aug 14 18:27:21 2021
Results reported at Sat Aug 14 18:27:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin618 28.0727 22.1133 399513601 399772801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+2206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            710 sec.

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

