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 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: "" <> 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.001027/0.001027, allocations: 96.05 kB / 16.3 MB, free: 5.992 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.0009859/0.0009859, allocations: 184 kB / 17.2 MB, free: 5.914 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.553/1.553, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3076/0.3076, allocations: 38.05 MB / 309.7 MB, free: 8.887 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.0005177/0.0005177, allocations: 18.19 kB / 376.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1277, allocations: 56.33 MB / 432.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01075/0.1385, allocations: 9.102 MB / 442 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007028/0.1456, allocations: 3.734 MB / 445.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.147, allocations: 59.56 kB / 445.8 MB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009287/0.1479, allocations: 334.1 kB / 446.1 MB, free: 9.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002776/0.1507, allocations: 0.7828 MB / 446.9 MB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001953/0.1527, allocations: 0.6275 MB / 447.6 MB, free: 7.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002056/0.1548, allocations: 1.055 MB / 448.6 MB, free: 6.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.1569, allocations: 1.104 MB / 449.7 MB, free: 5.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.1582, allocations: 0.6538 MB / 450.4 MB, free: 5.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.1594, allocations: 0.8452 MB / 451.2 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.1596, allocations: 64 kB / 451.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009111/0.1605, allocations: 411.4 kB / 451.7 MB, free: 3.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006952/0.1612, allocations: 0.7834 MB / 452.5 MB, free: 2.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.1616, allocations: 340.8 kB / 452.8 MB, free: 2.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.1634, allocations: 1.734 MB / 454.5 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1634, allocations: 0 / 454.5 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1634, allocations: 0 / 454.5 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.1634, allocations: 0 / 454.5 MB, free: 0.9062 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.2288/0.3922, allocations: 1.708 MB / 456.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3923, allocations: 10.81 kB / 456.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003967/0.3927, allocations: 236.8 kB / 456.5 MB, free: 50.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.3946, allocations: 375.6 kB / 456.8 MB, free: 50.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.3963, allocations: 0.9939 MB / 457.8 MB, free: 50.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.621e-05/0.3964, allocations: 104.5 kB / 457.9 MB, free: 50.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002999/0.3967, allocations: 162.6 kB / 458.1 MB, free: 50.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.3996, allocations: 2.308 MB / 460.4 MB, free: 49.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.3997, allocations: 10.03 kB / 460.4 MB, free: 49.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.3998, allocations: 65.75 kB / 460.5 MB, free: 49.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004815/0.4003, allocations: 220.8 kB / 460.7 MB, free: 49.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00244/0.4028, allocations: 1.816 MB / 462.5 MB, free: 49.74 MB / 382.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.009815/0.4126, allocations: 9.556 MB / 472.1 MB, free: 43.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.4145, allocations: 1.523 MB / 473.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.276e-05/0.4145, allocations: 16.75 kB / 473.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008791/0.4154, allocations: 0.8494 MB / 474.5 MB, free: 42.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.715e-06/0.4154, allocations: 0 / 474.5 MB, free: 42.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.00475/0.4202, allocations: 4.103 MB / 478.6 MB, free: 39.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.4203, allocations: 285.5 kB / 478.8 MB, free: 39.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008396/0.4211, allocations: 0.9135 MB / 479.8 MB, free: 39.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.4212, allocations: 51.3 kB / 479.8 MB, free: 39.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004005/0.4216, allocations: 0.772 MB / 480.6 MB, free: 38.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/0.4219, allocations: 453.2 kB / 481 MB, free: 38.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.4219, allocations: 38.38 kB / 481.1 MB, free: 38.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4221, allocations: 433.5 kB / 481.5 MB, free: 37.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006897/0.4228, allocations: 0.5633 MB / 482 MB, free: 37.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009841/0.4238, allocations: 1.152 MB / 483.2 MB, free: 36.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009805/0.4248, allocations: 0.8362 MB / 484 MB, free: 36.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.4248, allocations: 7.156 kB / 484 MB, free: 36.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00348/0.4283, allocations: 2.461 MB / 486.5 MB, free: 35.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.379e-05/0.4283, allocations: 69.62 kB / 486.6 MB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002296/0.4306, allocations: 1.534 MB / 488.1 MB, free: 34.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.432, allocations: 0.5472 MB / 488.6 MB, free: 34.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/0.4329, allocations: 321.8 kB / 489 MB, free: 34.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/0.4408, allocations: 8.92 MB / 497.9 MB, free: 27.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.442, allocations: 87.23 kB / 498 MB, free: 27.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.4421, allocations: 99.25 kB / 498.1 MB, free: 27.89 MB / 382.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,$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.0008813/0.443, allocations: 0.6037 MB / 498.7 MB, free: 27.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.4432, allocations: 123 kB / 498.8 MB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/0.4454, allocations: 1.515 MB / 0.4886 GB, free: 26.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.4455, allocations: 19.14 kB / 0.4886 GB, free: 26.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4455, allocations: 4.438 kB / 0.4886 GB, free: 26.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.4455, allocations: 8.141 kB / 0.4886 GB, free: 26.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004313/0.4498, allocations: 3.049 MB / 0.4916 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.4498, allocations: 0 / 0.4916 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.4511, allocations: 299.8 kB / 0.4919 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.4511, allocations: 6.375 kB / 0.4919 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.151e-05/0.4512, allocations: 34.12 kB / 0.4919 GB, free: 25.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/0.4512, allocations: 9.078 kB / 0.4919 GB, free: 25.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.4512, allocations: 5.438 kB / 0.4919 GB, free: 25.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002966/0.4542, allocations: 2.369 MB / 0.4942 GB, free: 24.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006415/0.4548, allocations: 291.5 kB / 0.4945 GB, free: 24.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.455, allocations: 34.34 kB / 0.4945 GB, free: 24.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005499/0.4556, allocations: 50.67 kB / 0.4946 GB, free: 24.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.4557, allocations: 83.23 kB / 0.4947 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.4559, allocations: 79.16 kB / 0.4948 GB, free: 24.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009037/0.4568, allocations: 0.5912 MB / 0.4953 GB, free: 23.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4568, allocations: 0 / 0.4953 GB, free: 23.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001843/0.4587, allocations: 422.6 kB / 0.4957 GB, free: 23.81 MB / 382.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 (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.00372/0.4624, allocations: 3.44 MB / 0.4991 GB, free: 21.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004193/0.4666, allocations: 2.282 MB / 0.5013 GB, free: 20.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4666, allocations: 1.344 kB / 0.5013 GB, free: 20.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.4678, allocations: 0.8722 MB / 0.5022 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.4688, allocations: 186.2 kB / 0.5023 GB, free: 20.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.4867, allocations: 22.53 MB / 0.5243 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.488, allocations: 1.492 MB / 0.5258 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001431/0.4895, allocations: 470.9 kB / 0.5263 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008181/0.4903, allocations: 0.5644 MB / 0.5268 GB, free: 14.88 MB / 398.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4903, allocations: 0 / 0.5268 GB, free: 14.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04509/0.5354, allocations: 25.71 MB / 0.5519 GB, free: 5.477 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.5357, allocations: 204.8 kB / 0.5521 GB, free: 5.234 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.844, allocations: 3.938 kB / 0.5521 GB, free: 5.23 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1) Environment - environmentSimulation: