Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.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.001896/0.001896, allocations: 112 kB / 20.43 MB, free: 1.449 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.002117/0.002117, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 207.6 MB / 234.5 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2941/0.2941, allocations: 49.57 MB / 336.3 MB, free: 4.141 MB / 270.1 MB
"
[Timeout remaining time 179]
Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI")
translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 71.89 kB / 476.8 MB, free: 12.47 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1186, allocations: 62.41 MB / 0.5266 GB, free: 13.87 MB / 414.1 MB
Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002938/0.1215, allocations: 1.673 MB / 0.5282 GB, free: 12.18 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001257/0.1228, allocations: 0.7109 MB / 0.5289 GB, free: 11.46 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 6.337e-05/0.1228, allocations: 4 kB / 0.5289 GB, free: 11.45 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.123, allocations: 51.75 kB / 0.5289 GB, free: 11.4 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.497e-05/0.1231, allocations: 59.73 kB / 0.529 GB, free: 11.34 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.1236, allocations: 123.7 kB / 0.5291 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002322/0.1238, allocations: 159.6 kB / 0.5293 GB, free: 11.07 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.833e-05/0.1239, allocations: 21.61 kB / 0.5293 GB, free: 11.04 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.915e-05/0.124, allocations: 79.69 kB / 0.5294 GB, free: 10.96 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.1242, allocations: 103.7 kB / 0.5295 GB, free: 10.86 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.1242, allocations: 12 kB / 0.5295 GB, free: 10.85 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.1243, allocations: 87.92 kB / 0.5296 GB, free: 10.77 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.96e-05/0.1244, allocations: 27.86 kB / 0.5296 GB, free: 10.74 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.1245, allocations: 67.59 kB / 0.5296 GB, free: 10.67 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.1248, allocations: 199.2 kB / 0.5298 GB, free: 10.48 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1248, allocations: 0 / 0.5298 GB, free: 10.48 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.092e-06/0.1248, allocations: 0 / 0.5298 GB, free: 10.48 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 9.789e-06/0.1248, allocations: 0 / 0.5298 GB, free: 10.48 MB / 414.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 20
 * Number of variables: 20
