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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1015
RA = 183.001, Dec = -23.4494
tmin = 502416001, tmax = 502675201
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='408717', job_status='RUN', time_executed='2021-09-05 03:58:55.398932', time_epoch_executed='1630839535.4' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408717/ft1_4FGL_J1212.0-2326_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408717/ft1_4FGL_J1212.0-2326_daily_bin1015.fits outfile=/scratch/kocevski/408717/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1015.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=502416001.0 tmax=502675201.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/408717/ltcube_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.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/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits
.....................!
real 11.75
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/408717/ltcube_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits outfile=/scratch/kocevski/408717/expmap_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.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/408717/ltcube_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits
.....................!
real 189.93
user 184.92
sys 4.64

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/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits scfile=/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits outfile=/scratch/kocevski/408717/cmap_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.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.66
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits scfile=/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits outfile=/scratch/kocevski/408717/cmap_HighResolution_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.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.64
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408717/Model_4FGL_J1212.0-2326_daily_bin1015.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/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits.....................!
real 60.15
user 58.05
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits', '/scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits', expMap='/scratch/kocevski/408717/expmap_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits', expCube='/scratch/kocevski/408717/ltcube_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408717/Model_4FGL_J1212.0-2326_daily_bin1015.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/408717/ft1_filtered_4FGL_J1212.0-2326_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/408717/ft2_4FGL_J1212.0-2326_daily_bin1015.fits
Exposure map: /scratch/kocevski/408717/expmap_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits
Exposure cube: /scratch/kocevski/408717/ltcube_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408717/Model_4FGL_J1212.0-2326_daily_bin1015.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) = 6942.06286806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.640       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7414       1.0000         .10000E-03   10000.    
     9 'norm      '    13.241       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3385       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30273       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.527       1.0000         .10000E-03   10000.    
    21 'norm      '    18.498       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9203       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5141       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85294       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=   6942.059     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     3132 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9827        11.410        .33432E-02    .52779E-04
   2  Prefactor     31.640        44.522        .17808E-02    .60481E-04
   3  norm          3.1926        1.7038        .56693E-02    .24672E-03
   4  Prefactor     .10000E-03    13.310        .90712E-02** at limit **
   5  Prefactor     .10000E-03    4.8033        .90712E-02** at limit **
   6  Prefactor     16.589        18.683        .24584E-02   -.13846E-04
   7  norm          6.0206        13.019        .40910E-02    .98005E-03
   8  Prefactor     4.7391        28.319        .46196E-02    .91749E-04
   9  norm          13.242        8.3569        .27519E-02    .65983E-03
  10  Prefactor     2.7210        3.2058        .61722E-02    .52955E-04
  11  Prefactor     .10000E-03    27.621        .90712E-02** at limit **
  12  Prefactor     .10000E-03    8.6980        .90712E-02** at limit **
  13  Prefactor     43.288        25.751        .15235E-02    .87020E-03
  14  Prefactor     .10000E-03    61.643        .90712E-02** at limit **
  15  Prefactor     .10000E-03    13.709        .11508    ** at limit **
  16  Prefactor     5.3381        6.8795        .43485E-02   -.86966E-03
  17  Prefactor     3.9081        2.3444        .51022E-02    .13724E-03
  18  Prefactor     .10000E-03    20.023        .90712E-02** at limit **
  19  norm          .30275        .73459        .25393E-01    .19826E-02
  20  Prefactor     59.528        74.721        .13000E-02   -.17372E-03
  21  norm          18.499        9.1756        .23281E-02   -.30922E-03
  22  Prefactor     1.9195        5.5790        .74966E-02    .83199E-03
  23  Normalizat    1.5142        .24849        .74042E-01   -.33164E-04
  24  Prefactor     .85289        .12057        .44402E-01   -.73806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98267
  Prefactor  = 31.6397
  norm       = 3.19263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5886
  norm       = 6.02056
  Prefactor  = 4.73913
  norm       = 13.2422
  Prefactor  = 2.72102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.2878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33805
  Prefactor  = 3.90806
  Prefactor  = 0.0001
  norm       = 0.302747
  Prefactor  = 59.5276
  norm       = 18.4991
  Prefactor  = 1.91954
  Normalizat = 1.51418
  Prefactor  = 0.852892
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.059     FROM HESSE     STATUS=OK           413 CALLS     3545 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9827        11.409        .13373E-03   -1.5108    
   2  Prefactor     31.640        44.524        .71234E-04   -1.4582    
   3  norm          3.1926        1.7013        .76048E-04   -1.5351    
   4  Prefactor     .10000E-03    13.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9539        .35639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.589        18.677        .98334E-04   -1.4893    
   7  norm          6.0206        13.013        .81821E-03   -1.5217    
   8  Prefactor     4.7391        27.131        .18479E-03   -1.5273    
   9  norm          13.242        8.1932        .11008E-03   -1.4980    
  10  Prefactor     2.7210        3.1995        .15706E-03   -1.5378    
  11  Prefactor     .10000E-03    27.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.288        25.730        .60940E-04   -1.4391    
  14  Prefactor     .10000E-03    61.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.866        .10151       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3381        6.8730        .17394E-03   -1.5246    
  17  Prefactor     3.9081        2.3421        .93877E-04   -1.5313    
  18  Prefactor     .10000E-03    20.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .30275        .75068        .10582E-02   -1.5598    
  20  Prefactor     59.528        74.722        .52001E-04   -1.4163    
  21  norm          18.499        9.0875        .93122E-04   -1.4847    
  22  Prefactor     1.9195        5.4892        .29930E-03   -1.5431    
  23  Normalizat    1.5142        .29310        .32763E-03   -.77381    
  24  Prefactor     .85289        .14239        .20509E-03   -.97807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56168e-09
