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.001108/0.001108, allocations: 97.8 kB / 16.5 MB, free: 6.648 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.001143/0.001143, allocations: 194 kB / 17.42 MB, free: 6.066 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.406/1.406, allocations: 222.9 MB / 241.1 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.183/0.183, allocations: 38.03 MB / 329.3 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 69.61 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1191, allocations: 58.05 MB / 456.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01126/0.1305, allocations: 10.38 MB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.1361, allocations: 2.871 MB / 469.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.1376, allocations: 63.62 kB / 469.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.1389, allocations: 294.2 kB / 469.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.1411, allocations: 0.7627 MB / 470.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009548/0.1421, allocations: 347.5 kB / 470.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003129/0.1453, allocations: 2.946 MB / 473.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005673/0.1458, allocations: 318.8 kB / 474.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.1476, allocations: 0.6884 MB / 474.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/0.1499, allocations: 1.153 MB / 475.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004711/0.1504, allocations: 72 kB / 476 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006239/0.151, allocations: 72 kB / 476.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00126/0.1523, allocations: 0.5649 MB / 476.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001596/0.1539, allocations: 0.6298 MB / 477.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001988/0.1559, allocations: 1.499 MB / 478.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1559, allocations: 0 / 478.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1559, allocations: 0 / 478.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.918e-05/0.156, allocations: 0 / 478.8 MB, free: 1.785 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.00559/0.1616, allocations: 1.88 MB / 480.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1617, allocations: 8.031 kB / 480.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.162, allocations: 127.4 kB / 480.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.1643, allocations: 1.144 MB / 481.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.262e-05/0.1644, allocations: 66 kB / 482 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.1646, allocations: 103.9 kB / 482.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.167, allocations: 1.309 MB / 483.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.1671, allocations: 15.92 kB / 483.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.1672, allocations: 35.98 kB / 483.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006978/0.1679, allocations: 197.7 kB / 483.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.1697, allocations: 0.9563 MB / 484.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007404/0.1771, allocations: 4.519 MB / 489.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.1788, allocations: 1.181 MB / 490.3 MB, free: 5.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.1798, allocations: 0.7293 MB / 491 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.486e-05/0.1799, allocations: 13 kB / 491.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.1812, allocations: 0.941 MB / 492 MB, free: 4.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.204e-06/0.1813, allocations: 0 / 492 MB, free: 4.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.0118/0.1931, allocations: 6.606 MB / 498.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.1933, allocations: 204.9 kB / 498.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009981/0.1943, allocations: 0.7587 MB / 499.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.1944, allocations: 53.7 kB / 499.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003789/0.1948, allocations: 488.1 kB / 0.4884 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.1951, allocations: 371 kB / 0.4887 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.1955, allocations: 267.4 kB / 0.489 GB, free: 10.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1957, allocations: 365.9 kB / 0.4893 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009884/0.1967, allocations: 0.6715 MB / 0.49 GB, free: 9.898 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/0.1979, allocations: 0.9512 MB / 0.4909 GB, free: 8.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007422/0.2053, allocations: 3.539 MB / 0.4944 GB, free: 5.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.2053, allocations: 0 / 0.4944 GB, free: 5.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004915/0.2103, allocations: 2.768 MB / 0.4971 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.91e-05/0.2103, allocations: 63.8 kB / 0.4971 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.2103, allocations: 12 kB / 0.4971 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00311/0.2135, allocations: 1.136 MB / 0.4983 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/0.2141, allocations: 179.7 kB / 0.4984 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.2267, allocations: 8.151 MB / 0.5064 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.2278, allocations: 107.9 kB / 0.5065 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.2279, allocations: 48.12 kB / 0.5065 GB, free: 8.496 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.0007767/0.2287, allocations: 448.7 kB / 0.507 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.2289, allocations: 102.8 kB / 0.5071 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.2329, allocations: 2.341 MB / 0.5093 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.2329, allocations: 12 kB / 0.5094 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.2329, allocations: 4 kB / 0.5094 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.2329, allocations: 15.89 kB / 0.5094 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005808/0.2387, allocations: 3.624 MB / 0.5129 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.2388, allocations: 0 / 0.5129 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005269/0.2393, allocations: 123.9 kB / 0.513 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002923/0.2422, allocations: 1.042 MB / 0.514 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.2424, allocations: 79.94 kB / 0.5141 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2597/0.5021, allocations: 14.92 MB / 0.5287 GB, free: 59.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5021, allocations: 4.781 kB / 0.5287 GB, free: 59.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00603/0.5082, allocations: 3.077 MB / 0.5317 GB, free: 58.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.5088, allocations: 319.3 kB / 0.532 GB, free: 58.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.5091, allocations: 71.23 kB / 0.5321 GB, free: 58.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007284/0.5098, allocations: 92.41 kB / 0.5322 GB, free: 58.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003804/0.5102, allocations: 121.1 kB / 0.5323 GB, free: 58.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.5103, allocations: 40.03 kB / 0.5323 GB, free: 58.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009593/0.5113, allocations: 0.5067 MB / 0.5328 GB, free: 58.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5113, allocations: 2.188 kB / 0.5328 GB, free: 58.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001695/0.513, allocations: 435.5 kB / 0.5332 GB, free: 58.43 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.0002364/0.5132, allocations: 173 kB / 0.5334 GB, free: 58.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004589/0.5178, allocations: 2.267 MB / 0.5356 GB, free: 57.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5178, allocations: 0 / 0.5356 GB, free: 57.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003948/0.5218, allocations: 2.777 MB / 0.5383 GB, free: 55.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.5235, allocations: 256.1 kB / 0.5386 GB, free: 55.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007272/0.5308, allocations: 4.548 MB / 0.543 GB, free: 52.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000901/0.5317, allocations: 1.211 MB / 0.5442 GB, free: 52.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008524/0.5326, allocations: 212.4 kB / 0.5444 GB, free: 52.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.5328, allocations: 73.31 kB / 0.5445 GB, free: 52.06 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5328, allocations: 0 / 0.5445 GB, free: 52.06 MB / 398.1 MB Notification: Performance of Templates: time 0.0281/0.5609, allocations: 19.97 MB / 0.564 GB, free: 36.05 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)