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.001104/0.001104, allocations: 106.6 kB / 17.06 MB, free: 6.098 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.001071/0.001071, allocations: 194.9 kB / 18 MB, free: 5.172 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 67.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3265, allocations: 58.05 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.009162/0.3357, allocations: 9.074 MB / 0.5125 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006527/0.3423, allocations: 3.372 MB / 0.5158 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.3436, allocations: 38.66 kB / 0.5158 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003033/0.3466, allocations: 1.044 MB / 0.5168 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.3496, allocations: 1.113 MB / 0.5179 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.3519, allocations: 0.6893 MB / 0.5186 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.3556, allocations: 2.382 MB / 0.5209 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.3569, allocations: 0.8299 MB / 0.5217 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.3591, allocations: 1 MB / 0.5227 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002361/0.3614, allocations: 1.342 MB / 0.524 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005288/0.362, allocations: 128.8 kB / 0.5241 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002078/0.3641, allocations: 0.5776 MB / 0.5247 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001709/0.3658, allocations: 0.9207 MB / 0.5256 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00173/0.3676, allocations: 0.9033 MB / 0.5265 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004005/0.3716, allocations: 2.344 MB / 0.5288 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.3716, allocations: 0 / 0.5288 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3716, allocations: 0 / 0.5288 GB, free: 9.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.334e-05/0.3717, allocations: 1.531 kB / 0.5288 GB, free: 9.047 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.004908/0.3767, allocations: 2.074 MB / 0.5308 GB, free: 7.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3767, allocations: 12.83 kB / 0.5308 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003507/0.3771, allocations: 241.7 kB / 0.531 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002013/0.3791, allocations: 360.5 kB / 0.5314 GB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002448/0.3816, allocations: 1.078 MB / 0.5324 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3817, allocations: 102.8 kB / 0.5325 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/0.3822, allocations: 183.2 kB / 0.5327 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003743/0.3859, allocations: 2.319 MB / 0.535 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.137e-05/0.386, allocations: 9.344 kB / 0.535 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/0.3861, allocations: 60.34 kB / 0.535 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005529/0.3867, allocations: 225.5 kB / 0.5352 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003238/0.39, allocations: 1.847 MB / 0.5371 GB, free: 3.754 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.01368/0.4037, allocations: 9.531 MB / 0.5464 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.4062, allocations: 1.551 MB / 0.5479 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.4074, allocations: 0.6059 MB / 0.5485 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.355e-05/0.4075, allocations: 20.92 kB / 0.5485 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00177/0.4093, allocations: 0.8684 MB / 0.5493 GB, free: 8.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 5.931e-06/0.4093, allocations: 0 / 0.5493 GB, free: 8.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.0112/0.4205, allocations: 4.06 MB / 0.5533 GB, free: 4.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002118/0.4208, allocations: 290.6 kB / 0.5536 GB, free: 4.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.4228, allocations: 0.9186 MB / 0.5545 GB, free: 3.488 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.423, allocations: 49.7 kB / 0.5545 GB, free: 3.434 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008701/0.4239, allocations: 0.781 MB / 0.5553 GB, free: 2.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006045/0.4245, allocations: 480 kB / 0.5557 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007359/0.4253, allocations: 331.4 kB / 0.5561 GB, free: 1.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4255, allocations: 357.9 kB / 0.5564 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.427, allocations: 0.5817 MB / 0.557 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002184/0.4292, allocations: 1.178 MB / 0.5581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004461/0.4337, allocations: 1.997 MB / 0.5601 GB, free: 13.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/0.4337, allocations: 4 kB / 0.5601 GB, free: 13.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.008209/0.4419, allocations: 2.493 MB / 0.5625 GB, free: 10.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.064e-05/0.4421, allocations: 72.36 kB / 0.5626 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005237/0.4473, allocations: 1.567 MB / 0.5641 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002922/0.4503, allocations: 0.542 MB / 0.5646 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002234/0.4525, allocations: 323.5 kB / 0.5649 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/0.471, allocations: 9.462 MB / 0.5742 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/0.4732, allocations: 79.86 kB / 0.5743 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003107/0.4735, allocations: 103.9 kB / 0.5744 GB, free: 13.91 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.001637/0.4752, allocations: 0.5959 MB / 0.5749 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002989/0.4755, allocations: 127.2 kB / 0.5751 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004174/0.4797, allocations: 1.543 MB / 0.5766 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.4797, allocations: 15.94 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.4798, allocations: 3.938 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.4798, allocations: 11.92 kB / 0.5766 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005913/0.4857, allocations: 3.06 MB / 0.5796 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.4857, allocations: 4 kB / 0.5796 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.4871, allocations: 303.8 kB / 0.5799 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.792e-05/0.4872, allocations: 4 kB / 0.5799 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.4873, allocations: 39.97 kB / 0.5799 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.4873, allocations: 4 kB / 0.5799 GB, free: 8.078 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4873, allocations: 4 kB / 0.5799 GB, free: 8.074 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.4903, allocations: 2.334 MB / 0.5822 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.491, allocations: 300.2 kB / 0.5825 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.4912, allocations: 28 kB / 0.5825 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006722/0.4919, allocations: 47.97 kB / 0.5826 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.4921, allocations: 80.77 kB / 0.5826 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.4922, allocations: 83.86 kB / 0.5827 GB, free: 5.145 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008332/0.493, allocations: 0.5986 MB / 0.5833 GB, free: 4.535 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4931, allocations: 0 / 0.5833 GB, free: 4.535 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001531/0.4946, allocations: 420 kB / 0.5837 GB, free: 4.125 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.003501/0.4981, allocations: 2.913 MB / 0.5866 GB, free: 1.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003398/0.5015, allocations: 2.336 MB / 0.5888 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5015, allocations: 0 / 0.5888 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.5026, allocations: 0.875 MB / 0.5897 GB, free: 13.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.5037, allocations: 226.9 kB / 0.5899 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01879/0.5225, allocations: 13.13 MB / 0.6027 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/0.524, allocations: 1.461 MB / 0.6042 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.5251, allocations: 470.3 kB / 0.6046 GB, free: 13.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/0.5259, allocations: 0.5696 MB / 0.6052 GB, free: 13.23 MB / 478.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5259, allocations: 0 / 0.6052 GB, free: 13.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05854/0.5845, allocations: 27.24 MB / 0.6318 GB, free: 2.184 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.19, allocations: 4.062 kB / 0.6318 GB, free: 2.18 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)