Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 117.8 kB / 19.74 MB, free: 2.137 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 186.4 kB / 23.02 MB, free: 4.957 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 225.6 MB / 251.8 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06412/0.06412, allocations: 8.25 MB / 315.3 MB, free: 392 kB / 238.1 MB
"
[Timeout remaining time 180]
Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad")
translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 64.12 kB / 439.7 MB, free: 12.18 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1079, allocations: 54.39 MB / 494.1 MB, free: 5.699 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.005368/0.1133, allocations: 3.184 MB / 497.3 MB, free: 2.5 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002165/0.1154, allocations: 1.183 MB / 498.5 MB, free: 1.312 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.1156, allocations: 8 kB / 498.5 MB, free: 1.305 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008891/0.1165, allocations: 442.5 kB / 498.9 MB, free: 0.8711 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004971/0.117, allocations: 270.8 kB / 499.2 MB, free: 0.6055 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001991/0.119, allocations: 1.011 MB / 0.4885 GB, free: 15.59 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007782/0.1198, allocations: 0.5138 MB / 0.489 GB, free: 15.08 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.12, allocations: 117.9 kB / 0.4891 GB, free: 14.96 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.1203, allocations: 243.2 kB / 0.4893 GB, free: 14.72 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005377/0.1208, allocations: 378.9 kB / 0.4897 GB, free: 14.35 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.627e-05/0.1209, allocations: 52 kB / 0.4897 GB, free: 14.3 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005746/0.1215, allocations: 267.8 kB / 0.49 GB, free: 14.04 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0003401/0.1218, allocations: 355 kB / 0.4903 GB, free: 13.69 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004699/0.1223, allocations: 457.4 kB / 0.4908 GB, free: 13.24 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001626/0.1239, allocations: 1.331 MB / 0.4921 GB, free: 11.9 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1239, allocations: 4 kB / 0.4921 GB, free: 11.9 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.683e-06/0.1239, allocations: 0 / 0.4921 GB, free: 11.9 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 1.881e-05/0.124, allocations: 0 / 0.4921 GB, free: 11.9 MB / 366.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 67
 * Number of variables: 67
