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.001245/0.001245, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001233/0.001233, allocations: 189.4 kB / 18 MB, free: 5.098 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.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1857/0.1857, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.347, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.008182/0.3553, allocations: 9.073 MB / 0.5125 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005995/0.3613, allocations: 3.376 MB / 0.5158 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.3623, allocations: 39.53 kB / 0.5158 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002888/0.3652, allocations: 1.034 MB / 0.5168 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003027/0.3683, allocations: 1.098 MB / 0.5179 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002162/0.3705, allocations: 0.6927 MB / 0.5186 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005593/0.3761, allocations: 2.384 MB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.378, allocations: 0.8215 MB / 0.5217 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.3804, allocations: 0.986 MB / 0.5227 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.383, allocations: 1.334 MB / 0.524 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003761/0.3834, allocations: 129.2 kB / 0.5241 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.3852, allocations: 0.5804 MB / 0.5246 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001474/0.3867, allocations: 0.9204 MB / 0.5255 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.3883, allocations: 0.9007 MB / 0.5264 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004394/0.3927, allocations: 2.351 MB / 0.5287 GB, free: 8.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3927, allocations: 3.938 kB / 0.5287 GB, free: 8.969 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3927, allocations: 0 / 0.5287 GB, free: 8.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.132e-05/0.3928, allocations: 0 / 0.5287 GB, free: 8.969 MB / 398.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.005026/0.3979, allocations: 2.068 MB / 0.5307 GB, free: 7.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3979, allocations: 13.77 kB / 0.5308 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003975/0.3983, allocations: 240.4 kB / 0.531 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.4004, allocations: 363.5 kB / 0.5313 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002261/0.4027, allocations: 1.083 MB / 0.5324 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.4028, allocations: 111.2 kB / 0.5325 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003975/0.4032, allocations: 170.8 kB / 0.5327 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004163/0.4074, allocations: 2.324 MB / 0.5349 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.293e-05/0.4075, allocations: 8.188 kB / 0.5349 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.4077, allocations: 61.31 kB / 0.535 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005799/0.4082, allocations: 225.5 kB / 0.5352 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003458/0.4117, allocations: 1.846 MB / 0.537 GB, free: 3.676 MB / 398.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.01331/0.425, allocations: 9.53 MB / 0.5463 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.4279, allocations: 1.552 MB / 0.5478 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.429, allocations: 0.6098 MB / 0.5484 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.036e-05/0.4291, allocations: 16.98 kB / 0.5485 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.4305, allocations: 0.8567 MB / 0.5493 GB, free: 8.992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.647e-06/0.4305, allocations: 3.938 kB / 0.5493 GB, free: 8.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.008758/0.4393, allocations: 4.06 MB / 0.5533 GB, free: 4.832 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002522/0.4396, allocations: 290.5 kB / 0.5535 GB, free: 4.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.4415, allocations: 0.9186 MB / 0.5544 GB, free: 3.547 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001972/0.4417, allocations: 49.7 kB / 0.5545 GB, free: 3.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009179/0.4426, allocations: 0.7888 MB / 0.5552 GB, free: 2.691 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000701/0.4433, allocations: 480 kB / 0.5557 GB, free: 2.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007798/0.4441, allocations: 327.4 kB / 0.556 GB, free: 1.895 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.4444, allocations: 357.9 kB / 0.5564 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.4457, allocations: 0.5778 MB / 0.5569 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.4476, allocations: 1.178 MB / 0.5581 GB, free: 15.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003275/0.4509, allocations: 1.997 MB / 0.56 GB, free: 13.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.055e-05/0.4509, allocations: 4 kB / 0.56 GB, free: 13.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005189/0.4561, allocations: 2.497 MB / 0.5625 GB, free: 10.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/0.4562, allocations: 72.39 kB / 0.5625 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003192/0.4594, allocations: 1.567 MB / 0.5641 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/0.4612, allocations: 0.5457 MB / 0.5646 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.4624, allocations: 323.5 kB / 0.5649 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01204/0.4744, allocations: 9.467 MB / 0.5742 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.4758, allocations: 79.86 kB / 0.5742 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003592/0.4762, allocations: 99.97 kB / 0.5743 GB, free: 13.97 MB / 446.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.001371/0.4775, allocations: 0.6025 MB / 0.5749 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000338/0.4779, allocations: 127.2 kB / 0.575 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.481, allocations: 1.547 MB / 0.5765 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.4811, allocations: 12 kB / 0.5766 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.4811, allocations: 3.938 kB / 0.5766 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.4811, allocations: 7.984 kB / 0.5766 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006149/0.4873, allocations: 3.072 MB / 0.5796 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.4873, allocations: 4 kB / 0.5796 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.4888, allocations: 295.8 kB / 0.5799 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-05/0.4889, allocations: 4 kB / 0.5799 GB, free: 8.172 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.489, allocations: 39.97 kB / 0.5799 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.09e-05/0.489, allocations: 4 kB / 0.5799 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.489, allocations: 4 kB / 0.5799 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/0.4927, allocations: 2.33 MB / 0.5822 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007136/0.4934, allocations: 300.2 kB / 0.5825 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.4937, allocations: 28 kB / 0.5825 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007305/0.4945, allocations: 47.97 kB / 0.5825 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.4947, allocations: 84.81 kB / 0.5826 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.4948, allocations: 79.86 kB / 0.5827 GB, free: 5.199 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001118/0.496, allocations: 0.5986 MB / 0.5833 GB, free: 4.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.496, allocations: 0 / 0.5833 GB, free: 4.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001961/0.4979, allocations: 424 kB / 0.5837 GB, free: 4.176 MB / 446.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.004223/0.5022, allocations: 2.913 MB / 0.5865 GB, free: 1.195 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00431/0.5065, allocations: 2.332 MB / 0.5888 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5066, allocations: 0 / 0.5888 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.5079, allocations: 0.875 MB / 0.5897 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.5095, allocations: 233.6 kB / 0.5899 GB, free: 13.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02471/0.5342, allocations: 13.13 MB / 0.6027 GB, free: 15.81 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.5358, allocations: 1.458 MB / 0.6041 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00123/0.5371, allocations: 462.3 kB / 0.6046 GB, free: 13.86 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008637/0.5379, allocations: 0.5696 MB / 0.6051 GB, free: 13.29 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.538, allocations: 0 / 0.6051 GB, free: 13.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09023/0.6282, allocations: 27.23 MB / 0.6317 GB, free: 2.246 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.93, allocations: 10.41 kB / 0.6317 GB, free: 2.238 MB / 494.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)