Minuit parameter uncertainties:
  1  11.4113
  2  44.5707
  3  1.70137
  4  3.3955e-05
  5  1.45901e-05
  6  18.684
  7  13.0186
  8  22.6938
  9  8.19389
  10  3.19971
  11  6.29629e-05
  12  6.20687e-06
  13  25.7367
  14  0.000165294
  15  0.000148816
  16  6.87406
  17  2.34213
  18  1.60004e-05
  19  0.750708
  20  74.84
  21  9.08818
  22  5.49064
  23  0.293428
  24  0.142447
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  4.329e+01  2.574e+01  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:  8.529e-01  1.424e-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.514e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.31
Ra Dec: 183.001 -23.449
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 5.29e-05 +/- 3.14e-05

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) = 6942.05014075
delta logL = 0.00929052876745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6942.03857215
delta logL = 0.0208591356877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.382       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9845       1.0000          .0000       10.000    
     3 'Normalizat'    1.5090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85350       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=   6942.039     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.382        438.41        .16174E-02    .41200E-03
   2  Index         1.9844        2.3909        .12921        .12398E-03
   3  Normalizat    1.5090        .14159        .74139E-01    .91433E-05
   4  Prefactor     .85350        .52235E-01    .44410E-01    .12001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3816
  Index      = 1.98441
  Normalizat = 1.50903
  Prefactor  = 0.853503
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.039     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.382        35.091        .64695E-04   -1.4468    
   2  Index         1.9844        .45164        .43938E-02   -.64740    
   3  Normalizat    1.5090        .28663        .32806E-03   -.77525    
   4  Prefactor     .85350        .13989        .20500E-03   -.97785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77157e-09
Minuit parameter uncertainties:
  1  35.1097
  2  0.452613
  3  0.286941
  4  0.139944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408717': 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) = 6942.03857211
delta logL = 0.0208591687269

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.838e+01  3.511e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.984e+00  4.526e-01  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:  8.535e-01  1.399e-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.509e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.34
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 1.98 +/- 0.45
Photon Flux (Free Index): 6.55e-08 +/- 5.18e-08
Energy Flux (Free Index): 4.71e-05 +/- 3.95e-05

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/408717/cmap_HighResolution_502416001_502675201_4FGL_J1212.0-2326_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='4.71e-05', photon_flux_error='3.48e-08', dlogl='2.09e-02', energy_flux='5.29e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-05 04:10:19.968296', photon_index_error2='0.45', photon_index2='1.98', ts='11.31', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='1.51', time_epoch_completed='1630840219.97', return_code='0', job_id='408717', GAL2='0.85', EG2='1.51', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='5.18e-08', ts2='11.34', photon_index='1.90' WHERE bin_id='1015' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 408717: <4FGL_J1212.0-2326_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1015> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:48 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:55:50 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:50 2021
Terminated at Sun Sep  5 04:10:20 2021
Results reported at Sun Sep  5 04:10:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1015 183.001 -23.4494 502416001 502675201 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

