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.001955/0.001955, allocations: 173 kB / 16.76 MB, free: 5.051 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.903/2.903, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.001287/0.001286, allocations: 86.41 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3844/0.3844, allocations: 38.08 MB / 357.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006889/0.0006893, allocations: 12 kB / 423.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5239/0.5247, allocations: 56.31 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.6947, allocations: 100.2 MB / 0.5668 GB, free: 2.156 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.6951, allocations: 95.94 kB / 0.5669 GB, free: 2.062 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0509/0.746, allocations: 16.88 MB / 0.5834 GB, free: 0.957 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.7461, allocations: 0 / 0.5834 GB, free: 0.957 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.185e-05/0.7461, allocations: 20 kB / 0.5834 GB, free: 0.9375 MB / 410.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.002262/0.7484, allocations: 1.105 MB / 0.5845 GB, free: 15.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.7485, allocations: 12.03 kB / 0.5845 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.7487, allocations: 91.81 kB / 0.5846 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002687/0.7514, allocations: 1.233 MB / 0.5858 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.7514, allocations: 49.62 kB / 0.5859 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.7516, allocations: 64.36 kB / 0.5859 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.7529, allocations: 0.8026 MB / 0.5867 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.7529, allocations: 7.938 kB / 0.5867 GB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.519e-05/0.753, allocations: 20 kB / 0.5867 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.313e-05/0.7531, allocations: 37.3 kB / 0.5868 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.7541, allocations: 0.61 MB / 0.5874 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003811/0.7579, allocations: 2.649 MB / 0.59 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009263/0.7589, allocations: 0.6021 MB / 0.5905 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.7595, allocations: 375 kB / 0.5909 GB, free: 9.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.167e-05/0.7596, allocations: 8.438 kB / 0.5909 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006029/0.7602, allocations: 479 kB / 0.5914 GB, free: 8.484 MB / 426.7 MB Notification: Performance of pre-optimization done (n=63): time 3.707e-06/0.7602, allocations: 0 / 0.5914 GB, free: 8.484 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.003217/0.7634, allocations: 1.969 MB / 0.5933 GB, free: 6.426 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001654/0.7636, allocations: 251.9 kB / 0.5935 GB, free: 6.125 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007254/0.7643, allocations: 0.5624 MB / 0.5941 GB, free: 5.555 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.849e-05/0.7644, allocations: 37.7 kB / 0.5941 GB, free: 5.512 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.7647, allocations: 403.6 kB / 0.5945 GB, free: 5.113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.7649, allocations: 209.1 kB / 0.5947 GB, free: 4.906 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.7649, allocations: 16 kB / 0.5947 GB, free: 4.891 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.7652, allocations: 382.7 kB / 0.5951 GB, free: 4.508 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.7655, allocations: 221.9 kB / 0.5953 GB, free: 4.293 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.7661, allocations: 461.8 kB / 0.5957 GB, free: 3.742 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009561/0.767, allocations: 0.7937 MB / 0.5965 GB, free: 2.828 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.7671, allocations: 4 kB / 0.5965 GB, free: 2.824 MB / 426.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001622/0.7687, allocations: 0.944 MB / 0.5974 GB, free: 1.852 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.957e-05/0.7688, allocations: 63.39 kB / 0.5975 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.7688, allocations: 8 kB / 0.5975 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004378/0.7692, allocations: 110 kB / 0.5976 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.7698, allocations: 143.7 kB / 0.5977 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003239/0.773, allocations: 3.208 MB / 0.6009 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006341/0.7737, allocations: 35.98 kB / 0.6009 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.363e-05/0.7738, allocations: 60.2 kB / 0.601 GB, free: 13.95 MB / 442.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 (90): * Single equations (assignments): 86 * 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%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006439/0.7744, allocations: 346.7 kB / 0.6013 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.7746, allocations: 71.16 kB / 0.6014 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.7762, allocations: 0.778 MB / 0.6021 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/0.7762, allocations: 8 kB / 0.6021 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.7762, allocations: 7.938 kB / 0.6021 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.7763, allocations: 7.984 kB / 0.6022 GB, free: 12.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.7791, allocations: 1.561 MB / 0.6037 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.7791, allocations: 4 kB / 0.6037 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/0.7796, allocations: 119.8 kB / 0.6038 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.7796, allocations: 4 kB / 0.6038 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/0.7797, allocations: 19.98 kB / 0.6038 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.7797, allocations: 4 kB / 0.6038 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.7797, allocations: 0 / 0.6038 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.7815, allocations: 1.19 MB / 0.605 GB, free: 9.672 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.7819, allocations: 184.1 kB / 0.6052 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-05/0.782, allocations: 16 kB / 0.6052 GB, free: 9.457 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.7824, allocations: 35.95 kB / 0.6052 GB, free: 9.422 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.7825, allocations: 36.39 kB / 0.6052 GB, free: 9.387 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.7826, allocations: 71.97 kB / 0.6053 GB, free: 9.316 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006161/0.7832, allocations: 383 kB / 0.6057 GB, free: 8.945 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7832, allocations: 4 kB / 0.6057 GB, free: 8.941 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009197/0.7842, allocations: 187.9 kB / 0.6059 GB, free: 8.758 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (55): * Single equations (assignments): 52 * 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.0004078/0.7846, allocations: 181.8 kB / 0.606 GB, free: 8.574 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.7864, allocations: 0.9886 MB / 0.607 GB, free: 7.535 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7864, allocations: 0 / 0.607 GB, free: 7.535 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.7871, allocations: 0.4972 MB / 0.6075 GB, free: 7.008 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.7882, allocations: 154.4 kB / 0.6076 GB, free: 6.863 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.7917, allocations: 1.903 MB / 0.6095 GB, free: 4.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009192/0.7926, allocations: 1.013 MB / 0.6105 GB, free: 3.867 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.7928, allocations: 59.44 kB / 0.6105 GB, free: 3.809 MB / 442.7 MB Notification: Performance of SimCode: time 8.42e-07/0.7928, allocations: 0 / 0.6105 GB, free: 3.809 MB / 442.7 MB Notification: Performance of Templates: time 0.0213/0.8142, allocations: 12.25 MB / 0.6225 GB, free: 7.547 MB / 458.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)