Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.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.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",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.001108/0.001108, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001179/0.001179, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.355/1.355, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1935/0.1935, allocations: 38.01 MB / 329.7 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 61.88 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 58.06 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006762/0.1116, allocations: 5.175 MB / 462.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.1151, allocations: 1.764 MB / 463.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004689/0.1156, allocations: 11.94 kB / 463.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.117, allocations: 438 kB / 464.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009225/0.118, allocations: 302.4 kB / 464.6 MB, free: 244 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.1192, allocations: 359.3 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00089/0.1201, allocations: 0.7597 MB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.1206, allocations: 370.2 kB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.1212, allocations: 334.8 kB / 466.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007446/0.122, allocations: 462.6 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.1221, allocations: 52 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000482/0.1226, allocations: 171.8 kB / 467.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003331/0.123, allocations: 287.3 kB / 467.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004435/0.1234, allocations: 334.3 kB / 467.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008298/0.1243, allocations: 0.8022 MB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1243, allocations: 3.938 kB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1243, allocations: 0 / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.287e-05/0.1243, allocations: 4 kB / 468.5 MB, free: 12.34 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001874/0.1262, allocations: 0.9203 MB / 469.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1262, allocations: 11.89 kB / 469.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.1264, allocations: 90.7 kB / 469.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.1275, allocations: 144 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009392/0.1285, allocations: 0.512 MB / 470.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.1285, allocations: 36.94 kB / 470.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/0.1289, allocations: 127.8 kB / 470.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1301, allocations: 0.8587 MB / 471.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1301, allocations: 0 / 471.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/0.1302, allocations: 27.97 kB / 471.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004829/0.1307, allocations: 76.86 kB / 471.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009912/0.1317, allocations: 0.6205 MB / 471.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004545/0.1362, allocations: 3.792 MB / 475.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.1374, allocations: 0.5402 MB / 476.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005102/0.138, allocations: 323 kB / 476.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-05/0.138, allocations: 8.375 kB / 476.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.1381, allocations: 43 kB / 476.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.404e-06/0.1381, allocations: 0 / 476.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003116/0.1412, allocations: 1.836 MB / 478.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.1413, allocations: 81.55 kB / 478.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.1418, allocations: 421.7 kB / 479 MB, free: 1.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.1418, allocations: 33.83 kB / 479 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002388/0.1421, allocations: 335.6 kB / 479.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.1423, allocations: 197.3 kB / 479.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.1425, allocations: 150.1 kB / 479.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1427, allocations: 370.7 kB / 480 MB, free: 376 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.1432, allocations: 377.5 kB / 480.4 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006718/0.1439, allocations: 0.5979 MB / 481 MB, free: 15.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.1452, allocations: 1.065 MB / 482.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1452, allocations: 0 / 482.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004392/0.1496, allocations: 2 MB / 484.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1496, allocations: 8 kB / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.1497, allocations: 11.94 kB / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.1521, allocations: 0.9692 MB / 485 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.1526, allocations: 115.8 kB / 485.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.1633, allocations: 8.212 MB / 493.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.1639, allocations: 35.97 kB / 493.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.164, allocations: 40 kB / 493.4 MB, free: 2.438 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * Array equations: 0 * 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,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003694/0.1644, allocations: 249.5 kB / 493.7 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.1645, allocations: 47.44 kB / 493.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.1657, allocations: 0.7218 MB / 494.5 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.1657, allocations: 8 kB / 494.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.1658, allocations: 4 kB / 494.5 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1658, allocations: 0 / 494.5 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.1683, allocations: 1.524 MB / 496 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1683, allocations: 0 / 496 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.1693, allocations: 187.8 kB / 496.2 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1694, allocations: 0 / 496.2 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.421e-05/0.1694, allocations: 31.92 kB / 496.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1694, allocations: 7.984 kB / 496.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1694, allocations: 8.031 kB / 496.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.1708, allocations: 0.9895 MB / 497.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.1709, allocations: 124.5 kB / 497.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.969e-05/0.171, allocations: 27.98 kB / 497.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.1714, allocations: 32.03 kB / 497.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.1715, allocations: 28.41 kB / 497.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.279e-05/0.1715, allocations: 23.92 kB / 497.4 MB, free: 14.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002976/0.1718, allocations: 279.1 kB / 497.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1718, allocations: 0 / 497.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009996/0.1728, allocations: 212 kB / 497.9 MB, free: 13.83 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * 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.001924/0.1748, allocations: 1.58 MB / 499.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.1778, allocations: 1.649 MB / 0.4894 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1779, allocations: 0 / 0.4894 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004475/0.1783, allocations: 310.3 kB / 0.4897 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/0.1792, allocations: 127.9 kB / 0.4898 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/0.1968, allocations: 9.769 MB / 0.4994 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008714/0.1977, allocations: 0.9882 MB / 0.5003 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006929/0.1984, allocations: 204.6 kB / 0.5005 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004694/0.1989, allocations: 231.4 kB / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.272e-06/0.1989, allocations: 0 / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/0.4244, allocations: 17.21 MB / 0.5176 GB, free: 70.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.388/9.812, allocations: 12.72 kB / 0.5176 GB, free: 70.64 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line_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_AC3ph_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)