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.001659/0.00166, allocations: 102.8 kB / 16.5 MB, free: 6.688 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.00191/0.00191, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.402/1.402, allocations: 222.9 MB / 241.1 MB, free: 15.5 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 / 329.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62.38 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1142, allocations: 58.07 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009333/0.1236, allocations: 8.942 MB / 465.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.1272, allocations: 2.228 MB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006217/0.1279, allocations: 63.56 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006371/0.1286, allocations: 210.8 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001159/0.1297, allocations: 0.533 MB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.1302, allocations: 195.8 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.1317, allocations: 1.94 MB / 470.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003655/0.1321, allocations: 302.5 kB / 470.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000621/0.1328, allocations: 485.6 kB / 471 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008367/0.1336, allocations: 0.6735 MB / 471.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.962e-05/0.1337, allocations: 44 kB / 471.7 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.1339, allocations: 44 kB / 471.8 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.1342, allocations: 323.1 kB / 472.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000402/0.1346, allocations: 413.7 kB / 472.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.1353, allocations: 0.8758 MB / 473.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1353, allocations: 0 / 473.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1353, allocations: 0 / 473.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1353, allocations: 0 / 473.4 MB, free: 7.242 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.001948/0.1373, allocations: 1.225 MB / 474.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1373, allocations: 12.03 kB / 474.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.1375, allocations: 95.8 kB / 474.7 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.1385, allocations: 0.6642 MB / 475.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.1386, allocations: 53.25 kB / 475.4 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.1387, allocations: 59.98 kB / 475.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.1398, allocations: 0.8099 MB / 476.3 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1398, allocations: 3.938 kB / 476.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.833e-05/0.1399, allocations: 35.92 kB / 476.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.339e-05/0.1399, allocations: 33.3 kB / 476.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009412/0.1409, allocations: 0.614 MB / 477 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.1442, allocations: 2.634 MB / 479.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1452, allocations: 0.6105 MB / 480.2 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006827/0.1459, allocations: 376.1 kB / 480.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.146, allocations: 4.438 kB / 480.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007284/0.1467, allocations: 486.9 kB / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.635e-06/0.1468, allocations: 0 / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003583/0.1503, allocations: 1.989 MB / 483.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.1505, allocations: 247.8 kB / 483.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.1511, allocations: 0.5663 MB / 483.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.1512, allocations: 41.7 kB / 483.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.1515, allocations: 399.5 kB / 484.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.1516, allocations: 205 kB / 484.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.1518, allocations: 146.6 kB / 484.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.152, allocations: 398.7 kB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/0.1523, allocations: 225.9 kB / 485.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.1529, allocations: 453.8 kB / 485.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.154, allocations: 0.7973 MB / 486.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.154, allocations: 0 / 486.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001986/0.156, allocations: 0.952 MB / 487.4 MB, free: 8.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.431e-05/0.1561, allocations: 67.39 kB / 487.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.1561, allocations: 8 kB / 487.5 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004415/0.1566, allocations: 113.6 kB / 487.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.1571, allocations: 144 kB / 487.8 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/0.1598, allocations: 3 MB / 490.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004658/0.1603, allocations: 40.03 kB / 490.8 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.365e-05/0.1603, allocations: 51.97 kB / 490.9 MB, free: 4.707 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.000484/0.1608, allocations: 358.6 kB / 491.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/0.1609, allocations: 71.16 kB / 491.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.1621, allocations: 0.7858 MB / 492.1 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.1621, allocations: 11.98 kB / 492.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1621, allocations: 7.938 kB / 492.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1621, allocations: 3.984 kB / 492.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.164, allocations: 1.539 MB / 493.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1641, allocations: 0 / 493.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005185/0.1646, allocations: 115.8 kB / 493.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.1646, allocations: 4 kB / 493.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.1646, allocations: 24.03 kB / 493.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.1647, allocations: 7.984 kB / 493.8 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1647, allocations: 3.938 kB / 493.8 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.1661, allocations: 1.203 MB / 495 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.1664, allocations: 188.1 kB / 495.2 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.35e-05/0.1664, allocations: 16.06 kB / 495.2 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/0.1668, allocations: 27.97 kB / 495.2 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1669, allocations: 44.33 kB / 495.3 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-05/0.167, allocations: 59.86 kB / 495.3 MB, free: 84 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004174/0.1674, allocations: 391.1 kB / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1674, allocations: 0 / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005782/0.168, allocations: 180 kB / 495.9 MB, free: 15.53 MB / 382.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.0001385/0.1681, allocations: 135 kB / 496 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.1695, allocations: 1.011 MB / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1695, allocations: 0 / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.17, allocations: 497.2 kB / 497.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008135/0.1708, allocations: 151.5 kB / 497.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.1733, allocations: 1.836 MB / 499.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.174, allocations: 1.013 MB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.1744, allocations: 149.8 kB / 0.4889 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.1745, allocations: 51.38 kB / 0.489 GB, free: 10.56 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1746, allocations: 4 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.01245/0.187, allocations: 6.922 MB / 0.4957 GB, free: 3.703 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)