/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 187 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7393
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1601
RA = 228.07, Dec = 2.0403
tmin = 654307201, tmax = 654566401
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='542704', job_status='RUN', time_executed='2021-09-29 00:19:08.338811', time_epoch_executed='1632899948.34' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542704/ft1_4FGL_J1512.2+0202_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542704/ft1_4FGL_J1512.2+0202_daily_bin1601.fits outfile=/scratch/kocevski/542704/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1601.fits ra=228.07 dec=2.0403 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.25
user 3.98
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.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/542704/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/542704/ltcube_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.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/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits
.....................!
real 11.99
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542704/ltcube_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits outfile=/scratch/kocevski/542704/expmap_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.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/542704/ltcube_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits
.....................!
real 192.37
user 185.20
sys 5.80

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/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits scfile=/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits outfile=/scratch/kocevski/542704/cmap_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits scfile=/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits outfile=/scratch/kocevski/542704/cmap_HighResolution_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits', '/scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits', expMap='/scratch/kocevski/542704/expmap_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits', expCube='/scratch/kocevski/542704/ltcube_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542704/Model_4FGL_J1512.2+0202_daily_bin1601.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/542704/ft1_filtered_4FGL_J1512.2+0202_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/542704/ft2_4FGL_J1512.2+0202_daily_bin1601.fits
Exposure map: /scratch/kocevski/542704/expmap_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits
Exposure cube: /scratch/kocevski/542704/ltcube_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542704/Model_4FGL_J1512.2+0202_daily_bin1601.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) = 9173.25168063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.631       1.0000         .10000E-03   10000.    
     3 'norm      '    14.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.567       1.0000         .10000E-03   10000.    
     5 'norm      '    .79333E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2924       1.0000         .10000E-03   10000.    
     7 'norm      '    .15240E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4936       1.0000         .10000E-03   10000.    
    10 'norm      '    .12634       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3861       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92887       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=   9173.249     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1895 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.244       -.23477E-05** at limit **
   2  Prefactor     25.620        36.384       -.13901E-04    .94462E-05
   3  norm          14.036        22.436        .85091E-05   -.22521E-04
   4  Prefactor     31.573        25.733        .35326E-05    .28563E-04
   5  norm          .79373E-01    .11945       -.12700E-06   -.65653E-02
   6  norm          1.2929        1.8729       -.42163E-06   -.12469E-02
   7  norm          .10000E-03    7.6841       -.40654E-05** at limit **
   8  norm          .10000E-03    1.4514        .13915E-07** at limit **
   9  norm          2.4934        3.4600        .29072E-06   -.77145E-03
  10  norm          .12636        .65784E-01   -.58201E-09   -.15717E-02
  11  Prefactor     .10000E-03    3.6779        .62052E-07** at limit **
  12  Prefactor     .10000E-03    7.8483        .38538E-05** at limit **
  13  Prefactor     4.1391        3.9656        .27754E-05   -.51417E-03
  14  Prefactor     .10000E-03    5.1062       -.22664E-06** at limit **
  15  Prefactor     .10000E-03    41.184        .14348E-05** at limit **
  16  Prefactor     2.3862        2.5932       -.34273E-06   -.35409E-03
  17  norm          .10000E-03    1.2084       -.16901E-06** at limit **
  18  Normalizat    1.3240        .20430       -.35502E-06    .39181E-04
  19  Prefactor     .92896        .89053E-01   -.21844E-06    .85324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.6196
  norm       = 14.0363
  Prefactor  = 31.573
  norm       = 0.0793732
  norm       = 1.29291
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.49341
  norm       = 0.126362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3862
  norm       = 0.0001
  Normalizat = 1.32399
  Prefactor  = 0.928956
 **********
 **   18 **HESSE 
 **********

 FCN=   9173.249     FROM HESSE     STATUS=OK           270 CALLS     2165 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.620        36.284        .79126E-04   -1.4695    
   3  norm          14.036        22.353        .10693E-03   -1.4958    
   4  Prefactor     31.573        25.836        .71316E-04   -1.4584    
   5  norm          .79373E-01    .10338        .39573E-03   -1.5652    
   6  norm          1.2929        1.8543        .14930E-03   -1.5481    
   7  norm          .10000E-03    7.9682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4609        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4934        3.4302        .19993E-03   -1.5392    
  10  norm          .12636        .65225E-01    .17012E-04   -1.5637    
  11  Prefactor     .10000E-03    3.6966        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1391        3.8751        .17411E-03   -1.5301    
  14  Prefactor     .10000E-03    5.1073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3862        2.5915        .15545E-03   -1.5399    
  17  norm          .10000E-03    1.2367        .10280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3240        .23731        .33474E-03   -.82853    
  19  Prefactor     .92896        .10414        .17594E-03   -.95136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32174e-09
Minuit parameter uncertainties:
  1  5.79371e-05
  2  36.3149
  3  22.3666
  4  25.845
  5  0.103377
  6  1.85437
  7  6.14918e-05
  8  9.77853e-07
  9  3.43045
  10  0.065225
  11  2.2469e-06
  12  2.60233e-06
  13  3.87529
  14  1.63526e-06
  15  8.20961e-07
  16  2.59164
  17  4.77577e-07
  18  0.237507
  19  0.104167
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.493e+00  3.430e+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:  9.290e-01  1.042e-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.324e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542704/likelihoodResults_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.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): 102
logL (Free Index) = 9172.84805358
delta logL = 0.400570186897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9172.83378596
delta logL = 0.414837802797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23083       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95052       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=   9172.834     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      260 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22815        2.6815        .87677E-02   -.70893E-02
   2  alpha         4.1959        4.4953        .50000       -.78461E-04
   3  Normalizat    1.2528        .43789E-01    .77398E-01   -.28221E-03
   4  Prefactor     .95064        .19802E-01    .45646E-01   -.37416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.228153
  alpha      = 4.19592
  Normalizat = 1.25281
  Prefactor  = 0.950643
 **********
 **   18 **HESSE 
 **********

 FCN=   9172.834     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22815        8.8690        .40470E-03   -1.5612    
   2  alpha         4.1959        3.7458        .23579E-02    .74554    
   3  Normalizat    1.2528        .19760        .34257E-03   -.84986    
   4  Prefactor     .95064        .89086E-01    .17415E-03   -.94393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5678e-09
Minuit parameter uncertainties:
  1  2.84481
  2  6.54497
  3  0.197719
  4  0.0890993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542704': 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): 102
logL (Free Index) = 9172.83378183
delta logL = 0.414841931633

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.282e-01  2.845e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  4.196e+00  6.545e+00  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:  9.506e-01  8.910e-02  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.253e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 228.070 2.040
Photon Index (Free Index): 4.20 +/- 6.54
Photon Flux (Free Index): 6.73e-08 +/- 6.40e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.26e-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/542704/cmap_HighResolution_654307201_654566401_4FGL_J1512.2+0202_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='4.15e-01', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-29 00:29:56.309116', photon_index_error2='6.54', photon_index2='4.20', ts='0.71', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.41e-08', energy_flux_error2='1.26e-05', EG='1.32', time_epoch_completed='1632900596.31', return_code='0', job_id='542704', GAL2='0.95', EG2='1.25', return_code2='102', photon_flux_error2='6.40e-08', ts2='1.61', photon_index='1.97' WHERE bin_id='1601' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 542704: <4FGL_J1512.2+0202_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:48 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:50 2021
Terminated at Wed Sep 29 00:29:57 2021
Results reported at Wed Sep 29 00:29:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1601 228.07 2.0403 654307201 654566401 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 :                                   647.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

