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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin375
RA = 228.07, Dec = 2.0403
tmin = 336528001, tmax = 336787201
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='222300', job_status='RUN', time_executed='2021-09-11 09:39:37.497035', time_epoch_executed='1631378377.5' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222300/ft1_4FGL_J1512.2+0202_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222300/ft1_4FGL_J1512.2+0202_daily_bin375.fits outfile=/scratch/kocevski/222300/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin375.fits ra=228.07 dec=2.0403 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.84
user 5.57
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222300/ft1_filtered_4FGL_J1512.2+0202_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/222300/ltcube_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.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/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits
.....................!
real 11.59
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222300/ft1_filtered_4FGL_J1512.2+0202_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/222300/ltcube_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits outfile=/scratch/kocevski/222300/expmap_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.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/222300/ltcube_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits
.....................!
real 190.75
user 185.35
sys 5.04

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/222300/ft1_filtered_4FGL_J1512.2+0202_daily_bin375.fits scfile=/scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits outfile=/scratch/kocevski/222300/cmap_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222300/ft1_filtered_4FGL_J1512.2+0202_daily_bin375.fits', '/scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits', expMap='/scratch/kocevski/222300/expmap_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits', expCube='/scratch/kocevski/222300/ltcube_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222300/Model_4FGL_J1512.2+0202_daily_bin375.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/222300/ft1_filtered_4FGL_J1512.2+0202_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/222300/ft2_4FGL_J1512.2+0202_daily_bin375.fits
Exposure map: /scratch/kocevski/222300/expmap_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits
Exposure cube: /scratch/kocevski/222300/ltcube_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222300/Model_4FGL_J1512.2+0202_daily_bin375.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9050.84187406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17183E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31513       1.0000         .10000E-03   10000.    
     6 'norm      '    .60093       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4302       1.0000         .10000E-03   10000.    
     8 'norm      '    6.1085       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46435       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31328       1.0000         .10000E-03   10000.    
    17 'norm      '    .83731       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2748       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0296       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=   9050.781     FROM MIGRAD    STATUS=FAILED       713 CALLS     2012 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.477        .20607    ** at limit **
   2  Prefactor     .10000E-03    12.621        .18142E-02** at limit **
   3  norm          .10000E-03    7.4372        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.965        .18142E-02** at limit **
   5  norm          .31511        .16732        .27874E-04   -.58732E-04
   6  norm          .60121        2.0110        .23214E-03   -.23018E-04
   7  norm          1.4298        3.8567        .30373E-03   -.11229E-04
   8  norm          6.1077        4.9780        .16244E-03   -.95181E-05
   9  norm          .10000E-03    3.3448        .33406E-03** at limit **
  10  norm          .46433        .12967        .15088E-04    .42195E-04
  11  Prefactor     13.100        10.833        .11067E-03    .19928E-04
  12  Prefactor     19.655        24.447        .90281E-04    .68000E-05
  13  Prefactor     4.0717        3.8208        .85985E-03   -.11823E-03
  14  Prefactor     3.5638        56.599        .10753E-02   -.12603E-04
  15  Prefactor     .10000E-03    14.654        .18142E-02** at limit **
  16  Prefactor     .31120        5.6237        .21559E-02    .33276E-02
  17  norm          .83454        3.2062        .30982E-03   -.17026E-04
  18  Normalizat    1.2747        .26186        .37003E-03   -.16775E-03
  19  Prefactor     1.0297        .11549        .18101E-03   -.15166E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9050.781     FROM SIMPLEX   STATUS=UNCHANGED   1009 CALLS     3021 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.477        .38266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.621        .38518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.4372        .31811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.965        .47107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31511        .16732        .24300E-06   -1.5596    
   6  norm          .60121        2.0110        .24375E-06   -1.5553    
   7  norm          1.4298        3.8567        .24323E-06   -1.5469    
   8  norm          6.1077        4.9780        .23840E-06   -1.5214    
   9  norm          .10000E-03    3.3448        .19921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .46433        .12967        .24312E-06   -1.5572    
  11  Prefactor     13.100        10.833        .23449E-06   -1.4984    
  12  Prefactor     19.655        24.447        .23103E-06   -1.4821    
  13  Prefactor     4.0717        3.8208        .23739E-06   -1.5304    
  14  Prefactor     3.5638        56.599        .23076E-06   -1.5330    
  15  Prefactor     .10000E-03    14.654        .75404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31120        5.6237        .24327E-06   -1.5596    
  17  norm          .83454        3.2062        .24187E-06   -1.5525    
  18  Normalizat    1.2747        .26186        .13138E-06   -.84325    
  19  Prefactor     1.0297        .11549        .14278E-06   -.91746    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9050.781     FROM MIGRAD    STATUS=CONVERGED    265 CALLS     3286 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.743        .20200    ** at limit **
   2  Prefactor     .10000E-03    12.622        .36285E-03** at limit **
   3  norm          .10000E-03    7.4380        .36285E-03** at limit **
   4  Prefactor     .10000E-03    10.966        .36285E-03** at limit **
   5  norm          .31511        .16731        .11150E-05    .32629E-05
   6  norm          .60121        2.0102        .92856E-05    .14692E-05
   7  norm          1.4298        3.8566        .12149E-04    .37430E-06
   8  norm          6.1077        4.9774        .64977E-05    .69986E-06
   9  norm          .10000E-03    3.3449        .66812E-04** at limit **
  10  norm          .46433        .12967        .60352E-06    .24498E-05
  11  Prefactor     13.100        10.834        .44270E-05     .0000    
  12  Prefactor     19.655        24.443        .36112E-05     .0000    
  13  Prefactor     4.0717        3.8188        .34394E-04   -.46276E-05
  14  Prefactor     3.5638        56.392        .43011E-04   -.74009E-06
  15  Prefactor     .10000E-03    14.654        .36285E-03** at limit **
  16  Prefactor     .31122        5.6131        .43118E-03    .13984E-03
  17  norm          .83453        3.2018        .12393E-04   -.25686E-05
  18  Normalizat    1.2747        .26194        .14801E-04    .27651E-05
  19  Prefactor     1.0297        .11556        .36203E-04    .23866E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.315105
  norm       = 0.601206
  norm       = 1.42977
  norm       = 6.10765
  norm       = 0.0001
  norm       = 0.464326
  Prefactor  = 13.0995
  Prefactor  = 19.6546
  Prefactor  = 4.07171
  Prefactor  = 3.56383
  Prefactor  = 0.0001
  Prefactor  = 0.311221
  norm       = 0.834535
  Normalizat = 1.27469
  Prefactor  = 1.0297
 **********
 **   18 **HESSE 
 **********

 FCN=   9050.781     FROM HESSE     STATUS=OK           260 CALLS     3546 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.471        .20285       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.622        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.4380        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.966        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31511        .16731        .11150E-05   -1.5596    
   6  norm          .60121        2.0103        .18571E-05   -1.5553    
   7  norm          1.4298        3.8558        .24299E-05   -1.5469    
   8  norm          6.1077        4.9773        .64977E-05   -1.5214    
   9  norm          .10000E-03    3.3449        .13362E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .46433        .12967        .37126E-06   -1.5572    
  11  Prefactor     13.100        10.833        .44270E-05   -1.4984    
  12  Prefactor     19.655        24.442        .36112E-05   -1.4821    
  13  Prefactor     4.0717        3.8187        .13758E-05   -1.5304    
  14  Prefactor     3.5638        56.390        .86023E-05   -1.5330    
  15  Prefactor     .10000E-03    14.654        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31122        5.6071        .86236E-04   -1.5596    
  17  norm          .83453        3.2019        .24786E-05   -1.5525    
  18  Normalizat    1.2747        .26188        .29603E-05   -.84325    
  19  Prefactor     1.0297        .11556        .72405E-05   -.91746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64114e-14
