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.001174/0.001174, allocations: 101.2 kB / 17.73 MB, free: 5.324 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.001226/0.001226, allocations: 192.2 kB / 18.67 MB, free: 4.395 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.426/1.426, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1771/0.1771, allocations: 38.03 MB / 330.6 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 56.14 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4063, allocations: 58.07 MB / 0.5048 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.009076/0.4154, allocations: 8.727 MB / 0.5133 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004219/0.4197, allocations: 2.365 MB / 0.5156 GB, free: 12 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006987/0.4204, allocations: 30.44 kB / 0.5156 GB, free: 0 / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.4216, allocations: 320.4 kB / 0.5159 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.4239, allocations: 0.8333 MB / 0.5167 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.425, allocations: 375.5 kB / 0.5171 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002958/0.428, allocations: 1.883 MB / 0.5189 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006658/0.4286, allocations: 387 kB / 0.5193 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001974/0.4306, allocations: 0.8271 MB / 0.5201 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.4327, allocations: 1.102 MB / 0.5212 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000249/0.4329, allocations: 117.9 kB / 0.5213 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003778/0.4333, allocations: 122.8 kB / 0.5214 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008193/0.4342, allocations: 0.6044 MB / 0.522 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009503/0.4351, allocations: 0.6909 MB / 0.5227 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.4371, allocations: 1.543 MB / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4372, allocations: 0 / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4372, allocations: 0 / 0.5242 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.4372, allocations: 1.5 kB / 0.5242 GB, free: 12.42 MB / 398.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.004875/0.4421, allocations: 1.89 MB / 0.526 GB, free: 11.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.4421, allocations: 12.58 kB / 0.5261 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.4425, allocations: 127.1 kB / 0.5262 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.4452, allocations: 1.169 MB / 0.5273 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.36e-05/0.4453, allocations: 66.95 kB / 0.5274 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/0.4456, allocations: 108.3 kB / 0.5275 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.448, allocations: 1.316 MB / 0.5288 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.4481, allocations: 1.438 kB / 0.5288 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.4482, allocations: 35.58 kB / 0.5288 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000716/0.4489, allocations: 208.2 kB / 0.529 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4506, allocations: 0.9547 MB / 0.5299 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007571/0.4582, allocations: 4.491 MB / 0.5343 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.4599, allocations: 1.177 MB / 0.5355 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.4611, allocations: 0.7228 MB / 0.5362 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.256e-05/0.4611, allocations: 10.31 kB / 0.5362 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.4626, allocations: 0.9504 MB / 0.5371 GB, free: 4.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=101): time 2.935e-06/0.4626, allocations: 3.938 kB / 0.5371 GB, free: 4.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.01298/0.4756, allocations: 6.607 MB / 0.5436 GB, free: 56 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.4758, allocations: 204.9 kB / 0.5438 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.4769, allocations: 0.7548 MB / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.477, allocations: 57.69 kB / 0.5446 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004012/0.4774, allocations: 480.2 kB / 0.545 GB, free: 14.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003934/0.4778, allocations: 382.8 kB / 0.5454 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004232/0.4782, allocations: 255.5 kB / 0.5456 GB, free: 13.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.4784, allocations: 365.9 kB / 0.546 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.4795, allocations: 0.6715 MB / 0.5466 GB, free: 12.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4807, allocations: 0.955 MB / 0.5476 GB, free: 11.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00739/0.4881, allocations: 3.542 MB / 0.551 GB, free: 8.082 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4882, allocations: 3.938 kB / 0.551 GB, free: 8.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005174/0.4934, allocations: 2.772 MB / 0.5537 GB, free: 5.281 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.454e-05/0.4934, allocations: 59.41 kB / 0.5538 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.4935, allocations: 8.406 kB / 0.5538 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003119/0.4966, allocations: 1.144 MB / 0.5549 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.4973, allocations: 179.7 kB / 0.5551 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/0.5109, allocations: 8.715 MB / 0.5636 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.5122, allocations: 107.9 kB / 0.5637 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.5123, allocations: 48 kB / 0.5637 GB, free: 10.85 MB / 430.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.0008983/0.5132, allocations: 444.8 kB / 0.5642 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.5135, allocations: 102.7 kB / 0.5643 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004223/0.5177, allocations: 2.341 MB / 0.5666 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5177, allocations: 12 kB / 0.5666 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5177, allocations: 4 kB / 0.5666 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.5178, allocations: 7.984 kB / 0.5666 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006409/0.5242, allocations: 3.635 MB / 0.5701 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5242, allocations: 4 kB / 0.5701 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005516/0.5248, allocations: 127.9 kB / 0.5703 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002894/0.5277, allocations: 1.038 MB / 0.5713 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/0.5278, allocations: 75.94 kB / 0.5713 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/0.5424, allocations: 16.1 MB / 0.5871 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5425, allocations: 4 kB / 0.5871 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.5481, allocations: 3.09 MB / 0.5901 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007796/0.5489, allocations: 311.7 kB / 0.5904 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002665/0.5492, allocations: 75.95 kB / 0.5905 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007645/0.55, allocations: 91.86 kB / 0.5905 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003747/0.5503, allocations: 112.8 kB / 0.5906 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.776e-05/0.5505, allocations: 43.95 kB / 0.5907 GB, free: 13.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007113/0.5512, allocations: 0.5068 MB / 0.5912 GB, free: 13.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5512, allocations: 4 kB / 0.5912 GB, free: 13.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001588/0.5528, allocations: 432 kB / 0.5916 GB, free: 12.7 MB / 462.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.0002954/0.5531, allocations: 168.8 kB / 0.5918 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004889/0.558, allocations: 2.282 MB / 0.594 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.558, allocations: 320 / 0.594 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004497/0.5625, allocations: 2.761 MB / 0.5967 GB, free: 7.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.5642, allocations: 277.5 kB / 0.597 GB, free: 6.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00698/0.5712, allocations: 4.226 MB / 0.6011 GB, free: 2.645 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009263/0.5721, allocations: 1.225 MB / 0.6023 GB, free: 1.391 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.5725, allocations: 83.44 kB / 0.6024 GB, free: 1.309 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5725, allocations: 0 / 0.6024 GB, free: 1.309 MB / 462.1 MB Notification: Performance of Templates: time 0.05093/0.6234, allocations: 44.12 MB / 0.6454 GB, free: 5.191 MB / 0.4981 GB 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)