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.001036/0.001037, allocations: 107 kB / 17.06 MB, free: 6.094 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: 195 kB / 18 MB, free: 5.172 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.338/1.338, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.98 MB / 309.2 MB, free: 5.945 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.001507/0.001507, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09977, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01116/0.111, allocations: 9.077 MB / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.1175, allocations: 3.412 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008899/0.1185, allocations: 35.81 kB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002775/0.1213, allocations: 1.05 MB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002859/0.1242, allocations: 1.093 MB / 0.4895 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.1265, allocations: 0.6938 MB / 0.4902 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002988/0.1295, allocations: 2.386 MB / 0.4925 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.1308, allocations: 0.8151 MB / 0.4933 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.1326, allocations: 1.004 MB / 0.4943 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.1346, allocations: 1.34 MB / 0.4956 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000359/0.135, allocations: 128 kB / 0.4957 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.1363, allocations: 0.5773 MB / 0.4963 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009209/0.1372, allocations: 0.9236 MB / 0.4972 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.1385, allocations: 0.9018 MB / 0.4981 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002441/0.141, allocations: 2.34 MB / 0.5004 GB, free: 14.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.141, allocations: 3.984 kB / 0.5004 GB, free: 14.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.141, allocations: 0 / 0.5004 GB, free: 14.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.1411, allocations: 4 kB / 0.5004 GB, free: 14.94 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.003324/0.1444, allocations: 2.011 MB / 0.5023 GB, free: 12.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1444, allocations: 11.89 kB / 0.5024 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002623/0.1447, allocations: 244.8 kB / 0.5026 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.1464, allocations: 358.3 kB / 0.5029 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/0.1482, allocations: 1.071 MB / 0.504 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.822e-05/0.1483, allocations: 107.1 kB / 0.5041 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.1486, allocations: 171.8 kB / 0.5042 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003146/0.1518, allocations: 2.328 MB / 0.5065 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.578e-05/0.1519, allocations: 7.938 kB / 0.5065 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.152, allocations: 59.97 kB / 0.5066 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005065/0.1525, allocations: 230.8 kB / 0.5068 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.1553, allocations: 1.842 MB / 0.5086 GB, free: 6.23 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.01028/0.1656, allocations: 9.516 MB / 0.5179 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.1677, allocations: 1.544 MB / 0.5194 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/0.1685, allocations: 0.602 MB / 0.52 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-05/0.1685, allocations: 20.98 kB / 0.52 GB, free: 9.984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.1696, allocations: 0.8566 MB / 0.5208 GB, free: 9.074 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 2.776e-06/0.1696, allocations: 0 / 0.5208 GB, free: 9.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.005603/0.1752, allocations: 4.015 MB / 0.5248 GB, free: 4.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.1754, allocations: 286.4 kB / 0.525 GB, free: 4.621 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.1764, allocations: 0.9146 MB / 0.5259 GB, free: 3.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.75e-05/0.1764, allocations: 53.69 kB / 0.526 GB, free: 3.625 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005143/0.177, allocations: 0.7589 MB / 0.5267 GB, free: 2.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.1773, allocations: 453.7 kB / 0.5272 GB, free: 2.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.1777, allocations: 327.2 kB / 0.5275 GB, free: 2.078 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1778, allocations: 357.9 kB / 0.5278 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007953/0.1786, allocations: 0.5778 MB / 0.5284 GB, free: 1.145 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2202/0.3988, allocations: 1.172 MB / 0.5295 GB, free: 50.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002375/0.4013, allocations: 2.004 MB / 0.5315 GB, free: 49.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/0.4013, allocations: 6.062 kB / 0.5315 GB, free: 49.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004346/0.4056, allocations: 2.5 MB / 0.5339 GB, free: 48.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.035e-05/0.4057, allocations: 67.23 kB / 0.534 GB, free: 48.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00273/0.4085, allocations: 1.564 MB / 0.5355 GB, free: 48.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/0.41, allocations: 0.5456 MB / 0.536 GB, free: 48.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.4111, allocations: 322 kB / 0.5364 GB, free: 48.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/0.4201, allocations: 9.45 MB / 0.5456 GB, free: 41.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.4212, allocations: 71.12 kB / 0.5457 GB, free: 40.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.4213, allocations: 105.2 kB / 0.5458 GB, free: 40.96 MB / 414.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.0007904/0.4221, allocations: 0.6015 MB / 0.5463 GB, free: 40.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.4223, allocations: 124 kB / 0.5465 GB, free: 40.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/0.4246, allocations: 1.539 MB / 0.548 GB, free: 39.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.4246, allocations: 12.22 kB / 0.548 GB, free: 39.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4246, allocations: 5 kB / 0.548 GB, free: 39.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4246, allocations: 7.516 kB / 0.548 GB, free: 39.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004248/0.4289, allocations: 3.065 MB / 0.551 GB, free: 38.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4289, allocations: 2.234 kB / 0.551 GB, free: 38.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.4303, allocations: 298 kB / 0.5513 GB, free: 38.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-05/0.4303, allocations: 10.22 kB / 0.5513 GB, free: 38.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.458e-05/0.4304, allocations: 40.11 kB / 0.5513 GB, free: 38.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.778e-06/0.4304, allocations: 10.84 kB / 0.5513 GB, free: 38.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.4304, allocations: 3.688 kB / 0.5513 GB, free: 38.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.4331, allocations: 2.324 MB / 0.5536 GB, free: 37.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005026/0.4337, allocations: 289.6 kB / 0.5539 GB, free: 37.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.4338, allocations: 41.58 kB / 0.5539 GB, free: 37.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/0.4344, allocations: 42.67 kB / 0.554 GB, free: 37.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.4345, allocations: 78.48 kB / 0.554 GB, free: 37.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.4347, allocations: 76.31 kB / 0.5541 GB, free: 37.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007004/0.4354, allocations: 0.6028 MB / 0.5547 GB, free: 37.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4354, allocations: 0 / 0.5547 GB, free: 37.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001411/0.4368, allocations: 425.1 kB / 0.5551 GB, free: 37.12 MB / 414.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.002638/0.4394, allocations: 2.909 MB / 0.5579 GB, free: 35.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.4423, allocations: 2.329 MB / 0.5602 GB, free: 34.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4423, allocations: 3.031 kB / 0.5602 GB, free: 34.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008261/0.4432, allocations: 0.8789 MB / 0.5611 GB, free: 33.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.4442, allocations: 228.4 kB / 0.5613 GB, free: 33.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.4588, allocations: 13.08 MB / 0.5741 GB, free: 19.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007665/0.4596, allocations: 1.458 MB / 0.5755 GB, free: 18.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009259/0.4605, allocations: 470.3 kB / 0.5759 GB, free: 18.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005358/0.461, allocations: 0.5657 MB / 0.5765 GB, free: 17.45 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4611, allocations: 2.188 kB / 0.5765 GB, free: 17.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05163/0.5127, allocations: 27.73 MB / 0.6036 GB, free: 5.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.87, allocations: 12.84 kB / 0.6036 GB, free: 5.609 MB / 430.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/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)