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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1196
RA = 183.001, Dec = -23.4494
tmin = 549331201, tmax = 549590401
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='410160', job_status='RUN', time_executed='2021-09-05 04:01:52.767048', time_epoch_executed='1630839712.77' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410160/ft1_4FGL_J1212.0-2326_daily_bin1196.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410160/ft1_4FGL_J1212.0-2326_daily_bin1196.fits outfile=/scratch/kocevski/410160/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1196.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=549331201.0 tmax=549590401.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.16
user 2.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410160/ft1_filtered_4FGL_J1212.0-2326_daily_bin1196.fits" evtable="EVENTS" scfile=/scratch/kocevski/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits sctable="SC_DATA" outfile=/scratch/kocevski/410160/ltcube_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.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/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits
.....................!
real 12.90
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410160/ft1_filtered_4FGL_J1212.0-2326_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits sctable="SC_DATA" expcube=/scratch/kocevski/410160/ltcube_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.fits outfile=/scratch/kocevski/410160/expmap_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.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/410160/ltcube_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.fits
.....................!
real 191.25
user 185.75
sys 4.54

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/410160/ft1_filtered_4FGL_J1212.0-2326_daily_bin1196.fits scfile=/scratch/kocevski/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits outfile=/scratch/kocevski/410160/cmap_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410160/ft1_filtered_4FGL_J1212.0-2326_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/410160/ft2_4FGL_J1212.0-2326_daily_bin1196.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410160/Model_4FGL_J1212.0-2326_daily_bin1196.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/410160/ft1_filtered_4FGL_J1212.0-2326_daily_bin1196.fits.....................!
real 63.54
user 62.13
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .95044       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6872       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.588       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0461       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8498       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5348       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80984       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=   7375.159     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2688 TOTAL
                     EDM=   .28E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6331        .23169E-07** at limit **
   2  Prefactor     .10000E-03    11.785       -.48503E-06** at limit **
   3  norm          .95046        .87316        .86783E-08   -.46116E-04
   4  Prefactor     13.806        31.414        .38751E-05    .52154E-05
   5  Prefactor     6.0376        4.4672        .19981E-06    .42969E-05
   6  Prefactor     .10000E-03    6.8839       -.18789E-07** at limit **
   7  norm          16.726        20.547        .56533E-08   -.22618E-05
   8  Prefactor     .10000E-03    17.738       -.35960E-06** at limit **
   9  norm          10.393        5.5083        .17822E-06    .42461E-04
  10  Prefactor     .10000E-03    1.3250        .14600E-08** at limit **
  11  Prefactor     8.3452        71.392       -.95336E-06   -.22870E-06
  12  Prefactor     10.232        20.013        .13238E-06   -.25931E-05
  13  Prefactor     .10000E-03    8.8839       -.99050E-07** at limit **
  14  Prefactor     .10000E-03    14.809        .42362E-06** at limit **
  15  Prefactor     .10000E-03    10.087        .18009E-06** at limit **
  16  Prefactor     .10000E-03    9.2557        .19923E-06** at limit **
  17  Prefactor     4.6876        2.3015       -.48958E-08   -.78465E-04
  18  Prefactor     21.588        16.565       -.60232E-07   -.44136E-05
  19  norm          2.0461        1.3287        .84129E-08    .45568E-05
  20  Prefactor     .10000E-03    108.35       -.30839E-06** at limit **
  21  norm          4.2635        8.9172        .31530E-05   -.13292E-04
  22  Prefactor     7.8505        7.9691       -.99116E-06    .37369E-06
  23  Normalizat    1.5349        .22887       -.30934E-06   -.50646E-07
  24  Prefactor     .80982        .11406       -.20686E-06   -.26045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.950459
  Prefactor  = 13.8065
  Prefactor  = 6.03759
  Prefactor  = 0.0001
  norm       = 16.726
  Prefactor  = 0.0001
  norm       = 10.3928
  Prefactor  = 0.0001
  Prefactor  = 8.34521
  Prefactor  = 10.2323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68761
  Prefactor  = 21.5878
  norm       = 2.04608
  Prefactor  = 0.0001
  norm       = 4.26349
  Prefactor  = 7.85053
  Normalizat = 1.53487
  Prefactor  = 0.809819
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.159     FROM HESSE     STATUS=OK           399 CALLS     3087 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6662        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .95046        .85689        .74545E-04   -1.5513    
   4  Prefactor     13.806        31.402        .10766E-03   -1.4965    
   5  Prefactor     6.0376        4.4674        .15012E-03   -1.5216    
   6  Prefactor     .10000E-03    6.8847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.726        20.570        .97922E-04   -1.4890    
   8  Prefactor     .10000E-03    17.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.393        5.4984        .12428E-03   -1.5063    
  10  Prefactor     .10000E-03    1.3305        .96503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3452        71.150        .13881E-03   -1.5130    
  12  Prefactor     10.232        20.009        .12525E-03   -1.5068    
  13  Prefactor     .10000E-03    8.8853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6876        2.2980        .88674E-04   -1.5275    
  18  Prefactor     21.588        16.579        .86206E-04   -1.4778    
  19  norm          2.0461        1.3209        .75804E-04   -1.5422    
  20  Prefactor     .10000E-03    108.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2635        8.9374        .97516E-03   -1.5295    
  22  Prefactor     7.8505        7.9785        .14312E-03   -1.5148    
  23  Normalizat    1.5349        .27037        .30571E-03   -.76803    
  24  Prefactor     .80982        .13479        .20293E-03   -.99367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14381e-11
