Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 216 kB / 23.73 MB, free: 4.156 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.598/1.598, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3411/0.3411, allocations: 49.59 MB / 336.4 MB, free: 3.895 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002534/0.002534, allocations: 71.91 kB / 476.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1265, allocations: 62.42 MB / 0.5261 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.004589/0.131, allocations: 2.188 MB / 0.5283 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.1331, allocations: 0.6165 MB / 0.5289 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/0.1334, allocations: 7.938 kB / 0.5289 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002733/0.1337, allocations: 35.66 kB / 0.5289 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.1343, allocations: 91.27 kB / 0.529 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.1346, allocations: 51.94 kB / 0.5291 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006658/0.1353, allocations: 290.7 kB / 0.5293 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.1355, allocations: 53.47 kB / 0.5294 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003423/0.1359, allocations: 115.5 kB / 0.5295 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.1361, allocations: 115.3 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.1362, allocations: 16 kB / 0.5296 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1363, allocations: 24 kB / 0.5296 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.81e-05/0.1364, allocations: 39.84 kB / 0.5297 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.1365, allocations: 111.4 kB / 0.5298 GB, free: 10.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.137, allocations: 230.9 kB / 0.53 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.137, allocations: 0 / 0.53 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.137, allocations: 0 / 0.53 GB, free: 10.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.137, allocations: 0 / 0.53 GB, free: 10.18 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.00105/0.1381, allocations: 0.4968 MB / 0.5305 GB, free: 9.652 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1381, allocations: 12.03 kB / 0.5305 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.1382, allocations: 46.73 kB / 0.5305 GB, free: 9.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.1383, allocations: 28.8 kB / 0.5306 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.1387, allocations: 213 kB / 0.5308 GB, free: 9.324 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.287e-05/0.1388, allocations: 63.97 kB / 0.5308 GB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.1389, allocations: 28.12 kB / 0.5309 GB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.1393, allocations: 179 kB / 0.531 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1393, allocations: 4 kB / 0.531 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.1393, allocations: 4 kB / 0.531 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1394, allocations: 7.938 kB / 0.531 GB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.1397, allocations: 119.9 kB / 0.5312 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.141, allocations: 0.5775 MB / 0.5317 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004488/0.1415, allocations: 134.6 kB / 0.5319 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.1416, allocations: 80.77 kB / 0.5319 GB, free: 8.055 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.1416, allocations: 0 / 0.5319 GB, free: 8.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1417, allocations: 34.56 kB / 0.532 GB, free: 8.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.333e-06/0.1417, allocations: 0 / 0.532 GB, free: 8.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001297/0.143, allocations: 0.5205 MB / 0.5325 GB, free: 7.457 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.143, allocations: 51.41 kB / 0.5325 GB, free: 7.395 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.1433, allocations: 237.1 kB / 0.5327 GB, free: 7.152 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.1434, allocations: 29.7 kB / 0.5328 GB, free: 7.117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.1435, allocations: 148.6 kB / 0.5329 GB, free: 6.965 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/0.1436, allocations: 75.31 kB / 0.533 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.1437, allocations: 45.66 kB / 0.533 GB, free: 6.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.1438, allocations: 338.8 kB / 0.5334 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.144, allocations: 55.97 kB / 0.5334 GB, free: 6.445 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1441, allocations: 77.67 kB / 0.5335 GB, free: 6.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003254/0.1445, allocations: 145.5 kB / 0.5336 GB, free: 6.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1445, allocations: 4 kB / 0.5336 GB, free: 6.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004292/0.1449, allocations: 205.3 kB / 0.5338 GB, free: 6.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1449, allocations: 8 kB / 0.5338 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1449, allocations: 0 / 0.5338 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1449, allocations: 0 / 0.5338 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.1454, allocations: 71.95 kB / 0.5339 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.1454, allocations: 4 kB / 0.5339 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.1455, allocations: 12.02 kB / 0.5339 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.1456, allocations: 12 kB / 0.5339 GB, free: 5.898 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001479/0.1457, allocations: 141.7 kB / 0.5341 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.1458, allocations: 19.86 kB / 0.5341 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.437e-05/0.1458, allocations: 26.11 kB / 0.5341 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1458, allocations: 4 kB / 0.5341 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.1458, allocations: 4 kB / 0.5341 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1458, allocations: 0 / 0.5341 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008863/0.1467, allocations: 0.4935 MB / 0.5346 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1467, allocations: 15.88 kB / 0.5346 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.1471, allocations: 59.97 kB / 0.5347 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1471, allocations: 0 / 0.5347 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1471, allocations: 0 / 0.5347 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.1472, allocations: 7.938 kB / 0.5347 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1472, allocations: 0 / 0.5347 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.1478, allocations: 355.2 kB / 0.535 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.1479, allocations: 39.88 kB / 0.535 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.1479, allocations: 4 kB / 0.5351 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.1481, allocations: 15.92 kB / 0.5351 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.1481, allocations: 11.97 kB / 0.5351 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.1481, allocations: 8 kB / 0.5351 GB, free: 4.629 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.1483, allocations: 168.5 kB / 0.5352 GB, free: 4.465 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1483, allocations: 0 / 0.5352 GB, free: 4.465 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1486, allocations: 48 kB / 0.5353 GB, free: 4.418 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0009093/0.1495, allocations: 0.8807 MB / 0.5362 GB, free: 3.512 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.1499, allocations: 135.8 kB / 0.5363 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1499, allocations: 4 kB / 0.5363 GB, free: 3.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.1501, allocations: 67.91 kB / 0.5364 GB, free: 3.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.1505, allocations: 44.41 kB / 0.5364 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003854/0.1543, allocations: 2.61 MB / 0.5389 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.1545, allocations: 142 kB / 0.5391 GB, free: 420 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.1546, allocations: 25.92 kB / 0.5391 GB, free: 396 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1547, allocations: 75.41 kB / 0.5392 GB, free: 320 kB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1547, allocations: 0 / 0.5392 GB, free: 320 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2707/0.4254, allocations: 5.217 MB / 0.5443 GB, free: 22.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.02, allocations: 1.438 kB / 0.5443 GB, free: 22.35 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.270854478236288] Failed to read output from testmodel.py, exit status != 0: 12.130193221848458 12.144485304 12.004640772 Calling exit ...