Notification: Performance of Generate backend data structure: time 0.0007693/0.1256, allocations: 456.8 kB / 0.5303 GB, free: 9.988 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1256, allocations: 8.031 kB / 0.5303 GB, free: 9.98 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.1256, allocations: 24.8 kB / 0.5303 GB, free: 9.957 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/0.1259, allocations: 170.1 kB / 0.5305 GB, free: 9.766 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.126, allocations: 12.31 kB / 0.5305 GB, free: 9.754 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.126, allocations: 4.375 kB / 0.5305 GB, free: 9.75 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.1264, allocations: 188.4 kB / 0.5307 GB, free: 9.551 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1264, allocations: 0 / 0.5307 GB, free: 9.551 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.1264, allocations: 7.984 kB / 0.5307 GB, free: 9.543 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1264, allocations: 7.938 kB / 0.5307 GB, free: 9.535 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.1266, allocations: 95.88 kB / 0.5308 GB, free: 9.441 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.1273, allocations: 0.5001 MB / 0.5313 GB, free: 8.891 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.1276, allocations: 130.5 kB / 0.5314 GB, free: 8.754 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.1278, allocations: 92.94 kB / 0.5315 GB, free: 8.66 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.1278, allocations: 0 / 0.5315 GB, free: 8.66 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003349/0.1281, allocations: 181 kB / 0.5316 GB, free: 8.465 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.1282, allocations: 4 kB / 0.5316 GB, free: 8.461 MB / 414.1 MB
Notification: Performance of matching and sorting (n=17): time 0.0008926/0.129, allocations: 423.6 kB / 0.532 GB, free: 8.035 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/0.1291, allocations: 89.09 kB / 0.5321 GB, free: 7.93 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.1293, allocations: 198.8 kB / 0.5323 GB, free: 7.723 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.1293, allocations: 29.7 kB / 0.5324 GB, free: 7.688 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/0.1294, allocations: 120.4 kB / 0.5325 GB, free: 7.566 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.699e-05/0.1295, allocations: 47.73 kB / 0.5325 GB, free: 7.52 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.1296, allocations: 41.7 kB / 0.5326 GB, free: 7.473 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001582/0.1297, allocations: 334.8 kB / 0.5329 GB, free: 7.137 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.1299, allocations: 79.95 kB / 0.5329 GB, free: 7.059 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.1301, allocations: 124.1 kB / 0.5331 GB, free: 6.922 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009661/0.1311, allocations: 478.8 kB / 0.5335 GB, free: 6.414 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1311, allocations: 3.984 kB / 0.5335 GB, free: 6.41 MB / 414.1 MB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005862/0.1317, allocations: 327 kB / 0.5338 GB, free: 6.078 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.1317, allocations: 41.69 kB / 0.5339 GB, free: 6.031 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1317, allocations: 4 kB / 0.5339 GB, free: 6.027 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1317, allocations: 0 / 0.5339 GB, free: 6.027 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1319, allocations: 31.92 kB / 0.5339 GB, free: 5.996 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1319, allocations: 0 / 0.5339 GB, free: 5.996 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.132, allocations: 27.86 kB / 0.5339 GB, free: 5.969 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.1321, allocations: 4.094 kB / 0.5339 GB, free: 5.965 MB / 414.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti fixed = true )  \"Integrated error\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 18 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,integrator.local_reset)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (18):
 * Single equations (assignments): 17
 * Array equations: 0
 * Algorithm blocks: 1
 * 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.000215/0.1323, allocations: 191.4 kB / 0.5341 GB, free: 5.762 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.1323, allocations: 15.91 kB / 0.5341 GB, free: 5.746 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.1323, allocations: 21.8 kB / 0.5342 GB, free: 5.719 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.1323, allocations: 0 / 0.5342 GB, free: 5.719 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1324, allocations: 0 / 0.5342 GB, free: 5.719 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1324, allocations: 3.938 kB / 0.5342 GB, free: 5.715 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.1334, allocations: 0.667 MB / 0.5348 GB, free: 4.992 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1334, allocations: 0 / 0.5348 GB, free: 4.992 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.079e-05/0.1334, allocations: 4 kB / 0.5348 GB, free: 4.988 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1334, allocations: 0 / 0.5348 GB, free: 4.988 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.1335, allocations: 23.8 kB / 0.5348 GB, free: 4.965 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1335, allocations: 0 / 0.5348 GB, free: 4.965 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1335, allocations: 0 / 0.5348 GB, free: 4.965 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009386/0.1344, allocations: 0.5712 MB / 0.5354 GB, free: 4.371 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.1344, allocations: 23.86 kB / 0.5354 GB, free: 4.348 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.1345, allocations: 4 kB / 0.5354 GB, free: 4.344 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1346, allocations: 19.97 kB / 0.5354 GB, free: 4.324 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.1347, allocations: 16.05 kB / 0.5355 GB, free: 4.309 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.1347, allocations: 8 kB / 0.5355 GB, free: 4.301 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001311/0.1348, allocations: 148.2 kB / 0.5356 GB, free: 4.156 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.1348, allocations: 3.938 kB / 0.5356 GB, free: 4.152 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003259/0.1352, allocations: 59.88 kB / 0.5357 GB, free: 4.094 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 1 (integrator.y)
 * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled)
 * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (12):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 0
 * When equations: 6
 * 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.0001784/0.1354, allocations: 131 kB / 0.5358 GB, free: 3.957 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005429/0.1359, allocations: 275.1 kB / 0.5361 GB, free: 3.676 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1359, allocations: 0 / 0.5361 GB, free: 3.676 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.1362, allocations: 155.3 kB / 0.5362 GB, free: 3.512 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003817/0.1365, allocations: 32.83 kB / 0.5362 GB, free: 3.48 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007794/0.1373, allocations: 380.2 kB / 0.5366 GB, free: 3.082 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1377, allocations: 0.7162 MB / 0.5373 GB, free: 2.34 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 4.32e-05/0.1377, allocations: 12.64 kB / 0.5373 GB, free: 2.328 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.1378, allocations: 11.44 kB / 0.5373 GB, free: 2.316 MB / 414.1 MB
Notification: Performance of SimCode: time 3.41e-07/0.1378, allocations: 0 / 0.5373 GB, free: 2.316 MB / 414.1 MB
Notification: Performance of Templates: time 0.1859/0.3237, allocations: 2.382 MB / 0.5396 GB, free: 22.9 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile [Timeout 660]
(rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.827370109967887]
Failed to read output from testmodel.py, exit status != 0:
0.3317470094189048 0.34367111599999994 0.216122481
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f96b9a757b0>