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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin520
RA = 183.001, Dec = -23.4494
tmin = 374112001, tmax = 374371201
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='405325', job_status='RUN', time_executed='2021-09-05 03:46:07.842904', time_epoch_executed='1630838767.84' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405325/ft1_4FGL_J1212.0-2326_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405325/ft1_4FGL_J1212.0-2326_daily_bin520.fits outfile=/scratch/kocevski/405325/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin520.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=374112001.0 tmax=374371201.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.44
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/405325/ltcube_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.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/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits
.....................!
real 11.96
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/405325/ltcube_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.fits outfile=/scratch/kocevski/405325/expmap_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.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/405325/ltcube_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.fits
.....................!
real 190.76
user 186.04
sys 4.23

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/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits scfile=/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits outfile=/scratch/kocevski/405325/cmap_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits scfile=/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits outfile=/scratch/kocevski/405325/cmap_HighResolution_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=183.001 yref=-23.4494 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/405325/ft2_4FGL_J1212.0-2326_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405325/Model_4FGL_J1212.0-2326_daily_bin520.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/405325/ft1_filtered_4FGL_J1212.0-2326_daily_bin520.fits.....................!
real 57.86
user 56.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .30508E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5095       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.671       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.977       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43641E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1601       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.901       1.0000         .10000E-03   10000.    
    21 'norm      '    15.385       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4818       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73382       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.

 FCN=   6596.414     FROM MIGRAD    STATUS=CONVERGED    979 CALLS     3165 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5524        .18142E-02** at limit **
   2  Prefactor     .10000E-03    174.07        .21383E-02** at limit **
   3  norm          5.5115        1.9780        .65923E-04    .73599E-03
   4  Prefactor     9.3741        38.077        .13099E-03    .13279E-04
   5  Prefactor     .10000E-03    14.668        .30558E-02** at limit **
   6  Prefactor     .10000E-03    16.352        .18142E-02** at limit **
   7  norm          2.1123        36.168        .14195E-02    .81594E-04
   8  Prefactor     23.651        15.822        .82331E-04    .18517E-03
   9  norm          .10000E-03    7.5534        .25410E-02** at limit **
  10  Prefactor     .10000E-03    2.6364        .12825E-02** at limit **
  11  Prefactor     .10000E-03    31.016        .18142E-02** at limit **
  12  Prefactor     .10000E-03    54.498        .18142E-02** at limit **
  13  Prefactor     36.920        31.515        .65908E-04   -.11402E-03
  14  Prefactor     .10000E-03    81.459        .17301    ** at limit **
  15  Prefactor     28.088        29.004        .75598E-04    .75642E-04
  16  Prefactor     .10000E-03    4.8045        .34270E-03** at limit **
  17  Prefactor     8.1609        2.5623        .70974E-04    .19798E-03
  18  Prefactor     .10000E-03    17.916        .18142E-02** at limit **
  19  norm          2.4334        1.1925        .59594E-04    .51717E-03
  20  Prefactor     48.014        113.13        .57937E-04    .68836E-04
  21  norm          15.382        9.2666        .10211E-03   -.68918E-04
  22  Prefactor     .10000E-03    2.0081        .11224E-02** at limit **
  23  Normalizat    1.4816        .28807        .31274E-03    .29296E-03
  24  Prefactor     .73390        .13750        .20581E-03    .88627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51155
  Prefactor  = 9.37412
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.11233
  Prefactor  = 23.6507
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9195
  Prefactor  = 0.0001
  Prefactor  = 28.0878
  Prefactor  = 0.0001
  Prefactor  = 8.16085
  Prefactor  = 0.000100001
  norm       = 2.43338
  Prefactor  = 48.0138
  norm       = 15.3822
  Prefactor  = 0.0001
  Normalizat = 1.48156
  Prefactor  = 0.733898
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.414     FROM HESSE     STATUS=OK           385 CALLS     3550 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    174.22        .42765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5115        1.9780        .13185E-04   -1.5238    
   4  Prefactor     9.3741        38.104        .52397E-05   -1.5096    
   5  Prefactor     .10000E-03    14.873        .61115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1123        36.154        .28390E-03   -1.5417    
   8  Prefactor     23.651        15.791        .32932E-05   -1.4735    
   9  norm          .10000E-03    7.6055        .50820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6368        .25649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.920        31.688        .13182E-04   -1.4492    
  14  Prefactor     .10000E-03    91.600        .16186       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.088        29.009        .30239E-05   -1.4648    
  16  Prefactor     .10000E-03    4.8047        .68540E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1609        2.5623        .28390E-05   -1.5137    
  18  Prefactor     .10000E-03    17.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4334        1.1925        .23838E-05   -1.5396    
  20  Prefactor     48.014        113.14        .11587E-04   -1.4321    
  21  norm          15.382        9.2676        .40844E-05   -1.4923    
  22  Prefactor     .10000E-03    2.0082        .22447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4816        .28827        .62548E-04   -.78298    
  24  Prefactor     .73390        .13759        .41163E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29554e-09
