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.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.001729/0.001729, allocations: 119.3 kB / 19.43 MB, free: 2.602 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.001931/0.001931, allocations: 188.9 kB / 22.68 MB, free: 5.465 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.471/1.471, allocations: 207.6 MB / 233.4 MB, free: 11 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.3157/0.3157, allocations: 49.54 MB / 335.1 MB, free: 4.504 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: "" <> 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.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.002192/0.002192, allocations: 71.89 kB / 474.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1338, allocations: 62.33 MB / 0.5244 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.004019/0.1378, allocations: 2.317 MB / 0.5267 GB, free: 12.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.1392, allocations: 0.6592 MB / 0.5273 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1393, allocations: 7.938 kB / 0.5273 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.1395, allocations: 31.66 kB / 0.5273 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.1397, allocations: 91.27 kB / 0.5274 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.1399, allocations: 55.94 kB / 0.5275 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.1403, allocations: 290.7 kB / 0.5278 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1405, allocations: 57.27 kB / 0.5278 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1407, allocations: 111.6 kB / 0.5279 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.1409, allocations: 115.4 kB / 0.528 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/0.1409, allocations: 20 kB / 0.528 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.141, allocations: 24 kB / 0.5281 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.886e-05/0.1411, allocations: 47.77 kB / 0.5281 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1412, allocations: 131.3 kB / 0.5282 GB, free: 11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.1416, allocations: 226.9 kB / 0.5285 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1416, allocations: 0 / 0.5285 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1416, allocations: 4 kB / 0.5285 GB, free: 10.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1416, allocations: 0 / 0.5285 GB, free: 10.77 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.001055/0.1426, allocations: 0.576 MB / 0.529 GB, free: 10.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1427, allocations: 15.83 kB / 0.529 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.953e-05/0.1427, allocations: 50.73 kB / 0.5291 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1429, allocations: 28.8 kB / 0.5291 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.1433, allocations: 270.9 kB / 0.5294 GB, free: 9.742 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.339e-05/0.1434, allocations: 42.27 kB / 0.5294 GB, free: 9.695 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.1434, allocations: 20.12 kB / 0.5294 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.1438, allocations: 183.1 kB / 0.5296 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.1438, allocations: 0 / 0.5296 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.1438, allocations: 4 kB / 0.5296 GB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1438, allocations: 4 kB / 0.5296 GB, free: 9.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.1442, allocations: 127.8 kB / 0.5297 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.1452, allocations: 0.6699 MB / 0.5304 GB, free: 8.621 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.1456, allocations: 134.6 kB / 0.5305 GB, free: 8.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.1458, allocations: 84.73 kB / 0.5306 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.1458, allocations: 0 / 0.5306 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.1458, allocations: 34.56 kB / 0.5306 GB, free: 8.352 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.032e-06/0.1459, allocations: 0 / 0.5306 GB, free: 8.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.00126/0.1471, allocations: 0.5916 MB / 0.5312 GB, free: 7.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.1472, allocations: 51.41 kB / 0.5313 GB, free: 7.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.1474, allocations: 233 kB / 0.5315 GB, free: 7.406 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.1475, allocations: 33.7 kB / 0.5315 GB, free: 7.367 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1476, allocations: 148.5 kB / 0.5317 GB, free: 7.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.857e-05/0.1477, allocations: 67.38 kB / 0.5317 GB, free: 7.152 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/0.1477, allocations: 41.72 kB / 0.5318 GB, free: 7.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.1479, allocations: 338.8 kB / 0.5321 GB, free: 6.766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1481, allocations: 55.97 kB / 0.5321 GB, free: 6.711 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.1482, allocations: 85.61 kB / 0.5322 GB, free: 6.621 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.1485, allocations: 141.5 kB / 0.5323 GB, free: 6.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1485, allocations: 0 / 0.5323 GB, free: 6.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000409/0.1489, allocations: 213.2 kB / 0.5326 GB, free: 6.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1489, allocations: 4 kB / 0.5326 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1489, allocations: 0 / 0.5326 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.149, allocations: 4 kB / 0.5326 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.1494, allocations: 75.89 kB / 0.5326 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1494, allocations: 3.938 kB / 0.5326 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.1495, allocations: 19.95 kB / 0.5327 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.1495, allocations: 12 kB / 0.5327 GB, free: 6.145 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.0001387/0.1497, allocations: 133.7 kB / 0.5328 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.153e-05/0.1497, allocations: 23.84 kB / 0.5328 GB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.112e-05/0.1498, allocations: 30.17 kB / 0.5328 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1498, allocations: 0 / 0.5328 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1498, allocations: 0 / 0.5328 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1498, allocations: 4 kB / 0.5328 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008984/0.1507, allocations: 0.5454 MB / 0.5334 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1507, allocations: 0 / 0.5334 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.1511, allocations: 63.89 kB / 0.5334 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1511, allocations: 0 / 0.5334 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.1511, allocations: 8 kB / 0.5334 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1511, allocations: 7.938 kB / 0.5335 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1511, allocations: 0 / 0.5335 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006271/0.1517, allocations: 355.3 kB / 0.5338 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1519, allocations: 113 kB / 0.5339 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.1519, allocations: 4 kB / 0.5339 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.152, allocations: 15.92 kB / 0.5339 GB, free: 4.758 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.775e-05/0.1521, allocations: 15.98 kB / 0.5339 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.1521, allocations: 4 kB / 0.5339 GB, free: 4.738 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001823/0.1523, allocations: 172.5 kB / 0.5341 GB, free: 4.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1523, allocations: 0 / 0.5341 GB, free: 4.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1526, allocations: 44 kB / 0.5341 GB, free: 4.527 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.00104/0.1537, allocations: 0.8802 MB / 0.535 GB, free: 3.617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.1541, allocations: 139.9 kB / 0.5351 GB, free: 3.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1541, allocations: 0 / 0.5351 GB, free: 3.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.1542, allocations: 67.91 kB / 0.5352 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004516/0.1547, allocations: 49.03 kB / 0.5353 GB, free: 3.367 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.1585, allocations: 2.62 MB / 0.5378 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2164/0.3749, allocations: 0.7425 MB / 0.5385 GB, free: 22.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.3751, allocations: 22.42 kB / 0.5386 GB, free: 22.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3752, allocations: 76.23 kB / 0.5386 GB, free: 22.94 MB / 414.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3752, allocations: 0 / 0.5386 GB, free: 22.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.406, allocations: 4.561 MB / 0.5431 GB, free: 22.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.433/8.839, allocations: 14.39 kB / 0.5431 GB, free: 22.34 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.760638101957738] Failed to read output from testmodel.py, exit status != 0: 8.910324017051607 8.923058136 8.778819182 Calling exit ...