Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 106.1 kB / 16.92 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1827/0.1827, allocations: 38.03 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 63.28 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09505, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.01019/0.1053, allocations: 8.924 MB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00507/0.1104, allocations: 3.041 MB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008673/0.1113, allocations: 31.81 kB / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002794/0.1141, allocations: 1.077 MB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.1158, allocations: 0.6297 MB / 470.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.1176, allocations: 0.721 MB / 471.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001708/0.1194, allocations: 1.629 MB / 473 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.1205, allocations: 0.9053 MB / 473.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.1216, allocations: 0.7198 MB / 474.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.1229, allocations: 0.9385 MB / 475.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002665/0.1232, allocations: 104 kB / 475.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009319/0.1242, allocations: 455.3 kB / 476.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006377/0.1248, allocations: 0.6625 MB / 476.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009353/0.1258, allocations: 0.7152 MB / 477.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.1275, allocations: 1.745 MB / 479.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1275, allocations: 0 / 479.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1275, allocations: 4 kB / 479.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.976e-05/0.1276, allocations: 4 kB / 479.3 MB, free: 1.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.003619/0.1312, allocations: 1.643 MB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1313, allocations: 11.89 kB / 480.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003545/0.1316, allocations: 202.4 kB / 481.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00182/0.1335, allocations: 267 kB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.135, allocations: 0.8441 MB / 482.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.975e-05/0.135, allocations: 86.72 kB / 482.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003353/0.1354, allocations: 155.8 kB / 482.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.1384, allocations: 1.85 MB / 484.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.1385, allocations: 11.88 kB / 484.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002035/0.1387, allocations: 55.95 kB / 484.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003023/0.139, allocations: 102.1 kB / 484.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.1416, allocations: 1.495 MB / 486 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009484/0.1511, allocations: 8.292 MB / 494.3 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.1525, allocations: 1.166 MB / 495.4 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/0.1532, allocations: 488.2 kB / 495.9 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.193e-05/0.1533, allocations: 16.62 kB / 495.9 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1534, allocations: 47.16 kB / 496 MB, free: 84 kB / 366.1 MB Notification: Performance of pre-optimization done (n=82): time 3.026e-06/0.1534, allocations: 0 / 496 MB, free: 84 kB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.00441/0.1578, allocations: 2.433 MB / 498.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.1579, allocations: 93.64 kB / 498.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.1589, allocations: 0.8212 MB / 499.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.77e-05/0.159, allocations: 41.7 kB / 499.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006926/0.1597, allocations: 0.6803 MB / 0.4883 GB, free: 11.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.16, allocations: 299.8 kB / 0.4886 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003585/0.1604, allocations: 263.3 kB / 0.4888 GB, free: 11.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.1606, allocations: 418.7 kB / 0.4892 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006962/0.1613, allocations: 451.7 kB / 0.4897 GB, free: 10.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.1625, allocations: 1.005 MB / 0.4907 GB, free: 9.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.1647, allocations: 1.585 MB / 0.4922 GB, free: 7.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/0.1647, allocations: 4 kB / 0.4922 GB, free: 7.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003253/0.168, allocations: 1.771 MB / 0.4939 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.168, allocations: 14.19 kB / 0.4939 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002065/0.1701, allocations: 0.9966 MB / 0.4949 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009628/0.171, allocations: 246.3 kB / 0.4952 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.1721, allocations: 311.5 kB / 0.4955 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005135/0.1772, allocations: 5.18 MB / 0.5005 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008691/0.1781, allocations: 55.89 kB / 0.5006 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.1783, allocations: 68 kB / 0.5006 GB, free: 14.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * 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 (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (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.0006806/0.179, allocations: 425.1 kB / 0.501 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.1792, allocations: 98.78 kB / 0.5011 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.1809, allocations: 0.9493 MB / 0.5021 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.1809, allocations: 11.94 kB / 0.5021 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1809, allocations: 0 / 0.5021 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.1809, allocations: 7.984 kB / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.1846, allocations: 2.138 MB / 0.5042 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1847, allocations: 0 / 0.5042 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008773/0.1856, allocations: 183.8 kB / 0.5043 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-05/0.1856, allocations: 4 kB / 0.5043 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.964e-05/0.1856, allocations: 27.98 kB / 0.5044 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.1857, allocations: 4 kB / 0.5044 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1857, allocations: 0 / 0.5044 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.1875, allocations: 1.412 MB / 0.5058 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.1878, allocations: 159.9 kB / 0.5059 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.1879, allocations: 27.98 kB / 0.5059 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.1884, allocations: 23.98 kB / 0.506 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.1885, allocations: 52.56 kB / 0.506 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.1886, allocations: 27.98 kB / 0.506 GB, free: 8.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006624/0.1892, allocations: 0.5419 MB / 0.5066 GB, free: 8.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1892, allocations: 3.938 kB / 0.5066 GB, free: 8.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001058/0.1903, allocations: 296 kB / 0.5068 GB, free: 7.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.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 (86): * Single equations (assignments): 85 * 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.002161/0.1925, allocations: 1.965 MB / 0.5088 GB, free: 5.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.1953, allocations: 1.755 MB / 0.5105 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1953, allocations: 0 / 0.5105 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000559/0.1959, allocations: 409.1 kB / 0.5109 GB, free: 3.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009797/0.1969, allocations: 191.5 kB / 0.5111 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1758/0.3727, allocations: 10.65 MB / 0.5214 GB, free: 66.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009169/0.3737, allocations: 1.255 MB / 0.5227 GB, free: 65.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001226/0.3749, allocations: 415.2 kB / 0.5231 GB, free: 65.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004841/0.3754, allocations: 467.8 kB / 0.5235 GB, free: 65.44 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3754, allocations: 0 / 0.5235 GB, free: 65.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0499/0.4253, allocations: 20.5 MB / 0.5435 GB, free: 55.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.527/9.952, allocations: 5.5 kB / 0.5435 GB, free: 55.64 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability_res.csv --start-time 0 --stop-time 180 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.18 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_VoltageStability.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1)