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.001651/0.001651, allocations: 182 kB / 15.76 MB, free: 6.344 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.021/2.021, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.00117/0.001169, allocations: 98.84 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2646/0.2646, allocations: 38.05 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004586, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5014/0.6107, allocations: 110 MB / 0.5753 GB, free: 5.723 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003648/0.6112, allocations: 92.77 kB / 0.5754 GB, free: 5.676 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2175/0.8287, allocations: 48.99 MB / 0.6232 GB, free: 11.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.8287, allocations: 0 / 0.6232 GB, free: 11.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000132/0.8289, allocations: 43.94 kB / 0.6233 GB, free: 11.26 MB / 426.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.00626/0.8352, allocations: 1.743 MB / 0.625 GB, free: 9.555 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.8352, allocations: 8.031 kB / 0.625 GB, free: 9.547 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006971/0.8359, allocations: 240.3 kB / 0.6252 GB, free: 9.391 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004715/0.8407, allocations: 457.3 kB / 0.6256 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008613/0.8493, allocations: 2.085 MB / 0.6277 GB, free: 7.156 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.8495, allocations: 105 kB / 0.6278 GB, free: 7.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004095/0.8499, allocations: 149.7 kB / 0.6279 GB, free: 6.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005539/0.8554, allocations: 2.248 MB / 0.6301 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.269e-05/0.8556, allocations: 11.92 kB / 0.6301 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.8558, allocations: 67.95 kB / 0.6302 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005903/0.8564, allocations: 186.8 kB / 0.6304 GB, free: 4.734 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005077/0.8615, allocations: 1.744 MB / 0.6321 GB, free: 2.984 MB / 426.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.0183/0.8798, allocations: 9.288 MB / 0.6411 GB, free: 9.215 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/0.8837, allocations: 1.467 MB / 0.6426 GB, free: 7.711 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001405/0.8839, allocations: 25.03 kB / 0.6426 GB, free: 7.688 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002061/0.886, allocations: 0.927 MB / 0.6435 GB, free: 6.723 MB / 442.7 MB Notification: Performance of pre-optimization done (n=142): time 4.007e-06/0.886, allocations: 0 / 0.6435 GB, free: 6.723 MB / 442.7 MB Notification: Performance of matching and sorting (n=143): time 0.01139/0.8974, allocations: 4.75 MB / 0.6481 GB, free: 1.777 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001995/0.8976, allocations: 286.3 kB / 0.6484 GB, free: 1.438 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.8992, allocations: 0.7559 MB / 0.6492 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.8994, allocations: 49.7 kB / 0.6492 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008396/0.9003, allocations: 0.7542 MB / 0.6499 GB, free: 15.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006879/0.901, allocations: 485.1 kB / 0.6504 GB, free: 15.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.9012, allocations: 36 kB / 0.6504 GB, free: 15.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.9014, allocations: 390.5 kB / 0.6508 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.9031, allocations: 0.6247 MB / 0.6514 GB, free: 14.31 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/0.9053, allocations: 1.162 MB / 0.6526 GB, free: 12.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.9076, allocations: 0.888 MB / 0.6534 GB, free: 12.01 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/0.9076, allocations: 4 kB / 0.6534 GB, free: 12 MB / 458.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008774/0.9164, allocations: 2.502 MB / 0.6559 GB, free: 9.469 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.9165, allocations: 71.58 kB / 0.6559 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005945/0.9225, allocations: 1.698 MB / 0.6576 GB, free: 7.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002983/0.9255, allocations: 0.5462 MB / 0.6581 GB, free: 7.121 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.9279, allocations: 323.5 kB / 0.6584 GB, free: 6.805 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01724/0.9452, allocations: 8.915 MB / 0.6671 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.9472, allocations: 91.94 kB / 0.6672 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004056/0.9476, allocations: 99.95 kB / 0.6673 GB, free: 13.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (169): * Single equations (assignments): 160 * Array equations: 3 * 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.001777/0.9494, allocations: 0.5997 MB / 0.6679 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/0.9498, allocations: 122.5 kB / 0.668 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005077/0.9549, allocations: 1.695 MB / 0.6697 GB, free: 10.72 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-05/0.955, allocations: 20 kB / 0.6697 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.9551, allocations: 4 kB / 0.6697 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.137e-05/0.9551, allocations: 11.97 kB / 0.6697 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009597/0.9647, allocations: 3.212 MB / 0.6729 GB, free: 7.383 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/0.9648, allocations: 4 kB / 0.6729 GB, free: 7.379 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/0.9679, allocations: 315.8 kB / 0.6732 GB, free: 7.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-05/0.968, allocations: 7.953 kB / 0.6732 GB, free: 7.062 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003124/0.9683, allocations: 35.98 kB / 0.6732 GB, free: 7.027 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-05/0.9683, allocations: 4 kB / 0.6732 GB, free: 7.023 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.862e-06/0.9684, allocations: 7.984 kB / 0.6732 GB, free: 7.016 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009384/0.9777, allocations: 2.649 MB / 0.6758 GB, free: 4.273 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/0.9795, allocations: 307.5 kB / 0.6761 GB, free: 3.953 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005352/0.98, allocations: 28 kB / 0.6761 GB, free: 3.926 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/0.982, allocations: 67.84 kB / 0.6762 GB, free: 3.859 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.9824, allocations: 84.83 kB / 0.6763 GB, free: 3.777 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002878/0.9827, allocations: 75.92 kB / 0.6763 GB, free: 3.703 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001741/0.9844, allocations: 0.5781 MB / 0.6769 GB, free: 3.113 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9845, allocations: 0 / 0.6769 GB, free: 3.113 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003679/0.9882, allocations: 467.9 kB / 0.6774 GB, free: 2.656 MB / 474.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 (124): * Single equations (assignments): 118 * Array equations: 3 * 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.01005/0.9983, allocations: 3.788 MB / 0.6811 GB, free: 14.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008615/1.007, allocations: 2.427 MB / 0.6834 GB, free: 12.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/1.007, allocations: 0 / 0.6834 GB, free: 12.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003221/1.01, allocations: 0.9578 MB / 0.6844 GB, free: 11.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/1.013, allocations: 192.2 kB / 0.6845 GB, free: 11.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04634/1.059, allocations: 21.58 MB / 0.7056 GB, free: 4.852 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002842/1.062, allocations: 1.494 MB / 0.7071 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/1.064, allocations: 0.5813 MB / 0.7076 GB, free: 2.746 MB / 0.4948 GB Notification: Performance of SimCode: time 1.783e-06/1.064, allocations: 0 / 0.7076 GB, free: 2.746 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.777/4.841, allocations: 34.96 MB / 0.7418 GB, free: 145 MB / 0.4948 GB (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)