Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002362/0.002366, allocations: 191.1 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 102.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2645/0.2645, allocations: 38.05 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004485/0.0004483, allocations: 11.98 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1082, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.008151/0.1164, allocations: 4.888 MB / 483.9 MB, free: 13.13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.1203, allocations: 1.521 MB / 485.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006257/0.121, allocations: 27.81 kB / 485.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006077/0.1216, allocations: 127.2 kB / 485.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001308/0.123, allocations: 307.1 kB / 485.9 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007805/0.1238, allocations: 179.7 kB / 486.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008872/0.1247, allocations: 379.2 kB / 486.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003089/0.125, allocations: 118.3 kB / 486.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006571/0.1257, allocations: 243.1 kB / 486.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007735/0.1265, allocations: 331.1 kB / 487.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.1266, allocations: 28 kB / 487.1 MB, free: 9.902 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.1268, allocations: 24 kB / 487.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1271, allocations: 199.5 kB / 487.4 MB, free: 9.684 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1273, allocations: 113.5 kB / 487.5 MB, free: 9.566 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007319/0.1281, allocations: 478.8 kB / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1281, allocations: 0 / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1281, allocations: 0 / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1281, allocations: 0 / 487.9 MB, free: 9.098 MB / 330.7 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.002943/0.1311, allocations: 0.8544 MB / 488.8 MB, free: 8.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.1312, allocations: 8.031 kB / 488.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.1314, allocations: 63.23 kB / 488.9 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.1334, allocations: 0.5793 MB / 489.4 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.993e-05/0.1335, allocations: 24.66 kB / 489.5 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.1337, allocations: 40 kB / 489.5 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.135, allocations: 0.5439 MB / 490.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1351, allocations: 7.938 kB / 490.1 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.1351, allocations: 19.98 kB / 490.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006348/0.1358, allocations: 88.48 kB / 490.2 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.1368, allocations: 358.3 kB / 490.5 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004878/0.1417, allocations: 2.058 MB / 492.6 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.1432, allocations: 393.1 kB / 493 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.1433, allocations: 0 / 493 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.1434, allocations: 39.09 kB / 493 MB, free: 3.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 2.485e-06/0.1434, allocations: 0 / 493 MB, free: 3.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.007898/0.1513, allocations: 2.53 MB / 495.5 MB, free: 1.062 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.1514, allocations: 81.11 kB / 495.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006418/0.1521, allocations: 381.5 kB / 496 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.21e-05/0.1521, allocations: 29.7 kB / 496 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.1524, allocations: 298.7 kB / 496.3 MB, free: 264 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.1526, allocations: 134.1 kB / 496.4 MB, free: 128 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.1526, allocations: 8 kB / 496.4 MB, free: 120 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1528, allocations: 338.8 kB / 496.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006657/0.1535, allocations: 244.9 kB / 497 MB, free: 15.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/0.1543, allocations: 366.7 kB / 497.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007455/0.155, allocations: 289.5 kB / 497.6 MB, free: 14.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.155, allocations: 4 kB / 497.7 MB, free: 14.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003044/0.1581, allocations: 0.9827 MB / 498.6 MB, free: 13.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.1582, allocations: 4 kB / 498.6 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.1582, allocations: 4 kB / 498.6 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001794/0.16, allocations: 409.5 kB / 499 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.1607, allocations: 91.83 kB / 499.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008359/0.169, allocations: 4.769 MB / 0.4921 GB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006522/0.1697, allocations: 40.44 kB / 0.4921 GB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.1698, allocations: 20 kB / 0.4921 GB, free: 8.246 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004119/0.1702, allocations: 217.8 kB / 0.4924 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.1704, allocations: 35.53 kB / 0.4924 GB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.1729, allocations: 0.8429 MB / 0.4932 GB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.173, allocations: 4 kB / 0.4932 GB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/0.173, allocations: 8 kB / 0.4932 GB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.173, allocations: 3.953 kB / 0.4932 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/0.1767, allocations: 1.41 MB / 0.4946 GB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.1768, allocations: 4 kB / 0.4946 GB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.1772, allocations: 47.89 kB / 0.4947 GB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.1794, allocations: 449.2 kB / 0.4951 GB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.1795, allocations: 31.97 kB / 0.4951 GB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008036/0.1876, allocations: 6.308 MB / 0.5013 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1876, allocations: 0 / 0.5013 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003075/0.1907, allocations: 1.148 MB / 0.5024 GB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.1909, allocations: 120.5 kB / 0.5025 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.1911, allocations: 31.94 kB / 0.5025 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.1916, allocations: 35.94 kB / 0.5026 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.1918, allocations: 39.88 kB / 0.5026 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.286e-05/0.1919, allocations: 15.98 kB / 0.5026 GB, free: 12.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004361/0.1923, allocations: 255.2 kB / 0.5029 GB, free: 12.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1923, allocations: 0 / 0.5029 GB, free: 12.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009347/0.1933, allocations: 164 kB / 0.503 GB, free: 12.36 MB / 362.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002521/0.1935, allocations: 127.1 kB / 0.5031 GB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.1963, allocations: 0.8847 MB / 0.504 GB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1963, allocations: 4.062 kB / 0.504 GB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.1988, allocations: 1.078 MB / 0.5051 GB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009004/0.1997, allocations: 117.3 kB / 0.5052 GB, free: 10 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.2045, allocations: 2.26 MB / 0.5074 GB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006424/0.2052, allocations: 0.8975 MB / 0.5083 GB, free: 6.773 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.2053, allocations: 35.44 kB / 0.5083 GB, free: 6.738 MB / 362.7 MB Notification: Performance of SimCode: time 1.322e-06/0.2054, allocations: 0 / 0.5083 GB, free: 6.738 MB / 362.7 MB Notification: Performance of Templates: time 0.318/0.5233, allocations: 12.62 MB / 0.5206 GB, free: 51.18 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)