Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 115.3 kB / 17.29 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 197.3 kB / 18.2 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.308/2.308, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3288/0.3288, allocations: 38.02 MB / 330.1 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001781, allocations: 70.22 kB / 398.9 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1733, allocations: 58.06 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01705/0.1904, allocations: 10.36 MB / 467.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009369/0.1999, allocations: 2.848 MB / 470.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002808/0.2028, allocations: 59.62 kB / 470.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.2047, allocations: 294.2 kB / 470.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003903/0.2087, allocations: 0.755 MB / 471.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.2103, allocations: 343.5 kB / 471.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004118/0.2145, allocations: 1.893 MB / 473.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009712/0.2155, allocations: 378.7 kB / 473.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002995/0.2185, allocations: 0.8211 MB / 474.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002969/0.2215, allocations: 1.18 MB / 475.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007473/0.2222, allocations: 120 kB / 476 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.2233, allocations: 120 kB / 476.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001664/0.225, allocations: 0.6196 MB / 476.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002598/0.2276, allocations: 0.6766 MB / 477.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.2303, allocations: 1.224 MB / 478.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.2303, allocations: 0 / 478.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.2304, allocations: 0 / 478.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.2305, allocations: 0 / 478.7 MB, free: 2.66 MB / 350.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.009237/0.2397, allocations: 1.88 MB / 480.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.592e-05/0.2399, allocations: 15.89 kB / 480.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009698/0.2408, allocations: 127.4 kB / 480.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004456/0.2453, allocations: 1.144 MB / 481.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.2455, allocations: 66 kB / 481.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005935/0.2461, allocations: 103.9 kB / 482 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00491/0.251, allocations: 1.313 MB / 483.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/0.2511, allocations: 7.875 kB / 483.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.2514, allocations: 35.98 kB / 483.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00109/0.2525, allocations: 201.7 kB / 483.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003174/0.2557, allocations: 0.9563 MB / 484.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.2683, allocations: 4.515 MB / 489 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.2707, allocations: 1.178 MB / 490.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.2723, allocations: 0.7347 MB / 490.9 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.14e-05/0.2725, allocations: 9 kB / 490.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002124/0.2746, allocations: 0.9449 MB / 491.9 MB, free: 5.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 7.915e-06/0.2746, allocations: 3.984 kB / 491.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.01831/0.2929, allocations: 6.601 MB / 498.5 MB, free: 14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/0.2932, allocations: 208.9 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.2949, allocations: 0.7587 MB / 499.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.2951, allocations: 53.7 kB / 499.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006114/0.2957, allocations: 484.1 kB / 500 MB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/0.2963, allocations: 379 kB / 0.4886 GB, free: 12.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006608/0.297, allocations: 263.4 kB / 0.4889 GB, free: 11.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.2972, allocations: 357.9 kB / 0.4892 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.2988, allocations: 0.6754 MB / 0.4899 GB, free: 10.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.3006, allocations: 0.9473 MB / 0.4908 GB, free: 9.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/0.3114, allocations: 3.55 MB / 0.4943 GB, free: 6.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.3115, allocations: 4 kB / 0.4943 GB, free: 6.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.007574/0.3191, allocations: 2.764 MB / 0.497 GB, free: 3.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-05/0.3192, allocations: 63.39 kB / 0.497 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/0.3193, allocations: 8 kB / 0.497 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004389/0.3237, allocations: 1.144 MB / 0.4982 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009562/0.3246, allocations: 179.7 kB / 0.4983 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01957/0.3442, allocations: 8.738 MB / 0.5069 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.346, allocations: 103.9 kB / 0.507 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003898/0.3465, allocations: 55.98 kB / 0.507 GB, free: 8.762 MB / 398.1 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.001458/0.3479, allocations: 446.4 kB / 0.5074 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005314/0.3485, allocations: 106.7 kB / 0.5075 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00668/0.3552, allocations: 2.337 MB / 0.5098 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.3552, allocations: 11.98 kB / 0.5098 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.875e-05/0.3553, allocations: 8.125 kB / 0.5098 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.3553, allocations: 3.984 kB / 0.5099 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009648/0.365, allocations: 3.64 MB / 0.5134 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.365, allocations: 3.938 kB / 0.5134 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008007/0.3658, allocations: 119.9 kB / 0.5135 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004187/0.3701, allocations: 1.038 MB / 0.5145 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003467/0.3704, allocations: 79.92 kB / 0.5146 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4031/0.7736, allocations: 16.1 MB / 0.5303 GB, free: 59.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.7737, allocations: 0 / 0.5303 GB, free: 59.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00881/0.7825, allocations: 3.082 MB / 0.5333 GB, free: 58.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.7837, allocations: 309.4 kB / 0.5336 GB, free: 57.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004226/0.7842, allocations: 75.25 kB / 0.5337 GB, free: 57.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.7854, allocations: 93.62 kB / 0.5338 GB, free: 57.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000695/0.7861, allocations: 119.1 kB / 0.5339 GB, free: 57.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/0.7863, allocations: 42.5 kB / 0.534 GB, free: 57.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.7877, allocations: 0.5054 MB / 0.5344 GB, free: 57.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7877, allocations: 0 / 0.5344 GB, free: 57.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00262/0.7903, allocations: 435.8 kB / 0.5349 GB, free: 57.68 MB / 398.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 (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.0004542/0.7908, allocations: 174.9 kB / 0.535 GB, free: 57.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008894/0.7997, allocations: 2.725 MB / 0.5377 GB, free: 56.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.7997, allocations: 1 kB / 0.5377 GB, free: 56.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006039/0.8058, allocations: 2.778 MB / 0.5404 GB, free: 54.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/0.8082, allocations: 267 kB / 0.5407 GB, free: 54.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.8184, allocations: 4.64 MB / 0.5452 GB, free: 52.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.8197, allocations: 1.218 MB / 0.5464 GB, free: 51.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.8202, allocations: 76.47 kB / 0.5465 GB, free: 51.26 MB / 398.1 MB Notification: Performance of SimCode: time 1.363e-06/0.8202, allocations: 0 / 0.5465 GB, free: 51.26 MB / 398.1 MB Notification: Performance of Templates: time 0.05959/0.8798, allocations: 44.01 MB / 0.5894 GB, free: 10.43 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)