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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1085
RA = 183.001, Dec = -23.4494
tmin = 520560001, tmax = 520819201
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='408810', job_status='RUN', time_executed='2021-09-05 03:59:26.541968', time_epoch_executed='1630839566.54' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408810/ft1_4FGL_J1212.0-2326_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408810/ft1_4FGL_J1212.0-2326_daily_bin1085.fits outfile=/scratch/kocevski/408810/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1085.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.27
user 5.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.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/408810/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.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/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/408810/ltcube_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.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/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits
.....................!
real 11.86
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/408810/ltcube_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.fits outfile=/scratch/kocevski/408810/expmap_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.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/408810/ltcube_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.fits
.....................!
real 192.39
user 187.17
sys 4.82

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/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits outfile=/scratch/kocevski/408810/cmap_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits outfile=/scratch/kocevski/408810/cmap_HighResolution_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/408810/ft2_4FGL_J1212.0-2326_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408810/Model_4FGL_J1212.0-2326_daily_bin1085.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/408810/ft1_filtered_4FGL_J1212.0-2326_daily_bin1085.fits....................!
real 46.40
user 45.00
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.006       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94650E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    38.313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.508       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12456E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1225       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
    19 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13278E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72101       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.717       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7238       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83001       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=   4951.773     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2714 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6314        .45631E-07** at limit **
   2  Prefactor     31.006        37.893       -.34781E-07    .35430E-07
   3  norm          .10000E-03    .59819        .32493E-07** at limit **
   4  Prefactor     11.803        43.515       -.77316E-06   -.47436E-04
   5  Prefactor     .10001E-03    7.4461        .55959E-06** at limit **
   6  Prefactor     .10000E-03    16.195       -.75074E-08** at limit **
   7  norm          38.305        35.782       -.12309E-08   -.18597E-04
   8  Prefactor     .10000E-03    7.0235        .72275E-07** at limit **
   9  norm          .10000E-03    2.2909        .76467E-07** at limit **
  10  Prefactor     2.8989        7.9126       -.38139E-06   -.39005E-04
  11  Prefactor     .10000E-03    18.482        .59759E-07** at limit **
  12  Prefactor     22.206        61.656        .20138E-05   -.69022E-04
  13  Prefactor     19.508        19.239       -.17804E-07   -.46813E-05
  14  Prefactor     .10000E-03    39.465       -.12434E-06** at limit **
  15  Prefactor     .10000E-03    96.099       -.13629E-06** at limit **
  16  Prefactor     .10000E-03    3.0805        .67130E-07** at limit **
  17  Prefactor     7.1223        3.1913       -.85792E-07    .95568E-04
  18  Prefactor     13.815        14.762       -.15326E-06   -.19000E-04
  19  norm          .10000E-03    .85876        .14929E-06** at limit **
  20  Prefactor     .10000E-03    132.60       -.21578E-05** at limit **
  21  norm          .71180        16.174        .82532E-05   -.88646E-04
  22  Prefactor     16.722        11.071       -.24043E-05   -.37284E-03
  23  Normalizat    1.7241        .30506        .62944E-06   -.18371E-03
  24  Prefactor     .82995        .14625       -.71085E-06   -.15630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.0059
  norm       = 0.0001
  Prefactor  = 11.803
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 38.3049
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89886
  Prefactor  = 0.0001
  Prefactor  = 22.2063
  Prefactor  = 19.5077
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.12229
  Prefactor  = 13.8148
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.711801
  Prefactor  = 16.7215
  Normalizat = 1.72406
  Prefactor  = 0.829955
 **********
 **   18 **HESSE 
 **********

 FCN=   4951.773     FROM HESSE     STATUS=OK           393 CALLS     3107 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6340        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.006        37.897        .71956E-04   -1.4594    
   3  norm          .10000E-03    .60894        .53126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.803        43.443        .11635E-03   -1.5021    
   5  Prefactor     .10001E-03    24.346        .36375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          38.305        35.799        .64752E-04   -1.4469    
   8  Prefactor     .10000E-03    7.0373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3205        .10400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8989        7.7361        .23878E-03   -1.5367    
  11  Prefactor     .10000E-03    18.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.206        60.695        .84915E-04   -1.4765    
  13  Prefactor     19.508        19.240        .90683E-04   -1.4824    
  14  Prefactor     .10000E-03    39.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    96.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0960        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1223        3.1897        .40912E-03   -1.5174    
  18  Prefactor     13.815        14.759        .10776E-03   -1.4964    
  19  norm          .10000E-03    3.2445        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    132.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .71180        16.509        .47874E-03   -1.5539    
  22  Prefactor     16.722        11.232        .97957E-04   -1.4890    
  23  Normalizat    1.7241        .35792        .32055E-03   -.71663    
  24  Prefactor     .82995        .17262        .21133E-03   -.98633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60508e-10
