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.0009355/0.0009354, allocations: 88.83 kB / 16.31 MB, free: 6.449 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.001573/0.001574, allocations: 178.7 kB / 17.21 MB, free: 6.32 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.675/1.675, allocations: 205.4 MB / 223.4 MB, free: 5.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3499/0.3499, allocations: 38.06 MB / 309.7 MB, free: 8.754 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.0005776/0.0005778, allocations: 19.98 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1236, allocations: 56.33 MB / 433 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.009168/0.1328, allocations: 9.583 MB / 442.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006159/0.139, allocations: 3.722 MB / 446.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.14, allocations: 63.5 kB / 446.3 MB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008642/0.1409, allocations: 333.7 kB / 446.7 MB, free: 8.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00276/0.1437, allocations: 1.124 MB / 447.8 MB, free: 7.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.1456, allocations: 0.6278 MB / 448.4 MB, free: 7.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.149, allocations: 3.1 MB / 451.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001968/0.151, allocations: 1.104 MB / 452.6 MB, free: 2.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001528/0.1525, allocations: 0.8401 MB / 453.4 MB, free: 2.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001923/0.1544, allocations: 1.359 MB / 454.8 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1546, allocations: 64 kB / 454.9 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.1558, allocations: 435.3 kB / 455.3 MB, free: 276 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2297/0.3855, allocations: 0.8717 MB / 456.2 MB, free: 34.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008995/0.3864, allocations: 335.9 kB / 456.5 MB, free: 34.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002344/0.3888, allocations: 1.735 MB / 458.2 MB, free: 34.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3888, allocations: 3.562 kB / 458.2 MB, free: 34.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3888, allocations: 0 / 458.2 MB, free: 34.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.3889, allocations: 0 / 458.2 MB, free: 34.21 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.002625/0.3915, allocations: 1.71 MB / 459.9 MB, free: 33.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3915, allocations: 9.594 kB / 460 MB, free: 33.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002495/0.3918, allocations: 241.4 kB / 460.2 MB, free: 33.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/0.3934, allocations: 353.8 kB / 460.5 MB, free: 33.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.3948, allocations: 0.9964 MB / 461.5 MB, free: 32.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.744e-05/0.3949, allocations: 110.5 kB / 461.6 MB, free: 32.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002757/0.3952, allocations: 166.2 kB / 461.8 MB, free: 32.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002866/0.398, allocations: 2.316 MB / 464.1 MB, free: 32.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.244e-05/0.3981, allocations: 12 kB / 464.1 MB, free: 32.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.3982, allocations: 60.27 kB / 464.2 MB, free: 32.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004122/0.3987, allocations: 222.6 kB / 464.4 MB, free: 32.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.4011, allocations: 1.835 MB / 466.2 MB, free: 32.29 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.009902/0.411, allocations: 9.561 MB / 475.8 MB, free: 26.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.4132, allocations: 1.539 MB / 477.3 MB, free: 26.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007647/0.414, allocations: 0.6045 MB / 477.9 MB, free: 26.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.654e-05/0.4141, allocations: 20.31 kB / 478 MB, free: 26.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.4152, allocations: 0.8483 MB / 478.8 MB, free: 26.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.106e-06/0.4152, allocations: 0 / 478.8 MB, free: 26.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.005928/0.4211, allocations: 4 MB / 482.8 MB, free: 25.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.4213, allocations: 288 kB / 483.1 MB, free: 24.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.4225, allocations: 0.9097 MB / 484 MB, free: 24.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.4226, allocations: 49.64 kB / 484.1 MB, free: 24.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006061/0.4232, allocations: 0.7626 MB / 484.8 MB, free: 24.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003345/0.4235, allocations: 453.8 kB / 485.3 MB, free: 23.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.049e-05/0.4236, allocations: 33.75 kB / 485.3 MB, free: 23.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4238, allocations: 440.7 kB / 485.7 MB, free: 23.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008632/0.4247, allocations: 0.5661 MB / 486.3 MB, free: 23.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.4259, allocations: 1.173 MB / 487.5 MB, free: 22.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.4272, allocations: 0.8376 MB / 488.3 MB, free: 22.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.4272, allocations: 5.938 kB / 488.3 MB, free: 22.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003919/0.4311, allocations: 2.483 MB / 490.8 MB, free: 22.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.654e-05/0.4312, allocations: 63.72 kB / 490.8 MB, free: 22.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002748/0.4339, allocations: 1.564 MB / 492.4 MB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001583/0.4355, allocations: 0.5423 MB / 493 MB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.4367, allocations: 330.9 kB / 493.3 MB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009017/0.4457, allocations: 8.68 MB / 0.4902 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.4471, allocations: 82.84 kB / 0.4903 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.4473, allocations: 101.4 kB / 0.4904 GB, free: 15.29 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.001088/0.4484, allocations: 0.5899 MB / 0.4909 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.4486, allocations: 128.8 kB / 0.4911 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.451, allocations: 1.541 MB / 0.4926 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.4511, allocations: 11.47 kB / 0.4926 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4511, allocations: 1.062 kB / 0.4926 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.4511, allocations: 10.72 kB / 0.4926 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005191/0.4563, allocations: 3.07 MB / 0.4956 GB, free: 28.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4563, allocations: 2.094 kB / 0.4956 GB, free: 28.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.4577, allocations: 293.5 kB / 0.4959 GB, free: 28.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.4577, allocations: 7.344 kB / 0.4959 GB, free: 28.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.193e-05/0.4578, allocations: 38.5 kB / 0.4959 GB, free: 28.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-05/0.4578, allocations: 6.797 kB / 0.4959 GB, free: 28.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.4578, allocations: 9.109 kB / 0.4959 GB, free: 28.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003356/0.4612, allocations: 2.307 MB / 0.4982 GB, free: 27.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005756/0.4618, allocations: 294.1 kB / 0.4985 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.462, allocations: 31.45 kB / 0.4985 GB, free: 27.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005209/0.4625, allocations: 45.88 kB / 0.4985 GB, free: 27.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4627, allocations: 88.28 kB / 0.4986 GB, free: 27.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.4628, allocations: 75.88 kB / 0.4987 GB, free: 27.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009679/0.4638, allocations: 0.5924 MB / 0.4993 GB, free: 27.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4638, allocations: 0 / 0.4993 GB, free: 27.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001834/0.4657, allocations: 426.2 kB / 0.4997 GB, free: 27.38 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 (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.00383/0.4695, allocations: 2.899 MB / 0.5025 GB, free: 25.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004751/0.4743, allocations: 2.298 MB / 0.5048 GB, free: 24.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.4743, allocations: 128 / 0.5048 GB, free: 24.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.4757, allocations: 0.8752 MB / 0.5056 GB, free: 24.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.4773, allocations: 215.9 kB / 0.5058 GB, free: 24.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/0.4982, allocations: 9.799 MB / 0.5154 GB, free: 19.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001589/0.4999, allocations: 1.457 MB / 0.5168 GB, free: 18.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001362/0.5013, allocations: 476.5 kB / 0.5173 GB, free: 17.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007964/0.5021, allocations: 0.5628 MB / 0.5178 GB, free: 17.46 MB / 398.1 MB Notification: Performance of SimCode: time 2.375e-06/0.5021, allocations: 0 / 0.5178 GB, free: 17.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0519/0.554, allocations: 25.83 MB / 0.543 GB, free: 8.82 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/0.5543, allocations: 202 kB / 0.5432 GB, free: 8.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.149, allocations: 0 / 0.5432 GB, free: 8.586 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: