Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/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_master_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002413/0.002417, allocations: 356.2 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.47/3.47, allocations: 388.9 MB / 406.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003477/0.003477, allocations: 233.6 kB / 451.6 MB, free: 14.51 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6609/0.6609, allocations: 76 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.000439, allocations: 16 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07047/0.07094, allocations: 53.24 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine): time 0.008932/0.07992, allocations: 9.284 MB / 0.6827 GB, free: 51.5 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003939/0.08389, allocations: 2.764 MB / 0.6854 GB, free: 48.72 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005172/0.08443, allocations: 63.5 kB / 0.6854 GB, free: 48.66 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006319/0.08508, allocations: 278.1 kB / 0.6857 GB, free: 48.39 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.08656, allocations: 0.8319 MB / 0.6865 GB, free: 47.55 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000852/0.08743, allocations: 399.3 kB / 0.6869 GB, free: 47.16 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.08919, allocations: 2.298 MB / 0.6891 GB, free: 44.86 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.08958, allocations: 271.4 kB / 0.6894 GB, free: 44.57 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007402/0.09034, allocations: 0.6845 MB / 0.6901 GB, free: 43.88 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.09173, allocations: 1.114 MB / 0.6912 GB, free: 42.77 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001816/0.09194, allocations: 68 kB / 0.6912 GB, free: 42.7 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.09219, allocations: 64 kB / 0.6913 GB, free: 42.64 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005282/0.09273, allocations: 0.5728 MB / 0.6918 GB, free: 42.06 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.093, allocations: 237.1 kB / 0.6921 GB, free: 41.82 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009552/0.09397, allocations: 1.196 MB / 0.6932 GB, free: 40.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.703e-06/0.09399, allocations: 0 / 0.6932 GB, free: 40.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.701e-06/0.094, allocations: 0 / 0.6932 GB, free: 40.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.09402, allocations: 0 / 0.6932 GB, free: 40.62 MB / 442.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.003477/0.09751, allocations: 1.662 MB / 0.6949 GB, free: 38.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.09756, allocations: 12.83 kB / 0.6949 GB, free: 38.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002566/0.09783, allocations: 138.3 kB / 0.695 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002392/0.1002, allocations: 1.105 MB / 0.6961 GB, free: 37.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.946e-05/0.1003, allocations: 69.98 kB / 0.6962 GB, free: 37.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.1006, allocations: 107.9 kB / 0.6963 GB, free: 37.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.1027, allocations: 1.313 MB / 0.6975 GB, free: 36.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.1027, allocations: 0 / 0.6975 GB, free: 36.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.1029, allocations: 31.98 kB / 0.6976 GB, free: 36.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006904/0.1036, allocations: 201.7 kB / 0.6978 GB, free: 35.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.1054, allocations: 0.9523 MB / 0.6987 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007109/0.1125, allocations: 4.539 MB / 0.7031 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.1141, allocations: 1.181 MB / 0.7043 GB, free: 28.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.1153, allocations: 0.731 MB / 0.705 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.108e-05/0.1154, allocations: 9 kB / 0.705 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00141/0.1168, allocations: 0.9535 MB / 0.7059 GB, free: 27.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 3.738e-06/0.1168, allocations: 4 kB / 0.7059 GB, free: 27.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.01233/0.1292, allocations: 6.601 MB / 0.7124 GB, free: 20.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.1293, allocations: 204.9 kB / 0.7126 GB, free: 19.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000904/0.1302, allocations: 0.7509 MB / 0.7133 GB, free: 19.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.1303, allocations: 57.69 kB / 0.7134 GB, free: 19.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003063/0.1306, allocations: 488.1 kB / 0.7138 GB, free: 18.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002948/0.1309, allocations: 382.9 kB / 0.7142 GB, free: 18.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.394e-05/0.131, allocations: 28 kB / 0.7142 GB, free: 18.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.1311, allocations: 365.9 kB / 0.7146 GB, free: 17.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.1323, allocations: 0.6675 MB / 0.7152 GB, free: 17.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.1337, allocations: 0.9473 MB / 0.7161 GB, free: 16.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006165/0.1398, allocations: 1.985 MB / 0.7181 GB, free: 14.13 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.871e-06/0.1399, allocations: 4 kB / 0.7181 GB, free: 14.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005466/0.1453, allocations: 2.769 MB / 0.7208 GB, free: 11.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.1454, allocations: 63.41 kB / 0.7209 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1454, allocations: 4 kB / 0.7209 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003646/0.1491, allocations: 1.132 MB / 0.722 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006725/0.1498, allocations: 179.7 kB / 0.7221 GB, free: 9.941 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.1631, allocations: 8.147 MB / 0.7301 GB, free: 1.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009261/0.164, allocations: 115.8 kB / 0.7302 GB, free: 1.527 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.1642, allocations: 51.98 kB / 0.7302 GB, free: 1.477 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.line.i[1,1] = 0.0 $DER.line.i[2,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 {(5,88.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00065/0.1648, allocations: 448.8 kB / 0.7307 GB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.165, allocations: 106.7 kB / 0.7308 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2383/0.4033, allocations: 2.331 MB / 0.7331 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.4034, allocations: 10.03 kB / 0.7331 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.4034, allocations: 9.312 kB / 0.7331 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.4035, allocations: 5.625 kB / 0.7331 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008215/0.4117, allocations: 3.641 MB / 0.7366 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.982e-06/0.4117, allocations: 2.969 kB / 0.7366 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007675/0.4125, allocations: 120.5 kB / 0.7368 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004439/0.4169, allocations: 1.04 MB / 0.7378 GB, free: 126.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002094/0.4172, allocations: 81.34 kB / 0.7378 GB, free: 126.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/0.4323, allocations: 14.9 MB / 0.7524 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.908e-06/0.4323, allocations: 4.031 kB / 0.7524 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007111/0.4394, allocations: 3.088 MB / 0.7554 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006812/0.4401, allocations: 317.6 kB / 0.7557 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/0.4405, allocations: 71.05 kB / 0.7558 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.4415, allocations: 96.25 kB / 0.7559 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/0.4419, allocations: 125.8 kB / 0.756 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.4421, allocations: 38.78 kB / 0.756 GB, free: 113.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007097/0.4428, allocations: 0.5023 MB / 0.7565 GB, free: 113.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.4428, allocations: 0.9688 kB / 0.7565 GB, free: 113.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001542/0.4443, allocations: 433.6 kB / 0.7569 GB, free: 113.4 MB / 442.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 (linear and non-linear blocks): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,100.0%) 7,(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002767/0.4446, allocations: 177.4 kB / 0.7571 GB, free: 113.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005245/0.4499, allocations: 2.265 MB / 0.7593 GB, free: 112.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.4499, allocations: 3.578 kB / 0.7593 GB, free: 112.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004766/0.4547, allocations: 2.788 MB / 0.7621 GB, free: 110.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.4562, allocations: 259.2 kB / 0.7623 GB, free: 110.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007926/0.4642, allocations: 4.877 MB / 0.7671 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009047/0.4651, allocations: 1.245 MB / 0.7683 GB, free: 107.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007981/0.4659, allocations: 203.8 kB / 0.7685 GB, free: 107 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.4661, allocations: 72.59 kB / 0.7685 GB, free: 107 MB / 442.7 MB Notification: Performance of SimCode: time 2.414e-06/0.4661, allocations: 0 / 0.7685 GB, free: 107 MB / 442.7 MB Notification: Performance of Templates: time 0.03813/0.5043, allocations: 19.04 MB / 0.7871 GB, free: 100.9 MB / 442.7 MB