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


Performing analysis on: 4FGL_J0152.2+2206_monthly_bin118
RA = 28.0727, Dec = 22.1133
tmin = 542851201, tmax = 545443201
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='674164', job_status='RUN', time_executed='2021-10-09 18:36:12.638601', time_epoch_executed='1633829772.64' WHERE source_name='4FGL J0152.2+2206' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/674164

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/674164/ft1_4FGL_J0152.2+2206_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/674164/ft1_4FGL_J0152.2+2206_monthly_bin118.fits outfile=/scratch/kocevski/674164/ft1_filteredMKT_4FGL_J0152.2+2206_monthly_bin118.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=542851201.0 tmax=545443201.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 19.46
user 17.87
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.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/674164/ft1_filteredMKT_4FGL_J0152.2+2206_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.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.60
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/674164/ltcube_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.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/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits
.....................!
real 39.74
user 39.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/674164/ltcube_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits outfile=/scratch/kocevski/674164/expmap_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.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/674164/ltcube_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits
.....................!
real 193.13
user 186.90
sys 5.52

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/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits scfile=/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits outfile=/scratch/kocevski/674164/cmap_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.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 0.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits scfile=/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits outfile=/scratch/kocevski/674164/cmap_HighResolution_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.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 0.61
user 0.45
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits', '/scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits', expMap='/scratch/kocevski/674164/expmap_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits', expCube='/scratch/kocevski/674164/ltcube_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/674164/Model_4FGL_J0152.2+2206_monthly_bin118.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/674164/ft1_filtered_4FGL_J0152.2+2206_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/674164/ft2_4FGL_J0152.2+2206_monthly_bin118.fits
Exposure map: /scratch/kocevski/674164/expmap_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits
Exposure cube: /scratch/kocevski/674164/ltcube_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/674164/Model_4FGL_J0152.2+2206_monthly_bin118.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) = 947.192910537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.737       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19438E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    77.264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.750       1.0000         .10000E-03   10000.    
    13 'norm      '    .79669E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    982.22       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    70.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10078E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2807       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=   947.1198     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     3335 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.708        139.39       -.27258E-06   -.10832E-04
   2  norm          1.7330        2.4477        .75511E-09   -.13158E-03
   3  Prefactor     .10000E-03    201.15       -.13877E-06** at limit **
   4  Prefactor     .10000E-03    18.675        .32985E-07** at limit **
   5  Prefactor     .10000E-03    10.325        .19883E-08** at limit **
   6  Prefactor     .10000E-03    22.629       -.28171E-07** at limit **
   7  Prefactor     .10000E-03    56.755       -.11517E-06** at limit **
   8  Prefactor     .10000E-03    214.05        .25117E-06** at limit **
   9  norm          2.6746        2.2370       -.21040E-07   -.60314E-04
  10  Prefactor     77.286        46.563       -.50346E-06    .93720E-05
  11  Prefactor     .10000E-03    32.616        .34848E-07** at limit **
  12  Prefactor     16.753        16.725       -.25217E-07    .47915E-05
  13  norm          .10002E-03    13.189       -.45923E-06** at limit **
  14  Prefactor     982.53        895.30       -.11907E-05    .74403E-05
  15  Prefactor     3.3692        6.9430       -.22311E-07   -.53207E-04
  16  Prefactor     .10000E-03    21.443       -.22024E-07** at limit **
  17  Prefactor     .10000E-03    21.176        .25584E-06** at limit **
  18  norm          70.629        456.02       -.23679E-05   -.10554E-04
  19  Prefactor     .10000E-03    25.791        .20628E-07** at limit **
  20  Prefactor     .10000E-03    17.813       -.13692E-07** at limit **
  21  Prefactor     .10000E-03    67.447        .12484E-06** at limit **
  22  Normalizat    .10000E-01    .55183        .24940E-04** at limit **
  23  Prefactor     1.2811        .19463       -.41476E-05   -.55240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.7083
  norm       = 1.73299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67461
  Prefactor  = 77.2855
  Prefactor  = 0.0001
  Prefactor  = 16.7529
  norm       = 0.00010002
  Prefactor  = 982.531
  Prefactor  = 3.36922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 70.6294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.28112
 **********
 **   18 **HESSE 
 **********

 FCN=   947.1198     FROM HESSE     STATUS=OK           364 CALLS     3699 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.708        139.79        .20539E-03   -1.3748    
   2  norm          1.7330        2.4369        .53841E-04   -1.5445    
   3  Prefactor     .10000E-03    201.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.713        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.325        .96613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.652        .14305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    214.10        .20753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6746        2.2360        .40787E-04   -1.5381    
  10  Prefactor     77.286        46.633        .22842E-03   -1.3947    
  11  Prefactor     .10000E-03    32.617        .17178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.753        16.728        .97863E-04   -1.4889    
  13  norm          .10002E-03    50.993        .21452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     982.53        897.03        .67201E-04   -.93314    
  15  Prefactor     3.3692        6.9357        .11189E-03   -1.5341    
  16  Prefactor     .10000E-03    21.560        .13904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.406        .13831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          70.629        457.76        .23824E-03   -1.4025    
  19  Prefactor     .10000E-03    25.791        .15273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.825        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    67.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    6.8312        .11478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2811        .19974        .16447E-03   -.83870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32457e-10
