Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.001361/0.001361, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001592/0.001592, allocations: 182.9 kB / 23.71 MB, free: 4.695 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.487/1.487, allocations: 207.6 MB / 234.5 MB, free: 9.992 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.3108/0.3108, allocations: 49.58 MB / 336.3 MB, free: 4.109 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.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7")
translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") [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.002254/0.002254, allocations: 75.88 kB / 476.8 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1241, allocations: 62.41 MB / 0.5266 GB, free: 13.85 MB / 414.1 MB
Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.00482/0.1289, allocations: 3.166 MB / 0.5297 GB, free: 10.66 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001583/0.1305, allocations: 0.846 MB / 0.5305 GB, free: 9.809 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.1307, allocations: 11.94 kB / 0.5305 GB, free: 9.797 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.1309, allocations: 55.33 kB / 0.5305 GB, free: 9.742 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003713/0.1312, allocations: 166.7 kB / 0.5307 GB, free: 9.578 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1315, allocations: 119.8 kB / 0.5308 GB, free: 9.461 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006128/0.1321, allocations: 0.5217 MB / 0.5313 GB, free: 8.938 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.1324, allocations: 110 kB / 0.5314 GB, free: 8.824 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.1326, allocations: 207.1 kB / 0.5316 GB, free: 8.621 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.133, allocations: 230.9 kB / 0.5318 GB, free: 8.395 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.033e-05/0.133, allocations: 36 kB / 0.5319 GB, free: 8.359 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.1331, allocations: 36 kB / 0.5319 GB, free: 8.324 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.298e-05/0.1332, allocations: 95.55 kB / 0.532 GB, free: 8.23 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.1334, allocations: 234.7 kB / 0.5322 GB, free: 8 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000539/0.134, allocations: 441.9 kB / 0.5327 GB, free: 7.566 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.134, allocations: 3.938 kB / 0.5327 GB, free: 7.562 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.182e-06/0.134, allocations: 0 / 0.5327 GB, free: 7.562 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 7.705e-06/0.134, allocations: 0 / 0.5327 GB, free: 7.562 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: 77
 * Number of variables: 77
