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.002056/0.002056, allocations: 181.2 kB / 8.012 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 86.64 kB / 261.8 MB, free: 1.672 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.3536/0.3536, allocations: 37.99 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.022e-05, allocations: 0 / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 56.32 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5208/0.6286, allocations: 109.8 MB / 0.5625 GB, free: 1.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.6289, allocations: 87.2 kB / 0.5626 GB, free: 1.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1339/0.7628, allocations: 24.19 MB / 0.5862 GB, free: 13.31 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7629, allocations: 0 / 0.5862 GB, free: 13.31 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.763, allocations: 27.98 kB / 0.5862 GB, free: 13.29 MB / 394.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.006254/0.7693, allocations: 1.485 MB / 0.5877 GB, free: 11.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.7693, allocations: 12.03 kB / 0.5877 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008238/0.7702, allocations: 134.5 kB / 0.5878 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/0.7819, allocations: 2.486 MB / 0.5903 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.954e-05/0.7821, allocations: 39.25 kB / 0.5903 GB, free: 9.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005688/0.7827, allocations: 83.84 kB / 0.5904 GB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002795/0.7855, allocations: 1.04 MB / 0.5914 GB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004079/0.7896, allocations: 1.635 MB / 0.593 GB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.7897, allocations: 8 kB / 0.593 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.7899, allocations: 4 kB / 0.593 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.21e-05/0.79, allocations: 33.69 kB / 0.593 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0158/0.8058, allocations: 5.637 MB / 0.5985 GB, free: 2.621 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002765/0.8086, allocations: 1.209 MB / 0.5997 GB, free: 1.758 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003139/0.8118, allocations: 1.117 MB / 0.6008 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.812, allocations: 20.16 kB / 0.6008 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003057/0.815, allocations: 1.312 MB / 0.6021 GB, free: 15.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=101): time 5.029e-06/0.8151, allocations: 3.938 kB / 0.6021 GB, free: 15.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.02862/0.8437, allocations: 6.927 MB / 0.6089 GB, free: 10 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/0.844, allocations: 201.2 kB / 0.6091 GB, free: 9.762 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.8453, allocations: 0.591 MB / 0.6097 GB, free: 9.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003702/0.8456, allocations: 37.7 kB / 0.6097 GB, free: 9.129 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005057/0.8462, allocations: 490.5 kB / 0.6102 GB, free: 8.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006889/0.8469, allocations: 406.9 kB / 0.6105 GB, free: 8.242 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.847, allocations: 4 kB / 0.6105 GB, free: 8.238 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.8472, allocations: 362.8 kB / 0.6109 GB, free: 7.875 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.8496, allocations: 0.9878 MB / 0.6119 GB, free: 6.887 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002696/0.8523, allocations: 1.248 MB / 0.6131 GB, free: 5.543 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04222/0.8946, allocations: 7.122 MB / 0.62 GB, free: 14.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.8947, allocations: 0 / 0.62 GB, free: 14.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01653/0.9112, allocations: 4.87 MB / 0.6248 GB, free: 9.496 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-05/0.9113, allocations: 63.41 kB / 0.6248 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/0.9114, allocations: 19.97 kB / 0.6249 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02602/0.9374, allocations: 6.254 MB / 0.631 GB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.9388, allocations: 183.7 kB / 0.6311 GB, free: 2.961 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03845/0.9772, allocations: 14.71 MB / 0.6455 GB, free: 4.125 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.9788, allocations: 67.89 kB / 0.6456 GB, free: 4.059 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/0.9792, allocations: 152 kB / 0.6457 GB, free: 3.91 MB / 442.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 () * 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.000579/0.9798, allocations: 223.1 kB / 0.6459 GB, free: 3.672 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/0.9801, allocations: 110.6 kB / 0.646 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02249/1.003, allocations: 4.922 MB / 0.6508 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/1.003, allocations: 8 kB / 0.6509 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/1.003, allocations: 7.938 kB / 0.6509 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.254e-05/1.003, allocations: 3.984 kB / 0.6509 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/1.03, allocations: 6.699 MB / 0.6574 GB, free: 7.812 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/1.031, allocations: 3.938 kB / 0.6574 GB, free: 7.809 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/1.032, allocations: 123.9 kB / 0.6575 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03659/1.068, allocations: 6.596 MB / 0.664 GB, free: 1.062 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007838/1.069, allocations: 207.8 kB / 0.6642 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04314/1.112, allocations: 20.36 MB / 0.6841 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/1.112, allocations: 0 / 0.6841 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02544/1.138, allocations: 5.929 MB / 0.6898 GB, free: 5.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.14, allocations: 411.7 kB / 0.6902 GB, free: 5.508 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/1.141, allocations: 164.2 kB / 0.6904 GB, free: 5.348 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/1.142, allocations: 63.91 kB / 0.6905 GB, free: 5.285 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/1.143, allocations: 196.9 kB / 0.6906 GB, free: 5.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004634/1.144, allocations: 151.8 kB / 0.6908 GB, free: 4.941 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009763/1.145, allocations: 447.1 kB / 0.6912 GB, free: 4.512 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.145, allocations: 0 / 0.6912 GB, free: 4.512 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003189/1.148, allocations: 0.5195 MB / 0.6917 GB, free: 3.992 MB / 490.7 MB 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) * 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.0007582/1.149, allocations: 214.8 kB / 0.6919 GB, free: 3.777 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01031/1.159, allocations: 2.93 MB / 0.6948 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.159, allocations: 0 / 0.6948 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3156/1.475, allocations: 2.295 MB / 0.697 GB, free: 154.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/1.477, allocations: 220 kB / 0.6972 GB, free: 154.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/1.488, allocations: 4.667 MB / 0.7018 GB, free: 153.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/1.489, allocations: 1.248 MB / 0.703 GB, free: 152.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/1.49, allocations: 74.2 kB / 0.7031 GB, free: 152.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.713e-06/1.49, allocations: 0 / 0.7031 GB, free: 152.6 MB / 490.7 MB Notification: Performance of Templates: time 0.06684/1.557, allocations: 32.55 MB / 0.7349 GB, free: 146.7 MB / 490.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)