Minuit parameter uncertainties:
  1  1.22818e-06
  2  37.9268
  3  3.94043e-07
  4  43.5597
  5  0.000780443
  6  1.46869e-05
  7  35.8189
  8  2.13148e-06
  9  1.58781e-06
  10  7.73872
  11  1.84115e-05
  12  60.8644
  13  19.2462
  14  6.60393e-05
  15  0.00101734
  16  2.45025e-07
  17  3.18975
  18  14.7632
  19  2.88749e-05
  20  0.00129343
  21  6.85766
  22  11.2332
  23  0.358465
  24  0.172736
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.951e+01  1.925e+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.300e-01  1.727e-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.724e+00  3.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 183.001 -23.449
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 2.64e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 2.35e-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) = 4951.13615582
delta logL = 0.636745982048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4951.06834737
delta logL = 0.704554430598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.214       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1167       1.0000          .0000       10.000    
     3 'Normalizat'    1.7363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82910       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=   4951.068     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.295        1613.7        .18531E-02   -.55582E-05
   2  Index         1.1188        7.7517        .29976        .38583E-05
   3  Normalizat    1.7361        .45496        .72252E-01   -.74208E-05
   4  Prefactor     .82926        .13651        .44095E-01   -.10594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2955
  Index      = 1.11878
  Normalizat = 1.73614
  Prefactor  = 0.829264
 **********
 **   18 **HESSE 
 **********

 FCN=   4951.068     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.295        29.963        .74124E-04   -1.4625    
   2  Index         1.1188        .61982        .11471E-01   -.88868    
   3  Normalizat    1.7361        .35361        .31964E-03   -.71342    
   4  Prefactor     .82926        .17101        .21140E-03   -.98658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16423e-13
Minuit parameter uncertainties:
  1  29.9782
  2  0.623883
  3  0.354133
  4  0.171122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408810': 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) = 4951.06833934
delta logL = 0.704562465091

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  2.930e+01  2.998e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.119e+00  6.239e-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.293e-01  1.711e-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.736e+00  3.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.92
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 1.12 +/- 0.62
Photon Flux (Free Index): 9.10e-09 +/- 1.11e-08
Energy Flux (Free Index): 9.62e-05 +/- 1.40e-04

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/408810/cmap_HighResolution_520560001_520819201_4FGL_J1212.0-2326_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.64e-08', energy_flux2='9.62e-05', photon_flux_error='2.60e-08', dlogl='7.05e-01', energy_flux='2.38e-05', photon_flux2='9.10e-09', job_status='DONE', time_completed='2021-09-05 04:08:45.524298', photon_index_error2='0.62', photon_index2='1.12', ts='6.51', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.40e-04', EG='1.72', time_epoch_completed='1630840125.52', return_code='0', job_id='408810', GAL2='0.83', EG2='1.74', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.11e-08', ts2='7.92', photon_index='1.90' WHERE bin_id='1085' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:08:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 408810: <4FGL_J1212.0-2326_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1085 183.001 -23.4494 520560001 520819201 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