Minuit parameter uncertainties:
  1  140.28
  2  2.43708
  3  5.73975e-05
  4  5.60691e-05
  5  8.29032e-07
  6  1.04893e-05
  7  0.00014714
  8  0.000193484
  9  2.23604
  10  46.6554
  11  2.27495e-05
  12  16.7322
  13  0.00203097
  14  911.194
  15  6.93732
  16  9.80437e-06
  17  0.000145111
  18  363.757
  19  2.75987e-06
  20  1.37057e-05
  21  0.000201341
  22  7.79433e-05
  23  0.199856
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  7.729e+01  4.666e+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:  1.281e+00  1.999e-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.000e-02  7.794e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.43e-07 +/- 2.07e-07
Energy Flux (Fixed Index): 8.42e-05 +/- 5.08e-05

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) = 946.727686275
delta logL = 0.392157968093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 946.726016248
delta logL = 0.393827994388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.875       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4815       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2772       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   946.7260     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      282 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.861        48.316        .65125E-04    .19103E-02
   2  Index         3.4811        1.0473        .28848E-03    .68527E-03
   3  Normalizat    .10000E-01    1.4013        .12986E-01** at limit **
   4  Prefactor     1.2772        .18557        .16418E-03    .32290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.8615
  Index      = 3.4811
  Normalizat = 0.01
  Prefactor  = 1.27717
 **********
 **   18 **HESSE 
 **********

 FCN=   946.7260     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.861        47.983        .13025E-04   -1.4477    
   2  Index         3.4811        1.0402        .57696E-04   -.30866    
   3  Normalizat    .10000E-01    1.4032        .25971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2772        .18516        .32836E-04   -.83989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70161e-09
Minuit parameter uncertainties:
  1  48.0317
  2  1.0486
  3  1.01013e-05
  4  0.185252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/674164': 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) = 946.726014993
delta logL = 0.393829249754

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.786e+01  4.803e+01  1.000e-04  1.000e+04 ( 1.000e-12)
219        Index:  3.481e+00  1.049e+00  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:  1.277e+00  1.853e-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.000e-02  1.010e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 28.073 22.113
Photon Index (Free Index): 3.48 +/- 1.05
Photon Flux (Free Index): 4.15e-07 +/- 2.42e-07
Energy Flux (Free Index): 6.95e-05 +/- 4.09e-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/674164/cmap_HighResolution_542851201_545443201_4FGL_J0152.2+2206_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-07', energy_flux2='6.95e-05', photon_flux_error='2.07e-07', dlogl='3.94e-01', energy_flux='8.42e-05', photon_flux2='4.15e-07', job_status='DONE', time_completed='2021-10-09 18:45:12.864444', photon_index_error2='1.05', photon_index2='3.48', ts='5.93', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='4.09e-05', EG='0.01', time_epoch_completed='1633830312.86', return_code='0', job_id='674164', GAL2='1.28', EG2='0.01', return_code2='0', energy_flux_error='5.08e-05', photon_flux_error2='2.42e-07', ts2='6.73', photon_index='2.68' WHERE bin_id='118' AND source_name='4FGL J0152.2+2206' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct  9 18:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 674164: <4FGL_J0152.2+2206_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0152.2+2206_monthly_bin118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct  9 18:35:14 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  9 18:35:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  9 18:35:16 2021
Terminated at Sat Oct  9 18:45:13 2021
Results reported at Sat Oct  9 18:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_monthly_bin118 28.0727 22.1133 542851201 545443201 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 :                                   497.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            599 sec.

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