Minuit parameter uncertainties:
  1  3.0686e-05
  2  0.000325311
  3  1.97802
  4  37.8409
  5  0.000268073
  6  0.000117273
  7  17.4899
  8  15.7939
  9  6.422e-05
  10  1.79268e-05
  11  4.58069e-05
  12  0.000272455
  13  31.7024
  14  0.000407429
  15  29.0232
  16  2.8207e-05
  17  2.56236
  18  0.000311999
  19  1.19248
  20  113.652
  21  9.26849
  22  1.72259e-05
  23  0.288594
  24  0.137649
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.692e+01  3.170e+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:  7.339e-01  1.376e-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.482e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.83
Ra Dec: 183.001 -23.449
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 4.99e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 4.51e-05 +/- 3.87e-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) = 6595.56076536
delta logL = 0.853269446445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6595.55930384
delta logL = 0.85473095901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7133       1.0000          .0000       10.000    
     3 'Normalizat'    1.3646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75908       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=   6595.559     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      256 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.041        76.525        .30143E-02    .32474E-03
   2  Index         2.7130        1.7145        .68796E-01    .26458E-03
   3  Normalizat    1.3660        .12227        .72906E-01    .93063E-05
   4  Prefactor     .75858        .47172E-01    .43182E-01    .10917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0411
  Index      = 2.71298
  Normalizat = 1.36602
  Prefactor  = 0.758585
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.559     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.041        32.036        .11835E-03   -1.5043    
   2  Index         2.7130        1.1431        .26514E-02   -.47507    
   3  Normalizat    1.3660        .32446        .32260E-03   -.81617    
   4  Prefactor     .75858        .14370        .20231E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71748e-08
Minuit parameter uncertainties:
  1  32.0859
  2  1.15607
  3  0.324946
  4  0.143768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405325': 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) = 6595.55929162
delta logL = 0.854743177699

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.104e+01  3.209e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.713e+00  1.156e+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:  7.586e-01  1.438e-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.366e+00  3.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.61
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 2.71 +/- 1.16
Photon Flux (Free Index): 1.66e-07 +/- 1.51e-07
Energy Flux (Free Index): 3.96e-05 +/- 1.89e-05

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/405325/cmap_HighResolution_374112001_374371201_4FGL_J1212.0-2326_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.99e-08', energy_flux2='3.96e-05', photon_flux_error='4.28e-08', dlogl='8.55e-01', energy_flux='4.51e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-05 03:57:33.256565', photon_index_error2='1.16', photon_index2='2.71', ts='7.83', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.48', time_epoch_completed='1630839453.26', return_code='0', job_id='405325', GAL2='0.76', EG2='1.37', return_code2='0', energy_flux_error='3.87e-05', photon_flux_error2='1.51e-07', ts2='9.61', photon_index='1.90' WHERE bin_id='520' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:57:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 405325: <4FGL_J1212.0-2326_daily_bin520> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin520> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 03:45:37 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:45:38 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:45:38 2021
Terminated at Sun Sep  5 03:57:33 2021
Results reported at Sun Sep  5 03:57:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin520 183.001 -23.4494 374112001 374371201 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            716 sec.

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

