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.001369/0.001369, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.325/1.325, allocations: 194.2 MB / 212.2 MB, free: 2.371 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001782/0.001782, allocations: 125.7 kB / 256.6 MB, free: 4.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1646/0.1646, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08786, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine): time 0.008105/0.09601, allocations: 10.37 MB / 464.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004335/0.1004, allocations: 2.918 MB / 467.3 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007375/0.1011, allocations: 63.56 kB / 467.3 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007463/0.1019, allocations: 286.4 kB / 467.6 MB, free: 2.875 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.1033, allocations: 0.7666 MB / 468.4 MB, free: 2.105 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006737/0.104, allocations: 339.5 kB / 468.7 MB, free: 1.773 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002258/0.1063, allocations: 2.958 MB / 471.7 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004265/0.1067, allocations: 330.7 kB / 472 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.1079, allocations: 0.7001 MB / 472.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001485/0.1094, allocations: 1.157 MB / 473.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.1096, allocations: 72 kB / 473.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002467/0.1099, allocations: 72 kB / 474 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000548/0.1104, allocations: 0.561 MB / 474.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006541/0.1111, allocations: 0.6336 MB / 475.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.1124, allocations: 1.491 MB / 476.7 MB, free: 9.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1124, allocations: 0 / 476.7 MB, free: 9.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1124, allocations: 0 / 476.7 MB, free: 9.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.1124, allocations: 4 kB / 476.7 MB, free: 9.766 MB / 330.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.003975/0.1164, allocations: 1.888 MB / 478.6 MB, free: 7.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1164, allocations: 8.031 kB / 478.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002403/0.1167, allocations: 127.4 kB / 478.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/0.1189, allocations: 1.132 MB / 479.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.807e-05/0.1189, allocations: 66 kB / 479.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.1191, allocations: 103.9 kB / 480 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.1209, allocations: 1.317 MB / 481.3 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1209, allocations: 3.938 kB / 481.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.284e-05/0.121, allocations: 32 kB / 481.4 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000642/0.1217, allocations: 209.6 kB / 481.6 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.1231, allocations: 0.9485 MB / 482.5 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006457/0.1295, allocations: 4.523 MB / 487 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.1309, allocations: 1.181 MB / 488.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009273/0.1319, allocations: 0.7267 MB / 488.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.1319, allocations: 13 kB / 489 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/0.1331, allocations: 0.941 MB / 489.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 2.504e-06/0.1331, allocations: 0 / 489.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.01094/0.144, allocations: 6.605 MB / 496.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.1442, allocations: 200.9 kB / 496.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.1451, allocations: 0.7626 MB / 497.5 MB, free: 4.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.851e-05/0.1452, allocations: 53.7 kB / 497.5 MB, free: 4.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.1455, allocations: 484.2 kB / 498 MB, free: 3.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.1458, allocations: 382.9 kB / 498.4 MB, free: 3.176 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.1462, allocations: 255.5 kB / 498.6 MB, free: 2.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1463, allocations: 361.9 kB / 499 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009053/0.1472, allocations: 0.6715 MB / 499.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.1483, allocations: 0.9512 MB / 0.4889 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006781/0.1551, allocations: 3.535 MB / 0.4923 GB, free: 13.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.1552, allocations: 4 kB / 0.4923 GB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004576/0.1597, allocations: 2.78 MB / 0.495 GB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.1598, allocations: 67.39 kB / 0.4951 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.1598, allocations: 11.94 kB / 0.4951 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002813/0.1627, allocations: 1.124 MB / 0.4962 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005614/0.1632, allocations: 179.7 kB / 0.4964 GB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.1752, allocations: 8.151 MB / 0.5043 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.1762, allocations: 103.9 kB / 0.5044 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.134e-05/0.1763, allocations: 52 kB / 0.5045 GB, free: 0.4961 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $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,ab.fault_pp.t0,$PRE.ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,trafo.tap_2_internal,trafo.tap_1_internal,$PRE.switch1.switch_1.open,$PRE.switch2.switch_1.open,relay2.y[1],$PRE.relay2.y[1],relay1.y[1],$PRE.relay1.y[1],ab.fault_pp.on,$PRE.ab.fault_pp.on,ab.first,$PRE.ab.first,ab.v_pos,$PRE.ab.v_pos,ab.t_zero,$PRE.ab.t_zero,switch2.switch_1.closed,switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_1.closed,switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,44,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006803/0.177, allocations: 449.5 kB / 0.5049 GB, free: 40 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.193/0.37, allocations: 101 kB / 0.505 GB, free: 67.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004363/0.3744, allocations: 2.339 MB / 0.5073 GB, free: 66.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.3744, allocations: 10.59 kB / 0.5073 GB, free: 66.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.3745, allocations: 5.688 kB / 0.5073 GB, free: 66.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.3745, allocations: 10.45 kB / 0.5073 GB, free: 66.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006457/0.3809, allocations: 3.626 MB / 0.5109 GB, free: 65.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.381, allocations: 1.828 kB / 0.5109 GB, free: 65.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005891/0.3816, allocations: 123.3 kB / 0.511 GB, free: 65.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003193/0.3848, allocations: 1.036 MB / 0.512 GB, free: 65.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002319/0.385, allocations: 84.23 kB / 0.5121 GB, free: 65.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.3952, allocations: 14.93 MB / 0.5266 GB, free: 52.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3953, allocations: 1.125 kB / 0.5266 GB, free: 52.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03048/0.4258, allocations: 29.79 MB / 0.5557 GB, free: 25.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000559/0.4264, allocations: 320.8 kB / 0.556 GB, free: 24.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.4266, allocations: 75.95 kB / 0.5561 GB, free: 24.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006501/0.4272, allocations: 95.86 kB / 0.5562 GB, free: 24.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/0.4276, allocations: 112.9 kB / 0.5563 GB, free: 24.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.511e-05/0.4277, allocations: 43.89 kB / 0.5564 GB, free: 24.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005166/0.4282, allocations: 0.5068 MB / 0.5569 GB, free: 23.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4282, allocations: 0 / 0.5569 GB, free: 23.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001612/0.4298, allocations: 0.6172 MB / 0.5575 GB, free: 23.36 MB / 362.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 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,7,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001988/0.4301, allocations: 176.8 kB / 0.5576 GB, free: 23.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003506/0.4336, allocations: 2.275 MB / 0.5598 GB, free: 20.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4336, allocations: 4 kB / 0.5598 GB, free: 20.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003064/0.4367, allocations: 2.774 MB / 0.5626 GB, free: 17.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.4377, allocations: 257 kB / 0.5628 GB, free: 17.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007942/0.4457, allocations: 7.222 MB / 0.5699 GB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.4463, allocations: 1.269 MB / 0.5711 GB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006278/0.447, allocations: 209.3 kB / 0.5713 GB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.4471, allocations: 79.42 kB / 0.5714 GB, free: 8.547 MB / 362.7 MB Notification: Performance of SimCode: time 1.804e-06/0.4472, allocations: 3.938 kB / 0.5714 GB, free: 8.543 MB / 362.7 MB Notification: Performance of Templates: time 0.03924/0.4864, allocations: 26.88 MB / 0.5976 GB, free: 13.69 MB / 394.7 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)