Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001502, allocations: 185.3 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 96 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2687/0.2687, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.392e-05/3.411e-05, allocations: 4 kB / 416.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 56.32 MB / 473.1 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5219/0.6255, allocations: 110.5 MB / 0.5699 GB, free: 9.234 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003891/0.626, allocations: 91.94 kB / 0.57 GB, free: 9.145 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1518/0.7778, allocations: 24.51 MB / 0.594 GB, free: 348 kB / 426.7 MB Notification: Performance of FrontEnd: time 4.107e-06/0.7778, allocations: 0 / 0.594 GB, free: 348 kB / 426.7 MB Notification: Performance of Transformations before backend: time 9.36e-05/0.778, allocations: 27.94 kB / 0.594 GB, free: 320 kB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005527/0.7835, allocations: 1.484 MB / 0.5954 GB, free: 14.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.7836, allocations: 12.03 kB / 0.5954 GB, free: 14.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006295/0.7842, allocations: 130.5 kB / 0.5956 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.7957, allocations: 2.482 MB / 0.598 GB, free: 12.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.7958, allocations: 77.95 kB / 0.5981 GB, free: 12.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005536/0.7964, allocations: 115.9 kB / 0.5982 GB, free: 11.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004342/0.8008, allocations: 1.758 MB / 0.5999 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.495e-05/0.8008, allocations: 0 / 0.5999 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002164/0.8011, allocations: 47.92 kB / 0.5999 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.269e-05/0.8012, allocations: 30 kB / 0.6 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003186/0.8044, allocations: 1.101 MB / 0.601 GB, free: 8.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01559/0.82, allocations: 5.791 MB / 0.6067 GB, free: 2.977 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002913/0.823, allocations: 1.259 MB / 0.6079 GB, free: 1.676 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.8253, allocations: 0.9789 MB / 0.6089 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.8254, allocations: 8.781 kB / 0.6089 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003143/0.8286, allocations: 1.342 MB / 0.6102 GB, free: 15.31 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 4.348e-06/0.8286, allocations: 0 / 0.6102 GB, free: 15.31 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: voltage2.theta Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=104): time 0.03116/0.8598, allocations: 8.007 MB / 0.618 GB, free: 7.168 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/0.86, allocations: 208.9 kB / 0.6182 GB, free: 6.922 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.8614, allocations: 0.6409 MB / 0.6189 GB, free: 6.277 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003906/0.8618, allocations: 57.64 kB / 0.6189 GB, free: 6.215 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005031/0.8624, allocations: 493.3 kB / 0.6194 GB, free: 5.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007051/0.8631, allocations: 415 kB / 0.6198 GB, free: 5.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.8633, allocations: 28 kB / 0.6198 GB, free: 5.293 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.8635, allocations: 374.7 kB / 0.6202 GB, free: 4.918 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.866, allocations: 1.004 MB / 0.6211 GB, free: 3.914 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002861/0.8689, allocations: 1.27 MB / 0.6224 GB, free: 2.547 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04171/0.9106, allocations: 7.18 MB / 0.6294 GB, free: 11.31 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.9107, allocations: 0 / 0.6294 GB, free: 11.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01746/0.9282, allocations: 5.057 MB / 0.6343 GB, free: 6.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.121e-05/0.9283, allocations: 67.42 kB / 0.6344 GB, free: 6.152 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.9284, allocations: 8 kB / 0.6344 GB, free: 6.145 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3778/1.306, allocations: 6.471 MB / 0.6407 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/1.308, allocations: 177.5 kB / 0.6409 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05133/1.359, allocations: 15.6 MB / 0.6561 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/1.361, allocations: 96.7 kB / 0.6562 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005429/1.362, allocations: 145.1 kB / 0.6564 GB, free: 132.1 MB / 474.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 124 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006836/1.362, allocations: 263.8 kB / 0.6566 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004529/1.363, allocations: 105.4 kB / 0.6567 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02385/1.387, allocations: 5.054 MB / 0.6616 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.443e-05/1.387, allocations: 11.28 kB / 0.6616 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/1.387, allocations: 0 / 0.6616 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.238e-05/1.387, allocations: 3.188 kB / 0.6617 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02766/1.415, allocations: 6.908 MB / 0.6684 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.403e-05/1.415, allocations: 0 / 0.6684 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/1.416, allocations: 122.5 kB / 0.6685 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03368/1.45, allocations: 6.644 MB / 0.675 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006769/1.45, allocations: 221.7 kB / 0.6752 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03754/1.488, allocations: 20.85 MB / 0.6956 GB, free: 115.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.488, allocations: 1.547 kB / 0.6956 GB, free: 115.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02326/1.511, allocations: 6.03 MB / 0.7015 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.513, allocations: 411.6 kB / 0.7019 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006323/1.513, allocations: 187.9 kB / 0.702 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/1.515, allocations: 71.91 kB / 0.7021 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008823/1.515, allocations: 193.4 kB / 0.7023 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.516, allocations: 144.9 kB / 0.7024 GB, free: 109.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008716/1.517, allocations: 499.1 kB / 0.7029 GB, free: 109 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.517, allocations: 0 / 0.7029 GB, free: 109 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002645/1.519, allocations: 0.5382 MB / 0.7034 GB, free: 108.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 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: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005481/1.52, allocations: 244.6 kB / 0.7037 GB, free: 108.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008721/1.529, allocations: 2.996 MB / 0.7066 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.529, allocations: 0 / 0.7066 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00677/1.535, allocations: 2.362 MB / 0.7089 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/1.537, allocations: 251.3 kB / 0.7091 GB, free: 102.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.547, allocations: 4.688 MB / 0.7137 GB, free: 98.02 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008909/1.548, allocations: 1.25 MB / 0.7149 GB, free: 96.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/1.549, allocations: 75.44 kB / 0.715 GB, free: 96.66 MB / 474.7 MB Notification: Performance of SimCode: time 1.061e-06/1.549, allocations: 0 / 0.715 GB, free: 96.66 MB / 474.7 MB Notification: Performance of Templates: time 0.0557/1.604, allocations: 32.62 MB / 0.7469 GB, free: 64.11 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)