Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 107.7 kB / 16.92 MB, free: 5.664 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.001187/0.001187, allocations: 189.6 kB / 17.85 MB, free: 5.176 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.369/1.369, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1798/0.1798, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 61.06 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.09348, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01097/0.1045, allocations: 9.079 MB / 466 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00592/0.1104, allocations: 3.361 MB / 469.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000801/0.1113, allocations: 39.69 kB / 469.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002819/0.1141, allocations: 1.042 MB / 470.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002528/0.1166, allocations: 1.101 MB / 471.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001808/0.1185, allocations: 0.6821 MB / 472.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.1214, allocations: 2.39 MB / 474.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.1227, allocations: 0.819 MB / 475.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.1243, allocations: 0.9846 MB / 476.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002035/0.1264, allocations: 1.347 MB / 477.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000378/0.1267, allocations: 128 kB / 477.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.1281, allocations: 0.5695 MB / 478.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.1293, allocations: 0.9236 MB / 479.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.1309, allocations: 0.9018 MB / 480.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002786/0.1337, allocations: 2.301 MB / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1337, allocations: 0 / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1337, allocations: 0 / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.358e-05/0.1338, allocations: 0 / 482.6 MB, free: 14.18 MB / 366.1 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.004819/0.1387, allocations: 2.011 MB / 484.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1387, allocations: 11.89 kB / 484.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004221/0.1392, allocations: 240.8 kB / 484.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/0.1412, allocations: 366.3 kB / 485.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.143, allocations: 1.016 MB / 486.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.583e-05/0.1431, allocations: 107.1 kB / 486.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003743/0.1435, allocations: 167.7 kB / 486.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003475/0.147, allocations: 2.324 MB / 488.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.966e-05/0.147, allocations: 7.938 kB / 488.9 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001557/0.1472, allocations: 67.97 kB / 488.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000536/0.1478, allocations: 226.8 kB / 489.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003034/0.1508, allocations: 1.838 MB / 491 MB, free: 5.531 MB / 366.1 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.01103/0.1618, allocations: 9.575 MB / 0.4888 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00233/0.1642, allocations: 1.556 MB / 0.4904 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008391/0.165, allocations: 0.599 MB / 0.4909 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.771e-05/0.1652, allocations: 24.97 kB / 0.491 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.1662, allocations: 0.8451 MB / 0.4918 GB, free: 8.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.005e-06/0.1663, allocations: 3.938 kB / 0.4918 GB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.006028/0.1723, allocations: 4.011 MB / 0.4957 GB, free: 4.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.1724, allocations: 290.5 kB / 0.496 GB, free: 3.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1736, allocations: 0.9147 MB / 0.4969 GB, free: 2.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.1737, allocations: 49.69 kB / 0.4969 GB, free: 2.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005718/0.1743, allocations: 0.7706 MB / 0.4977 GB, free: 2.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.1746, allocations: 449.7 kB / 0.4981 GB, free: 1.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004125/0.175, allocations: 323.2 kB / 0.4984 GB, free: 1.312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1752, allocations: 357.9 kB / 0.4988 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.1761, allocations: 0.5816 MB / 0.4993 GB, free: 384 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.1774, allocations: 1.171 MB / 0.5005 GB, free: 14.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.1798, allocations: 2.001 MB / 0.5024 GB, free: 12.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/0.1798, allocations: 12 kB / 0.5024 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004435/0.1842, allocations: 2.496 MB / 0.5049 GB, free: 10.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.821e-05/0.1843, allocations: 68.38 kB / 0.5049 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002842/0.1872, allocations: 1.573 MB / 0.5065 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.1888, allocations: 0.5528 MB / 0.507 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.1899, allocations: 323.5 kB / 0.5073 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.195/0.3849, allocations: 9.455 MB / 0.5166 GB, free: 67.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3861, allocations: 68.92 kB / 0.5166 GB, free: 67.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003128/0.3864, allocations: 105.1 kB / 0.5167 GB, free: 67.6 MB / 398.1 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,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 (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (2,11,100.0%), (2,12,100.0%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009647/0.3874, allocations: 0.5983 MB / 0.5173 GB, free: 67.42 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.3876, allocations: 126.4 kB / 0.5174 GB, free: 67.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/0.3901, allocations: 1.535 MB / 0.5189 GB, free: 67.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.3901, allocations: 11.75 kB / 0.5189 GB, free: 67.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3901, allocations: 4.562 kB / 0.5189 GB, free: 67.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.3901, allocations: 11.48 kB / 0.5189 GB, free: 67.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.3948, allocations: 3.072 MB / 0.5219 GB, free: 65.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.3948, allocations: 2.75 kB / 0.5219 GB, free: 65.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.3962, allocations: 296.3 kB / 0.5222 GB, free: 65.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.757e-05/0.3963, allocations: 8.938 kB / 0.5222 GB, free: 65.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.3964, allocations: 35.44 kB / 0.5223 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.3964, allocations: 7.016 kB / 0.5223 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3964, allocations: 8.188 kB / 0.5223 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.3995, allocations: 2.317 MB / 0.5246 GB, free: 64.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/0.4, allocations: 292.4 kB / 0.5248 GB, free: 64.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.4003, allocations: 31.2 kB / 0.5249 GB, free: 64.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.4009, allocations: 42.72 kB / 0.5249 GB, free: 64.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.4011, allocations: 85.67 kB / 0.525 GB, free: 64.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.4013, allocations: 76.92 kB / 0.5251 GB, free: 64.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001041/0.4023, allocations: 0.6015 MB / 0.5256 GB, free: 64.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4023, allocations: 0 / 0.5256 GB, free: 64.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001488/0.4038, allocations: 425.9 kB / 0.526 GB, free: 64.51 MB / 398.1 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 (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.003258/0.4071, allocations: 2.915 MB / 0.5289 GB, free: 63 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004757/0.4119, allocations: 2.997 MB / 0.5318 GB, free: 61.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.4119, allocations: 0 / 0.5318 GB, free: 61.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.4129, allocations: 0.8769 MB / 0.5327 GB, free: 61.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.4143, allocations: 220.7 kB / 0.5329 GB, free: 61.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.4303, allocations: 13.61 MB / 0.5462 GB, free: 52.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007519/0.431, allocations: 1.458 MB / 0.5476 GB, free: 51.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001042/0.4321, allocations: 463.3 kB / 0.548 GB, free: 50.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005054/0.4326, allocations: 0.5677 MB / 0.5486 GB, free: 50.02 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4326, allocations: 4 kB / 0.5486 GB, free: 50.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04489/0.4775, allocations: 26.78 MB / 0.5748 GB, free: 23.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.768/10.25, allocations: 8.516 kB / 0.5748 GB, free: 23.44 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)