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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin148
RA = 228.07, Dec = 2.0403
tmin = 277689601, tmax = 277948801
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='220782', job_status='RUN', time_executed='2021-09-11 09:31:47.400606', time_epoch_executed='1631377907.4' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220782/ft1_4FGL_J1512.2+0202_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220782/ft1_4FGL_J1512.2+0202_daily_bin148.fits outfile=/scratch/kocevski/220782/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin148.fits ra=228.07 dec=2.0403 rad=12.0 tmin=277689601.0 tmax=277948801.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.55
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220782/ft1_filtered_4FGL_J1512.2+0202_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/220782/ltcube_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.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/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits
.....................!
real 11.71
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220782/ft1_filtered_4FGL_J1512.2+0202_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/220782/ltcube_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.fits outfile=/scratch/kocevski/220782/expmap_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.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/220782/ltcube_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.fits
.....................!
real 191.15
user 185.89
sys 4.86

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/220782/ft1_filtered_4FGL_J1512.2+0202_daily_bin148.fits scfile=/scratch/kocevski/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits outfile=/scratch/kocevski/220782/cmap_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220782/ft1_filtered_4FGL_J1512.2+0202_daily_bin148.fits scfile=/scratch/kocevski/220782/ft2_4FGL_J1512.2+0202_daily_bin148.fits outfile=/scratch/kocevski/220782/cmap_HighResolution_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.748       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.801       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4406       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9010       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3345       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9604       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1413       1.0000         .10000E-03   10000.    
    10 'norm      '    .69871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3841       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9311.006     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     1604 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10211E-03    46.069       -.84898E-05** at limit **
   2  Prefactor     46.756        1.4554        .50822E-06   -.51954E-02
   3  norm          7.0823        1.0696       -.50484E-06    .93162E-03
   4  Prefactor     20.797        1.0905       -.22806E-06    .10428E-02
   5  norm          1.4406        .27845       -.91457E-07    .19990E-04
   6  norm          1.9011        1.8858       -.21703E-06    .90101E-05
   7  norm          7.3339        5.9667        .86938E-05    .10301E-02
   8  norm          3.9609        2.3684       -.41151E-05    .54253E-03
   9  norm          2.1413        2.5048       -.17652E-08    .54336E-06
  10  norm          .69870        .14186        .10233E-06   -.19797E-03
  11  Prefactor     .10000E-03    4.1923       -.96655E-06** at limit **
  12  Prefactor     .10000E-03    19.057       -.53641E-05** at limit **
  13  Prefactor     2.6620        4.1512       -.23571E-05   -.42390E-04
  14  Prefactor     .10202E-03    47.168       -.27029E-05** at limit **
  15  Prefactor     .10000E-03    21.071        .47282E-05** at limit **
  16  Prefactor     .10000E-03    1.0486       -.80571E-08** at limit **
  17  norm          .10000E-03    .94270       -.35990E-06** at limit **
  18  Normalizat    1.3839        .26136       -.33973E-05   -.75046E-05
  19  Prefactor     .95455        .11222        .31087E-05   -.33404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102114
  Prefactor  = 46.7561
  norm       = 7.08226
  Prefactor  = 20.7969
  norm       = 1.44061
  norm       = 1.90108
  norm       = 7.33389
  norm       = 3.96093
  norm       = 2.14129
  norm       = 0.698704
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.66203
  Prefactor  = 0.000102019
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.38387
  Prefactor  = 0.95455
 **********
 **   18 **HESSE 
 **********

 FCN=   9311.006     FROM HESSE     STATUS=OK           308 CALLS     1912 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10211E-03    95.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.756        92.637        .14661E-02   -1.4339    
   3  norm          7.0823        85.068        .37686E-02   -1.5176    
   4  Prefactor     20.797        26.512        .21955E-02   -1.4796    
   5  norm          1.4406        .27941        .48178E-02   -1.5468    
   6  norm          1.9011        1.8997        .75411E-02   -1.5432    
   7  norm          7.3339        6.2854        .37025E-02   -1.5166    
   8  norm          3.9609        7.0486        .50672E-02   -1.5310    
   9  norm          2.1413        2.5172        .70414E-02   -1.5415    
  10  norm          .69870        .14585        .35357E-02   -1.5541    
  11  Prefactor     .10000E-03    4.1882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6620        4.1752        .62455E-02   -1.5382    
  14  Prefactor     .10202E-03    87.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .93897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3839        .23509        .84859E-01   -.81096    
  19  Prefactor     .95455        .97993E-01    .45695E-01   -.94260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02599e-07
Minuit parameter uncertainties:
  1  0.0284321
  2  92.9237
  3  49.1778
  4  26.5269
  5  0.27941
  6  1.89975
  7  6.28597
  8  7.05008
  9  2.51731
  10  0.145847
  11  1.83861e-06
  12  0.000253467
  13  4.17564
  14  0.0266783
  15  0.000379487
  16  1.21546e-07
  17  3.73909e-07
  18  0.235275
  19  0.0980114
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.141e+00  2.517e+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.545e-01  9.801e-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.384e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 9.26e-06 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/220782/likelihoodResults_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.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) = 9310.92128597
delta logL = 0.0846743248367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9310.91665137
delta logL = 0.0893089266629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9202       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4279       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95608       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=   9310.917     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9216        65.840        .74969E-02    .38999E-03
   2  alpha         2.4298        2.8107        .41173        .42340E-04
   3  Normalizat    1.3746        .11022        .85094E-01    .16886E-04
   4  Prefactor     .95614        .36384E-01    .45716E-01    .36835E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92165
  alpha      = 2.42977
  Normalizat = 1.37457
  Prefactor  = 0.956145
 **********
 **   18 **HESSE 
 **********

 FCN=   9310.917     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9216        2.5241        .13946E-03   -1.5431    
   2  alpha         2.4298        1.1443        .28523E-01   -.28094E-01
   3  Normalizat    1.3746        .25498        .37675E-03   -.81367    
   4  Prefactor     .95614        .11183        .19358E-03   -.94206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05347e-11
Minuit parameter uncertainties:
  1  2.52425
  2  1.18862
  3  0.255213
  4  0.111859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220782': 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) = 9310.9166483
delta logL = 0.0893119921311

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.922e+00  2.524e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.430e+00  1.189e+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.561e-01  1.119e-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.375e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.43 +/- 1.19
Photon Flux (Free Index): 2.45e-08 +/- 3.57e-08
Energy Flux (Free Index): 8.65e-06 +/- 9.36e-06

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/220782/cmap_HighResolution_277689601_277948801_4FGL_J1512.2+0202_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='8.65e-06', photon_flux_error='1.74e-08', dlogl='8.93e-02', energy_flux='9.26e-06', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-11 09:42:20.086321', photon_index_error2='1.19', photon_index2='2.43', ts='1.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='9.36e-06', EG='1.38', time_epoch_completed='1631378540.09', return_code='0', job_id='220782', GAL2='0.96', EG2='1.37', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.57e-08', ts2='1.62', photon_index='1.97' WHERE bin_id='148' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 220782: <4FGL_J1512.2+0202_daily_bin148> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin148> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:31:38 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:31:39 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:31:39 2021
Terminated at Sat Sep 11 09:42:20 2021
Results reported at Sat Sep 11 09:42:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin148 228.07 2.0403 277689601 277948801 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 :                                   628.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            642 sec.

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

