Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 101 kB / 17.59 MB, free: 5.422 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.001172/0.001172, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.372/1.372, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1893/0.1893, allocations: 38.03 MB / 330.4 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001503, allocations: 61.36 kB / 399.5 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 58.07 MB / 457.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.011/0.1258, allocations: 8.719 MB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004588/0.1305, allocations: 2.372 MB / 468.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009492/0.1314, allocations: 27.81 kB / 468.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.1327, allocations: 333.8 kB / 469 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.135, allocations: 0.805 MB / 469.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000989/0.1361, allocations: 383.3 kB / 470.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.1384, allocations: 1.878 MB / 472 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005738/0.139, allocations: 386.7 kB / 472.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.1405, allocations: 0.8055 MB / 473.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001828/0.1423, allocations: 1.106 MB / 474.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004112/0.1428, allocations: 116 kB / 474.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005286/0.1433, allocations: 124 kB / 474.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007347/0.144, allocations: 0.6079 MB / 475.2 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008634/0.1449, allocations: 0.6844 MB / 475.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.1465, allocations: 1.523 MB / 477.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1465, allocations: 0 / 477.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.758e-06/0.1466, allocations: 4 kB / 477.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.1466, allocations: 0 / 477.4 MB, free: 4.109 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004016/0.1506, allocations: 1.88 MB / 479.3 MB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1506, allocations: 11.89 kB / 479.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.1509, allocations: 127.4 kB / 479.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.153, allocations: 1.14 MB / 480.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.03e-05/0.1531, allocations: 70 kB / 480.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.1533, allocations: 99.81 kB / 480.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.1551, allocations: 1.317 MB / 482 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.1551, allocations: 0 / 482 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.764e-05/0.1552, allocations: 43.89 kB / 482.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006662/0.1559, allocations: 193.7 kB / 482.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.1574, allocations: 0.9601 MB / 483.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006314/0.1637, allocations: 4.515 MB / 487.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.1652, allocations: 1.178 MB / 488.9 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009501/0.1662, allocations: 0.7269 MB / 489.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.1662, allocations: 9 kB / 489.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/0.1675, allocations: 0.9449 MB / 490.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 4.538e-06/0.1675, allocations: 0 / 490.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.01115/0.1787, allocations: 6.606 MB / 497.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.1788, allocations: 204.9 kB / 497.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008611/0.1797, allocations: 0.7548 MB / 498.1 MB, free: 14.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-05/0.1798, allocations: 53.7 kB / 498.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/0.1801, allocations: 0.4883 MB / 498.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003283/0.1805, allocations: 378.9 kB / 499.1 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000375/0.1809, allocations: 251.5 kB / 499.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.181, allocations: 365.9 kB / 499.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009554/0.182, allocations: 0.6715 MB / 0.4886 GB, free: 12.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.1831, allocations: 0.959 MB / 0.4895 GB, free: 11.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00693/0.19, allocations: 3.55 MB / 0.493 GB, free: 7.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.577e-06/0.1901, allocations: 4 kB / 0.493 GB, free: 7.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004871/0.195, allocations: 2.768 MB / 0.4957 GB, free: 4.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.978e-05/0.195, allocations: 63.39 kB / 0.4958 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.1951, allocations: 8 kB / 0.4958 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/0.198, allocations: 1.136 MB / 0.4969 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.1986, allocations: 183.7 kB / 0.4971 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.2117, allocations: 8.726 MB / 0.5056 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.2127, allocations: 111.9 kB / 0.5057 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.2129, allocations: 48 kB / 0.5057 GB, free: 10.23 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,ab.fault_pp.t0,$PRE.ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,trafo.tap_2_internal,trafo.tap_1_internal,$PRE.switch1.switch_1.open,$PRE.switch2.switch_1.open,relay2.y[1],$PRE.relay2.y[1],relay1.y[1],$PRE.relay1.y[1],ab.fault_pp.on,$PRE.ab.fault_pp.on,ab.first,$PRE.ab.first,ab.v_pos,$PRE.ab.v_pos,ab.t_zero,$PRE.ab.t_zero,switch2.switch_1.closed,switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_1.closed,switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,44,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007897/0.2137, allocations: 450.9 kB / 0.5062 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.214, allocations: 106.7 kB / 0.5063 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004/0.218, allocations: 2.344 MB / 0.5086 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.218, allocations: 12 kB / 0.5086 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/0.218, allocations: 4 kB / 0.5086 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.218, allocations: 7.984 kB / 0.5086 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005789/0.2238, allocations: 3.62 MB / 0.5121 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.2239, allocations: 4 kB / 0.5121 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005269/0.2244, allocations: 119.9 kB / 0.5122 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/0.2272, allocations: 1.05 MB / 0.5133 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.2273, allocations: 80.05 kB / 0.5133 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2088/0.4362, allocations: 16.1 MB / 0.5291 GB, free: 60.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-05/0.4362, allocations: 5.094 kB / 0.5291 GB, free: 60.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005244/0.4415, allocations: 3.077 MB / 0.5321 GB, free: 59.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006039/0.4421, allocations: 311.3 kB / 0.5324 GB, free: 59.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.4424, allocations: 74.23 kB / 0.5324 GB, free: 59.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000735/0.4431, allocations: 92.64 kB / 0.5325 GB, free: 59.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003636/0.4435, allocations: 120.3 kB / 0.5326 GB, free: 59.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.64e-05/0.4436, allocations: 38.62 kB / 0.5327 GB, free: 59.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007637/0.4444, allocations: 0.5185 MB / 0.5332 GB, free: 58.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4444, allocations: 0.625 kB / 0.5332 GB, free: 58.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001556/0.4459, allocations: 431.3 kB / 0.5336 GB, free: 58.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (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,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],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (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): 9 systems {(3,7,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.0002645/0.4462, allocations: 169.9 kB / 0.5338 GB, free: 58.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00521/0.4514, allocations: 2.73 MB / 0.5364 GB, free: 57.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4514, allocations: 3.062 kB / 0.5364 GB, free: 57.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003583/0.455, allocations: 2.774 MB / 0.5391 GB, free: 55.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.4563, allocations: 270.7 kB / 0.5394 GB, free: 55.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00572/0.462, allocations: 4.256 MB / 0.5435 GB, free: 53.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.4627, allocations: 1.223 MB / 0.5447 GB, free: 52.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.4629, allocations: 74.81 kB / 0.5448 GB, free: 52.77 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4629, allocations: 0 / 0.5448 GB, free: 52.77 MB / 398.1 MB Notification: Performance of Templates: time 0.03269/0.4956, allocations: 44 MB / 0.5878 GB, free: 12.24 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)