Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 112.3 kB / 17.74 MB, free: 5.34 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.001915/0.001914, allocations: 187 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1776/0.1776, allocations: 37.98 MB / 309.9 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.006951/0.1198, allocations: 4.924 MB / 492.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.1225, allocations: 1.329 MB / 494 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004404/0.123, allocations: 15.88 kB / 494.1 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006016/0.1237, allocations: 127 kB / 494.2 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.1247, allocations: 330.5 kB / 494.5 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.1253, allocations: 155.6 kB / 494.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.1264, allocations: 0.6931 MB / 495.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/0.1267, allocations: 156.1 kB / 495.5 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006409/0.1274, allocations: 310.8 kB / 495.8 MB, free: 296 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008595/0.1282, allocations: 446.7 kB / 496.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.1284, allocations: 44 kB / 496.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.1286, allocations: 48 kB / 496.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003278/0.1289, allocations: 243.4 kB / 496.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005401/0.1295, allocations: 278.6 kB / 496.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006841/0.1302, allocations: 0.6075 MB / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1302, allocations: 0 / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1302, allocations: 0 / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.1302, allocations: 0 / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002095/0.1323, allocations: 0.9478 MB / 498.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.1324, allocations: 11.89 kB / 498.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.1326, allocations: 52.38 kB / 498.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1338, allocations: 0.6189 MB / 499.1 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.1338, allocations: 24.66 kB / 499.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.821e-05/0.1339, allocations: 43.91 kB / 499.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007793/0.1347, allocations: 0.5518 MB / 499.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1347, allocations: 3.938 kB / 499.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.1347, allocations: 16 kB / 499.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000324/0.1351, allocations: 84.53 kB / 499.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005203/0.1356, allocations: 358.3 kB / 0.4884 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.1383, allocations: 2.05 MB / 0.4904 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/0.1392, allocations: 385.2 kB / 0.4908 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004996/0.1397, allocations: 293.6 kB / 0.4911 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.1397, allocations: 19.91 kB / 0.4911 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1398, allocations: 38.5 kB / 0.4911 GB, free: 8.922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=32): time 2.485e-06/0.1398, allocations: 4 kB / 0.4911 GB, free: 8.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.004518/0.1443, allocations: 2.526 MB / 0.4936 GB, free: 6.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.1444, allocations: 81.11 kB / 0.4937 GB, free: 6.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.1448, allocations: 381.5 kB / 0.494 GB, free: 5.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.1448, allocations: 33.7 kB / 0.4941 GB, free: 5.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.145, allocations: 248.2 kB / 0.4943 GB, free: 5.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1452, allocations: 134.2 kB / 0.4944 GB, free: 5.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.1453, allocations: 98.16 kB / 0.4945 GB, free: 5.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1455, allocations: 366.7 kB / 0.4949 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.1458, allocations: 245 kB / 0.4951 GB, free: 4.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.1463, allocations: 362.6 kB / 0.4955 GB, free: 4.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007781/0.1471, allocations: 0.6118 MB / 0.4961 GB, free: 3.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1471, allocations: 3.938 kB / 0.4961 GB, free: 3.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001649/0.1487, allocations: 1.01 MB / 0.497 GB, free: 2.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.1488, allocations: 11.94 kB / 0.4971 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1488, allocations: 8 kB / 0.4971 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009952/0.1498, allocations: 413.2 kB / 0.4975 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.1501, allocations: 79.92 kB / 0.4975 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005141/0.1552, allocations: 5.135 MB / 0.5025 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.1556, allocations: 39.95 kB / 0.5026 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/0.1557, allocations: 24.05 kB / 0.5026 GB, free: 12.51 MB / 398.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 (48): * 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: 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%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003371/0.156, allocations: 197.7 kB / 0.5028 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1562, allocations: 43.53 kB / 0.5028 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.1576, allocations: 0.8348 MB / 0.5037 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1577, allocations: 4 kB / 0.5037 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.1577, allocations: 8 kB / 0.5037 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1577, allocations: 0 / 0.5037 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.16, allocations: 1.421 MB / 0.5051 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.16, allocations: 0 / 0.5051 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.1602, allocations: 35.98 kB / 0.5051 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.1613, allocations: 445.3 kB / 0.5055 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.569e-05/0.1614, allocations: 39.91 kB / 0.5056 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005838/0.1672, allocations: 6.71 MB / 0.5121 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1673, allocations: 3.938 kB / 0.5121 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.1691, allocations: 1.122 MB / 0.5132 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.1692, allocations: 112.6 kB / 0.5133 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1694, allocations: 31.98 kB / 0.5133 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.1697, allocations: 35.94 kB / 0.5134 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.1698, allocations: 35.95 kB / 0.5134 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.1699, allocations: 19.92 kB / 0.5134 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003248/0.1702, allocations: 267.1 kB / 0.5137 GB, free: 416 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1702, allocations: 4 kB / 0.5137 GB, free: 412 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007144/0.1709, allocations: 152 kB / 0.5138 GB, free: 260 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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.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]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001895/0.1711, allocations: 123.2 kB / 0.5139 GB, free: 128 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001844/0.173, allocations: 0.8955 MB / 0.5148 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.173, allocations: 0 / 0.5148 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.1746, allocations: 1.079 MB / 0.5159 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.1753, allocations: 125.4 kB / 0.516 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002983/0.1783, allocations: 1.864 MB / 0.5178 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/0.1789, allocations: 0.8938 MB / 0.5187 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.179, allocations: 35.44 kB / 0.5187 GB, free: 11.03 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.179, allocations: 0 / 0.5187 GB, free: 11.03 MB / 414.1 MB Notification: Performance of Templates: time 0.2481/0.4272, allocations: 13.26 MB / 0.5317 GB, free: 51.76 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)