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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin292
RA = 228.07, Dec = 2.0403
tmin = 315014401, tmax = 315273601
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='222173', job_status='RUN', time_executed='2021-09-11 09:39:05.223993', time_epoch_executed='1631378345.22' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222173/ft1_4FGL_J1512.2+0202_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222173/ft1_4FGL_J1512.2+0202_daily_bin292.fits outfile=/scratch/kocevski/222173/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin292.fits ra=228.07 dec=2.0403 rad=12.0 tmin=315014401.0 tmax=315273601.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.60
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.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/222173/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/222173/ltcube_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.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/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits
.....................!
real 11.95
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/222173/ltcube_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits outfile=/scratch/kocevski/222173/expmap_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.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/222173/ltcube_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits
.....................!
real 191.26
user 185.69
sys 5.19

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 J1512.2+0202 @ 228.07 2.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits outfile=/scratch/kocevski/222173/cmap_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.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=228.07 yref=2.0403 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits outfile=/scratch/kocevski/222173/cmap_HighResolution_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.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=228.07 yref=2.0403 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222173/Model_4FGL_J1512.2+0202_daily_bin292.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/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits.....................!
real 82.39
user 80.85
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits', '/scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits', expMap='/scratch/kocevski/222173/expmap_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits', expCube='/scratch/kocevski/222173/ltcube_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222173/Model_4FGL_J1512.2+0202_daily_bin292.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1512.2+0202'

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.359e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/222173/ft1_filtered_4FGL_J1512.2+0202_daily_bin292.fits
Spacecraft file(s): /scratch/kocevski/222173/ft2_4FGL_J1512.2+0202_daily_bin292.fits
Exposure map: /scratch/kocevski/222173/expmap_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits
Exposure cube: /scratch/kocevski/222173/ltcube_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222173/Model_4FGL_J1512.2+0202_daily_bin292.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) = 10828.7665333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.021       1.0000         .10000E-03   10000.    
     5 'norm      '    .14718       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6706       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2909       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4638       1.0000         .10000E-03   10000.    
    10 'norm      '    .53646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99671E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28457E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.822       1.0000         .10000E-03   10000.    
    17 'norm      '    10.497       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89960       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0971       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.

 FCN=   10828.75     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2054 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.639        .90712E-02** at limit **
   2  Prefactor     .10000E-03    14.421        .90712E-02** at limit **
   3  norm          3.4052        8.8483        .54824E-02    .16627E-03
   4  Prefactor     54.025        30.272        .13643E-02    .34082E-04
   5  norm          .14718        .15291        .80490E-02    .31015E-02
   6  norm          3.6704        2.3331        .52706E-02    .47342E-03
   7  norm          .10000E-03    6.3245        .90712E-02** at limit **
   8  norm          2.2906        2.4928        .67801E-02    .47312E-03
   9  norm          3.4636        2.7858        .54322E-02    .14486E-03
  10  norm          .53686        .12634        .30947E-02    .14202E-03
  11  Prefactor     .10002E-03    8.2213        .95097E-01** at limit **
  12  Prefactor     .10000E-03    21.097        .15074    ** at limit **
  13  Prefactor     4.7267        4.2319        .46267E-02    .63105E-03
  14  Prefactor     29.871        25.023        .18326E-02   -.17630E-04
  15  Prefactor     .10000E-03    23.610        .90712E-02** at limit **
  16  Prefactor     10.822        4.5205        .30447E-02    .35563E-02
  17  norm          10.497        4.2978        .30916E-02    .27334E-02
  18  Normalizat    .89948        .21507        .94740E-01    .91924E-05
  19  Prefactor     1.0971        .93111E-01    .37697E-01   -.90715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40522
  Prefactor  = 54.0246
  norm       = 0.147182
  norm       = 3.67041
  norm       = 0.0001
  norm       = 2.29062
  norm       = 3.46364
  norm       = 0.536858
  Prefactor  = 0.00010002
  Prefactor  = 0.000100002
  Prefactor  = 4.7267
  Prefactor  = 29.8707
  Prefactor  = 0.0001
  Prefactor  = 10.8222
  norm       = 10.4971
  Normalizat = 0.899484
  Prefactor  = 1.09713
 **********
 **   18 **HESSE 
 **********

 FCN=   10828.75     FROM HESSE     STATUS=OK           296 CALLS     2350 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4052        8.8158        .21929E-03   -1.5339    
   4  Prefactor     54.025        30.235        .54573E-04   -1.4237    
   5  norm          .14718        .13764        .38757E-03   -1.5631    
   6  norm          3.6704        2.3293        .11812E-03   -1.5325    
   7  norm          .10000E-03    6.5266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2906        2.4824        .16559E-03   -1.5405    
   9  norm          3.4636        2.7808        .14997E-03   -1.5336    
  10  norm          .53686        .14537        .13711E-04   -1.5561    
  11  Prefactor     .10002E-03    20.774        .64172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.071        .15095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7267        4.2204        .18507E-03   -1.5273    
  14  Prefactor     29.871        25.015        .73305E-04   -1.4614    
  15  Prefactor     .10000E-03    23.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.822        4.5163        .60894E-03   -1.5050    
  17  norm          10.497        4.2957        .61833E-03   -1.5060    
  18  Normalizat    .89948        .23945        .41970E-03   -.96478    
  19  Prefactor     1.0971        .10505        .17601E-03   -.89558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21006e-11
