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

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

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

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

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

number of points = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin164
RA = 228.07, Dec = 2.0403
tmin = 281836801, tmax = 282096001
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='220807', job_status='RUN', time_executed='2021-09-11 09:33:18.571718', time_epoch_executed='1631377998.57' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220807/ft1_4FGL_J1512.2+0202_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220807/ft2_4FGL_J1512.2+0202_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220807/ft1_4FGL_J1512.2+0202_daily_bin164.fits outfile=/scratch/kocevski/220807/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin164.fits ra=228.07 dec=2.0403 rad=12.0 tmin=281836801.0 tmax=282096001.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.97
user 3.75
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220807/ft1_filtered_4FGL_J1512.2+0202_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/220807/ft2_4FGL_J1512.2+0202_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/220807/ltcube_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.fits outfile=/scratch/kocevski/220807/expmap_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.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/220807/ltcube_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.fits
.....................!
real 190.78
user 184.93
sys 5.52

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/220807/ft1_filtered_4FGL_J1512.2+0202_daily_bin164.fits scfile=/scratch/kocevski/220807/ft2_4FGL_J1512.2+0202_daily_bin164.fits outfile=/scratch/kocevski/220807/cmap_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220807/ft1_filtered_4FGL_J1512.2+0202_daily_bin164.fits scfile=/scratch/kocevski/220807/ft2_4FGL_J1512.2+0202_daily_bin164.fits outfile=/scratch/kocevski/220807/cmap_HighResolution_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.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/220807/ft1_filtered_4FGL_J1512.2+0202_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/220807/ft2_4FGL_J1512.2+0202_daily_bin164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/220807/Model_4FGL_J1512.2+0202_daily_bin164.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/220807/ft1_filtered_4FGL_J1512.2+0202_daily_bin164.fits.....................!
real 69.07
user 67.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91252       1.0000         .10000E-03   10000.    
     6 'norm      '    .86905E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2060       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6117       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0953       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59105E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4101       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.9703       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8132.555     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1674 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    27.002       -.34947E-05** at limit **
   2  Prefactor     .10000E-03    25.107        .18204E-05** at limit **
   3  norm          4.7829        14.654        .51324E-07   -.83108E-04
   4  Prefactor     .10000E-03    9.8841       -.87749E-08** at limit **
   5  norm          .91255        .25902        .85366E-08   -.35982E-03
   6  norm          .10007E-03    1.1003        .31405E-06** at limit **
   7  norm          3.2060        4.1214       -.30236E-07   -.52299E-04
   8  norm          2.6132        5.9701        .16232E-05    .18629E-03
   9  norm          .10000E-03    2.2422        .23383E-08** at limit **
  10  norm          1.2075        .19034       -.10200E-07   -.48237E-03
  11  Prefactor     .10000E-03    7.9095        .29141E-07** at limit **
  12  Prefactor     .10000E-03    68.105       -.19549E-05** at limit **
  13  Prefactor     1.0939        4.6915        .19400E-05   -.56450E-03
  14  Prefactor     .10000E-03    15.531       -.40949E-06** at limit **
  15  Prefactor     .10000E-03    40.538        .24069E-05** at limit **
  16  Prefactor     .73892E-01    2.3102       -.41392E-06    .25506E-03
  17  norm          2.4090        3.7169        .24258E-06   -.20763E-03
  18  Normalizat    1.9702        .25468       -.39369E-06   -.10030E-03
  19  Prefactor     .82207        .10850       -.36204E-06   -.10836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  norm       = 4.78292
  Prefactor  = 0.0001
  norm       = 0.912551
  norm       = 0.00010007
  norm       = 3.20598
  norm       = 2.61316
  norm       = 0.0001
  norm       = 1.2075
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.09391
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0738924
  norm       = 2.40899
  Normalizat = 1.97021
  Prefactor  = 0.822067
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.555     FROM HESSE     STATUS=OK           270 CALLS     1944 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    28.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7829        14.711        .18419E-03   -1.5271    
   4  Prefactor     .10000E-03    9.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .91255        .25990        .23329E-04   -1.5517    
   6  norm          .10007E-03    21.118        .17630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2060        4.1168        .20264E-03   -1.5350    
   8  norm          2.6132        6.0050        .25241E-03   -1.5385    
   9  norm          .10000E-03    2.2574        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2075        .19033        .14783E-04   -1.5488    
  11  Prefactor     .10000E-03    7.9220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0939        6.5563        .42589E-03   -1.5499    
  14  Prefactor     .10000E-03    15.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .73892E-01    45.480        .25438E-02   -1.5654    
  17  norm          2.4090        3.7207        .20914E-03   -1.5398    
  18  Normalizat    1.9702        .29078        .34352E-03   -.65299    
  19  Prefactor     .82207        .12527        .21501E-03   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43569e-09
Minuit parameter uncertainties:
  1  0.000855215
  2  0.000446238
  3  14.7223
  4  5.6404e-07
  5  0.259898
  6  0.00243924
  7  4.11714
  8  6.00635
  9  7.20291e-07
  10  0.190333
  11  1.39934e-06
  12  0.000713942
  13  5.35677
  14  6.66859e-05
  15  0.000706357
  16  3.66673
  17  3.72103
  18  0.291043
  19  0.125313
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  7.203e-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:  8.221e-01  1.253e-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.970e+00  2.910e-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: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220807/likelihoodResults_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.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) = 8132.55707747
delta logL = -0.0021044909945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8132.55497367
delta logL = -6.9122233981e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9948       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82206       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=   8132.555     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0370        .90712E-02** at limit **
   2  alpha         2.0228        3.5079        .42267       -.59016E-04
   3  Normalizat    1.9702        .24565        .77645E-01   -.24700E-03
   4  Prefactor     .82207        .10653        .44004E-01   -.54887E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.02277
  Normalizat = 1.9702
  Prefactor  = 0.822068
 **********
 **   18 **HESSE 
 **********

 FCN=   8132.555     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4336        .13577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0228        3.4264        .50000       -.19207    
   3  Normalizat    1.9702        .28191        .34352E-03   -.65299    
   4  Prefactor     .82207        .12234        .21501E-03   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92545e-09
Minuit parameter uncertainties:
  1  0.000190046
  2  2.47322
  3  0.282145
  4  0.122384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220807': 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) = 8132.55497168
delta logL = 1.30103126139e-06

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  1.900e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.023e+00  2.473e+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:  8.221e-01  1.224e-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.970e+00  2.821e-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/220807/cmap_HighResolution_281836801_282096001_4FGL_J1512.2+0202_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-11 09:43:13.861516', job_id='220807', GAL2='0.82', fit_tolerance='1e-08', EG2='1.97', EG='1.97', time_epoch_completed='1631378593.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='164' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:43:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 220807: <4FGL_J1512.2+0202_daily_bin164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin164 228.07 2.0403 281836801 282096001 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 :                                   593.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            694 sec.

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