Minuit parameter uncertainties:
  1  0.000240855
  2  2.98166e-07
  3  2.14369e-07
  4  3.40852e-07
  5  0.167311
  6  2.01057
  7  3.85646
  8  4.97768
  9  1.75786e-08
  10  0.129669
  11  10.835
  12  24.4541
  13  3.8189
  14  28.3837
  15  9.56989e-09
  16  2.64187
  17  3.20251
  18  0.262149
  19  0.115591
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.030e+00  1.156e-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.275e+00  2.621e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222300/likelihoodResults_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.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) = 9050.78257448
delta logL = -0.00142687307743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9050.78113436
delta logL = 1.3253540601e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0297       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=   9050.761     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      336 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70655E-02    1.3013        .48770E-02    .45379E-02
   2  alpha         5.0000        4.2371        .43418    ** at limit **
   3  Normalizat    1.2616        .50763E-01    .83955E-01   -.66820E-03
   4  Prefactor     1.0330        .21675E-01    .41283E-01   -.10702E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00706555
  alpha      = 5
  Normalizat = 1.26156
  Prefactor  = 1.033
 **********
 **   18 **HESSE 
 **********

 FCN=   9050.761     FROM HESSE     STATUS=OK            33 CALLS      369 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70655E-02    .63056E-01    .28283E-03   -1.5691    
   2  alpha         5.0000        3.8627        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2616        .26399        .37170E-03   -.84721    
   4  Prefactor     1.0330        .11545        .18076E-03   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29935e-09
Minuit parameter uncertainties:
  1  0.0419151
  2  2.41494e-07
  3  0.264269
  4  0.115474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222300': 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) = 9050.76094783
delta logL = 0.0201997842014

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.033e+00  1.155e-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.262e+00  2.643e-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/222300/cmap_HighResolution_336528001_336787201_4FGL_J1512.2+0202_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-11 09:52:47.162328', job_id='222300', GAL2='1.03', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1631379167.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.02e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='375' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 222300: <4FGL_J1512.2+0202_daily_bin375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin375 228.07 2.0403 336528001 336787201 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 :                                   784.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

