Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001443/0.001443, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.337/1.337, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001594/0.001594, allocations: 116.2 kB / 248.1 MB, free: 6.324 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1645/0.1645, allocations: 37.92 MB / 330.9 MB, free: 7.316 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.373e-05/1.376e-05, allocations: 4 kB / 390.4 MB, free: 78.25 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08664/0.08667, allocations: 53.25 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4297, allocations: 104 MB / 0.5348 GB, free: 4.234 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004298/0.4302, allocations: 93.11 kB / 0.5349 GB, free: 4.188 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07071/0.5009, allocations: 24.15 MB / 0.5585 GB, free: 15.67 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.501, allocations: 0 / 0.5585 GB, free: 15.67 MB / 379.1 MB Notification: Performance of Transformations before backend: time 9.906e-05/0.5011, allocations: 20 kB / 0.5585 GB, free: 15.65 MB / 379.1 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.003886/0.505, allocations: 1.48 MB / 0.5599 GB, free: 14.18 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.505, allocations: 12.03 kB / 0.56 GB, free: 14.16 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005257/0.5056, allocations: 135.2 kB / 0.5601 GB, free: 14.03 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007855/0.5134, allocations: 2.487 MB / 0.5625 GB, free: 11.92 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.757e-05/0.5135, allocations: 35.67 kB / 0.5625 GB, free: 11.89 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004875/0.514, allocations: 83.45 kB / 0.5626 GB, free: 11.81 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001852/0.5159, allocations: 1.047 MB / 0.5637 GB, free: 11.08 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.5187, allocations: 1.632 MB / 0.5652 GB, free: 9.766 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.5187, allocations: 3.938 kB / 0.5652 GB, free: 9.762 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.5189, allocations: 8 kB / 0.5653 GB, free: 9.754 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.225e-05/0.519, allocations: 37.94 kB / 0.5653 GB, free: 9.719 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009598/0.5286, allocations: 5.635 MB / 0.5708 GB, free: 4.984 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.5301, allocations: 1.21 MB / 0.572 GB, free: 4.125 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.5318, allocations: 1.115 MB / 0.5731 GB, free: 3.34 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.5319, allocations: 20.03 kB / 0.5731 GB, free: 3.324 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001617/0.5335, allocations: 1.31 MB / 0.5744 GB, free: 2.266 MB / 379.1 MB Notification: Performance of pre-optimization done (n=101): time 2.655e-06/0.5335, allocations: 0 / 0.5744 GB, free: 2.266 MB / 379.1 MB Notification: Performance of matching and sorting (n=105): time 0.01592/0.5495, allocations: 6.93 MB / 0.5811 GB, free: 12.13 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.5496, allocations: 209.2 kB / 0.5813 GB, free: 11.88 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.5507, allocations: 0.5861 MB / 0.5819 GB, free: 11.29 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000267/0.551, allocations: 29.7 kB / 0.5819 GB, free: 11.26 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.5514, allocations: 500 kB / 0.5824 GB, free: 10.76 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005568/0.552, allocations: 402.9 kB / 0.5828 GB, free: 10.36 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.5522, allocations: 4 kB / 0.5828 GB, free: 10.36 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.5523, allocations: 361.9 kB / 0.5831 GB, free: 10 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.5537, allocations: 0.984 MB / 0.5841 GB, free: 9.016 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.5553, allocations: 1.248 MB / 0.5853 GB, free: 7.672 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02574/0.581, allocations: 8.562 MB / 0.5937 GB, free: 15.06 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.436e-05/0.5812, allocations: 0 / 0.5937 GB, free: 15.06 MB / 411.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0103/0.5915, allocations: 4.931 MB / 0.5985 GB, free: 10.12 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.677e-05/0.5916, allocations: 59.41 kB / 0.5986 GB, free: 10.05 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.5916, allocations: 8 kB / 0.5986 GB, free: 10.04 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01451/0.6061, allocations: 6.258 MB / 0.6047 GB, free: 3.773 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008364/0.607, allocations: 179.7 kB / 0.6048 GB, free: 3.598 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02402/0.6311, allocations: 14.72 MB / 0.6192 GB, free: 4.75 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.6322, allocations: 67.91 kB / 0.6193 GB, free: 4.684 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003284/0.6326, allocations: 155.9 kB / 0.6194 GB, free: 4.531 MB / 427.1 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.0005513/0.6331, allocations: 215.1 kB / 0.6196 GB, free: 4.301 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.6335, allocations: 110.8 kB / 0.6197 GB, free: 4.191 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/0.6462, allocations: 4.915 MB / 0.6245 GB, free: 15.23 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.6462, allocations: 8 kB / 0.6246 GB, free: 15.23 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.6462, allocations: 4 kB / 0.6246 GB, free: 15.22 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.6463, allocations: 7.969 kB / 0.6246 GB, free: 15.21 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.662, allocations: 6.707 MB / 0.6311 GB, free: 8.445 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.6621, allocations: 0 / 0.6311 GB, free: 8.445 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006669/0.6627, allocations: 119.9 kB / 0.6312 GB, free: 8.328 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02003/0.6828, allocations: 6.6 MB / 0.6377 GB, free: 1.699 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006612/0.6835, allocations: 207.8 kB / 0.6379 GB, free: 1.496 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02627/0.7098, allocations: 20.35 MB / 0.6577 GB, free: 12.56 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/0.7099, allocations: 3.938 kB / 0.6578 GB, free: 12.55 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/0.724, allocations: 5.918 MB / 0.6635 GB, free: 6.578 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.7251, allocations: 407.7 kB / 0.6639 GB, free: 6.16 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006146/0.7258, allocations: 171.8 kB / 0.6641 GB, free: 5.992 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7268, allocations: 59.89 kB / 0.6641 GB, free: 5.934 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007164/0.7275, allocations: 193 kB / 0.6643 GB, free: 5.742 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002809/0.7278, allocations: 147.9 kB / 0.6645 GB, free: 5.598 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0007362/0.7286, allocations: 451.1 kB / 0.6649 GB, free: 5.16 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7286, allocations: 0 / 0.6649 GB, free: 5.16 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.002395/0.731, allocations: 0.5039 MB / 0.6654 GB, free: 4.656 MB / 475.1 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.0004966/0.7315, allocations: 222.5 kB / 0.6656 GB, free: 4.43 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.005786/0.7373, allocations: 2.923 MB / 0.6685 GB, free: 1.477 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.7373, allocations: 0 / 0.6685 GB, free: 1.477 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2148/0.9521, allocations: 2.315 MB / 0.6707 GB, free: 153.8 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.9534, allocations: 224.9 kB / 0.6709 GB, free: 153.8 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006067/0.9594, allocations: 4.57 MB / 0.6754 GB, free: 152.5 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009215/0.9604, allocations: 1.249 MB / 0.6766 GB, free: 151.8 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0006917/0.9611, allocations: 205 kB / 0.6768 GB, free: 151.8 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.9613, allocations: 72.48 kB / 0.6769 GB, free: 151.8 MB / 475.1 MB Notification: Performance of SimCode: time 9.72e-07/0.9613, allocations: 0 / 0.6769 GB, free: 151.8 MB / 475.1 MB Notification: Performance of Templates: time 0.04402/1.005, allocations: 35.04 MB / 0.7111 GB, free: 143.1 MB / 475.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)