Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.00137/0.00137, allocations: 127.4 kB / 17.79 MB, free: 5.246 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.00151/0.00151, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.607/1.607, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1911/0.1911, allocations: 38.51 MB / 348.7 MB, free: 2.59 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 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.003103/0.003103, allocations: 71.89 kB / 487.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1192, allocations: 62.41 MB / 0.5367 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007209/0.1264, allocations: 4.585 MB / 0.5411 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002672/0.1291, allocations: 1.53 MB / 0.5426 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.1294, allocations: 19.81 kB / 0.5427 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004893/0.1299, allocations: 119.1 kB / 0.5428 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007322/0.1306, allocations: 278.3 kB / 0.543 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1309, allocations: 119.8 kB / 0.5432 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00073/0.1316, allocations: 0.5057 MB / 0.5436 GB, free: 400 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.1319, allocations: 123.9 kB / 0.5438 GB, free: 272 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003324/0.1322, allocations: 211.1 kB / 0.544 GB, free: 60 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003316/0.1325, allocations: 223.1 kB / 0.5442 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.598e-05/0.1326, allocations: 24 kB / 0.5442 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.1326, allocations: 28 kB / 0.5442 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.1328, allocations: 99.66 kB / 0.5443 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.1329, allocations: 183.1 kB / 0.5445 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004918/0.1334, allocations: 390.2 kB / 0.5449 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1334, allocations: 0 / 0.5449 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1334, allocations: 0 / 0.5449 GB, free: 15.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.1335, allocations: 0 / 0.5449 GB, free: 15.13 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001191/0.1346, allocations: 0.6708 MB / 0.5455 GB, free: 14.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1347, allocations: 8.031 kB / 0.5455 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.1348, allocations: 62.73 kB / 0.5456 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.224e-05/0.1348, allocations: 44.66 kB / 0.5456 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007716/0.1356, allocations: 411.6 kB / 0.546 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.1357, allocations: 16.56 kB / 0.546 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.1357, allocations: 28 kB / 0.5461 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.1364, allocations: 342.2 kB / 0.5464 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.1364, allocations: 0 / 0.5464 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.1364, allocations: 12 kB / 0.5464 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1364, allocations: 8 kB / 0.5464 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.1368, allocations: 201.5 kB / 0.5466 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.1388, allocations: 1.486 MB / 0.5481 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.1393, allocations: 198.3 kB / 0.5483 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1394, allocations: 71.55 kB / 0.5483 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.1394, allocations: 0 / 0.5483 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.1395, allocations: 46.48 kB / 0.5484 GB, free: 11.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.944e-06/0.1395, allocations: 0 / 0.5484 GB, free: 11.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001489/0.141, allocations: 0.6913 MB / 0.549 GB, free: 10.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.1412, allocations: 140.4 kB / 0.5492 GB, free: 10.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/0.1416, allocations: 313.7 kB / 0.5495 GB, free: 10.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.1417, allocations: 30.08 kB / 0.5495 GB, free: 9.996 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.1419, allocations: 224.1 kB / 0.5497 GB, free: 9.773 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.166e-05/0.142, allocations: 63.47 kB / 0.5498 GB, free: 9.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.1422, allocations: 61.64 kB / 0.5498 GB, free: 9.645 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.1423, allocations: 338.8 kB / 0.5502 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.92e-05/0.1424, allocations: 47.97 kB / 0.5502 GB, free: 9.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.1426, allocations: 160.2 kB / 0.5504 GB, free: 9.059 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.143, allocations: 224.9 kB / 0.5506 GB, free: 8.793 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.143, allocations: 0 / 0.5506 GB, free: 8.793 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004108/0.1434, allocations: 257.5 kB / 0.5508 GB, free: 8.535 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1434, allocations: 4 kB / 0.5508 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1434, allocations: 7.984 kB / 0.5508 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/0.1435, allocations: 7.938 kB / 0.5508 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.1439, allocations: 79.89 kB / 0.5509 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.1451, allocations: 1.369 MB / 0.5522 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.1453, allocations: 19.94 kB / 0.5523 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.1453, allocations: 15.94 kB / 0.5523 GB, free: 6.898 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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.0002149/0.1455, allocations: 177.7 kB / 0.5525 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.996e-05/0.1456, allocations: 27.81 kB / 0.5525 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/0.1459, allocations: 188.4 kB / 0.5527 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1459, allocations: 4 kB / 0.5527 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.1459, allocations: 0 / 0.5527 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1459, allocations: 0 / 0.5527 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009345/0.1469, allocations: 0.5509 MB / 0.5532 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1469, allocations: 0 / 0.5532 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.1471, allocations: 39.98 kB / 0.5532 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1471, allocations: 0 / 0.5532 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.1471, allocations: 8 kB / 0.5532 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.1472, allocations: 3.938 kB / 0.5532 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.1472, allocations: 3.938 kB / 0.5533 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005375/0.1477, allocations: 497.2 kB / 0.5537 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1478, allocations: 108.9 kB / 0.5538 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1479, allocations: 8 kB / 0.5538 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.1481, allocations: 8 kB / 0.5538 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.1481, allocations: 19.86 kB / 0.5539 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.1481, allocations: 4 kB / 0.5539 GB, free: 5.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.1484, allocations: 231.2 kB / 0.5541 GB, free: 4.945 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1484, allocations: 0 / 0.5541 GB, free: 4.945 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004428/0.1488, allocations: 56 kB / 0.5541 GB, free: 4.891 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009015/0.1497, allocations: 1.025 MB / 0.5551 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004/0.1501, allocations: 155.7 kB / 0.5553 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1501, allocations: 0 / 0.5553 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.1502, allocations: 67.12 kB / 0.5554 GB, free: 3.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007283/0.151, allocations: 95.95 kB / 0.5554 GB, free: 3.531 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.1557, allocations: 3.279 MB / 0.5586 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.1562, allocations: 0.8067 MB / 0.5594 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001873/0.1564, allocations: 50.94 kB / 0.5595 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.1565, allocations: 115.4 kB / 0.5596 GB, free: 15.08 MB / 430.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1565, allocations: 3.938 kB / 0.5596 GB, free: 15.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.1896, allocations: 6.747 MB / 0.5662 GB, free: 8.445 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/8.496, allocations: 15.12 kB / 0.5662 GB, free: 8.434 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.537214900992694] Failed to read output from testmodel.py, exit status != 0: 8.571173538002768 8.591683927 8.454121913 Calling exit ...