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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1090
RA = 183.001, Dec = -23.4494
tmin = 521856001, tmax = 522115201
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='408815', job_status='RUN', time_executed='2021-09-05 03:57:24.400205', time_epoch_executed='1630839444.4' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408815/ft1_4FGL_J1212.0-2326_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408815/ft1_4FGL_J1212.0-2326_daily_bin1090.fits outfile=/scratch/kocevski/408815/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1090.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=521856001.0 tmax=522115201.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.71
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.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/408815/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/408815/ltcube_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.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/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits
.....................!
real 11.77
user 11.33
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/408815/ltcube_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.fits outfile=/scratch/kocevski/408815/expmap_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.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/408815/ltcube_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.fits
.....................!
real 192.64
user 187.92
sys 4.37

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/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits outfile=/scratch/kocevski/408815/cmap_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits outfile=/scratch/kocevski/408815/cmap_HighResolution_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.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.61
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/408815/ft2_4FGL_J1212.0-2326_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408815/Model_4FGL_J1212.0-2326_daily_bin1090.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/408815/ft1_filtered_4FGL_J1212.0-2326_daily_bin1090.fits.....................!
real 74.06
user 72.46
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1513       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.110       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3128       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7894       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0233       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.490       1.0000         .10000E-03   10000.    
    21 'norm      '    16.031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3493       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93112       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0288       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=   9370.332     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2841 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6199       -.31642E-07** at limit **
   2  Prefactor     .10000E-03    164.12       -.11936E-05** at limit **
   3  norm          4.1518        1.5188       -.23961E-07   -.15064E-03
   4  Prefactor     .10000E-03    12.526        .55096E-06** at limit **
   5  Prefactor     .59432        2.4377        .13482E-06   -.35022E-03
   6  Prefactor     .10000E-03    14.854       -.57066E-07** at limit **
   7  norm          .10000E-03    11.664       -.38838E-06** at limit **
   8  Prefactor     11.110        10.296       -.20603E-06   -.61062E-04
   9  norm          .10000E-03    2.5653        .14014E-08** at limit **
  10  Prefactor     .10000E-03    3.0019        .60050E-08** at limit **
  11  Prefactor     .10000E-03    20.353       -.34104E-05** at limit **
  12  Prefactor     .10000E-03    38.420       -.79651E-06** at limit **
  13  Prefactor     .10000E-03    6.1551       -.53638E-08** at limit **
  14  Prefactor     .10000E-03    21.159        .37969E-05** at limit **
  15  Prefactor     .10001E-03    6.9104        .27260E-06** at limit **
  16  Prefactor     2.9693        3.9303        .51464E-07   -.11792E-03
  17  Prefactor     7.3128        2.2983       -.59544E-09    .29469E-04
  18  Prefactor     3.7887        6.2335        .26379E-05   -.15156E-02
  19  norm          4.0233        1.1397        .67683E-09   -.19148E-03
  20  Prefactor     24.466        66.211       -.17928E-04   -.14820E-03
  21  norm          16.032        6.6784        .19326E-05    .82904E-03
  22  Prefactor     3.3495        3.2002       -.26802E-06   -.52866E-05
  23  Normalizat    .93110        .20254       -.19281E-06   -.36110E-04
  24  Prefactor     1.0288        .10224       -.92173E-07   -.38385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.15178
  Prefactor  = 0.0001
  Prefactor  = 0.594321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 2.96928
  Prefactor  = 7.31282
  Prefactor  = 3.78865
  norm       = 4.02326
  Prefactor  = 24.4663
  norm       = 16.0321
  Prefactor  = 3.34946
  Normalizat = 0.931103
  Prefactor  = 1.0288
 **********
 **   18 **HESSE 
 **********

 FCN=   9370.332     FROM HESSE     STATUS=OK           397 CALLS     3238 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    166.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1518        1.5184        .69765E-04   -1.5300    
   4  Prefactor     .10000E-03    12.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59432        5.0016        .28857E-02   -1.5554    
   6  Prefactor     .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.110        10.254        .12020E-03   -1.5041    
   9  norm          .10000E-03    2.5985        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1319        .32722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    72.276        .48844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9693        3.9221        .21049E-03   -1.5363    
  17  Prefactor     7.3128        2.2983        .78536E-04   -1.5167    
  18  Prefactor     3.7887        9.1516        .10368E-02   -1.5319    
  19  norm          4.0233        1.1382        .52174E-04   -1.5307    
  20  Prefactor     24.466        67.559        .80944E-04   -1.4718    
  21  norm          16.032        6.7975        .10003E-03   -1.4907    
  22  Prefactor     3.3495        3.1995        .16018E-03   -1.5342    
  23  Normalizat    .93110        .23725        .36078E-03   -.95376    
  24  Prefactor     1.0288        .12137        .17791E-03   -.91775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89367e-08
Minuit parameter uncertainties:
  1  1.63879e-06
  2  0.000245602
  3  1.51842
  4  3.93339e-05
  5  3.44833
  6  1.43668e-06
  7  2.68403e-05
  8  10.2557
  9  4.93407e-06
  10  1.19587e-06
  11  0.000308299
  12  9.04966e-05
  13  3.03917e-08
  14  0.000354227
  15  0.00156273
  16  3.92241
  17  2.29835
  18  9.15498
  19  1.13822
  20  67.7714
  21  6.79781
  22  3.1997
  23  0.237518
  24  0.121403
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.029e+00  1.214e-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:  9.311e-01  2.375e-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: 4.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408815/likelihoodResults_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.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) = 9370.33290323
delta logL = -0.00077281058293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9370.33213035
delta logL = 6.31989678368e-08

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 'Index     '    1.8835       1.0000          .0000       10.000    
     3 'Normalizat'    .93110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0288       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=   9370.332     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.710        .90712E-02** at limit **
   2  Index         1.8696        5.4242        .50000        .17255E-04
   3  Normalizat    .93110        .98466E-02    .81498E-01    .27269E-04
   4  Prefactor     1.0288        .51069E-02    .41354E-01    .96668E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86961
  Normalizat = 0.931103
  Prefactor  = 1.0288
 **********
 **   18 **HESSE 
 **********

 FCN=   9370.332     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8696        5.8930        .50000       -.67651    
   3  Normalizat    .93110        .23167        .36078E-03   -.95376    
   4  Prefactor     1.0288        .12049        .17791E-03   -.91775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30002e-10
Minuit parameter uncertainties:
  1  1.62345e-05
  2  4.20079
  3  0.231918
  4  0.120526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408815': 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) = 9370.33213029
delta logL = 1.25470251078e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.029e+00  1.205e-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:  9.311e-01  2.319e-01  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/408815/cmap_HighResolution_521856001_522115201_4FGL_J1212.0-2326_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-09-05 04:12:23.991931', job_id='408815', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630840343.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1090' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:12:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 408815: <4FGL_J1212.0-2326_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1090 183.001 -23.4494 521856001 522115201 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 :                                   894.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

