Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.001323/0.001323, allocations: 118.2 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.001385/0.001385, allocations: 187.4 kB / 23.02 MB, free: 4.953 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.57/1.57, allocations: 225.6 MB / 251.8 MB, free: 13.02 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.06368/0.06368, allocations: 8.238 MB / 315.3 MB, free: 372 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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge")
translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 67.89 kB / 439.8 MB, free: 12.14 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1307, allocations: 54.39 MB / 494.1 MB, free: 5.648 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.004081/0.1348, allocations: 2.432 MB / 496.6 MB, free: 3.203 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0009384/0.1357, allocations: 0.5061 MB / 497.1 MB, free: 2.695 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.1359, allocations: 4 kB / 497.1 MB, free: 2.691 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004346/0.1363, allocations: 111.3 kB / 497.2 MB, free: 2.582 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.1365, allocations: 75.47 kB / 497.3 MB, free: 2.508 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.1368, allocations: 91.83 kB / 497.4 MB, free: 2.418 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003143/0.1371, allocations: 275 kB / 497.6 MB, free: 2.148 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.1373, allocations: 79.88 kB / 497.7 MB, free: 2.062 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.1374, allocations: 115.6 kB / 497.8 MB, free: 1.949 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.1377, allocations: 139.4 kB / 498 MB, free: 1.812 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.924e-05/0.1377, allocations: 32 kB / 498 MB, free: 1.781 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.1379, allocations: 83.95 kB / 498.1 MB, free: 1.699 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.1381, allocations: 111.6 kB / 498.2 MB, free: 1.59 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.1383, allocations: 151.2 kB / 498.3 MB, free: 1.441 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.1388, allocations: 406.5 kB / 498.7 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1388, allocations: 0 / 498.7 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.663e-06/0.1388, allocations: 0 / 498.7 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 7.103e-06/0.1388, allocations: 0 / 498.7 MB, free: 1.043 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 40
 * Number of variables: 40
