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.002248/0.002247, allocations: 186.3 kB / 15.76 MB, free: 6.363 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 2.069/2.069, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001123/0.001123, allocations: 102.8 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2716/0.2716, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.0004619, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 56.33 MB / 479 MB, free: 2.035 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4917/0.5995, allocations: 110.6 MB / 0.5758 GB, free: 5.402 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.5999, allocations: 101.4 kB / 0.5759 GB, free: 5.352 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1188/0.7187, allocations: 24.49 MB / 0.5998 GB, free: 0 / 394.7 MB Notification: Performance of FrontEnd: time 3.486e-06/0.7188, allocations: 4.047 kB / 0.5998 GB, free: 15.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.719, allocations: 27.94 kB / 0.5999 GB, free: 15.96 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.008201/0.7272, allocations: 1.713 MB / 0.6015 GB, free: 14.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.7272, allocations: 12.03 kB / 0.6015 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008878/0.7281, allocations: 130.4 kB / 0.6017 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.7401, allocations: 2.513 MB / 0.6041 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.7403, allocations: 78.45 kB / 0.6042 GB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006647/0.7409, allocations: 116.6 kB / 0.6043 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/0.7457, allocations: 1.776 MB / 0.606 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.745e-05/0.7458, allocations: 3.984 kB / 0.606 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.746, allocations: 36.44 kB / 0.6061 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.027e-05/0.7461, allocations: 40.55 kB / 0.6061 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.7493, allocations: 1.121 MB / 0.6072 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.7653, allocations: 5.786 MB / 0.6129 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003046/0.7684, allocations: 1.269 MB / 0.6141 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.7686, allocations: 17.05 kB / 0.6141 GB, free: 3.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003245/0.7719, allocations: 1.351 MB / 0.6154 GB, free: 2.754 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 4.689e-06/0.7719, allocations: 0 / 0.6154 GB, free: 2.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.04021/0.8121, allocations: 9.231 MB / 0.6244 GB, free: 10.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/0.8124, allocations: 204.3 kB / 0.6246 GB, free: 10.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/0.8138, allocations: 0.6468 MB / 0.6253 GB, free: 9.969 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004101/0.8143, allocations: 57.7 kB / 0.6253 GB, free: 9.906 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005485/0.8148, allocations: 498.5 kB / 0.6258 GB, free: 9.414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008052/0.8156, allocations: 414.9 kB / 0.6262 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.8159, allocations: 32 kB / 0.6262 GB, free: 8.973 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.8161, allocations: 374.7 kB / 0.6266 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002701/0.8188, allocations: 1.015 MB / 0.6276 GB, free: 7.582 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/0.8219, allocations: 1.295 MB / 0.6288 GB, free: 6.188 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04252/0.8644, allocations: 7.157 MB / 0.6358 GB, free: 14.97 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.8645, allocations: 4 kB / 0.6358 GB, free: 14.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01808/0.8826, allocations: 5.084 MB / 0.6408 GB, free: 9.855 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.8828, allocations: 67.34 kB / 0.6409 GB, free: 9.777 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.8828, allocations: 8 kB / 0.6409 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02756/0.9104, allocations: 6.484 MB / 0.6472 GB, free: 3.277 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.9118, allocations: 179.7 kB / 0.6474 GB, free: 3.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04432/0.9561, allocations: 16.47 MB / 0.6635 GB, free: 2.484 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.9578, allocations: 95.89 kB / 0.6636 GB, free: 2.391 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000349/0.9582, allocations: 155.9 kB / 0.6637 GB, free: 2.238 MB / 458.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: 33 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * 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.001209/0.9594, allocations: 444.8 kB / 0.6641 GB, free: 1.781 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/0.9598, allocations: 106.7 kB / 0.6642 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0238/0.9836, allocations: 5.086 MB / 0.6692 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/0.9837, allocations: 15.98 kB / 0.6692 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.9837, allocations: 4 kB / 0.6692 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.008e-05/0.9838, allocations: 3.984 kB / 0.6692 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02918/1.013, allocations: 6.943 MB / 0.676 GB, free: 5.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/1.013, allocations: 3.938 kB / 0.676 GB, free: 5.477 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/1.014, allocations: 127.8 kB / 0.6761 GB, free: 5.352 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03787/1.052, allocations: 6.659 MB / 0.6826 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007685/1.053, allocations: 215.8 kB / 0.6828 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04922/1.102, allocations: 21.98 MB / 0.7043 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.102, allocations: 0 / 0.7043 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02688/1.129, allocations: 6.09 MB / 0.7102 GB, free: 1.637 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/1.131, allocations: 407.7 kB / 0.7106 GB, free: 1.219 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007618/1.131, allocations: 187.9 kB / 0.7108 GB, free: 1.035 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/1.133, allocations: 71.91 kB / 0.7109 GB, free: 0.9648 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001046/1.134, allocations: 192.6 kB / 0.7111 GB, free: 0.7734 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003788/1.134, allocations: 147.8 kB / 0.7112 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001125/1.136, allocations: 0.499 MB / 0.7117 GB, free: 136 kB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/1.136, allocations: 0 / 0.7117 GB, free: 136 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.3419/1.478, allocations: 0.5276 MB / 0.7122 GB, free: 164 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * 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.0006737/1.478, allocations: 219.4 kB / 0.7124 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.489, allocations: 3.068 MB / 0.7154 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.489, allocations: 3.25 kB / 0.7154 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008311/1.498, allocations: 2.406 MB / 0.7178 GB, free: 162.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/1.5, allocations: 245.6 kB / 0.718 GB, free: 162.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.514, allocations: 5.834 MB / 0.7237 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/1.515, allocations: 1.251 MB / 0.7249 GB, free: 159.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004492/1.516, allocations: 77.44 kB / 0.725 GB, free: 159.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.312e-06/1.516, allocations: 1 kB / 0.725 GB, free: 159.9 MB / 0.4948 GB Notification: Performance of Templates: time 0.07129/1.587, allocations: 32.68 MB / 0.7569 GB, free: 153.7 MB / 0.4948 GB 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)