Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001578/0.001578, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001851/0.001851, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.546/1.546, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.1894/0.1894, allocations: 38.5 MB / 348.7 MB, free: 2.609 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.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001976/0.001976, allocations: 64.19 kB / 487.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1258, allocations: 62.42 MB / 0.5367 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007555/0.1334, allocations: 4.988 MB / 0.5415 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003778/0.1372, allocations: 2.539 MB / 0.544 GB, free: 12 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000287/0.1374, allocations: 19.98 kB / 0.544 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.1387, allocations: 429.6 kB / 0.5444 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00127/0.14, allocations: 0.5252 MB / 0.545 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.1407, allocations: 279.2 kB / 0.5452 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009286/0.1416, allocations: 0.736 MB / 0.5459 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004579/0.1421, allocations: 277.6 kB / 0.5462 GB, free: 13.76 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004934/0.1426, allocations: 338.7 kB / 0.5465 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.1431, allocations: 354.8 kB / 0.5469 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.1431, allocations: 36 kB / 0.5469 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.1442, allocations: 0.6468 MB / 0.5475 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.1444, allocations: 203.4 kB / 0.5477 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.1447, allocations: 254.7 kB / 0.548 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.1457, allocations: 0.7629 MB / 0.5487 GB, free: 11.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1457, allocations: 0 / 0.5487 GB, free: 11.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1457, allocations: 4 kB / 0.5487 GB, free: 11.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.1457, allocations: 0 / 0.5487 GB, free: 11.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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001269/0.147, allocations: 0.783 MB / 0.5495 GB, free: 10.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.147, allocations: 8.031 kB / 0.5495 GB, free: 10.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1471, allocations: 90.69 kB / 0.5496 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001718/0.1489, allocations: 204.4 kB / 0.5498 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005745/0.1494, allocations: 374.5 kB / 0.5501 GB, free: 9.637 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.1495, allocations: 33.38 kB / 0.5502 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.878e-05/0.1496, allocations: 40.36 kB / 0.5502 GB, free: 9.566 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.1506, allocations: 0.6342 MB / 0.5508 GB, free: 8.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.1506, allocations: 3.953 kB / 0.5508 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.868e-05/0.1507, allocations: 16 kB / 0.5508 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.163e-05/0.1507, allocations: 32.98 kB / 0.5509 GB, free: 8.852 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1518, allocations: 0.605 MB / 0.5515 GB, free: 8.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003607/0.1554, allocations: 2.261 MB / 0.5537 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007184/0.1561, allocations: 454.5 kB / 0.5541 GB, free: 5.387 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003379/0.1564, allocations: 209.7 kB / 0.5543 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.1565, allocations: 8 kB / 0.5543 GB, free: 5.168 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.1565, allocations: 42.5 kB / 0.5543 GB, free: 5.117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.1565, allocations: 0 / 0.5543 GB, free: 5.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.003673/0.1602, allocations: 1.706 MB / 0.556 GB, free: 3.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.1602, allocations: 85.09 kB / 0.5561 GB, free: 3.234 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.1606, allocations: 279 kB / 0.5564 GB, free: 2.953 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.1606, allocations: 33.7 kB / 0.5564 GB, free: 2.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.1608, allocations: 236.5 kB / 0.5566 GB, free: 2.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.161, allocations: 162.6 kB / 0.5568 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.1611, allocations: 86.2 kB / 0.5569 GB, free: 2.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1613, allocations: 354.8 kB / 0.5572 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002935/0.1616, allocations: 173 kB / 0.5574 GB, free: 1.902 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.162, allocations: 298.3 kB / 0.5576 GB, free: 1.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007468/0.1627, allocations: 0.4966 MB / 0.5581 GB, free: 1.023 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1627, allocations: 4 kB / 0.5581 GB, free: 1.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00148/0.1642, allocations: 0.6852 MB / 0.5588 GB, free: 332 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1642, allocations: 4 kB / 0.5588 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.1642, allocations: 4 kB / 0.5588 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006317/0.1649, allocations: 176.7 kB / 0.559 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.1653, allocations: 91.88 kB / 0.5591 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.1694, allocations: 2.786 MB / 0.5618 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.1697, allocations: 19.98 kB / 0.5618 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-05/0.1698, allocations: 20 kB / 0.5618 GB, free: 13.09 MB / 430.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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000287/0.17, allocations: 205.7 kB / 0.562 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.573e-05/0.1701, allocations: 43.81 kB / 0.5621 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.1715, allocations: 0.6297 MB / 0.5627 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.1715, allocations: 8 kB / 0.5627 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1715, allocations: 3.938 kB / 0.5627 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1715, allocations: 0 / 0.5627 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.174, allocations: 1.34 MB / 0.564 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.174, allocations: 0 / 0.564 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/0.1744, allocations: 79.89 kB / 0.5641 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005092/0.1749, allocations: 148.8 kB / 0.5642 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.1749, allocations: 8 kB / 0.5642 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.1784, allocations: 2.565 MB / 0.5667 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1784, allocations: 192 / 0.5667 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.18, allocations: 0.9616 MB / 0.5677 GB, free: 6.832 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1802, allocations: 108.8 kB / 0.5678 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.026e-05/0.1802, allocations: 15.94 kB / 0.5678 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1804, allocations: 15.98 kB / 0.5678 GB, free: 6.676 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.1805, allocations: 31.89 kB / 0.5678 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.1805, allocations: 16 kB / 0.5678 GB, free: 6.629 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002387/0.1808, allocations: 201.9 kB / 0.568 GB, free: 6.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1808, allocations: 0 / 0.568 GB, free: 6.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006816/0.1815, allocations: 140 kB / 0.5682 GB, free: 6.293 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00196/0.1834, allocations: 1.498 MB / 0.5696 GB, free: 4.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.1848, allocations: 0.646 MB / 0.5703 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1848, allocations: 0 / 0.5703 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.1856, allocations: 407 kB / 0.5707 GB, free: 3.688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.1861, allocations: 71.12 kB / 0.5707 GB, free: 3.621 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006824/0.1929, allocations: 4.459 MB / 0.5751 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/0.1934, allocations: 0.8746 MB / 0.5759 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.1936, allocations: 75.16 kB / 0.576 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.1939, allocations: 147.4 kB / 0.5761 GB, free: 13.86 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1939, allocations: 0 / 0.5761 GB, free: 13.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/0.2368, allocations: 10.03 MB / 0.5859 GB, free: 3.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.44, allocations: 10.91 kB / 0.586 GB, free: 3.93 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_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_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.719517773002735] Failed to read output from testmodel.py, exit status != 0: 12.537797529992531 12.824792794 12.676437883 Calling exit ...