/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7513
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1437
RA = 183.001, Dec = -23.4494
tmin = 611798401, tmax = 612057601
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='410488', job_status='RUN', time_executed='2021-09-05 04:02:17.502504', time_epoch_executed='1630839737.5' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410488/ft1_4FGL_J1212.0-2326_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410488/ft1_4FGL_J1212.0-2326_daily_bin1437.fits outfile=/scratch/kocevski/410488/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1437.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=611798401.0 tmax=612057601.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.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.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/410488/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/410488/ltcube_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.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/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/410488/ltcube_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.fits outfile=/scratch/kocevski/410488/expmap_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.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/410488/ltcube_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.fits
.....................!
real 190.32
user 185.58
sys 4.37

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/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits outfile=/scratch/kocevski/410488/cmap_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits outfile=/scratch/kocevski/410488/cmap_HighResolution_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/410488/ft2_4FGL_J1212.0-2326_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410488/Model_4FGL_J1212.0-2326_daily_bin1437.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/410488/ft1_filtered_4FGL_J1212.0-2326_daily_bin1437.fits.....................!
real 51.05
user 49.61
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.034       1.0000         .10000E-03   10000.    
     9 'norm      '    .98308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7536       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .99290E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3108       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4420       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79041       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=   5572.003     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2773 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5370        21.822        .43286E-06   -.14820E-04
   2  Prefactor     .10000E-03    48.750       -.37931E-05** at limit **
   3  norm          .10000E-03    .71582        .17029E-07** at limit **
   4  Prefactor     33.394        36.475        .32384E-05    .72139E-04
   5  Prefactor     .10000E-03    3.3887        .58234E-07** at limit **
   6  Prefactor     .10000E-03    13.165        .68791E-06** at limit **
   7  norm          .10000E-03    24.110       -.20703E-05** at limit **
   8  Prefactor     27.050        23.716       -.49557E-05   -.27993E-03
   9  norm          .97910        8.4637        .78539E-05   -.22933E-03
  10  Prefactor     .10000E-03    2.8022        .43268E-06** at limit **
  11  Prefactor     .10000E-03    36.281        .34920E-05** at limit **
  12  Prefactor     10.649        26.200        .15063E-05    .57231E-05
  13  Prefactor     .10000E-03    11.266        .81943E-07** at limit **
  14  Prefactor     65.438        54.401        .35691E-05    .32435E-04
  15  Prefactor     19.269        30.080       -.15388E-05   -.59442E-04
  16  Prefactor     8.4898        5.9681       -.77125E-09   -.28206E-04
  17  Prefactor     8.7543        2.9835        .15455E-07   -.15667E-04
  18  Prefactor     .10004E-03    7.0915        .76957E-06** at limit **
  19  norm          1.1127        .93508        .29440E-07   -.54011E-04
  20  Prefactor     .10000E-03    39.811        .21582E-05** at limit **
  21  norm          .10000E-03    3.1922       -.73329E-07** at limit **
  22  Prefactor     3.3082        6.0626        .37520E-06   -.14350E-03
  23  Normalizat    1.4420        .27097       -.15736E-05   -.12035E-03
  24  Prefactor     .79045        .12847        .67644E-07   -.31490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.53699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.3938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.05
  norm       = 0.979096
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.6487
  Prefactor  = 0.0001
  Prefactor  = 65.4375
  Prefactor  = 19.2686
  Prefactor  = 8.48982
  Prefactor  = 8.75426
  Prefactor  = 0.000100036
  norm       = 1.11266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.30819
  Normalizat = 1.44198
  Prefactor  = 0.790452
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.003     FROM HESSE     STATUS=OK           401 CALLS     3174 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5370        21.840        .14607E-03   -1.5159    
   2  Prefactor     .10000E-03    48.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1723        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.394        36.670        .34684E-03   -1.4552    
   5  Prefactor     .10000E-03    3.4086        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.050        23.966        .77049E-04   -1.4667    
   9  norm          .97910        8.7534        .32749E-03   -1.5510    
  10  Prefactor     .10000E-03    5.8571        .24063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.649        26.059        .12284E-03   -1.5055    
  13  Prefactor     .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     65.438        54.625        .24812E-03   -1.4088    
  15  Prefactor     19.269        30.140        .91213E-04   -1.4830    
  16  Prefactor     8.4898        5.9723        .13758E-03   -1.5125    
  17  Prefactor     8.7543        2.9852        .72415E-04   -1.5116    
  18  Prefactor     .10004E-03    39.537        .38342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1127        .93688        .63687E-04   -1.5497    
  20  Prefactor     .10000E-03    39.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1998        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3082        6.0390        .22248E-03   -1.5344    
  23  Normalizat    1.4420        .32358        .31710E-03   -.79422    
  24  Prefactor     .79045        .15432        .19817E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40013e-09
