Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.00169/0.00169, allocations: 113.1 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.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.001931/0.001931, allocations: 210.5 kB / 23.74 MB, free: 4.672 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.451/1.451, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.3169/0.3169, allocations: 49.57 MB / 336.3 MB, free: 4.098 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.002351/0.002351, allocations: 75.91 kB / 476.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.128, allocations: 62.42 MB / 0.5261 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003755/0.1318, allocations: 2.301 MB / 0.5284 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.1331, allocations: 0.6592 MB / 0.529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1332, allocations: 4 kB / 0.529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.1333, allocations: 35.59 kB / 0.529 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002465/0.1336, allocations: 83.33 kB / 0.5291 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.1337, allocations: 59.86 kB / 0.5292 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.1341, allocations: 274.7 kB / 0.5294 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1342, allocations: 53.11 kB / 0.5295 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.1344, allocations: 115.5 kB / 0.5296 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1346, allocations: 119.4 kB / 0.5297 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.1346, allocations: 20 kB / 0.5297 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.518e-05/0.1347, allocations: 20 kB / 0.5298 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.938e-05/0.1348, allocations: 47.78 kB / 0.5298 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.1349, allocations: 115.3 kB / 0.5299 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.1352, allocations: 226.9 kB / 0.5301 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1352, allocations: 0 / 0.5301 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1352, allocations: 4 kB / 0.5301 GB, free: 10.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1352, allocations: 0 / 0.5301 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009138/0.1361, allocations: 0.489 MB / 0.5306 GB, free: 9.656 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1362, allocations: 8.031 kB / 0.5306 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.402e-05/0.1362, allocations: 50.73 kB / 0.5307 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.49e-05/0.1363, allocations: 32.75 kB / 0.5307 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.1367, allocations: 205.1 kB / 0.5309 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.1367, allocations: 16.38 kB / 0.5309 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.1368, allocations: 16.38 kB / 0.5309 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.1371, allocations: 175.2 kB / 0.5311 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1371, allocations: 0 / 0.5311 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.1372, allocations: 4 kB / 0.5311 GB, free: 9.117 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1372, allocations: 4 kB / 0.5311 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.1374, allocations: 119.8 kB / 0.5312 GB, free: 8.996 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009817/0.1384, allocations: 0.597 MB / 0.5318 GB, free: 8.352 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.1387, allocations: 130.4 kB / 0.5319 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.1388, allocations: 72.88 kB / 0.532 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.1389, allocations: 7.984 kB / 0.532 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1389, allocations: 34.5 kB / 0.532 GB, free: 8.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.332e-06/0.1389, allocations: 0 / 0.532 GB, free: 8.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001079/0.14, allocations: 489.3 kB / 0.5325 GB, free: 7.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.14, allocations: 63.31 kB / 0.5326 GB, free: 7.504 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.1403, allocations: 233 kB / 0.5328 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1403, allocations: 29.7 kB / 0.5328 GB, free: 7.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.1404, allocations: 148.5 kB / 0.533 GB, free: 7.074 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.044e-05/0.1405, allocations: 71.38 kB / 0.533 GB, free: 7.004 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.699e-05/0.1406, allocations: 45.64 kB / 0.5331 GB, free: 6.953 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1407, allocations: 334.8 kB / 0.5334 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.1409, allocations: 51.97 kB / 0.5334 GB, free: 6.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.141, allocations: 73.67 kB / 0.5335 GB, free: 6.488 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.1413, allocations: 130 kB / 0.5336 GB, free: 6.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1413, allocations: 0 / 0.5336 GB, free: 6.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003732/0.1417, allocations: 201.3 kB / 0.5338 GB, free: 6.152 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1417, allocations: 4 kB / 0.5338 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1417, allocations: 4 kB / 0.5338 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1417, allocations: 0 / 0.5338 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003927/0.1421, allocations: 67.89 kB / 0.5339 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.1433, allocations: 1.341 MB / 0.5352 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.1434, allocations: 8.219 kB / 0.5352 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.1435, allocations: 11.98 kB / 0.5352 GB, free: 4.602 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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.000137/0.1436, allocations: 129.8 kB / 0.5353 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.098e-05/0.1436, allocations: 23.86 kB / 0.5354 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003629/0.144, allocations: 187.6 kB / 0.5355 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.144, allocations: 4 kB / 0.5356 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.144, allocations: 4 kB / 0.5356 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.144, allocations: 0 / 0.5356 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007803/0.1448, allocations: 0.5013 MB / 0.536 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1448, allocations: 0 / 0.536 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.145, allocations: 43.97 kB / 0.5361 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.145, allocations: 0 / 0.5361 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.145, allocations: 8 kB / 0.5361 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.145, allocations: 0 / 0.5361 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.145, allocations: 7.938 kB / 0.5361 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005154/0.1456, allocations: 351 kB / 0.5364 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.1456, allocations: 31.89 kB / 0.5365 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.1457, allocations: 7.984 kB / 0.5365 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1458, allocations: 8 kB / 0.5365 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.1459, allocations: 11.97 kB / 0.5365 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.1459, allocations: 12 kB / 0.5365 GB, free: 3.203 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.1461, allocations: 164.5 kB / 0.5367 GB, free: 3.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1461, allocations: 0 / 0.5367 GB, free: 3.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1463, allocations: 44 kB / 0.5367 GB, free: 3 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: 0 () * 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.0008455/0.1472, allocations: 0.8805 MB / 0.5376 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005559/0.1477, allocations: 167.8 kB / 0.5377 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1477, allocations: 0 / 0.5377 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.1479, allocations: 75.95 kB / 0.5378 GB, free: 1.855 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1483, allocations: 36.42 kB / 0.5378 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2113/0.3596, allocations: 2.572 MB / 0.5403 GB, free: 21.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001838/0.3598, allocations: 0.7528 MB / 0.5411 GB, free: 20.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.3599, allocations: 24.42 kB / 0.5411 GB, free: 20.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.36, allocations: 75.14 kB / 0.5412 GB, free: 20.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.36, allocations: 0.9688 kB / 0.5412 GB, free: 20.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03611/0.3961, allocations: 5.251 MB / 0.5463 GB, free: 20.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.25, allocations: 12.84 kB / 0.5463 GB, free: 20.22 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_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_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.349020279001707] Failed to read output from testmodel.py, exit status != 0: 11.362425299997994 11.377713884 11.239497726 Calling exit ...