Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.001321/0.001321, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001438/0.001438, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.521/1.521, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.3134/0.3134, 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.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.001938/0.001938, allocations: 63.89 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 62.42 MB / 0.5366 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008968/0.1308, allocations: 6.17 MB / 0.5427 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.1347, allocations: 2.014 MB / 0.5446 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004208/0.1351, allocations: 31.75 kB / 0.5447 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.1369, allocations: 0.7118 MB / 0.5454 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000946/0.1379, allocations: 382.2 kB / 0.5457 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.139, allocations: 403 kB / 0.5461 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.1402, allocations: 0.9354 MB / 0.547 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006273/0.1409, allocations: 412.1 kB / 0.5474 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007182/0.1416, allocations: 450.3 kB / 0.5479 GB, free: 12.03 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007744/0.1423, allocations: 0.5646 MB / 0.5484 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.991e-05/0.1424, allocations: 56 kB / 0.5485 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005431/0.143, allocations: 267.6 kB / 0.5487 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000412/0.1434, allocations: 419 kB / 0.5491 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004636/0.1439, allocations: 429.9 kB / 0.5495 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.1451, allocations: 1.027 MB / 0.5505 GB, free: 9.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1451, allocations: 0 / 0.5505 GB, free: 9.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1451, allocations: 0 / 0.5505 GB, free: 9.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.1452, allocations: 0 / 0.5505 GB, free: 9.281 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002089/0.1472, allocations: 1.094 MB / 0.5516 GB, free: 8.137 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1473, allocations: 8.031 kB / 0.5516 GB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.1475, allocations: 139.2 kB / 0.5517 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.1485, allocations: 200.2 kB / 0.5519 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009938/0.1495, allocations: 0.5521 MB / 0.5525 GB, free: 7.195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.1496, allocations: 58.36 kB / 0.5525 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.1497, allocations: 79.94 kB / 0.5526 GB, free: 7.062 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.1514, allocations: 1.126 MB / 0.5537 GB, free: 5.832 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.1514, allocations: 7.938 kB / 0.5537 GB, free: 5.824 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.388e-05/0.1515, allocations: 43.92 kB / 0.5537 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.069e-05/0.1516, allocations: 57.92 kB / 0.5538 GB, free: 5.727 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.153, allocations: 0.8662 MB / 0.5546 GB, free: 4.855 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005871/0.1588, allocations: 5.052 MB / 0.5596 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007246/0.1596, allocations: 392.8 kB / 0.56 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.1599, allocations: 193.6 kB / 0.5601 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.242e-05/0.1599, allocations: 19.97 kB / 0.5602 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.16, allocations: 42.56 kB / 0.5602 GB, free: 14.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=43): time 2.514e-06/0.16, allocations: 0 / 0.5602 GB, free: 14.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=44): time 0.002043/0.162, allocations: 1.085 MB / 0.5613 GB, free: 13.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.1621, allocations: 85.11 kB / 0.5613 GB, free: 13.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000593/0.1627, allocations: 0.4901 MB / 0.5618 GB, free: 13.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.1627, allocations: 37.7 kB / 0.5619 GB, free: 13.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.1631, allocations: 467.4 kB / 0.5623 GB, free: 12.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.1632, allocations: 170.6 kB / 0.5625 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.1634, allocations: 154.5 kB / 0.5626 GB, free: 12.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1636, allocations: 366.7 kB / 0.563 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/0.164, allocations: 245.8 kB / 0.5632 GB, free: 11.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007236/0.1647, allocations: 0.6132 MB / 0.5638 GB, free: 10.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.1659, allocations: 0.9338 MB / 0.5647 GB, free: 9.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1659, allocations: 8 kB / 0.5647 GB, free: 9.852 MB / 430.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001379/0.1673, allocations: 0.9037 MB / 0.5656 GB, free: 8.941 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.1673, allocations: 8 kB / 0.5656 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.1674, allocations: 16 kB / 0.5656 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/0.1674, allocations: 16 kB / 0.5656 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007405/0.1681, allocations: 220.2 kB / 0.5658 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.442e-05/0.1682, allocations: 27.92 kB / 0.5659 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.1686, allocations: 51.95 kB / 0.5659 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/0.1686, allocations: 44 kB / 0.566 GB, free: 8.566 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0004148/0.1691, allocations: 309.3 kB / 0.5663 GB, free: 8.254 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.256e-05/0.1691, allocations: 55.62 kB / 0.5663 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.1702, allocations: 0.5641 MB / 0.5669 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1702, allocations: 8 kB / 0.5669 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.1702, allocations: 0 / 0.5669 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1702, allocations: 3.984 kB / 0.5669 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.1724, allocations: 1.325 MB / 0.5682 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1724, allocations: 3.938 kB / 0.5682 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.1729, allocations: 111.9 kB / 0.5683 GB, free: 6.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.868e-06/0.1729, allocations: 7.938 kB / 0.5683 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.1729, allocations: 12 kB / 0.5683 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.1729, allocations: 4 kB / 0.5683 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.1729, allocations: 3.938 kB / 0.5683 GB, free: 6.062 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009183/0.1739, allocations: 0.6476 MB / 0.5689 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.174, allocations: 144.5 kB / 0.5691 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.664e-05/0.1741, allocations: 16 kB / 0.5691 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.1743, allocations: 15.98 kB / 0.5691 GB, free: 5.184 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.596e-05/0.1744, allocations: 43.67 kB / 0.5691 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.1744, allocations: 16 kB / 0.5692 GB, free: 5.125 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004074/0.1748, allocations: 334.8 kB / 0.5695 GB, free: 4.801 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1748, allocations: 0 / 0.5695 GB, free: 4.801 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000765/0.1756, allocations: 156 kB / 0.5696 GB, free: 4.648 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.001242/0.1769, allocations: 1.201 MB / 0.5708 GB, free: 3.391 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1779, allocations: 0.5798 MB / 0.5714 GB, free: 2.816 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1779, allocations: 4.062 kB / 0.5714 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.1782, allocations: 227.2 kB / 0.5716 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.1789, allocations: 103.4 kB / 0.5717 GB, free: 2.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008444/0.1874, allocations: 5.795 MB / 0.5773 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008225/0.1882, allocations: 0.9996 MB / 0.5783 GB, free: 11.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006832/0.1889, allocations: 232.9 kB / 0.5785 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004381/0.1893, allocations: 259.3 kB / 0.5788 GB, free: 10.69 MB / 446.1 MB Notification: Performance of SimCode: time 2.265e-06/0.1893, allocations: 0 / 0.5788 GB, free: 10.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2822/0.4715, allocations: 11.54 MB / 0.5901 GB, free: 50.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.981/9.452, allocations: 11.97 kB / 0.5901 GB, free: 50.26 MB / 446.1 MB " [Timeout remaining time 650] (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.50609249799163] Failed to read output from testmodel.py, exit status != 0: 9.52602859599574 9.545380243 9.396519143 Calling exit ...