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.0008631/0.0008631, allocations: 90.45 kB / 16.65 MB, free: 6.266 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.001047/0.001047, allocations: 179.8 kB / 17.56 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1884/0.1884, allocations: 38.09 MB / 330.8 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 8 kB / 400.7 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1336, allocations: 59.16 MB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01157/0.1452, allocations: 9.888 MB / 469.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.1511, allocations: 2.828 MB / 472.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.1529, allocations: 63.56 kB / 472.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.1542, allocations: 286.3 kB / 472.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002393/0.1566, allocations: 0.7744 MB / 473.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1578, allocations: 343.5 kB / 474 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003569/0.1614, allocations: 2.95 MB / 477 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006358/0.1621, allocations: 322.7 kB / 477.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.1638, allocations: 0.6533 MB / 478 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.1661, allocations: 1.133 MB / 479.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004734/0.1666, allocations: 60 kB / 479.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00062/0.1673, allocations: 64 kB / 479.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.1683, allocations: 0.5571 MB / 479.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.1699, allocations: 0.6353 MB / 480.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.1721, allocations: 1.464 MB / 481.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.1721, allocations: 0 / 481.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1721, allocations: 4 kB / 481.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.342e-05/0.1722, allocations: 0 / 481.9 MB, free: 0.9727 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.004734/0.1769, allocations: 1.655 MB / 483.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.177, allocations: 8.031 kB / 483.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000634/0.1776, allocations: 131.3 kB / 483.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.1804, allocations: 1.141 MB / 484.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/0.1805, allocations: 69.98 kB / 484.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000222/0.1807, allocations: 107.9 kB / 485 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.1828, allocations: 1.313 MB / 486.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.1829, allocations: 11.94 kB / 486.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.887e-05/0.183, allocations: 35.97 kB / 486.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006638/0.1836, allocations: 197.7 kB / 486.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.1852, allocations: 0.9562 MB / 487.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007383/0.1926, allocations: 4.535 MB / 492 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.1943, allocations: 1.178 MB / 493.2 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.1954, allocations: 0.729 MB / 493.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.04e-05/0.1955, allocations: 9 kB / 493.9 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001397/0.1969, allocations: 0.9457 MB / 494.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.856e-06/0.1969, allocations: 0 / 494.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.01297/0.2099, allocations: 6.589 MB / 0.4897 GB, free: 12.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.2101, allocations: 200.9 kB / 0.4899 GB, free: 12.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.2112, allocations: 0.7626 MB / 0.4906 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.2113, allocations: 53.69 kB / 0.4907 GB, free: 11.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000426/0.2118, allocations: 492.1 kB / 0.4912 GB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/0.2121, allocations: 371 kB / 0.4915 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.2123, allocations: 129.6 kB / 0.4916 GB, free: 10.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.2125, allocations: 361.9 kB / 0.492 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.2136, allocations: 0.6715 MB / 0.4926 GB, free: 9.441 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.215, allocations: 0.9551 MB / 0.4936 GB, free: 8.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007783/0.2228, allocations: 3.538 MB / 0.497 GB, free: 4.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/0.2229, allocations: 8 kB / 0.497 GB, free: 4.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005547/0.2284, allocations: 2.768 MB / 0.4997 GB, free: 1.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.439e-05/0.2285, allocations: 63.41 kB / 0.4998 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.2285, allocations: 8 kB / 0.4998 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003211/0.2318, allocations: 1.14 MB / 0.5009 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005619/0.2323, allocations: 183.7 kB / 0.5011 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2746/0.5069, allocations: 8.157 MB / 0.5091 GB, free: 53.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.5082, allocations: 114.4 kB / 0.5092 GB, free: 53.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.5083, allocations: 49.91 kB / 0.5092 GB, free: 53.47 MB / 382.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $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.0008358/0.5092, allocations: 447.3 kB / 0.5097 GB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.5094, allocations: 105.5 kB / 0.5098 GB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004928/0.5143, allocations: 2.344 MB / 0.512 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.5144, allocations: 10.91 kB / 0.5121 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.709e-05/0.5144, allocations: 6.438 kB / 0.5121 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.5145, allocations: 5.156 kB / 0.5121 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007317/0.5218, allocations: 3.632 MB / 0.5156 GB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.5219, allocations: 2.125 kB / 0.5156 GB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.5225, allocations: 123.2 kB / 0.5157 GB, free: 50.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003015/0.5255, allocations: 1.038 MB / 0.5167 GB, free: 50.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002844/0.5258, allocations: 78.23 kB / 0.5168 GB, free: 50.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/0.5369, allocations: 14.93 MB / 0.5314 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5369, allocations: 96 / 0.5314 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004869/0.5418, allocations: 3.085 MB / 0.5344 GB, free: 36.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006595/0.5425, allocations: 323.6 kB / 0.5347 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.5427, allocations: 71.97 kB / 0.5348 GB, free: 35.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006836/0.5434, allocations: 95.86 kB / 0.5349 GB, free: 35.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004058/0.5438, allocations: 121.5 kB / 0.535 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.982e-05/0.5439, allocations: 39.95 kB / 0.535 GB, free: 35.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006445/0.5446, allocations: 0.5068 MB / 0.5355 GB, free: 35.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5446, allocations: 0 / 0.5355 GB, free: 35.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001495/0.5461, allocations: 436 kB / 0.5359 GB, free: 34.66 MB / 382.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.0002445/0.5463, allocations: 171 kB / 0.5361 GB, free: 34.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00382/0.5502, allocations: 2.268 MB / 0.5383 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5502, allocations: 4.125 kB / 0.5383 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.5536, allocations: 2.783 MB / 0.541 GB, free: 29.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.5551, allocations: 251.6 kB / 0.5413 GB, free: 28.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005927/0.561, allocations: 4.97 MB / 0.5461 GB, free: 23.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.5617, allocations: 1.221 MB / 0.5473 GB, free: 22.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006384/0.5624, allocations: 209.3 kB / 0.5475 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.5625, allocations: 71.44 kB / 0.5476 GB, free: 22.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5626, allocations: 4 kB / 0.5476 GB, free: 22.38 MB / 382.1 MB Notification: Performance of Templates: time 0.02592/0.5885, allocations: 19.56 MB / 0.5667 GB, free: 2.977 MB / 382.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)