Minuit parameter uncertainties:
  1  1.1823e-06
  2  1.75273e-06
  3  0.8569
  4  31.4394
  5  4.4676
  6  2.00238e-06
  7  20.5789
  8  4.61513e-05
  9  5.4987
  10  1.10739e-07
  11  48.8125
  12  20.0223
  13  9.5382e-06
  14  8.2684e-06
  15  4.45191e-06
  16  1.35018e-08
  17  2.29807
  18  16.5827
  19  1.32092
  20  2.30772e-05
  21  8.9402
  22  7.97954
  23  0.27063
  24  0.134848
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.538e-06  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.098e-01  1.348e-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.535e+00  2.706e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410160/likelihoodResults_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.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) = 7375.15936952
delta logL = -0.000535780297469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7375.15883373
delta logL = 7.22229742678e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8823       1.0000          .0000       10.000    
     3 'Normalizat'    1.5349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80982       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=   7375.159     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.768        .90712E-02** at limit **
   2  Index         1.8672        6.5179        .50000        .12736E-04
   3  Normalizat    1.5349        .14386E-01    .69103E-01   -.15536E-03
   4  Prefactor     .80982        .72541E-02    .43845E-01    .20596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.86716
  Normalizat = 1.53487
  Prefactor  = 0.80982
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.159     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    562.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8672        5.1799        .50000       -.67714    
   3  Normalizat    1.5349        .50251E-01    .30571E-03   -.76803    
   4  Prefactor     .80982        .25351E-01    .20293E-03   -.99367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98804e-09
Minuit parameter uncertainties:
  1  0.00334717
  2  31.0745
  3  0.0502527
  4  0.0253512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410160': 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) = 7375.15883364
delta logL = 1.01498699223e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.347e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.867e+00  3.107e+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.098e-01  2.535e-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.535e+00  5.025e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410160/cmap_HighResolution_549331201_549590401_4FGL_J1212.0-2326_daily_bin1196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-05 04:14:37.900838', job_id='410160', GAL2='0.81', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630840477.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1196' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:14:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 410160: <4FGL_J1212.0-2326_daily_bin1196> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1196> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:37 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:39 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:00:39 2021
Terminated at Sun Sep  5 04:14:38 2021
Results reported at Sun Sep  5 04:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1196 183.001 -23.4494 549331201 549590401 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 :                                   752.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