Minuit parameter uncertainties:
  1  21.8633
  2  0.000239478
  3  8.53853e-06
  4  36.6944
  5  4.17976e-06
  6  2.44452e-05
  7  7.70756e-05
  8  23.9746
  9  5.85591
  10  0.000172722
  11  8.09652e-05
  12  26.0863
  13  7.77012e-05
  14  54.6669
  15  30.1643
  16  5.9727
  17  2.9852
  18  0.00238896
  19  0.936888
  20  0.000154575
  21  1.76714e-06
  22  6.04015
  23  0.324044
  24  0.154404
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.770e-05  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.905e-01  1.544e-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.442e+00  3.240e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410488/likelihoodResults_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.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) = 5572.00294441
delta logL = -0.000421350834586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5572.002523
delta logL = 6.52662492939e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8718       1.0000          .0000       10.000    
     3 'Normalizat'    1.4420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79046       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.

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

 FCN=   5572.003     FROM MIGRAD    STATUS=FAILED        93 CALLS      246 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    93.339        .18142E-02** at limit **
   2  Index         1.8017        7.4324        .50000        .14740E-04
   3  Normalizat    1.4420        .18815E-01    .31710E-03    .44922E-04
   4  Prefactor     .79045        .90686E-02    .19817E-03    .83241E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5572.003     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      371 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    93.339        .44284E-03** at limit **
   2  Index         1.8003        7.4324        .49179E-03    .14740E-04
   3  Normalizat    1.4420        .18815E-01    .20961E-05    .44922E-04
   4  Prefactor     .79045        .90686E-02    .19795E-05    .83241E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5572.003     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      428 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    178.33        .36285E-02** at limit **
   2  Index         1.3158        5.1000        .50000        .26421E-07
   3  Normalizat    1.4420        .23040E-01    .12684E-04   -.44815E-04
   4  Prefactor     .79045        .11105E-01    .79269E-05   -.47042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.31582
  Normalizat = 1.44198
  Prefactor  = 0.790453
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.003     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      457 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    864.01        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3158        5.4688        .50000       -.82838    
   3  Normalizat    1.4420        .54147E-01    .25368E-05   -.79422    
   4  Prefactor     .79045        .26100E-01    .15854E-05   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15503e-10
Minuit parameter uncertainties:
  1  0.000126514
  2  1762.03
  3  0.0541489
  4  0.0261006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410488': 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) = 5572.00252176
delta logL = 1.30002445076e-06

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.265e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.316e+00  1.762e+03  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.905e-01  2.610e-02  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.442e+00  5.415e-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/410488/cmap_HighResolution_611798401_612057601_4FGL_J1212.0-2326_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-05 04:14:46.278554', job_id='410488', GAL2='0.79', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630840486.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1437' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 410488: <4FGL_J1212.0-2326_daily_bin1437> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1437> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:01:03 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:01:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:01:04 2021
Terminated at Sun Sep  5 04:14:47 2021
Results reported at Sun Sep  5 04:14:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1437 183.001 -23.4494 611798401 612057601 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 :                                   649.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

