Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.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.001374/0.001374, allocations: 113 kB / 18.49 MB, free: 4.539 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.001414/0.001414, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.615/1.615, allocations: 230.6 MB / 254.8 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.254/0.254, allocations: 38.52 MB / 349.4 MB, free: 2.578 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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="cs",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.002025/0.002025, allocations: 75.89 kB / 487.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1218, allocations: 62.41 MB / 0.5374 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006597/0.1284, allocations: 4.464 MB / 0.5417 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002835/0.1312, allocations: 1.585 MB / 0.5433 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.1314, allocations: 19.81 kB / 0.5433 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1326, allocations: 286.7 kB / 0.5436 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008639/0.1335, allocations: 290.6 kB / 0.5438 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000805/0.1343, allocations: 247.4 kB / 0.5441 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000797/0.1351, allocations: 0.6118 MB / 0.5447 GB, free: 36 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003768/0.1355, allocations: 187.8 kB / 0.5448 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004651/0.1359, allocations: 283 kB / 0.5451 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005363/0.1365, allocations: 398.8 kB / 0.5455 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.1365, allocations: 40 kB / 0.5455 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005086/0.137, allocations: 235.6 kB / 0.5458 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.1373, allocations: 239.3 kB / 0.546 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.1376, allocations: 254.8 kB / 0.5462 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008472/0.1384, allocations: 0.6655 MB / 0.5469 GB, free: 13.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1384, allocations: 11.92 kB / 0.5469 GB, free: 13.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1384, allocations: 0 / 0.5469 GB, free: 13.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1384, allocations: 0 / 0.5469 GB, free: 13.75 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00206/0.1405, allocations: 0.7887 MB / 0.5477 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.1406, allocations: 8.031 kB / 0.5477 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.14e-05/0.1406, allocations: 13.12 kB / 0.5477 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.1407, allocations: 86.7 kB / 0.5478 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.142, allocations: 132.4 kB / 0.5479 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009927/0.143, allocations: 419.4 kB / 0.5483 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.602e-05/0.143, allocations: 29.12 kB / 0.5483 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.1432, allocations: 47.97 kB / 0.5484 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.1448, allocations: 0.6954 MB / 0.549 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.1448, allocations: 3.938 kB / 0.549 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.1449, allocations: 19.98 kB / 0.5491 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003125/0.1452, allocations: 68.89 kB / 0.5491 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1469, allocations: 0.6674 MB / 0.5498 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.1525, allocations: 2.647 MB / 0.5524 GB, free: 7.852 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007882/0.1533, allocations: 301.3 kB / 0.5527 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004379/0.1537, allocations: 197.6 kB / 0.5528 GB, free: 7.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.1538, allocations: 4 kB / 0.5528 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.568e-05/0.1539, allocations: 42.55 kB / 0.5529 GB, free: 7.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 3.075e-06/0.1539, allocations: 0 / 0.5529 GB, free: 7.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=40): time 0.003281/0.1571, allocations: 1.311 MB / 0.5542 GB, free: 5.922 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.1572, allocations: 85.05 kB / 0.5542 GB, free: 5.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.1577, allocations: 291.3 kB / 0.5545 GB, free: 5.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.701e-05/0.1578, allocations: 29.7 kB / 0.5546 GB, free: 5.496 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.158, allocations: 260.4 kB / 0.5548 GB, free: 5.234 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.1582, allocations: 146.7 kB / 0.5549 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1585, allocations: 90.08 kB / 0.555 GB, free: 4.996 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.1587, allocations: 346.7 kB / 0.5554 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004486/0.1591, allocations: 188.9 kB / 0.5555 GB, free: 4.465 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006141/0.1597, allocations: 329.3 kB / 0.5559 GB, free: 4.082 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.1609, allocations: 0.5506 MB / 0.5564 GB, free: 3.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1609, allocations: 8 kB / 0.5564 GB, free: 3.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002075/0.163, allocations: 0.6744 MB / 0.5571 GB, free: 2.777 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.163, allocations: 4 kB / 0.5571 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001306/0.1643, allocations: 491.5 kB / 0.5575 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006608/0.165, allocations: 109.6 kB / 0.5576 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.1654, allocations: 79.88 kB / 0.5577 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004698/0.1701, allocations: 3.274 MB / 0.5609 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003911/0.1705, allocations: 23.97 kB / 0.5609 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.38e-05/0.1706, allocations: 20 kB / 0.5609 GB, free: 14.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004134/0.171, allocations: 209.7 kB / 0.5611 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.1712, allocations: 31.77 kB / 0.5612 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.1723, allocations: 472.6 kB / 0.5616 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.238e-05/0.1723, allocations: 16 kB / 0.5616 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1724, allocations: 11.88 kB / 0.5617 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.1724, allocations: 3.984 kB / 0.5617 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.1749, allocations: 1.007 MB / 0.5626 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1749, allocations: 0 / 0.5626 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006783/0.1756, allocations: 75.83 kB / 0.5627 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1756, allocations: 4.062 kB / 0.5627 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.1756, allocations: 11.98 kB / 0.5627 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.016e-05/0.1756, allocations: 8 kB / 0.5627 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1756, allocations: 0 / 0.5627 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.1774, allocations: 0.7358 MB / 0.5635 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.1777, allocations: 145.1 kB / 0.5636 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.1778, allocations: 11.98 kB / 0.5636 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/0.1781, allocations: 15.98 kB / 0.5636 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.994e-05/0.1782, allocations: 27.89 kB / 0.5636 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.1783, allocations: 8 kB / 0.5637 GB, free: 11.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.1787, allocations: 207.1 kB / 0.5639 GB, free: 11.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1787, allocations: 0 / 0.5639 GB, free: 11.39 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008593/0.1795, allocations: 108 kB / 0.564 GB, free: 11.29 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.002203/0.1817, allocations: 1.328 MB / 0.5653 GB, free: 9.926 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.1832, allocations: 0.6813 MB / 0.5659 GB, free: 9.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1832, allocations: 1.125 kB / 0.5659 GB, free: 9.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.1836, allocations: 199.8 kB / 0.5661 GB, free: 9.023 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/0.1843, allocations: 71.7 kB / 0.5662 GB, free: 8.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008287/0.1926, allocations: 4.394 MB / 0.5705 GB, free: 4.332 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005904/0.1932, allocations: 0.8782 MB / 0.5713 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003018/0.1935, allocations: 103.2 kB / 0.5714 GB, free: 3.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.1937, allocations: 139.4 kB / 0.5716 GB, free: 3.188 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1937, allocations: 0 / 0.5716 GB, free: 3.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03624/0.2299, allocations: 8.318 MB / 0.5797 GB, free: 10.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.02, allocations: 11.92 kB / 0.5797 GB, free: 10.98 MB / 446.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.460582416970283] Failed to read output from testmodel.py, exit status != 0: 11.160023467964493 11.418641898 11.033869797 Calling exit ...