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.001379/0.001382, allocations: 184.9 kB / 16.38 MB, free: 5.598 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 1.8/1.8, allocations: 194.5 MB / 211.6 MB, free: 7.707 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001881/0.001881, allocations: 112.7 kB / 256.9 MB, free: 10.34 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2379/0.2379, allocations: 38.01 MB / 340.1 MB, free: 13.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 15.34 kB / 403.8 MB, free: 55.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06819/0.06867, allocations: 53.23 MB / 457 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine): time 0.008632/0.07735, allocations: 8.849 MB / 465.9 MB, free: 1.492 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005017/0.0824, allocations: 2.796 MB / 468.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006147/0.08304, allocations: 59.56 kB / 468.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008362/0.08389, allocations: 294.3 kB / 469 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001762/0.08567, allocations: 0.6698 MB / 469.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.08682, allocations: 395.3 kB / 470.1 MB, free: 13.28 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.08813, allocations: 0.9317 MB / 471 MB, free: 12.35 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004861/0.08863, allocations: 271.4 kB / 471.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.0897, allocations: 0.6306 MB / 471.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.09103, allocations: 0.8065 MB / 472.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000206/0.09126, allocations: 64 kB / 472.8 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.09152, allocations: 60 kB / 472.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006886/0.09222, allocations: 0.5183 MB / 473.3 MB, free: 9.984 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003422/0.09258, allocations: 241.1 kB / 473.6 MB, free: 9.742 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.09407, allocations: 1.185 MB / 474.8 MB, free: 8.555 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.522e-06/0.09408, allocations: 0 / 474.8 MB, free: 8.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.0941, allocations: 0 / 474.8 MB, free: 8.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.09412, allocations: 0 / 474.8 MB, free: 8.555 MB / 314.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.004197/0.09833, allocations: 1.674 MB / 476.4 MB, free: 6.816 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.09839, allocations: 15.95 kB / 476.5 MB, free: 6.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.0987, allocations: 126.5 kB / 476.6 MB, free: 6.676 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.1015, allocations: 1.109 MB / 477.7 MB, free: 5.523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-05/0.1016, allocations: 73.95 kB / 477.8 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002701/0.1019, allocations: 103.9 kB / 477.9 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.1046, allocations: 1.309 MB / 479.2 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1046, allocations: 3.938 kB / 479.2 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.1048, allocations: 35.98 kB / 479.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007857/0.1056, allocations: 205.7 kB / 479.4 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.1078, allocations: 0.9524 MB / 480.4 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009002/0.1168, allocations: 4.531 MB / 484.9 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.1189, allocations: 1.18 MB / 486.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.342e-05/0.119, allocations: 13.06 kB / 486.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001821/0.1208, allocations: 0.9496 MB / 487 MB, free: 11.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.981e-06/0.1209, allocations: 0 / 487 MB, free: 11.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=105): time 0.01539/0.1363, allocations: 6.758 MB / 493.8 MB, free: 4.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.1365, allocations: 204.9 kB / 494 MB, free: 4.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.1377, allocations: 0.7509 MB / 494.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.1378, allocations: 53.7 kB / 494.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.1383, allocations: 488.1 kB / 495.3 MB, free: 3.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000442/0.1388, allocations: 375 kB / 495.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1389, allocations: 28 kB / 495.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.1391, allocations: 373.9 kB / 496 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.1406, allocations: 0.6637 MB / 496.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.1423, allocations: 0.9433 MB / 497.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006891/0.1492, allocations: 1.977 MB / 499.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.1492, allocations: 4 kB / 499.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006641/0.1559, allocations: 2.753 MB / 0.4906 GB, free: 11.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-05/0.156, allocations: 79.2 kB / 0.4907 GB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.156, allocations: 8 kB / 0.4907 GB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004051/0.1601, allocations: 1.132 MB / 0.4918 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00073/0.1608, allocations: 179.7 kB / 0.492 GB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01734/0.1782, allocations: 8.387 MB / 0.5001 GB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.1794, allocations: 115.9 kB / 0.5003 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.1795, allocations: 48 kB / 0.5003 GB, free: 1.734 MB / 346.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.0008973/0.1804, allocations: 460.5 kB / 0.5007 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.1807, allocations: 98.78 kB / 0.5008 GB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/0.1861, allocations: 2.341 MB / 0.5031 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.1861, allocations: 12 kB / 0.5031 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.1862, allocations: 12.12 kB / 0.5031 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.1862, allocations: 3.984 kB / 0.5031 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008066/0.1943, allocations: 3.644 MB / 0.5067 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.1943, allocations: 3.984 kB / 0.5067 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006984/0.195, allocations: 115.8 kB / 0.5068 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003976/0.199, allocations: 1.042 MB / 0.5078 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002223/0.1993, allocations: 83.88 kB / 0.5079 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/0.2182, allocations: 15.1 MB / 0.5227 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.93e-06/0.2182, allocations: 0 / 0.5227 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006962/0.2252, allocations: 3.118 MB / 0.5257 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007713/0.226, allocations: 311.7 kB / 0.526 GB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/0.2263, allocations: 75.95 kB / 0.5261 GB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009423/0.2272, allocations: 95.81 kB / 0.5262 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004012/0.2277, allocations: 121.3 kB / 0.5263 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.2278, allocations: 43.95 kB / 0.5263 GB, free: 5.508 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008673/0.2287, allocations: 0.499 MB / 0.5268 GB, free: 5.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.085e-06/0.2287, allocations: 0 / 0.5268 GB, free: 5.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001628/0.2303, allocations: 436 kB / 0.5272 GB, free: 4.586 MB / 378.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.0003269/0.2307, allocations: 180.5 kB / 0.5274 GB, free: 4.402 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005669/0.2364, allocations: 2.262 MB / 0.5296 GB, free: 2.102 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.258e-06/0.2364, allocations: 1.062 kB / 0.5296 GB, free: 2.102 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2379/0.4743, allocations: 2.774 MB / 0.5323 GB, free: 78.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.4757, allocations: 237.3 kB / 0.5325 GB, free: 78.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00817/0.4839, allocations: 4.879 MB / 0.5373 GB, free: 76.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.485, allocations: 1.247 MB / 0.5385 GB, free: 75.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009147/0.4859, allocations: 208.5 kB / 0.5387 GB, free: 75.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/0.4861, allocations: 75.88 kB / 0.5388 GB, free: 75.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.536e-06/0.4862, allocations: 0 / 0.5388 GB, free: 75.53 MB / 378.7 MB Notification: Performance of Templates: time 0.03745/0.5236, allocations: 19.01 MB / 0.5574 GB, free: 65.36 MB / 378.7 MB