Notification: Performance of Generate backend data structure: time 0.00147/0.1355, allocations: 0.7304 MB / 0.5334 GB, free: 6.801 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1355, allocations: 12.03 kB / 0.5334 GB, free: 6.789 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1356, allocations: 52.61 kB / 0.5334 GB, free: 6.738 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.1361, allocations: 316.5 kB / 0.5337 GB, free: 6.402 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.1362, allocations: 29.02 kB / 0.5338 GB, free: 6.375 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.026e-05/0.1362, allocations: 36.33 kB / 0.5338 GB, free: 6.34 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.1368, allocations: 322.2 kB / 0.5341 GB, free: 6.008 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1369, allocations: 7.938 kB / 0.5341 GB, free: 6 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.1369, allocations: 12 kB / 0.5341 GB, free: 5.988 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.1369, allocations: 8 kB / 0.5341 GB, free: 5.98 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004338/0.1373, allocations: 218.4 kB / 0.5343 GB, free: 5.77 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.1393, allocations: 1.1 MB / 0.5354 GB, free: 4.609 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.1399, allocations: 251.6 kB / 0.5357 GB, free: 4.355 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.1401, allocations: 113.4 kB / 0.5358 GB, free: 4.242 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.1402, allocations: 4.281 kB / 0.5358 GB, free: 4.238 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1402, allocations: 34.84 kB / 0.5358 GB, free: 4.195 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=33): time 1.593e-06/0.1402, allocations: 7.938 kB / 0.5358 GB, free: 4.188 MB / 414.1 MB
Notification: Performance of matching and sorting (n=35): time 0.002085/0.1423, allocations: 0.8666 MB / 0.5367 GB, free: 3.289 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.1423, allocations: 59.34 kB / 0.5367 GB, free: 3.219 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000428/0.1428, allocations: 373.7 kB / 0.5371 GB, free: 2.848 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.1428, allocations: 33.7 kB / 0.5371 GB, free: 2.809 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.143, allocations: 220.9 kB / 0.5373 GB, free: 2.59 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1432, allocations: 135.2 kB / 0.5374 GB, free: 2.457 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.1433, allocations: 74.12 kB / 0.5375 GB, free: 2.379 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001692/0.1434, allocations: 354.7 kB / 0.5378 GB, free: 2.023 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.1436, allocations: 96.83 kB / 0.5379 GB, free: 1.93 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.1439, allocations: 140.6 kB / 0.5381 GB, free: 1.777 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004784/0.1443, allocations: 260 kB / 0.5383 GB, free: 1.508 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1444, allocations: 0 / 0.5383 GB, free: 1.508 MB / 414.1 MB
Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005891/0.1449, allocations: 349.1 kB / 0.5387 GB, free: 1.16 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.145, allocations: 4 kB / 0.5387 GB, free: 1.156 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.145, allocations: 4 kB / 0.5387 GB, free: 1.152 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.145, allocations: 4.125 kB / 0.5387 GB, free: 1.148 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007546/0.1457, allocations: 147.8 kB / 0.5388 GB, free: 1.004 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2049/0.3507, allocations: 1.334 MB / 0.5401 GB, free: 21.67 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.3511, allocations: 9.172 kB / 0.5401 GB, free: 21.67 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.3511, allocations: 14.11 kB / 0.5401 GB, free: 21.67 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (48):
 * Single equations (assignments): 47
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.3512, allocations: 152 kB / 0.5403 GB, free: 21.56 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.3513, allocations: 50 kB / 0.5403 GB, free: 21.56 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004954/0.3518, allocations: 316 kB / 0.5406 GB, free: 21.52 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3518, allocations: 9.484 kB / 0.5406 GB, free: 21.52 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.3518, allocations: 1.656 kB / 0.5406 GB, free: 21.52 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3518, allocations: 1.547 kB / 0.5406 GB, free: 21.52 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000969/0.3528, allocations: 0.7523 MB / 0.5414 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3528, allocations: 1.109 kB / 0.5414 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.3532, allocations: 79.86 kB / 0.5414 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3532, allocations: 1.594 kB / 0.5415 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.3532, allocations: 13.97 kB / 0.5415 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3532, allocations: 4.625 kB / 0.5415 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3532, allocations: 2.344 kB / 0.5415 GB, free: 21.25 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007009/0.3539, allocations: 0.5209 MB / 0.542 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3541, allocations: 65.91 kB / 0.542 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.3541, allocations: 8.281 kB / 0.542 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.3543, allocations: 10.3 kB / 0.5421 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.3544, allocations: 23.59 kB / 0.5421 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3544, allocations: 11.58 kB / 0.5421 GB, free: 21.1 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0002731/0.3547, allocations: 266 kB / 0.5423 GB, free: 21.02 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3547, allocations: 3.375 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003598/0.3551, allocations: 86.28 kB / 0.5424 GB, free: 21.02 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset)
 * 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 (36):
 * Single equations (assignments): 36
 * 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 9.225e-05/0.3552, allocations: 111 kB / 0.5425 GB, free: 20.92 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006475/0.3558, allocations: 274.5 kB / 0.5428 GB, free: 20.92 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3558, allocations: 0 / 0.5428 GB, free: 20.92 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.356, allocations: 123.2 kB / 0.5429 GB, free: 20.9 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.3565, allocations: 82.59 kB / 0.543 GB, free: 20.86 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.3583, allocations: 1.138 MB / 0.5441 GB, free: 20.21 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.3586, allocations: 0.8249 MB / 0.5449 GB, free: 19.51 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001845/0.3588, allocations: 50.25 kB / 0.545 GB, free: 19.5 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.3589, allocations: 31.92 kB / 0.545 GB, free: 19.5 MB / 414.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.3589, allocations: 0 / 0.545 GB, free: 19.5 MB / 414.1 MB
Notification: Performance of Templates: time 0.01079/0.3697, allocations: 4.599 MB / 0.5495 GB, free: 19.11 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile [Timeout 660]
(rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7  -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.260125773027539]
Failed to read output from testmodel.py, exit status != 0:
0.37772800493985415 0.38917641900000005 0.25254729600000003
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f0ca8d217b0>