Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 170.2 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 222.2 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006606/0.0006605, allocations: 78.42 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.167/0.167, allocations: 38.08 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003227, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.222, allocations: 56.3 MB / 479.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.007627/0.2297, allocations: 9.647 MB / 489.3 MB, free: 2.617 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005756/0.2355, allocations: 3.711 MB / 493 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.2367, allocations: 65.94 kB / 493 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.2377, allocations: 400.8 kB / 493.4 MB, free: 15.76 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002802/0.2405, allocations: 1.129 MB / 494.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001994/0.2425, allocations: 0.6699 MB / 495.2 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004021/0.2466, allocations: 3.11 MB / 498.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002103/0.2487, allocations: 1.223 MB / 499.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001704/0.2504, allocations: 0.8254 MB / 0.4887 GB, free: 12.78 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.2524, allocations: 1.36 MB / 0.49 GB, free: 12.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.2526, allocations: 68.33 kB / 0.49 GB, free: 12.11 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.2538, allocations: 0.5336 MB / 0.4906 GB, free: 11.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008767/0.2547, allocations: 0.8739 MB / 0.4914 GB, free: 11.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009669/0.2557, allocations: 0.7986 MB / 0.4922 GB, free: 10.85 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.2575, allocations: 1.74 MB / 0.4939 GB, free: 9.727 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2576, allocations: 1.156 kB / 0.4939 GB, free: 9.727 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2576, allocations: 0 / 0.4939 GB, free: 9.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.728e-05/0.2576, allocations: 0 / 0.4939 GB, free: 9.727 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.003254/0.2609, allocations: 1.69 MB / 0.4956 GB, free: 8.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2609, allocations: 9.031 kB / 0.4956 GB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.2626, allocations: 350.8 kB / 0.4959 GB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.2646, allocations: 1.029 MB / 0.4969 GB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.306e-05/0.2647, allocations: 103.5 kB / 0.497 GB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003463/0.265, allocations: 179.6 kB / 0.4972 GB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.2685, allocations: 2.317 MB / 0.4994 GB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.615e-05/0.2686, allocations: 11.42 kB / 0.4994 GB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001484/0.2687, allocations: 56.52 kB / 0.4995 GB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004964/0.2692, allocations: 230.1 kB / 0.4997 GB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.2722, allocations: 1.837 MB / 0.5015 GB, free: 4.145 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01034/0.2826, allocations: 9.571 MB / 0.5109 GB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002053/0.2846, allocations: 1.532 MB / 0.5124 GB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.2854, allocations: 0.6096 MB / 0.513 GB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.606e-05/0.2855, allocations: 24.97 kB / 0.513 GB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.2866, allocations: 0.8527 MB / 0.5138 GB, free: 6.945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=130): time 3.527e-06/0.2866, allocations: 0 / 0.5138 GB, free: 6.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.005629/0.2922, allocations: 4 MB / 0.5177 GB, free: 2.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.2924, allocations: 286.3 kB / 0.518 GB, free: 2.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.2934, allocations: 0.9106 MB / 0.5189 GB, free: 1.578 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/0.2935, allocations: 49.7 kB / 0.5189 GB, free: 1.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005511/0.294, allocations: 0.7628 MB / 0.5197 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.2944, allocations: 461.6 kB / 0.5201 GB, free: 296 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.246e-05/0.2945, allocations: 36.16 kB / 0.5201 GB, free: 260 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.2947, allocations: 430.7 kB / 0.5206 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008695/0.2956, allocations: 0.5738 MB / 0.5211 GB, free: 15.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.2968, allocations: 1.163 MB / 0.5223 GB, free: 13.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/0.299, allocations: 1.989 MB / 0.5242 GB, free: 11.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.299, allocations: 7.938 kB / 0.5242 GB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004059/0.3031, allocations: 2.478 MB / 0.5266 GB, free: 9.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/0.3032, allocations: 68.03 kB / 0.5267 GB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002713/0.3059, allocations: 1.558 MB / 0.5282 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.3074, allocations: 0.5498 MB / 0.5287 GB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.3085, allocations: 319.5 kB / 0.529 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009106/0.3176, allocations: 8.697 MB / 0.5375 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.3189, allocations: 79.88 kB / 0.5376 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/0.3191, allocations: 103.9 kB / 0.5377 GB, free: 13.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009123/0.32, allocations: 0.5959 MB / 0.5383 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.3202, allocations: 122.5 kB / 0.5384 GB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/0.3224, allocations: 1.531 MB / 0.5399 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.3224, allocations: 12 kB / 0.5399 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3225, allocations: 7.938 kB / 0.5399 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.3225, allocations: 7.969 kB / 0.5399 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004382/0.3269, allocations: 3.075 MB / 0.5429 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.3269, allocations: 4 kB / 0.5429 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.3282, allocations: 295.8 kB / 0.5432 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.555e-05/0.3282, allocations: 8 kB / 0.5432 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-05/0.3283, allocations: 31.98 kB / 0.5433 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/0.3283, allocations: 8 kB / 0.5433 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.3283, allocations: 8 kB / 0.5433 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.3315, allocations: 2.304 MB / 0.5455 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005735/0.3321, allocations: 303.4 kB / 0.5458 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.3323, allocations: 31.98 kB / 0.5458 GB, free: 4.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006316/0.3329, allocations: 47.97 kB / 0.5459 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3331, allocations: 76.83 kB / 0.546 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.3332, allocations: 83.86 kB / 0.546 GB, free: 4.367 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009056/0.3342, allocations: 0.5947 MB / 0.5466 GB, free: 3.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3342, allocations: 0 / 0.5466 GB, free: 3.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001677/0.3358, allocations: 424 kB / 0.547 GB, free: 3.348 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (121): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002315/0.3361, allocations: 143 kB / 0.5472 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003606/0.3397, allocations: 2.295 MB / 0.5494 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3397, allocations: 0 / 0.5494 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.3409, allocations: 0.8728 MB / 0.5503 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.3425, allocations: 208.2 kB / 0.5505 GB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.3484, allocations: 4.176 MB / 0.5545 GB, free: 11.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.3496, allocations: 1.458 MB / 0.556 GB, free: 10 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/0.3501, allocations: 99.42 kB / 0.5561 GB, free: 9.906 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3501, allocations: 0 / 0.5561 GB, free: 9.906 MB / 394.7 MB Notification: Performance of Templates: time 0.03602/0.3861, allocations: 27.91 MB / 0.5833 GB, free: 13.95 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)