Notification: Performance of Generate backend data structure: time 0.003796/0.1278, allocations: 1.515 MB / 0.4936 GB, free: 10.34 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1278, allocations: 11.89 kB / 0.4936 GB, free: 10.33 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.128, allocations: 116.2 kB / 0.4937 GB, free: 10.22 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.1294, allocations: 0.8203 MB / 0.4945 GB, free: 9.359 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.1295, allocations: 84.61 kB / 0.4946 GB, free: 9.266 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.685e-05/0.1296, allocations: 28.38 kB / 0.4946 GB, free: 9.238 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009246/0.1305, allocations: 458.4 kB / 0.495 GB, free: 8.766 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.1305, allocations: 0 / 0.495 GB, free: 8.766 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.1306, allocations: 12 kB / 0.495 GB, free: 8.754 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.1306, allocations: 8 kB / 0.495 GB, free: 8.746 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.1313, allocations: 330.5 kB / 0.4954 GB, free: 8.422 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.1351, allocations: 2.093 MB / 0.4974 GB, free: 6.215 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.1363, allocations: 375.3 kB / 0.4978 GB, free: 5.84 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.1368, allocations: 189.2 kB / 0.4979 GB, free: 5.652 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/0.1369, allocations: 20.16 kB / 0.498 GB, free: 5.633 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.1369, allocations: 38.73 kB / 0.498 GB, free: 5.586 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=28): time 2.484e-06/0.1369, allocations: 0 / 0.498 GB, free: 5.586 MB / 366.1 MB
Notification: Performance of matching and sorting (n=28): time 0.002728/0.1397, allocations: 0.7499 MB / 0.4987 GB, free: 4.828 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.1398, allocations: 239.3 kB / 0.499 GB, free: 4.539 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002625/0.1425, allocations: 1.737 MB / 0.5007 GB, free: 2.781 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.366e-05/0.1425, allocations: 33.7 kB / 0.5007 GB, free: 2.742 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0004433/0.143, allocations: 445 kB / 0.5011 GB, free: 2.305 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.1431, allocations: 95.17 kB / 0.5012 GB, free: 2.211 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.1432, allocations: 69.44 kB / 0.5013 GB, free: 2.137 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001583/0.1434, allocations: 322 kB / 0.5016 GB, free: 1.816 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.1437, allocations: 159.9 kB / 0.5017 GB, free: 1.66 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005051/0.1442, allocations: 249.6 kB / 0.502 GB, free: 1.383 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/0.1482, allocations: 0.9424 MB / 0.5029 GB, free: 440 kB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.1483, allocations: 4 kB / 0.5029 GB, free: 436 kB / 366.1 MB
Notification: Performance of matching and sorting (n=38) (initialization): time 0.001698/0.1499, allocations: 0.6067 MB / 0.5035 GB, free: 15.8 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.15, allocations: 5.406 kB / 0.5035 GB, free: 15.8 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.15, allocations: 0 / 0.5035 GB, free: 15.8 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007334/0.1507, allocations: 148.7 kB / 0.5036 GB, free: 15.65 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.1511, allocations: 71.89 kB / 0.5037 GB, free: 15.58 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.154, allocations: 1.955 MB / 0.5056 GB, free: 13.52 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005526/0.1545, allocations: 47.83 kB / 0.5057 GB, free: 13.47 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.1546, allocations: 15.98 kB / 0.5057 GB, free: 13.45 MB / 382.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true )  \"Charge as current integration\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 1 (charging.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (33):
 * Single equations (assignments): 32
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,4)}
Notification: Performance of prepare postOptimizeDAE: time 0.0006593/0.1552, allocations: 400.6 kB / 0.506 GB, free: 13.05 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.1554, allocations: 103.3 kB / 0.5061 GB, free: 12.95 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.1569, allocations: 0.5818 MB / 0.5067 GB, free: 12.36 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.1569, allocations: 7.938 kB / 0.5067 GB, free: 12.35 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.1569, allocations: 4 kB / 0.5067 GB, free: 12.35 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1569, allocations: 3.984 kB / 0.5067 GB, free: 12.34 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.1597, allocations: 1.431 MB / 0.5081 GB, free: 10.86 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1597, allocations: 0 / 0.5081 GB, free: 10.86 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002884/0.16, allocations: 59.91 kB / 0.5082 GB, free: 10.8 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006878/0.1607, allocations: 144.7 kB / 0.5083 GB, free: 10.66 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.1607, allocations: 8 kB / 0.5083 GB, free: 10.65 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002611/0.1633, allocations: 1.921 MB / 0.5102 GB, free: 8.613 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.1634, allocations: 7.969 kB / 0.5102 GB, free: 8.605 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.1652, allocations: 0.834 MB / 0.511 GB, free: 7.75 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.1657, allocations: 167.3 kB / 0.5112 GB, free: 7.586 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.1658, allocations: 8 kB / 0.5112 GB, free: 7.578 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/0.1662, allocations: 35.91 kB / 0.5112 GB, free: 7.543 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.1663, allocations: 31.94 kB / 0.5113 GB, free: 7.512 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.1663, allocations: 12 kB / 0.5113 GB, free: 7.5 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.001801/0.1681, allocations: 1.26 MB / 0.5125 GB, free: 6.23 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.1681, allocations: 0 / 0.5125 GB, free: 6.23 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0005908/0.1687, allocations: 155.8 kB / 0.5126 GB, free: 6.078 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 1 (bat.battery.integrator.q)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (25):
 * Single equations (assignments): 24
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,4)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0009811/0.1697, allocations: 275.8 kB / 0.5129 GB, free: 5.879 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.001332/0.171, allocations: 0.4945 MB / 0.5134 GB, free: 5.371 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.171, allocations: 0 / 0.5134 GB, free: 5.371 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007423/0.1718, allocations: 334.7 kB / 0.5137 GB, free: 5.031 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006134/0.1724, allocations: 83.47 kB / 0.5138 GB, free: 4.953 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003906/0.1763, allocations: 1.934 MB / 0.5157 GB, free: 2.984 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009267/0.1772, allocations: 1.072 MB / 0.5167 GB, free: 1.887 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0004373/0.1776, allocations: 133.1 kB / 0.5169 GB, free: 1.754 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.1778, allocations: 51.44 kB / 0.5169 GB, free: 1.703 MB / 382.1 MB
Notification: Performance of SimCode: time 2.124e-06/0.1778, allocations: 3.938 kB / 0.5169 GB, free: 1.699 MB / 382.1 MB
Notification: Performance of Templates: time 0.2259/0.4037, allocations: 11.49 MB / 0.5281 GB, free: 33.62 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile [Timeout 660]
(rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) [Timeout 480]
[Calling os._exit(0), Time elapsed: 5.191127669997513]
Failed to read output from testmodel.py, exit status != 0:
0.41241509560495615 0.42562803400000004 0.299331398
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fc7f6f7d7b0>