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.002595/0.002599, allocations: 359.1 kB / 17.21 MB, free: 4.93 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.453/3.453, allocations: 388.9 MB / 406.9 MB, free: 7.023 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003418/0.003418, allocations: 220.3 kB / 452.2 MB, free: 0.5977 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7875/0.7875, allocations: 76.03 MB / 0.56 GB, free: 14.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006267/0.0006269, allocations: 12 kB / 0.6223 GB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3305, allocations: 53.22 MB / 0.6742 GB, free: 62.61 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine): time 0.01077/0.3413, allocations: 9.278 MB / 0.6833 GB, free: 53.3 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005802/0.3472, allocations: 2.765 MB / 0.686 GB, free: 50.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008584/0.3481, allocations: 63.56 kB / 0.686 GB, free: 50.49 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008811/0.349, allocations: 290 kB / 0.6863 GB, free: 50.2 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.3512, allocations: 0.8241 MB / 0.6871 GB, free: 49.38 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.3525, allocations: 395.3 kB / 0.6875 GB, free: 48.99 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002517/0.3551, allocations: 2.302 MB / 0.6898 GB, free: 46.68 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004666/0.3555, allocations: 279.4 kB / 0.69 GB, free: 46.39 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.3566, allocations: 0.6728 MB / 0.6907 GB, free: 45.71 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.3584, allocations: 1.126 MB / 0.6918 GB, free: 44.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000216/0.3587, allocations: 60 kB / 0.6918 GB, free: 44.53 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000294/0.359, allocations: 64 kB / 0.6919 GB, free: 44.46 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006365/0.3596, allocations: 0.5727 MB / 0.6925 GB, free: 43.89 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.3599, allocations: 237.1 kB / 0.6927 GB, free: 43.65 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.3611, allocations: 1.2 MB / 0.6939 GB, free: 42.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3612, allocations: 0 / 0.6939 GB, free: 42.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3612, allocations: 0 / 0.6939 GB, free: 42.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3612, allocations: 0 / 0.6939 GB, free: 42.45 MB / 346.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.005318/0.3665, allocations: 1.67 MB / 0.6955 GB, free: 40.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3666, allocations: 8.031 kB / 0.6955 GB, free: 40.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.3669, allocations: 130.5 kB / 0.6956 GB, free: 40.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.3701, allocations: 1.097 MB / 0.6967 GB, free: 39.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.181e-05/0.3702, allocations: 73.94 kB / 0.6968 GB, free: 39.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.3705, allocations: 107.9 kB / 0.6969 GB, free: 39.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.3731, allocations: 1.309 MB / 0.6981 GB, free: 37.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.3731, allocations: 7.938 kB / 0.6981 GB, free: 37.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.3733, allocations: 39.98 kB / 0.6982 GB, free: 37.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001236/0.3745, allocations: 201.6 kB / 0.6984 GB, free: 37.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/0.3768, allocations: 0.9524 MB / 0.6993 GB, free: 36.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00916/0.386, allocations: 4.527 MB / 0.7037 GB, free: 32.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/0.3881, allocations: 1.183 MB / 0.7049 GB, free: 30.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.3895, allocations: 0.7303 MB / 0.7056 GB, free: 30.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.293e-05/0.3897, allocations: 13 kB / 0.7056 GB, free: 30.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001813/0.3915, allocations: 0.9496 MB / 0.7065 GB, free: 29.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 3.526e-06/0.3915, allocations: 0 / 0.7065 GB, free: 29.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.01743/0.4089, allocations: 6.603 MB / 0.713 GB, free: 22.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.4091, allocations: 204.9 kB / 0.7132 GB, free: 21.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.4102, allocations: 0.7587 MB / 0.7139 GB, free: 21.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001358/0.4103, allocations: 53.7 kB / 0.714 GB, free: 20.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.4107, allocations: 492.1 kB / 0.7144 GB, free: 20.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.4111, allocations: 378.9 kB / 0.7148 GB, free: 20.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.4112, allocations: 28 kB / 0.7148 GB, free: 20.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4113, allocations: 361.9 kB / 0.7152 GB, free: 19.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.4128, allocations: 0.6715 MB / 0.7158 GB, free: 19.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.4145, allocations: 0.9503 MB / 0.7168 GB, free: 18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008553/0.423, allocations: 1.985 MB / 0.7187 GB, free: 15.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.423, allocations: 0 / 0.7187 GB, free: 15.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009678/0.4327, allocations: 2.757 MB / 0.7214 GB, free: 13.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.012e-05/0.4328, allocations: 74.25 kB / 0.7215 GB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/0.4329, allocations: 8 kB / 0.7215 GB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006607/0.4395, allocations: 1.128 MB / 0.7226 GB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4408, allocations: 175.7 kB / 0.7227 GB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02533/0.4662, allocations: 8.159 MB / 0.7307 GB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.4684, allocations: 111.9 kB / 0.7308 GB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/0.4686, allocations: 51.94 kB / 0.7309 GB, free: 3.328 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.001115/0.4697, allocations: 447.3 kB / 0.7313 GB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.47, allocations: 102.8 kB / 0.7314 GB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008306/0.4784, allocations: 2.348 MB / 0.7337 GB, free: 364 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.4784, allocations: 3.984 kB / 0.7337 GB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4784, allocations: 3.938 kB / 0.7337 GB, free: 356 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009685/0.4794, allocations: 311.8 kB / 0.734 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005512/0.48, allocations: 75.95 kB / 0.7341 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/0.4818, allocations: 95.86 kB / 0.7341 GB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005576/0.4824, allocations: 120.8 kB / 0.7343 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01667/0.4991, allocations: 3.212 MB / 0.7374 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.008087/0.5072, allocations: 2.945 MB / 0.7403 GB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002716/0.51, allocations: 0.8627 MB / 0.7411 GB, free: 8.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001461/0.5115, allocations: 0.5145 MB / 0.7416 GB, free: 8.082 MB / 362.7 MB Notification: Performance of Backend: time 6.02e-07/0.5115, allocations: 0 / 0.7416 GB, free: 8.082 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008525/0.52, allocations: 1.801 MB / 0.7434 GB, free: 6.238 MB / 362.7 MB Notification: Performance of SimCode: time 0.009896/0.53, allocations: 4.987 MB / 0.7482 GB, free: 1.172 MB / 362.7 MB Notification: Performance of Templates: time 0.05299/0.583, allocations: 18.96 MB / 0.7668 GB, free: 14.36 MB / 394.7 MB