Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001587/0.001587, allocations: 188.1 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 106.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2534/0.2534, allocations: 38.05 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004585, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01372/0.1225, allocations: 9.105 MB / 488.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009198/0.1317, allocations: 3.731 MB / 492 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.1328, allocations: 63.56 kB / 492 MB, free: 4.984 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.1339, allocations: 334 kB / 492.4 MB, free: 4.656 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002917/0.1369, allocations: 0.7789 MB / 493.1 MB, free: 3.875 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.1393, allocations: 0.6314 MB / 493.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001966/0.1413, allocations: 1.059 MB / 494.8 MB, free: 2.18 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.1438, allocations: 1.097 MB / 495.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.1451, allocations: 0.6499 MB / 496.6 MB, free: 392 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.1469, allocations: 0.8452 MB / 497.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002297/0.1471, allocations: 64 kB / 497.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.1484, allocations: 415.4 kB / 497.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1494, allocations: 0.7834 MB / 498.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004873/0.1499, allocations: 336.8 kB / 499 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.1526, allocations: 1.738 MB / 0.489 GB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1526, allocations: 4 kB / 0.489 GB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1526, allocations: 0 / 0.489 GB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.1526, allocations: 0 / 0.489 GB, free: 12.2 MB / 346.7 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.004673/0.1573, allocations: 1.699 MB / 0.4907 GB, free: 10.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.1574, allocations: 8.031 kB / 0.4907 GB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00042/0.1578, allocations: 244.6 kB / 0.4909 GB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/0.1606, allocations: 381.3 kB / 0.4913 GB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.1634, allocations: 0.9961 MB / 0.4922 GB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.1635, allocations: 102.7 kB / 0.4923 GB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005264/0.164, allocations: 160 kB / 0.4925 GB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005119/0.1692, allocations: 2.3 MB / 0.4947 GB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.059e-05/0.1693, allocations: 23.8 kB / 0.4948 GB, free: 6.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.1695, allocations: 59.97 kB / 0.4948 GB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009074/0.1704, allocations: 222.8 kB / 0.495 GB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004779/0.1752, allocations: 1.822 MB / 0.4968 GB, free: 3.914 MB / 346.7 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.01676/0.192, allocations: 9.556 MB / 0.5061 GB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003732/0.1957, allocations: 1.529 MB / 0.5076 GB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.1959, allocations: 21.03 kB / 0.5077 GB, free: 8.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001795/0.1977, allocations: 0.841 MB / 0.5085 GB, free: 7.359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=130): time 4.388e-06/0.1977, allocations: 0 / 0.5085 GB, free: 7.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=131): time 0.009553/0.2072, allocations: 4.11 MB / 0.5125 GB, free: 3.117 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.2074, allocations: 290.6 kB / 0.5128 GB, free: 2.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.2089, allocations: 0.9029 MB / 0.5136 GB, free: 1.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.2091, allocations: 53.7 kB / 0.5137 GB, free: 1.789 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007255/0.2098, allocations: 0.7808 MB / 0.5145 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00052/0.2103, allocations: 449.7 kB / 0.5149 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.2105, allocations: 32 kB / 0.5149 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.2107, allocations: 386.8 kB / 0.5153 GB, free: 136 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2997/0.5104, allocations: 0.5613 MB / 0.5158 GB, free: 51.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/0.5126, allocations: 1.152 MB / 0.517 GB, free: 50.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.5148, allocations: 0.8322 MB / 0.5178 GB, free: 50.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.016e-05/0.5148, allocations: 5.156 kB / 0.5178 GB, free: 50.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00714/0.522, allocations: 2.41 MB / 0.5201 GB, free: 49.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.42e-05/0.5221, allocations: 72.72 kB / 0.5202 GB, free: 49.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004883/0.527, allocations: 1.544 MB / 0.5217 GB, free: 49.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.5298, allocations: 0.5391 MB / 0.5222 GB, free: 49.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/0.532, allocations: 329.6 kB / 0.5226 GB, free: 48.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/0.5469, allocations: 8.922 MB / 0.5313 GB, free: 42.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.5486, allocations: 80.53 kB / 0.5313 GB, free: 42.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/0.5489, allocations: 101.6 kB / 0.5314 GB, free: 42.39 MB / 362.7 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.001272/0.5501, allocations: 0.5933 MB / 0.532 GB, free: 42.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.5504, allocations: 122.9 kB / 0.5321 GB, free: 42.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.5541, allocations: 1.524 MB / 0.5336 GB, free: 41.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.5542, allocations: 12.38 kB / 0.5336 GB, free: 41.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.5542, allocations: 3.812 kB / 0.5336 GB, free: 41.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.5542, allocations: 3.75 kB / 0.5336 GB, free: 41.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006935/0.5612, allocations: 3.054 MB / 0.5366 GB, free: 40.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.008e-06/0.5612, allocations: 0 / 0.5366 GB, free: 40.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002536/0.5638, allocations: 301.7 kB / 0.5369 GB, free: 40.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/0.5638, allocations: 7.906 kB / 0.5369 GB, free: 40.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.5639, allocations: 39.64 kB / 0.537 GB, free: 40.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.155e-05/0.564, allocations: 3.938 kB / 0.537 GB, free: 40.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.564, allocations: 5 kB / 0.537 GB, free: 40.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004484/0.5685, allocations: 2.365 MB / 0.5393 GB, free: 38.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006692/0.5692, allocations: 300.9 kB / 0.5396 GB, free: 38.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.5694, allocations: 30.39 kB / 0.5396 GB, free: 38.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009928/0.5704, allocations: 61.48 kB / 0.5397 GB, free: 38.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.5706, allocations: 77.73 kB / 0.5397 GB, free: 38.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/0.5708, allocations: 76.53 kB / 0.5398 GB, free: 38.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001023/0.5719, allocations: 0.5944 MB / 0.5404 GB, free: 38.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5719, allocations: 0 / 0.5404 GB, free: 38.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001951/0.5738, allocations: 423.6 kB / 0.5408 GB, free: 38.23 MB / 362.7 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.004807/0.5787, allocations: 3.44 MB / 0.5441 GB, free: 34.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004726/0.5834, allocations: 2.284 MB / 0.5464 GB, free: 32.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5835, allocations: 0.5625 kB / 0.5464 GB, free: 32.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.5851, allocations: 0.8711 MB / 0.5472 GB, free: 31.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.5865, allocations: 187.5 kB / 0.5474 GB, free: 31.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02238/0.6089, allocations: 22.68 MB / 0.5695 GB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.6102, allocations: 1.49 MB / 0.571 GB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.6113, allocations: 0.5735 MB / 0.5716 GB, free: 6.051 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6114, allocations: 4 kB / 0.5716 GB, free: 6.047 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.114/3.725, allocations: 33.96 MB / 0.6047 GB, free: 4.012 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)