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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin870
RA = 183.001, Dec = -23.4494
tmin = 464832001, tmax = 465091201
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='408444', job_status='RUN', time_executed='2021-09-05 03:58:53.413702', time_epoch_executed='1630839533.41' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408444/ft1_4FGL_J1212.0-2326_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408444/ft1_4FGL_J1212.0-2326_daily_bin870.fits outfile=/scratch/kocevski/408444/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin870.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=464832001.0 tmax=465091201.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.35
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/408444/ltcube_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.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/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/408444/ltcube_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.fits outfile=/scratch/kocevski/408444/expmap_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.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/408444/ltcube_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.fits
.....................!
real 191.64
user 186.17
sys 5.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits scfile=/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits outfile=/scratch/kocevski/408444/cmap_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits scfile=/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits outfile=/scratch/kocevski/408444/cmap_HighResolution_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/408444/ft2_4FGL_J1212.0-2326_daily_bin870.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408444/Model_4FGL_J1212.0-2326_daily_bin870.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/408444/ft1_filtered_4FGL_J1212.0-2326_daily_bin870.fits.....................!
real 62.29
user 59.88
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3506       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.517       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5018       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6385       1.0000         .10000E-03   10000.    
    21 'norm      '    21.854       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13559E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1411       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1680       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=   7080.927     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2717 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0341       -.12729E-06** at limit **
   2  Prefactor     2.3661        130.16        .46086E-04   -.24649E-04
   3  norm          4.2962        1.8473       -.33266E-06   -.30884E-03
   4  Prefactor     .10000E-03    17.726       -.46100E-05** at limit **
   5  Prefactor     .10000E-03    4.4362       -.29352E-07** at limit **
   6  Prefactor     18.520        25.807        .49418E-06    .16924E-04
   7  norm          .10000E-03    15.690       -.77154E-06** at limit **
   8  Prefactor     .10000E-03    7.9345       -.27577E-05** at limit **
   9  norm          .10000E-03    2.4271       -.14993E-06** at limit **
  10  Prefactor     .10000E-03    6.0377       -.34354E-05** at limit **
  11  Prefactor     .10000E-03    77.360        .41551E-04** at limit **
  12  Prefactor     17.432        38.200        .19855E-04    .10072E-03
  13  Prefactor     17.955        24.551        .73421E-05    .12519E-03
  14  Prefactor     .10001E-03    86.698       -.41240E-04** at limit **
  15  Prefactor     22.143        21.523       -.34746E-05    .12561E-04
  16  Prefactor     .10000E-03    3.5142       -.23037E-07** at limit **
  17  Prefactor     4.5017        2.4152       -.44649E-07    .71611E-05
  18  Prefactor     .10000E-03    6.7391        .41801E-05** at limit **
  19  norm          .10000E-03    .53792        .24447E-06** at limit **
  20  Prefactor     5.4165        619.93       -.88964E-03   -.30090E-04
  21  norm          21.844        12.125        .26041E-04    .77882E-03
  22  Prefactor     .10000E-03    4.7433        .49399E-05** at limit **
  23  Normalizat    1.1411        .26316        .23630E-05    .18692E-03
  24  Prefactor     1.1680        .13157        .89794E-06    .30773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.3661
  norm       = 4.29618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5203
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 17.4319
  Prefactor  = 17.955
  Prefactor  = 0.000100007
  Prefactor  = 22.1431
  Prefactor  = 0.0001
  Prefactor  = 4.50166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.41646
  norm       = 21.8444
  Prefactor  = 0.0001
  Normalizat = 1.14111
  Prefactor  = 1.16804
 **********
 **   18 **HESSE 
 **********

 FCN=   7080.927     FROM HESSE     STATUS=OK           395 CALLS     3112 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0364        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3661        129.93        .26736E-03   -1.5400    
   3  norm          4.2962        1.8454        .72004E-04   -1.5293    
   4  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4743        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.520        25.799        .93075E-04   -1.4847    
   7  norm          .10000E-03    15.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4447        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    77.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.432        38.039        .95969E-04   -1.4873    
  13  Prefactor     17.955        24.515        .94561E-04   -1.4860    
  14  Prefactor     .10001E-03    86.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.143        21.519        .85096E-04   -1.4766    
  16  Prefactor     .10000E-03    3.5329        .15400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5017        2.4141        .93112E-04   -1.5284    
  18  Prefactor     .10000E-03    6.7571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .56183        .12037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4165        648.56        .16917E-02   -1.5242    
  21  norm          21.844        11.705        .85681E-04   -1.4773    
  22  Prefactor     .10000E-03    14.502        .33369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1411        .30409        .38349E-03   -.88443    
  24  Prefactor     1.1680        .15265        .19016E-03   -.87321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43889e-09
Minuit parameter uncertainties:
  1  7.61083e-06
  2  35.1465
  3  1.84541
  4  1.01274e-05
  5  5.05325e-05
  6  25.8148
  7  2.87918e-05
  8  5.31559e-05
  9  2.18046e-05
  10  0.000327408
  11  0.000836279
  12  38.0914
  13  24.5285
  14  0.00152684
  15  21.5264
  16  4.06746e-06
  17  2.41418
  18  8.83085e-05
  19  1.99226e-05
  20  119.892
  21  11.7067
  22  5.71712e-05
  23  0.304557
  24  0.152704
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.796e+01  2.453e+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:  1.168e+00  1.527e-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.141e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408444/likelihoodResults_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.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) = 7080.30980618
delta logL = 0.617540578729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7080.30712672
delta logL = 0.620220041928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9014       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8559       1.0000          .0000       10.000    
     3 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1831       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=   7080.307     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      288 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8951        69.820        .51067E-02    .43831E-03
   2  Index         2.8569        2.2900        .77635E-01    .25438E-03
   3  Normalizat    1.0726        .97815E-01    .88928E-01    .14135E-04
   4  Prefactor     1.1832        .43363E-01    .35043E-01   -.12329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89508
  Index      = 2.85685
  Normalizat = 1.0726
  Prefactor  = 1.18325
 **********
 **   18 **HESSE 
 **********

 FCN=   7080.307     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8951        120.50        .12842E-03   -1.5313    
   2  Index         2.8569        3.4275        .40637E-02   -.44298    
   3  Normalizat    1.0726        .34867        .39384E-03   -.90636    
   4  Prefactor     1.1832        .16112        .18899E-03   -.86848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.95196e-07
Minuit parameter uncertainties:
  1  43.4247
  2  3.8912
  3  0.349424
  4  0.161191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408444': 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) = 7080.30712396
delta logL = 0.620222806726

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.895e+00  4.342e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.857e+00  3.891e+00  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:  1.183e+00  1.612e-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.073e+00  3.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 2.86 +/- 3.89
Photon Flux (Free Index): 9.26e-08 +/- 1.46e-07
Energy Flux (Free Index): 2.00e-05 +/- 2.61e-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/408444/cmap_HighResolution_464832001_465091201_4FGL_J1212.0-2326_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='2.00e-05', dlogl='6.20e-01', photon_flux2='9.26e-08', job_status='DONE', time_completed='2021-09-05 04:11:03.304176', photon_index_error2='3.89', photon_index2='2.86', ts='0.76', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.61e-05', EG='1.14', time_epoch_completed='1630840263.3', return_code='0', job_id='408444', GAL2='1.18', EG2='1.07', return_code2='102', photon_flux_error2='1.46e-07', ts2='2.03', photon_index='1.90' WHERE bin_id='870' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 408444: <4FGL_J1212.0-2326_daily_bin870> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin870 183.001 -23.4494 464832001 465091201 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 :                                   727.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

