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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001099/0.001099, allocations: 112.3 kB / 17.74 MB, free: 5.297 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.001047/0.001047, allocations: 187 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1809/0.1809, allocations: 37.99 MB / 309.9 MB, free: 5.949 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 75.89 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1007, allocations: 55.23 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008677/0.1095, allocations: 7.31 MB / 495.1 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.1128, allocations: 1.754 MB / 496.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006465/0.1135, allocations: 27.81 kB / 496.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000821/0.1143, allocations: 234.4 kB / 497.1 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.1159, allocations: 0.5638 MB / 497.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005831/0.1165, allocations: 215.6 kB / 497.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.1182, allocations: 1.266 MB / 499.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004758/0.1187, allocations: 362.5 kB / 499.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009598/0.1196, allocations: 0.5524 MB / 0.4883 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009713/0.1206, allocations: 0.6384 MB / 0.4889 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.1207, allocations: 64 kB / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.1209, allocations: 64 kB / 0.4891 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003048/0.1212, allocations: 335.1 kB / 0.4894 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.1217, allocations: 437.7 kB / 0.4898 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009204/0.1226, allocations: 0.9147 MB / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1226, allocations: 0 / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1226, allocations: 0 / 0.4907 GB, free: 9.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1226, allocations: 0 / 0.4907 GB, free: 9.574 MB / 382.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.001967/0.1246, allocations: 1.225 MB / 0.4919 GB, free: 8.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1247, allocations: 11.89 kB / 0.4919 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.1248, allocations: 99.75 kB / 0.492 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.1259, allocations: 0.7071 MB / 0.4927 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.126, allocations: 49.25 kB / 0.4927 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.9e-05/0.1261, allocations: 67.98 kB / 0.4928 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1273, allocations: 0.8137 MB / 0.4936 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1273, allocations: 0 / 0.4936 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.095e-05/0.1274, allocations: 31.98 kB / 0.4936 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.531e-05/0.1274, allocations: 33.3 kB / 0.4937 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008971/0.1283, allocations: 0.614 MB / 0.4943 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.1316, allocations: 2.622 MB / 0.4968 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.1325, allocations: 0.6127 MB / 0.4974 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005854/0.1331, allocations: 371.1 kB / 0.4978 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.1332, allocations: 4.438 kB / 0.4978 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005689/0.1337, allocations: 487 kB / 0.4982 GB, free: 1.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 2.304e-06/0.1337, allocations: 4 kB / 0.4982 GB, free: 1.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.002908/0.1367, allocations: 1.977 MB / 0.5002 GB, free: 15.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.1368, allocations: 247.8 kB / 0.5004 GB, free: 15.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006355/0.1375, allocations: 0.5705 MB / 0.501 GB, free: 14.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.1375, allocations: 37.7 kB / 0.501 GB, free: 14.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003122/0.1379, allocations: 403.4 kB / 0.5014 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.138, allocations: 205.1 kB / 0.5016 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.1382, allocations: 154.5 kB / 0.5017 GB, free: 13.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1384, allocations: 378.8 kB / 0.5021 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/0.1387, allocations: 225.9 kB / 0.5023 GB, free: 13.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000496/0.1393, allocations: 457.9 kB / 0.5027 GB, free: 12.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008927/0.1402, allocations: 0.7973 MB / 0.5035 GB, free: 11.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.1402, allocations: 4 kB / 0.5035 GB, free: 11.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001467/0.1416, allocations: 0.9443 MB / 0.5045 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.405e-05/0.1417, allocations: 75.52 kB / 0.5045 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1417, allocations: 8 kB / 0.5045 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003807/0.1421, allocations: 109.5 kB / 0.5046 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.1426, allocations: 155.7 kB / 0.5048 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003252/0.1459, allocations: 3.555 MB / 0.5083 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.1464, allocations: 36.23 kB / 0.5083 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.1465, allocations: 59.95 kB / 0.5083 GB, free: 6.449 MB / 398.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.0004456/0.1469, allocations: 350.6 kB / 0.5087 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.147, allocations: 75.22 kB / 0.5088 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.1482, allocations: 0.7857 MB / 0.5095 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1482, allocations: 4 kB / 0.5095 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1482, allocations: 4 kB / 0.5095 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1482, allocations: 3.984 kB / 0.5095 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.1503, allocations: 1.569 MB / 0.5111 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1503, allocations: 0 / 0.5111 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/0.1508, allocations: 103.9 kB / 0.5112 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.1508, allocations: 7.938 kB / 0.5112 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.1509, allocations: 23.98 kB / 0.5112 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1509, allocations: 0 / 0.5112 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1509, allocations: 7.938 kB / 0.5112 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.1524, allocations: 1.191 MB / 0.5124 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.1526, allocations: 180.2 kB / 0.5125 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.1527, allocations: 19.94 kB / 0.5126 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.153, allocations: 27.98 kB / 0.5126 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.1531, allocations: 44.38 kB / 0.5126 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-05/0.1532, allocations: 59.94 kB / 0.5127 GB, free: 1.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004323/0.1537, allocations: 391 kB / 0.5131 GB, free: 1.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1537, allocations: 0 / 0.5131 GB, free: 1.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007022/0.1544, allocations: 176 kB / 0.5132 GB, free: 1.273 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.0001565/0.1545, allocations: 135.1 kB / 0.5134 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.156, allocations: 1.012 MB / 0.5143 GB, free: 72 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.156, allocations: 0 / 0.5143 GB, free: 72 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005516/0.1565, allocations: 0.4933 MB / 0.5148 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007999/0.1574, allocations: 167.3 kB / 0.515 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.1598, allocations: 1.606 MB / 0.5165 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005956/0.1604, allocations: 1.005 MB / 0.5175 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.1606, allocations: 63.38 kB / 0.5176 GB, free: 12.64 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1606, allocations: 0 / 0.5176 GB, free: 12.64 MB / 414.1 MB Notification: Performance of Templates: time 0.01609/0.1767, allocations: 12.18 MB / 0.5295 GB, free: 444 kB / 414.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)