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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1065
RA = 183.001, Dec = -23.4494
tmin = 515376001, tmax = 515635201
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='408790', job_status='RUN', time_executed='2021-09-05 03:56:45.724967', time_epoch_executed='1630839405.72' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408790/ft1_4FGL_J1212.0-2326_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408790/ft1_4FGL_J1212.0-2326_daily_bin1065.fits outfile=/scratch/kocevski/408790/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1065.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=515376001.0 tmax=515635201.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.51
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.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/408790/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1065.fits evtable="EVENTS" outfile="/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/408790/ltcube_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.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/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits
.....................!
real 11.75
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/408790/ltcube_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits outfile=/scratch/kocevski/408790/expmap_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.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/408790/ltcube_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits
.....................!
real 189.92
user 185.32
sys 4.03

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits outfile=/scratch/kocevski/408790/cmap_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.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=183.001 yref=-23.4494 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits outfile=/scratch/kocevski/408790/cmap_HighResolution_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.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=183.001 yref=-23.4494 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408790/Model_4FGL_J1212.0-2326_daily_bin1065.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/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits.....................!
real 54.79
user 53.36
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits', '/scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits', expMap='/scratch/kocevski/408790/expmap_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits', expCube='/scratch/kocevski/408790/ltcube_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408790/Model_4FGL_J1212.0-2326_daily_bin1065.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/408790/ft1_filtered_4FGL_J1212.0-2326_daily_bin1065.fits
Spacecraft file(s): /scratch/kocevski/408790/ft2_4FGL_J1212.0-2326_daily_bin1065.fits
Exposure map: /scratch/kocevski/408790/expmap_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits
Exposure cube: /scratch/kocevski/408790/ltcube_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408790/Model_4FGL_J1212.0-2326_daily_bin1065.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) = 6033.23870291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.240       1.0000         .10000E-03   10000.    
     7 'norm      '    18.883       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.849       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.250       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4284       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7029       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70906       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6033.234     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2698 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.494        16.195        .11668E-06    .18357E-04
   2  Prefactor     .10000E-03    40.367        .61510E-05** at limit **
   3  norm          .10000E-03    .50372        .38316E-07** at limit **
   4  Prefactor     .10000E-03    52.058       -.10687E-04** at limit **
   5  Prefactor     .10010E-03    5.9359       -.72150E-06** at limit **
   6  Prefactor     23.250        40.161        .76619E-05    .17115E-03
   7  norm          18.883        21.517        .84392E-07    .40234E-05
   8  Prefactor     23.855        20.468        .43051E-06    .84562E-04
   9  norm          .10000E-03    2.0870       -.11009E-07** at limit **
  10  Prefactor     3.7848        5.6202        .21582E-05   -.17242E-02
  11  Prefactor     .10000E-03    23.138        .16812E-05** at limit **
  12  Prefactor     .10000E-03    34.650       -.16727E-06** at limit **
  13  Prefactor     .10000E-03    11.749       -.17165E-07** at limit **
  14  Prefactor     .10000E-03    44.056        .47142E-05** at limit **
  15  Prefactor     9.9294        31.490       -.96545E-06   -.15840E-04
  16  Prefactor     .10000E-03    3.9358        .29064E-07** at limit **
  17  Prefactor     5.3377        2.4943        .66339E-08    .20897E-03
  18  Prefactor     31.250        16.944        .99518E-07   -.10866E-05
  19  norm          2.8150        1.5215        .34896E-07   -.92153E-04
  20  Prefactor     .10000E-03    29.945       -.70749E-05** at limit **
  21  norm          8.0271        8.1534        .37501E-06    .69959E-04
  22  Prefactor     7.4284        7.4054        .37452E-06    .88848E-04
  23  Normalizat    1.7027        .27770       -.57526E-06    .58891E-04
  24  Prefactor     .70916        .13108       -.66916E-06    .85874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4944
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100101
  Prefactor  = 23.2504
  norm       = 18.883
  Prefactor  = 23.8546
  norm       = 0.0001
  Prefactor  = 3.78483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.92943
  Prefactor  = 0.0001
  Prefactor  = 5.33772
  Prefactor  = 31.2502
  norm       = 2.81497
  Prefactor  = 0.000100002
  norm       = 8.02714
  Prefactor  = 7.42839
  Normalizat = 1.7027
  Prefactor  = 0.709156
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.234     FROM HESSE     STATUS=OK           401 CALLS     3099 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.494        16.224        .90716E-04   -1.4825    
   2  Prefactor     .10000E-03    40.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .72646        .10737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    44.509        .35317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.250        41.666        .83089E-04   -1.4743    
   7  norm          18.883        21.520        .92170E-04   -1.4839    
   8  Prefactor     23.855        20.601        .82023E-04   -1.4731    
   9  norm          .10000E-03    2.0898        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7848        8.7400        .10373E-02   -1.5319    
  11  Prefactor     .10000E-03    23.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9294        31.551        .12716E-03   -1.5078    
  16  Prefactor     .10000E-03    3.9629        .15043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3377        2.4940        .40763E-03   -1.5246    
  18  Prefactor     31.250        16.952        .71676E-04   -1.4589    
  19  norm          2.8150        1.5170        .66696E-04   -1.5372    
  20  Prefactor     .10000E-03    30.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0271        8.1522        .14151E-03   -1.5141    
  22  Prefactor     7.4284        7.4042        .14715E-03   -1.5163    
  23  Normalizat    1.7027        .33497        .31216E-03   -.72231    
  24  Prefactor     .70916        .15700        .21740E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04573e-09
