Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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: translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001551/0.001556, 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.069/2.069, 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.001607/0.001607, allocations: 102.8 kB / 270.3 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.2751/0.2751, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004763/0.0004764, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.01268/0.127, allocations: 7.608 MB / 486.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005915/0.133, allocations: 2.207 MB / 488.8 MB, free: 8.184 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.1342, allocations: 59.56 kB / 488.9 MB, free: 8.125 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.1353, allocations: 198.8 kB / 489.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.1378, allocations: 0.5062 MB / 489.6 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.1391, allocations: 267.5 kB / 489.9 MB, free: 7.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.1407, allocations: 0.6315 MB / 490.5 MB, free: 6.527 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005937/0.1414, allocations: 250.1 kB / 490.7 MB, free: 6.281 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.1425, allocations: 406.4 kB / 491.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.1438, allocations: 438.6 kB / 491.6 MB, free: 5.453 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.144, allocations: 32 kB / 491.6 MB, free: 5.422 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002321/0.1442, allocations: 36 kB / 491.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004164/0.1446, allocations: 267.3 kB / 491.9 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000311/0.145, allocations: 181.2 kB / 492.1 MB, free: 4.941 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.1461, allocations: 0.6701 MB / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1461, allocations: 0 / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1462, allocations: 0 / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.245e-05/0.1462, allocations: 0 / 492.7 MB, free: 4.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002918/0.1491, allocations: 1.088 MB / 493.8 MB, free: 3.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1492, allocations: 12.03 kB / 493.8 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.1495, allocations: 90.88 kB / 493.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/0.1515, allocations: 0.6322 MB / 494.6 MB, free: 2.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.75e-05/0.1516, allocations: 53.3 kB / 494.6 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.1518, allocations: 56 kB / 494.7 MB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00202/0.1538, allocations: 0.806 MB / 495.5 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.1539, allocations: 3.938 kB / 495.5 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.914e-05/0.154, allocations: 31.95 kB / 495.5 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.729e-05/0.1541, allocations: 45.22 kB / 495.6 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.1558, allocations: 0.6101 MB / 496.2 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006038/0.1619, allocations: 2.638 MB / 498.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/0.1637, allocations: 0.6332 MB / 499.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.451e-05/0.1638, allocations: 8.5 kB / 499.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009691/0.1648, allocations: 483 kB / 499.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 5.67e-06/0.1649, allocations: 3.938 kB / 499.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=64): time 0.005586/0.1705, allocations: 2.511 MB / 0.4907 GB, free: 10.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/0.1707, allocations: 255.8 kB / 0.4909 GB, free: 9.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.1717, allocations: 0.5585 MB / 0.4914 GB, free: 9.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.1718, allocations: 45.73 kB / 0.4915 GB, free: 9.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004237/0.1723, allocations: 422 kB / 0.4919 GB, free: 8.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.1726, allocations: 205.1 kB / 0.4921 GB, free: 8.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.014e-05/0.1727, allocations: 16 kB / 0.4921 GB, free: 8.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1728, allocations: 342.8 kB / 0.4924 GB, free: 8.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006426/0.1735, allocations: 225.9 kB / 0.4926 GB, free: 7.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008553/0.1744, allocations: 457.8 kB / 0.4931 GB, free: 7.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007816/0.1752, allocations: 333.5 kB / 0.4934 GB, free: 7.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.1752, allocations: 7.953 kB / 0.4934 GB, free: 7.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002561/0.1778, allocations: 0.929 MB / 0.4943 GB, free: 6.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.517e-05/0.1779, allocations: 67.41 kB / 0.4944 GB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.1779, allocations: 4 kB / 0.4944 GB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006814/0.1786, allocations: 125.6 kB / 0.4945 GB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.1797, allocations: 152 kB / 0.4946 GB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.1848, allocations: 3.25 MB / 0.4978 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008596/0.1857, allocations: 43.97 kB / 0.4979 GB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.1859, allocations: 59.89 kB / 0.4979 GB, free: 2.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (88): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00065/0.1865, allocations: 342.7 kB / 0.4982 GB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.1867, allocations: 75.22 kB / 0.4983 GB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.189, allocations: 0.9965 MB / 0.4993 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.189, allocations: 4 kB / 0.4993 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.189, allocations: 4 kB / 0.4993 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.1891, allocations: 3.984 kB / 0.4993 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.193, allocations: 1.742 MB / 0.501 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.193, allocations: 4 kB / 0.501 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000974/0.194, allocations: 103.9 kB / 0.5011 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001868/0.1942, allocations: 45.73 kB / 0.5011 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.338e-05/0.1943, allocations: 27.92 kB / 0.5012 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002699/0.197, allocations: 2.758 MB / 0.5039 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.197, allocations: 4.031 kB / 0.5039 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003115/0.2002, allocations: 1.433 MB / 0.5053 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004589/0.2007, allocations: 188.1 kB / 0.5055 GB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.2008, allocations: 27.89 kB / 0.5055 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.2015, allocations: 31.97 kB / 0.5055 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.2016, allocations: 40.33 kB / 0.5055 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001719/0.2018, allocations: 63.98 kB / 0.5056 GB, free: 9.637 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000702/0.2025, allocations: 383 kB / 0.506 GB, free: 9.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2025, allocations: 0 / 0.506 GB, free: 9.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001113/0.2037, allocations: 188 kB / 0.5062 GB, free: 9.086 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * 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 (53): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002265/0.2039, allocations: 135 kB / 0.5063 GB, free: 8.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002438/0.2064, allocations: 1.004 MB / 0.5073 GB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.2064, allocations: 4.125 kB / 0.5073 GB, free: 7.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.2078, allocations: 0.7057 MB / 0.508 GB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.209, allocations: 138.9 kB / 0.5081 GB, free: 7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/0.2132, allocations: 1.909 MB / 0.51 GB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009091/0.2142, allocations: 1.029 MB / 0.511 GB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.2145, allocations: 55.42 kB / 0.511 GB, free: 3.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2145, allocations: 0 / 0.511 GB, free: 3.93 MB / 362.7 MB Notification: Performance of Templates: time 0.329/0.5435, allocations: 14.26 MB / 0.5249 GB, free: 48.26 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)