Notification: Performance of Generate backend data structure: time 0.002003/0.1408, allocations: 0.7348 MB / 499.5 MB, free: 276 kB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1408, allocations: 11.89 kB / 499.5 MB, free: 264 kB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.439e-05/0.1409, allocations: 36.7 kB / 499.5 MB, free: 228 kB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004951/0.1414, allocations: 299.8 kB / 499.8 MB, free: 15.9 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.1414, allocations: 12.7 kB / 499.8 MB, free: 15.89 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.1415, allocations: 20.38 kB / 499.8 MB, free: 15.87 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.142, allocations: 286.9 kB / 0.4884 GB, free: 15.57 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1421, allocations: 1.688 kB / 0.4884 GB, free: 15.57 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.1421, allocations: 11.94 kB / 0.4884 GB, free: 15.55 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1421, allocations: 4 kB / 0.4884 GB, free: 15.55 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.1425, allocations: 196.1 kB / 0.4886 GB, free: 15.36 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.1439, allocations: 0.8017 MB / 0.4894 GB, free: 14.5 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000649/0.1446, allocations: 206.6 kB / 0.4896 GB, free: 14.29 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003505/0.1449, allocations: 144.8 kB / 0.4897 GB, free: 14.14 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.145, allocations: 4 kB / 0.4897 GB, free: 14.14 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.145, allocations: 38.5 kB / 0.4897 GB, free: 14.09 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.145, allocations: 0 / 0.4897 GB, free: 14.09 MB / 366.1 MB
Notification: Performance of matching and sorting (n=13): time 0.0007839/0.1458, allocations: 277.7 kB / 0.49 GB, free: 13.82 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1459, allocations: 217.5 kB / 0.4902 GB, free: 13.55 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004745/0.1464, allocations: 369.8 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.1464, allocations: 25.7 kB / 0.4906 GB, free: 13.16 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1466, allocations: 168.3 kB / 0.4908 GB, free: 12.99 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.732e-05/0.1466, allocations: 55.56 kB / 0.4908 GB, free: 12.93 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.1467, allocations: 33.72 kB / 0.4908 GB, free: 12.89 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001653/0.1469, allocations: 338.8 kB / 0.4912 GB, free: 12.55 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.1471, allocations: 83.88 kB / 0.4912 GB, free: 12.47 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.1474, allocations: 151.7 kB / 0.4914 GB, free: 12.3 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008234/0.1482, allocations: 237.5 kB / 0.4916 GB, free: 12.06 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1482, allocations: 0 / 0.4916 GB, free: 12.06 MB / 366.1 MB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005181/0.1487, allocations: 221.3 kB / 0.4918 GB, free: 11.84 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1487, allocations: 5.562 kB / 0.4918 GB, free: 11.83 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1488, allocations: 0 / 0.4918 GB, free: 11.83 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.1488, allocations: 4 kB / 0.4918 GB, free: 11.83 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.1489, allocations: 27.98 kB / 0.4919 GB, free: 11.8 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.1489, allocations: 0 / 0.4919 GB, free: 11.8 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005438/0.1495, allocations: 95.83 kB / 0.492 GB, free: 11.71 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.1495, allocations: 12 kB / 0.492 GB, free: 11.7 MB / 366.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         battery.integrator.q:VARIABLE(flow=false start = 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: 3
 * Number of states: 0 ()
 * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (15):
 * Single equations (assignments): 15
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0003057/0.1498, allocations: 149.8 kB / 0.4921 GB, free: 11.54 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.73e-05/0.1499, allocations: 31.8 kB / 0.4921 GB, free: 11.51 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006516/0.1505, allocations: 243.4 kB / 0.4924 GB, free: 11.26 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.1505, allocations: 0 / 0.4924 GB, free: 11.26 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1506, allocations: 3.984 kB / 0.4924 GB, free: 11.26 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1506, allocations: 3.984 kB / 0.4924 GB, free: 11.25 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1517, allocations: 0.6385 MB / 0.493 GB, free: 10.56 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1517, allocations: 3.984 kB / 0.493 GB, free: 10.56 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.1518, allocations: 27.92 kB / 0.493 GB, free: 10.53 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1518, allocations: 0 / 0.493 GB, free: 10.53 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1518, allocations: 8.031 kB / 0.493 GB, free: 10.52 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1518, allocations: 0 / 0.493 GB, free: 10.52 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1518, allocations: 0 / 0.493 GB, free: 10.52 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008455/0.1527, allocations: 439.1 kB / 0.4935 GB, free: 10.08 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.1528, allocations: 35.81 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.384e-05/0.1528, allocations: 4 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/0.1534, allocations: 83.94 kB / 0.4936 GB, free: 9.957 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/0.1537, allocations: 127.8 kB / 0.4937 GB, free: 9.832 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.1537, allocations: 8 kB / 0.4937 GB, free: 9.824 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003672/0.1541, allocations: 273.2 kB / 0.494 GB, free: 9.555 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.3e-07/0.1541, allocations: 0 / 0.494 GB, free: 9.555 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0004369/0.1545, allocations: 75.77 kB / 0.494 GB, free: 9.48 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 1 (battery.integrator.q)
 * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (13):
 * Single equations (assignments): 13
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0009838/0.1555, allocations: 248 kB / 0.4943 GB, free: 9.309 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005619/0.156, allocations: 199.9 kB / 0.4945 GB, free: 9.113 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.156, allocations: 0 / 0.4945 GB, free: 9.113 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.1564, allocations: 139.8 kB / 0.4946 GB, free: 8.977 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.1568, allocations: 24.5 kB / 0.4946 GB, free: 8.953 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.1588, allocations: 0.6736 MB / 0.4953 GB, free: 8.25 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.1592, allocations: 0.7597 MB / 0.496 GB, free: 7.465 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001724/0.1594, allocations: 45.61 kB / 0.4961 GB, free: 7.418 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.1595, allocations: 31.38 kB / 0.4961 GB, free: 7.387 MB / 366.1 MB
Notification: Performance of SimCode: time 5.92e-07/0.1595, allocations: 0 / 0.4961 GB, free: 7.387 MB / 366.1 MB
Notification: Performance of Templates: time 0.01159/0.1711, allocations: 5.571 MB / 0.5015 GB, free: 1.824 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660]
(rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.050351612269878]
Failed to read output from testmodel.py, exit status != 0:
0.179218964651227 0.19490828000000002 0.052984198
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fe50d5717b0>