Minuit parameter uncertainties:
  1  16.2281
  2  0.000426109
  3  7.03476e-07
  4  0.000806782
  5  0.00425025
  6  41.7186
  7  21.5285
  8  20.6074
  9  6.23211e-06
  10  8.74293
  11  7.57777e-05
  12  2.77593e-05
  13  6.90115e-06
  14  0.000321588
  15  31.6042
  16  3.36092e-06
  17  2.494
  18  16.9551
  19  1.51701
  20  0.000431263
  21  8.15334
  22  7.40508
  23  0.335418
  24  0.1571
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.901e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.092e-01  1.571e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.703e+00  3.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408790/likelihoodResults_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.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) = 6033.23448247
delta logL = -0.000404605583753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6033.23407837
delta logL = -5.05159732711e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8838       1.0000          .0000       10.000    
     3 'Normalizat'    1.7024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6033.234     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9184        .90712E-02** at limit **
   2  Index         1.8705        7.2102        .50000        .85368E-05
   3  Normalizat    1.7027        .44281E-02    .70565E-01    .32777E-06
   4  Prefactor     .70916        .21122E-02    .42525E-01    .62209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87049
  Normalizat = 1.7027
  Prefactor  = 0.709156
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.234     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8705        8.7535        .50000       -.67629    
   3  Normalizat    1.7027        .14125E-01    .31216E-03   -.72231    
   4  Prefactor     .70916        .67401E-02    .21740E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00425e-08
Minuit parameter uncertainties:
  1  7.96817e-06
  2  111.778
  3  0.0141255
  4  0.00674013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408790': 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): 102
logL (Free Index) = 6033.2340778
delta logL = 6.09252310824e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.968e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.870e+00  1.118e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.092e-01  6.740e-03  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.703e+00  1.413e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/408790/cmap_HighResolution_515376001_515635201_4FGL_J1212.0-2326_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-05 04:07:52.660711', job_id='408790', GAL2='0.71', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1630840072.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='6.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1065' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:07:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 408790: <4FGL_J1212.0-2326_daily_bin1065> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1065> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:55 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:55:57 2021
Terminated at Sun Sep  5 04:07:53 2021
Results reported at Sun Sep  5 04:07:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1065 183.001 -23.4494 515376001 515635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

