Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001248/0.001249, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.428/1.428, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1807/0.1807, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 72.06 kB / 398.8 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 58.06 MB / 456.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01035/0.1326, allocations: 7.29 MB / 464.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.1367, allocations: 1.706 MB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009222/0.1376, allocations: 35.75 kB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009764/0.1386, allocations: 242.4 kB / 466.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.1406, allocations: 0.5715 MB / 466.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007417/0.1414, allocations: 211.7 kB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002242/0.1436, allocations: 1.266 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005988/0.1442, allocations: 358.5 kB / 468.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.1455, allocations: 0.5446 MB / 469.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.147, allocations: 0.6307 MB / 469.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.1473, allocations: 64 kB / 469.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.1477, allocations: 64 kB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004354/0.1481, allocations: 343 kB / 470.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008883/0.149, allocations: 433.8 kB / 470.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.1502, allocations: 0.8953 MB / 471.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1503, allocations: 0 / 471.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1503, allocations: 0 / 471.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.1503, allocations: 0 / 471.5 MB, free: 9.363 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.003087/0.1534, allocations: 1.229 MB / 472.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.1535, allocations: 15.88 kB / 472.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.1538, allocations: 91.81 kB / 472.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.1551, allocations: 0.6642 MB / 473.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.1552, allocations: 53.25 kB / 473.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1553, allocations: 67.98 kB / 473.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.1566, allocations: 0.806 MB / 474.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.1566, allocations: 4 kB / 474.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/0.1567, allocations: 31.98 kB / 474.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.688e-05/0.1568, allocations: 29.3 kB / 474.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009574/0.1577, allocations: 0.6179 MB / 475.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/0.1615, allocations: 2.637 MB / 477.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009481/0.1625, allocations: 0.6089 MB / 478.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006535/0.1632, allocations: 375.4 kB / 478.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.1632, allocations: 12.38 kB / 478.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007643/0.164, allocations: 479.1 kB / 479.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 2.344e-06/0.164, allocations: 0 / 479.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.003016/0.1671, allocations: 1.993 MB / 481.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.1672, allocations: 255.8 kB / 481.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006754/0.1679, allocations: 0.5547 MB / 482 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.168, allocations: 37.7 kB / 482 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.1683, allocations: 407.4 kB / 482.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1685, allocations: 205.2 kB / 482.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.1686, allocations: 150.5 kB / 482.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1688, allocations: 382.8 kB / 483.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.1692, allocations: 233.7 kB / 483.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.1697, allocations: 457.8 kB / 483.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009367/0.1707, allocations: 0.8012 MB / 484.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.1707, allocations: 4 kB / 484.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001556/0.1723, allocations: 0.9443 MB / 485.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.1723, allocations: 59.41 kB / 485.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.1723, allocations: 8 kB / 485.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/0.1728, allocations: 122 kB / 485.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/0.1733, allocations: 143.7 kB / 485.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/0.1766, allocations: 3.236 MB / 489.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.1772, allocations: 36.05 kB / 489.1 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.5e-05/0.1773, allocations: 63.89 kB / 489.2 MB, free: 6.559 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004598/0.1777, allocations: 346.6 kB / 489.5 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1778, allocations: 75.14 kB / 489.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.179, allocations: 0.7857 MB / 490.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.1791, allocations: 12 kB / 490.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1791, allocations: 0 / 490.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1791, allocations: 0 / 490.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.1814, allocations: 1.543 MB / 492 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.1814, allocations: 0 / 492 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005237/0.1819, allocations: 111.9 kB / 492.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.182, allocations: 4 kB / 492.1 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-05/0.182, allocations: 24.02 kB / 492.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.182, allocations: 4 kB / 492.1 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.182, allocations: 3.938 kB / 492.1 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.1837, allocations: 1.211 MB / 493.3 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.184, allocations: 180.2 kB / 493.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.1841, allocations: 20.05 kB / 493.5 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.1845, allocations: 27.98 kB / 493.5 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1846, allocations: 44.38 kB / 493.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.748e-05/0.1847, allocations: 55.88 kB / 493.6 MB, free: 1.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005329/0.1852, allocations: 395 kB / 494 MB, free: 1.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1853, allocations: 0 / 494 MB, free: 1.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000697/0.186, allocations: 180 kB / 494.2 MB, free: 1.406 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001707/0.1861, allocations: 132.6 kB / 494.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.1879, allocations: 1.101 MB / 495.4 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.1879, allocations: 0 / 495.4 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.1885, allocations: 497.2 kB / 495.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008648/0.1894, allocations: 165.7 kB / 496.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.1922, allocations: 1.548 MB / 497.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008012/0.193, allocations: 1.009 MB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000483/0.1935, allocations: 153.8 kB / 498.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.1937, allocations: 47.44 kB / 498.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1937, allocations: 4 kB / 498.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01602/0.2097, allocations: 7.465 MB / 0.4944 GB, free: 5.227 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)