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.001178/0.001178, allocations: 114.4 kB / 16.63 MB, free: 6.812 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.001145/0.001145, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.388/1.388, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1785/0.1785, allocations: 38.03 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 57.36 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1263, allocations: 58.06 MB / 456.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01171/0.138, allocations: 10.36 MB / 466.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005733/0.1438, allocations: 2.863 MB / 469.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001483/0.1453, allocations: 63.62 kB / 469.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.1465, allocations: 286.3 kB / 469.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002179/0.1487, allocations: 0.7549 MB / 470.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009591/0.1497, allocations: 335.5 kB / 471 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.1521, allocations: 1.901 MB / 472.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005764/0.1527, allocations: 378.7 kB / 473.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001605/0.1543, allocations: 0.825 MB / 474.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002054/0.1564, allocations: 1.173 MB / 475.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002434/0.1566, allocations: 116 kB / 475.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.157, allocations: 124 kB / 475.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007465/0.1577, allocations: 0.6195 MB / 476.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007794/0.1585, allocations: 0.6767 MB / 476.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.1601, allocations: 1.523 MB / 478.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1601, allocations: 0 / 478.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1601, allocations: 0 / 478.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.1601, allocations: 8 kB / 478.3 MB, free: 2.344 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.004024/0.1642, allocations: 1.88 MB / 480.2 MB, free: 400 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.1642, allocations: 11.89 kB / 480.2 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.1645, allocations: 127.4 kB / 480.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/0.1667, allocations: 1.137 MB / 481.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.875e-05/0.1668, allocations: 73.98 kB / 481.5 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.167, allocations: 95.91 kB / 481.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.169, allocations: 1.317 MB / 483 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.169, allocations: 3.938 kB / 483 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.797e-05/0.1691, allocations: 43.97 kB / 483 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006272/0.1697, allocations: 197.7 kB / 483.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1712, allocations: 0.9485 MB / 484.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006815/0.178, allocations: 4.523 MB / 488.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.1796, allocations: 1.171 MB / 489.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.1806, allocations: 0.7309 MB / 490.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.461e-05/0.1807, allocations: 13 kB / 490.6 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.1821, allocations: 0.9496 MB / 491.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 4.248e-06/0.1821, allocations: 0 / 491.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.01239/0.1945, allocations: 6.601 MB / 498.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.1947, allocations: 204.9 kB / 498.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.1959, allocations: 0.7626 MB / 499.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.196, allocations: 53.7 kB / 499.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004322/0.1965, allocations: 496.1 kB / 499.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.1968, allocations: 371 kB / 500 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003994/0.1972, allocations: 255.5 kB / 0.4885 GB, free: 11.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.1974, allocations: 365.9 kB / 0.4889 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.1985, allocations: 0.6715 MB / 0.4895 GB, free: 10.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.1999, allocations: 0.9551 MB / 0.4905 GB, free: 9.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007611/0.2076, allocations: 3.546 MB / 0.4939 GB, free: 5.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.2076, allocations: 4 kB / 0.4939 GB, free: 5.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005034/0.2126, allocations: 2.764 MB / 0.4966 GB, free: 2.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.336e-05/0.2127, allocations: 67.39 kB / 0.4967 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.2127, allocations: 8 kB / 0.4967 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003091/0.2158, allocations: 1.14 MB / 0.4978 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/0.2165, allocations: 187.7 kB / 0.498 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.2295, allocations: 8.718 MB / 0.5065 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.2306, allocations: 111.9 kB / 0.5066 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-05/0.2307, allocations: 52 kB / 0.5067 GB, free: 8.461 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.0007371/0.2315, allocations: 452.6 kB / 0.5071 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.2317, allocations: 114.6 kB / 0.5072 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004016/0.2357, allocations: 2.337 MB / 0.5095 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.2357, allocations: 12 kB / 0.5095 GB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.2358, allocations: 8 kB / 0.5095 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.2358, allocations: 3.984 kB / 0.5095 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006035/0.2418, allocations: 3.628 MB / 0.513 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.2418, allocations: 4 kB / 0.513 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/0.2424, allocations: 119.9 kB / 0.5132 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002701/0.2451, allocations: 1.038 MB / 0.5142 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000171/0.2453, allocations: 79.92 kB / 0.5143 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2603/0.5056, allocations: 16.1 MB / 0.53 GB, free: 59.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5057, allocations: 6.062 kB / 0.53 GB, free: 59.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005904/0.5116, allocations: 3.078 MB / 0.533 GB, free: 58.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/0.5122, allocations: 313 kB / 0.5333 GB, free: 57.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002869/0.5125, allocations: 78.72 kB / 0.5334 GB, free: 57.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007517/0.5133, allocations: 92.7 kB / 0.5334 GB, free: 57.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/0.5137, allocations: 113.9 kB / 0.5336 GB, free: 57.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.5138, allocations: 41.67 kB / 0.5336 GB, free: 57.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008715/0.5147, allocations: 0.5073 MB / 0.5341 GB, free: 57.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5147, allocations: 0 / 0.5341 GB, free: 57.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001676/0.5164, allocations: 436.2 kB / 0.5345 GB, free: 57.59 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.0002858/0.5167, allocations: 171.7 kB / 0.5347 GB, free: 57.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005501/0.5222, allocations: 2.733 MB / 0.5373 GB, free: 56.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5222, allocations: 0 / 0.5373 GB, free: 56.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/0.5262, allocations: 2.774 MB / 0.54 GB, free: 54.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.5275, allocations: 272.8 kB / 0.5403 GB, free: 54.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005979/0.5335, allocations: 4.548 MB / 0.5448 GB, free: 51.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008359/0.5344, allocations: 1.216 MB / 0.5459 GB, free: 51.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007669/0.5352, allocations: 211.1 kB / 0.5461 GB, free: 51.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.5353, allocations: 75.78 kB / 0.5462 GB, free: 51.17 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5353, allocations: 0 / 0.5462 GB, free: 51.17 MB / 398.1 MB Notification: Performance of Templates: time 0.02552/0.5609, allocations: 20.89 MB / 0.5666 GB, free: 33.45 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)