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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin814
RA = 228.07, Dec = 2.0403
tmin = 450316801, tmax = 450576001
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='224079', job_status='RUN', time_executed='2021-09-11 09:43:19.037664', time_epoch_executed='1631378599.04' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224079/ft1_4FGL_J1512.2+0202_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224079/ft1_4FGL_J1512.2+0202_daily_bin814.fits outfile=/scratch/kocevski/224079/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin814.fits ra=228.07 dec=2.0403 rad=12.0 tmin=450316801.0 tmax=450576001.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.01
user 3.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.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/224079/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/224079/ft1_filtered_4FGL_J1512.2+0202_daily_bin814.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/224079/ft1_filtered_4FGL_J1512.2+0202_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/224079/ltcube_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.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/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits
.....................!
real 12.00
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224079/ft1_filtered_4FGL_J1512.2+0202_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/224079/ltcube_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.fits outfile=/scratch/kocevski/224079/expmap_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.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/224079/ltcube_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.fits
.....................!
real 190.17
user 185.30
sys 4.53

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/224079/ft1_filtered_4FGL_J1512.2+0202_daily_bin814.fits scfile=/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits outfile=/scratch/kocevski/224079/cmap_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224079/ft1_filtered_4FGL_J1512.2+0202_daily_bin814.fits scfile=/scratch/kocevski/224079/ft2_4FGL_J1512.2+0202_daily_bin814.fits outfile=/scratch/kocevski/224079/cmap_HighResolution_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.584       1.0000         .10000E-03   10000.    
     5 'norm      '    .35707       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5978       1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .30560E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1427       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8823       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .70790       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=   10321.65     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1651 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.600       -.23781E-05** at limit **
   2  Prefactor     .10000E-03    45.088        .24745E-06** at limit **
   3  norm          .10000E-03    24.631       -.44654E-05** at limit **
   4  Prefactor     20.609        20.922       -.22267E-05   -.82334E-02
   5  norm          .35692        .18612       -.70074E-08    .19136E-04
   6  norm          1.5975        1.9393       -.37431E-06    .59789E-04
   7  norm          .10000E-03    2.1453        .61888E-06** at limit **
   8  norm          .80146E-01    53.720        .13639E-04    .15447E-03
   9  norm          .10000E-03    2.1790       -.27340E-06** at limit **
  10  norm          4.1405        .31903        .13187E-06   -.72462E-03
  11  Prefactor     20.230        17.269       -.32168E-05    .11392E-01
  12  Prefactor     .21300E-03    1429.5        .45529E-04** at limit **
  13  Prefactor     11.122        6.2149        .12614E-05   -.11863E-03
  14  Prefactor     .10000E-03    8.9654        .13166E-05** at limit **
  15  Prefactor     .10000E-03    11.929       -.24645E-05** at limit **
  16  Prefactor     .10000E-03    2.3983       -.98824E-06** at limit **
  17  norm          .10000E-03    2.5970        .89357E-06** at limit **
  18  Normalizat    1.8827        .27271       -.32264E-05    .40884E-04
  19  Prefactor     .70775        .11198       -.35412E-05    .56750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.6089
  norm       = 0.356917
  norm       = 1.59751
  norm       = 0.0001
  norm       = 0.0801459
  norm       = 0.0001
  norm       = 4.14054
  Prefactor  = 20.2297
  Prefactor  = 0.000213
  Prefactor  = 11.1215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.8827
  Prefactor  = 0.707747
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.65     FROM HESSE     STATUS=OK           316 CALLS     1967 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    24.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.609        22.208        .22070E-02   -1.4800    
   5  norm          .35692        .19118        .68078E-02   -1.5588    
   6  norm          1.5975        1.9611        .83869E-02   -1.5455    
   7  norm          .10000E-03    2.1403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .80146E-01    3.1951        .63861E-01   -1.5651    
   9  norm          .10000E-03    2.1359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1405        .41280        .31035E-02   -1.5301    
  11  Prefactor     20.230        37.923        .22330E-02   -1.4808    
  12  Prefactor     .21300E-03    29.890        .16413       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.122        6.2040        .30034E-02   -1.5041    
  14  Prefactor     .10000E-03    8.9406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.8827        .23732        .82144E-01   -.67524    
  19  Prefactor     .70775        .97451E-01    .42506E-01   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09329e-06
Minuit parameter uncertainties:
  1  0.00040514
  2  1.86888e-06
  3  0.000381735
  4  22.2172
  5  0.191183
  6  1.96122
  7  1.65413e-07
  8  1.01151
  9  2.638e-07
  10  0.412796
  11  37.9685
  12  0.116292
  13  6.20437
  14  2.15232e-05
  15  8.44733e-05
  16  6.44161e-07
  17  1.69123e-06
  18  0.237463
  19  0.0974741
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  2.638e-07  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:  7.077e-01  9.747e-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.883e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/224079/likelihoodResults_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.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) = 10321.6558597
delta logL = -0.00218368418064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10321.5824787
delta logL = 0.0711973348443

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10321.58     FROM MIGRAD    STATUS=FAILED        91 CALLS      349 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10277        31.120        .64456E-03    .15549E-01
   2  alpha         4.1584        3.9341        .65633E-01    .39779E-03
   3  Normalizat    1.8558        .13814        .36545E-03   -.23829E-04
   4  Prefactor     .71281        .59317E-01    .23565E-03   -.92627E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10321.58     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      444 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10277        31.120        .54186E-04    .15549E-01
   2  alpha         4.1584        3.9341        .55047E-02    .39779E-03
   3  Normalizat    1.8558        .13814        .11127E-03   -.23829E-04
   4  Prefactor     .71281        .59317E-01    .57954E-04   -.92627E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10321.58     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      484 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10277        35.898        .12891E-03   -.34253E-03
   2  alpha         4.1584        3.0231        .13127E-01   -.37241E-05
   3  Normalizat    1.8558        .23572        .14618E-04   -.21776E-04
   4  Prefactor     .71281        .10134        .94261E-05   -.53068E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.102774
  alpha      = 4.15843
  Normalizat = 1.85585
  Prefactor  = 0.712807
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.58     FROM HESSE     STATUS=OK            27 CALLS      511 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10277        1.9419        .51564E-05   -1.5644    
   2  alpha         4.1584        4.5700        .52506E-03    .72532    
   3  Normalizat    1.8558        .26936        .29236E-05   -.68215    
   4  Prefactor     .71281        .11227        .18852E-05   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04337e-11
Minuit parameter uncertainties:
  1  0.893088
  2  4.52297
  3  0.269581
  4  0.112307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224079': 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) = 10321.5824785
delta logL = 0.0711975221056

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.028e-01  8.931e-01  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  4.158e+00  4.523e+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:  7.128e-01  1.123e-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.856e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 228.070 2.040

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/224079/cmap_HighResolution_450316801_450576001_4FGL_J1512.2+0202_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-11 09:55:10.510612', job_id='224079', GAL2='0.71', fit_tolerance='1e-08', EG2='1.86', EG='1.88', time_epoch_completed='1631379310.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='7.12e-02', ts2='0.15', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='814' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 224079: <4FGL_J1512.2+0202_daily_bin814> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin814> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 09:41:14 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:41:15 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:41:15 2021
Terminated at Sat Sep 11 09:55:11 2021
Results reported at Sat Sep 11 09:55:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin814 228.07 2.0403 450316801 450576001 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 :                                   709.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

