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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin358
RA = 228.07, Dec = 2.0403
tmin = 332121601, tmax = 332380801
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='222274', job_status='RUN', time_executed='2021-09-11 09:36:31.250637', time_epoch_executed='1631378191.25' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222274/ft1_4FGL_J1512.2+0202_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222274/ft1_4FGL_J1512.2+0202_daily_bin358.fits outfile=/scratch/kocevski/222274/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin358.fits ra=228.07 dec=2.0403 rad=12.0 tmin=332121601.0 tmax=332380801.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.32
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.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/222274/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin358.fits evtable="EVENTS" outfile="/scratch/kocevski/222274/ft1_filtered_4FGL_J1512.2+0202_daily_bin358.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/222274/ft1_filtered_4FGL_J1512.2+0202_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/222274/ltcube_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.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/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits
.....................!
real 12.04
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222274/ft1_filtered_4FGL_J1512.2+0202_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/222274/ltcube_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.fits outfile=/scratch/kocevski/222274/expmap_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.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/222274/ltcube_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.fits
.....................!
real 192.84
user 187.77
sys 4.50

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/222274/ft1_filtered_4FGL_J1512.2+0202_daily_bin358.fits scfile=/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits outfile=/scratch/kocevski/222274/cmap_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.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 2.88
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222274/ft1_filtered_4FGL_J1512.2+0202_daily_bin358.fits scfile=/scratch/kocevski/222274/ft2_4FGL_J1512.2+0202_daily_bin358.fits outfile=/scratch/kocevski/222274/cmap_HighResolution_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.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.55
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12447E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4875       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.071       1.0000         .10000E-03   10000.    
     9 'norm      '    7.5762       1.0000         .10000E-03   10000.    
    10 'norm      '    .98943       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3743       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83423       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=   7641.905     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1695 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    33.654        .90712E-02** at limit **
   2  Prefactor     .10002E-03    46.802        .90712E-02** at limit **
   3  norm          2.6820        15.561        .62162E-02    .19638E-03
   4  Prefactor     .10013E-03    27.644        .90712E-02** at limit **
   5  norm          1.4875        .27135        .41992E-02    .90445E-04
   6  norm          .10000E-03    1.0647        .90712E-02** at limit **
   7  norm          .10000E-03    4.2960        .90712E-02** at limit **
   8  norm          14.071        6.5428        .26694E-02   -.19837E-03
   9  norm          7.5762        4.9240        .36424E-02   -.12533E-02
  10  norm          .98943        .19788        .33363E-02    .19637E-03
  11  Prefactor     8.2017        14.017        .34998E-02    .60018E-04
  12  Prefactor     4.5684        112.66        .47088E-02   -.22626E-03
  13  Prefactor     .10000E-03    3.6034        .52010E-01** at limit **
  14  Prefactor     .10001E-03    23.480        .90712E-02** at limit **
  15  Prefactor     .10001E-03    31.810        .90712E-02** at limit **
  16  Prefactor     .10000E-03    2.6158        .44025E-01** at limit **
  17  norm          .10000E-03    2.0973        .43287E-01** at limit **
  18  Normalizat    1.3743        .22885        .77142E-01    .12872E-04
  19  Prefactor     .83423        .10254        .44161E-01    .67334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100091
  Prefactor  = 0.000100018
  norm       = 2.68195
  Prefactor  = 0.000100128
  norm       = 1.48751
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.0711
  norm       = 7.57623
  norm       = 0.989427
  Prefactor  = 8.20169
  Prefactor  = 4.56843
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.37431
  Prefactor  = 0.834234
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.905     FROM HESSE     STATUS=OK           270 CALLS     1965 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    33.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    46.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6820        15.355        .24865E-03   -1.5380    
   4  Prefactor     .10013E-03    27.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4875        .27254        .18563E-04   -1.5464    
   6  norm          .10000E-03    1.0819        .87964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3684        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.071        6.5411        .10678E-03   -1.4958    
   9  norm          7.5762        4.9181        .14570E-03   -1.5157    
  10  norm          .98943        .20445        .14751E-04   -1.5509    
  11  Prefactor     8.2017        14.466        .13999E-03   -1.5135    
  12  Prefactor     4.5684        112.29        .18835E-03   -1.5280    
  13  Prefactor     .10000E-03    9.6320        .31477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    23.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    31.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0028        .27111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1010        .24505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3743        .26413        .34141E-03   -.81375    
  19  Prefactor     .83423        .11847        .19369E-03   -.98479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11603e-08
Minuit parameter uncertainties:
  1  0.00349382
  2  0.00185107
  3  12.8391
  4  0.00377826
  5  0.27254
  6  1.25377e-07
  7  4.28659e-07
  8  6.54143
  9  4.9184
  10  0.204451
  11  14.4727
  12  45.3929
  13  1.75701e-06
  14  0.000992134
  15  0.000824662
  16  7.8671e-07
  17  2.10556e-06
  18  0.264396
  19  0.118508
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  7.576e+00  4.918e+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:  8.342e-01  1.185e-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.374e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.44
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 2.13e-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) = 7641.25569655
delta logL = 0.649755354702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7641.24553155
delta logL = 0.659920345846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5540       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84161       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=   7641.246     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5564        58.621        .39189E-02    .35990E-03
   2  alpha         2.5975        3.7921        .29401        .10337E-03
   3  Normalizat    1.3238        .12140        .78278E-01    .36949E-04
   4  Prefactor     .84156        .43174E-01    .44256E-01    .45158E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.55641
  alpha      = 2.59751
  Normalizat = 1.32378
  Prefactor  = 0.841561
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.246     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5564        4.4924        .11024E-03   -1.5196    
   2  alpha         2.5975        .52354        .10762E-01    .39015E-01
   3  Normalizat    1.3238        .26153        .34646E-03   -.82859    
   4  Prefactor     .84156        .11768        .19274E-03   -.98214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6392e-11
Minuit parameter uncertainties:
  1  4.49268
  2  0.527449
  3  0.261788
  4  0.117713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222274': 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) = 7641.24552943
delta logL = 0.659922470592

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.556e+00  4.493e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.598e+00  5.274e-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:  8.416e-01  1.177e-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.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.74
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.60 +/- 0.53
Photon Flux (Free Index): 1.08e-07 +/- 6.90e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.71e-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/222274/cmap_HighResolution_332121601_332380801_4FGL_J1512.2+0202_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='3.28e-05', photon_flux_error='3.40e-08', dlogl='6.60e-01', energy_flux='3.27e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-11 09:45:35.576577', photon_index_error2='0.53', photon_index2='2.60', ts='7.44', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='1.37', time_epoch_completed='1631378735.58', return_code='0', job_id='222274', GAL2='0.84', EG2='1.32', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.90e-08', ts2='8.74', photon_index='1.97' WHERE bin_id='358' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 222274: <4FGL_J1512.2+0202_daily_bin358> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin358> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:36:14 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:36:16 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:16 2021
Terminated at Sat Sep 11 09:45:36 2021
Results reported at Sat Sep 11 09:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin358 228.07 2.0403 332121601 332380801 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 :                                   536.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            562 sec.

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

