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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1068
RA = 183.001, Dec = -23.4494
tmin = 516153601, tmax = 516412801
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='408793', job_status='RUN', time_executed='2021-09-05 03:56:33.585623', time_epoch_executed='1630839393.59' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408793/ft1_4FGL_J1212.0-2326_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408793/ft1_4FGL_J1212.0-2326_daily_bin1068.fits outfile=/scratch/kocevski/408793/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1068.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=516153601.0 tmax=516412801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/408793/ltcube_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.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/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits
.....................!
real 11.72
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/408793/ltcube_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.fits outfile=/scratch/kocevski/408793/expmap_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.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/408793/ltcube_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.fits
.....................!
real 189.61
user 185.20
sys 4.10

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/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits scfile=/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits outfile=/scratch/kocevski/408793/cmap_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits scfile=/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits outfile=/scratch/kocevski/408793/cmap_HighResolution_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/408793/ft2_4FGL_J1212.0-2326_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408793/Model_4FGL_J1212.0-2326_daily_bin1068.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/408793/ft1_filtered_4FGL_J1212.0-2326_daily_bin1068.fits.....................!
real 54.41
user 53.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0519       1.0000         .10000E-03   10000.    
     9 'norm      '    7.7969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74515E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8134       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.071       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6947       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80185       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=   6119.181     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2725 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.181       -.37509E-05** at limit **
   2  Prefactor     .10000E-03    39.412        .11579E-04** at limit **
   3  norm          .10000E-03    .74751        .12437E-07** at limit **
   4  Prefactor     11.803        42.449        .86996E-04   -.11754E-05
   5  Prefactor     .10000E-03    2.8649        .78046E-07** at limit **
   6  Prefactor     .10000E-03    14.175       -.37406E-05** at limit **
   7  norm          10.702        31.901        .28060E-05   -.17049E-04
   8  Prefactor     3.0536        48.752        .89237E-06   -.76021E-04
   9  norm          7.7975        8.0597       -.95123E-06   -.28755E-03
  10  Prefactor     .10000E-03    6.1775        .18653E-06** at limit **
  11  Prefactor     7.1041        165.72        .35290E-05   -.18137E-04
  12  Prefactor     .10000E-03    91.324        .14621E-04** at limit **
  13  Prefactor     .10000E-03    11.546        .52167E-05** at limit **
  14  Prefactor     .10000E-03    66.890        .79115E-05** at limit **
  15  Prefactor     6.4029        21.857        .16856E-05   -.45750E-04
  16  Prefactor     .10019E-03    6.3649        .43278E-05** at limit **
  17  Prefactor     3.4652        2.3721       -.25196E-06   -.24892E-02
  18  Prefactor     7.8093        11.524        .23280E-05   -.68061E-04
  19  norm          2.4707        1.3370        .10444E-06   -.34311E-03
  20  Prefactor     .10000E-03    45.126       -.21112E-04** at limit **
  21  norm          10.566        8.6627        .60737E-06   -.28486E-04
  22  Prefactor     10.072        8.0571        .44089E-06   -.25083E-04
  23  Normalizat    1.6947        .27292       -.20841E-05   -.41349E-03
  24  Prefactor     .80182        .13222       -.17973E-05   -.52982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7017
  Prefactor  = 3.0536
  norm       = 7.79747
  Prefactor  = 0.0001
  Prefactor  = 7.10407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4029
  Prefactor  = 0.000100188
  Prefactor  = 3.46519
  Prefactor  = 7.80931
  norm       = 2.47066
  Prefactor  = 0.0001
  norm       = 10.5659
  Prefactor  = 10.0719
  Normalizat = 1.69469
  Prefactor  = 0.80182
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.181     FROM HESSE     STATUS=OK           395 CALLS     3120 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .78312        .13201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.803        42.419        .11693E-03   -1.5021    
   5  Prefactor     .10000E-03    2.8796        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.702        31.988        .12248E-03   -1.5054    
   8  Prefactor     3.0536        44.859        .23223E-03   -1.5358    
   9  norm          7.7975        7.7885        .14361E-03   -1.5149    
  10  Prefactor     .10000E-03    6.2754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1041        163.08        .15051E-03   -1.5175    
  12  Prefactor     .10000E-03    92.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4029        21.843        .15862E-03   -1.5202    
  16  Prefactor     .10019E-03    20.709        .36140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4652        2.2622        .92322E-04   -1.5336    
  18  Prefactor     7.8093        11.520        .14345E-03   -1.5149    
  19  norm          2.4707        1.3327        .63579E-04   -1.5394    
  20  Prefactor     .10000E-03    45.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.566        8.6831        .12326E-03   -1.5058    
  22  Prefactor     10.072        8.0756        .12626E-03   -1.5073    
  23  Normalizat    1.6947        .32642        .31869E-03   -.72445    
  24  Prefactor     .80182        .15881        .21127E-03   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73653e-09
Minuit parameter uncertainties:
  1  3.07041e-05
  2  2.55058e-05
  3  6.27955e-07
  4  42.5273
  5  1.07546e-05
  6  1.53155e-05
  7  32.0397
  8  23.4286
  9  7.78954
  10  3.46757e-05
  11  68.2847
  12  0.00032925
  13  1.00495e-05
  14  8.63933e-05
  15  21.8699
  16  0.00394421
  17  2.26228
  18  11.523
  19  1.33274
  20  8.33162e-07
  21  8.6841
  22  8.07646
  23  0.326831
  24  0.158897
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.005e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.018e-01  1.589e-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.695e+00  3.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408793/likelihoodResults_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.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) = 6119.18155543
delta logL = -0.000411223807532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6119.18114419
delta logL = 1.6279045667e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8871       1.0000          .0000       10.000    
     3 'Normalizat'    1.6947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80182       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=   6119.181     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.14        .90712E-02** at limit **
   2  Index         1.8766        8.2559        .50000        .69247E-05
   3  Normalizat    1.6947        .22612E-01    .72037E-01    .61885E-05
   4  Prefactor     .80182        .10888E-01    .43741E-01    .14219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87656
  Normalizat = 1.6947
  Prefactor  = 0.80182
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.181     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1086.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8766        8.8016        .50000       -.67473    
   3  Normalizat    1.6947        .78178E-01    .31869E-03   -.72445    
   4  Prefactor     .80182        .37662E-01    .21127E-03   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39099e-09
Minuit parameter uncertainties:
  1  4.70863e-05
  2  38.4994
  3  0.078184
  4  0.0376637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408793': 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) = 6119.18114416
delta logL = 3.78104232368e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.709e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.877e+00  3.850e+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.018e-01  3.766e-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.695e+00  7.818e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/408793/cmap_HighResolution_516153601_516412801_4FGL_J1212.0-2326_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-05 04:07:42.999202', job_id='408793', GAL2='0.80', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1630840063.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1068' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:07:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 408793: <4FGL_J1212.0-2326_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1068 183.001 -23.4494 516153601 516412801 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 :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