Minuit parameter uncertainties:
  1  3.27077e-05
  2  3.45492e-05
  3  8.8192
  4  30.2432
  5  0.137636
  6  2.32934
  7  2.30897e-05
  8  2.48249
  9  2.7809
  10  0.145367
  11  0.00128077
  12  0.000429582
  13  4.22067
  14  25.0239
  15  3.36402e-05
  16  4.51646
  17  4.29581
  18  0.239732
  19  0.105068
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.464e+00  2.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.097e+00  1.051e-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:  8.995e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.20e-05

TS (Fixed Index): 3.68
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222173/likelihoodResults_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.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) = 10828.3283668
delta logL = 0.41835334296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10828.2950592
delta logL = 0.451660956476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6548       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2842       1.0000          .0000       5.0000    
     3 'Normalizat'    .90745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0974       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.

 FCN=   10828.30     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6504        2.2542        .62546E-02   -.75372E-04
   2  alpha         1.2839        .50265        .50000       -.46803E-04
   3  Normalizat    .90737        .19980        .94389E-01    .41467E-04
   4  Prefactor     1.0975        .92066E-01    .37684E-01   -.52291E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65037
  alpha      = 1.28386
  Normalizat = 0.907369
  Prefactor  = 1.09748
 **********
 **   18 **HESSE 
 **********

 FCN=   10828.30     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6504        2.9060        .13999E-03   -1.5382    
   2  alpha         1.2839        .70954        .23459E-01   -.50803    
   3  Normalizat    .90737        .22355        .41814E-03   -.96202    
   4  Prefactor     1.0975        .10345        .17602E-03   -.89547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85883e-09
Minuit parameter uncertainties:
  1  2.90616
  2  0.722651
  3  0.223774
  4  0.103472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222173': 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) = 10828.2950578
delta logL = 0.451662280237

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.650e+00  2.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.284e+00  7.227e-01  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.097e+00  1.035e-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:  9.074e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.28 +/- 0.72
Photon Flux (Free Index): 1.09e-08 +/- 1.34e-08
Energy Flux (Free Index): 2.55e-05 +/- 2.83e-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/222173/cmap_HighResolution_315014401_315273601_4FGL_J1512.2+0202_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='2.55e-05', photon_flux_error='1.92e-08', dlogl='4.52e-01', energy_flux='1.50e-05', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-11 09:51:17.781959', photon_index_error2='0.72', photon_index2='1.28', ts='3.68', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.17e-08', energy_flux_error2='2.83e-05', EG='0.90', time_epoch_completed='1631379077.78', return_code='0', job_id='222173', GAL2='1.10', EG2='0.91', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.34e-08', ts2='4.58', photon_index='1.97' WHERE bin_id='292' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 222173: <4FGL_J1512.2+0202_daily_bin292> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin292> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:36:07 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:36:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 09:36:09 2021
Terminated at Sat Sep 11 09:51:18 2021
Results reported at Sat Sep 11 09:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin292 228.07 2.0403 315014401 315273601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1512.2+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

