Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001471/0.001472, allocations: 188 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1799/0.1799, allocations: 37.99 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 71.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1409, allocations: 55.24 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.008513/0.1495, allocations: 6.2 MB / 493.3 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00491/0.1544, allocations: 2.131 MB / 495.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007823/0.1553, allocations: 19.88 kB / 495.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.1574, allocations: 0.5172 MB / 496 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.1595, allocations: 0.4898 MB / 496.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.1608, allocations: 363.3 kB / 496.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00233/0.1631, allocations: 1.06 MB / 497.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.1644, allocations: 0.5042 MB / 498.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.1655, allocations: 470.2 kB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.1667, allocations: 0.5568 MB / 499.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003751/0.1671, allocations: 84 kB / 499.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.1684, allocations: 0.4915 MB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006607/0.1691, allocations: 399 kB / 0.4886 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.1701, allocations: 481.7 kB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002135/0.1723, allocations: 1.227 MB / 0.4903 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1723, allocations: 0 / 0.4903 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1723, allocations: 4 kB / 0.4903 GB, free: 9.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.163e-05/0.1723, allocations: 0 / 0.4903 GB, free: 9.32 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002997/0.1754, allocations: 1.233 MB / 0.4915 GB, free: 8.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1754, allocations: 11.89 kB / 0.4915 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000718/0.1761, allocations: 131.8 kB / 0.4916 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1772, allocations: 0.5813 MB / 0.4922 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/0.1773, allocations: 54.38 kB / 0.4923 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.1775, allocations: 96.05 kB / 0.4924 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.1791, allocations: 1.084 MB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.1791, allocations: 4 kB / 0.4934 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.1792, allocations: 32 kB / 0.4934 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.1794, allocations: 45.98 kB / 0.4935 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.1808, allocations: 0.9406 MB / 0.4944 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005109/0.1859, allocations: 4.196 MB / 0.4985 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.1872, allocations: 0.9338 MB / 0.4994 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006571/0.1879, allocations: 451.4 kB / 0.4999 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.043e-05/0.188, allocations: 12.55 kB / 0.4999 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008999/0.1889, allocations: 0.6513 MB / 0.5005 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 3.326e-06/0.1889, allocations: 3.938 kB / 0.5005 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004455/0.1933, allocations: 2.904 MB / 0.5033 GB, free: 11.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.1935, allocations: 149.5 kB / 0.5035 GB, free: 11.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007126/0.1942, allocations: 473.8 kB / 0.5039 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.1943, allocations: 49.7 kB / 0.504 GB, free: 10.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004068/0.1947, allocations: 383.6 kB / 0.5043 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.195, allocations: 284.2 kB / 0.5046 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/0.1954, allocations: 178.9 kB / 0.5048 GB, free: 9.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002509/0.1956, allocations: 382.8 kB / 0.5052 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007259/0.1964, allocations: 394.4 kB / 0.5055 GB, free: 9.074 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008325/0.1972, allocations: 0.6207 MB / 0.5061 GB, free: 8.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.1987, allocations: 1.075 MB / 0.5072 GB, free: 7.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.1987, allocations: 4 kB / 0.5072 GB, free: 7.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002905/0.2016, allocations: 1.525 MB / 0.5087 GB, free: 5.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.2017, allocations: 41.62 kB / 0.5087 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002373/0.2041, allocations: 1.156 MB / 0.5098 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.2055, allocations: 436.4 kB / 0.5103 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004358/0.2059, allocations: 123.8 kB / 0.5104 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008314/0.2142, allocations: 5.166 MB / 0.5154 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000753/0.215, allocations: 59.89 kB / 0.5155 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-05/0.2151, allocations: 43.98 kB / 0.5155 GB, free: 14.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,relay.cnt,$PRE.relay.cnt,$whenCondition1,relay.y[3],$PRE.relay.y[3],relay.y[2],$PRE.relay.y[2],relay.y[1],$PRE.relay.y[1],breaker.breaker_c.opening,breaker.breaker_c.t0,$PRE.breaker.breaker_c.t0,breaker.breaker_c.closed,breaker.breaker_c.open,$PRE.breaker.breaker_c.open,breaker.breaker_c.arc,$PRE.breaker.breaker_c.arc,breaker.breaker_b.opening,breaker.breaker_b.t0,$PRE.breaker.breaker_b.t0,breaker.breaker_b.closed,breaker.breaker_b.open,$PRE.breaker.breaker_b.open,breaker.breaker_b.arc,$PRE.breaker.breaker_b.arc,breaker.breaker_a.opening,breaker.breaker_a.t0,$PRE.breaker.breaker_a.t0,breaker.breaker_a.closed,breaker.breaker_a.open,$PRE.breaker.breaker_a.open,breaker.breaker_a.arc,$PRE.breaker.breaker_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0005728/0.2157, allocations: 339.8 kB / 0.5158 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.2159, allocations: 75.16 kB / 0.5159 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.2178, allocations: 1.126 MB / 0.517 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.2178, allocations: 12 kB / 0.517 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2179, allocations: 4 kB / 0.517 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.2179, allocations: 3.984 kB / 0.517 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.2215, allocations: 2.154 MB / 0.5191 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2215, allocations: 0 / 0.5191 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/0.2221, allocations: 119.8 kB / 0.5193 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.2223, allocations: 90.55 kB / 0.5193 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-05/0.2223, allocations: 23.98 kB / 0.5194 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/0.2253, allocations: 4.218 MB / 0.5235 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2254, allocations: 0 / 0.5235 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.228, allocations: 1.765 MB / 0.5252 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.2282, allocations: 144.2 kB / 0.5253 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.76e-05/0.2283, allocations: 24 kB / 0.5254 GB, free: 3.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004664/0.2288, allocations: 47.94 kB / 0.5254 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.229, allocations: 84.89 kB / 0.5255 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.281e-05/0.229, allocations: 31.98 kB / 0.5255 GB, free: 3.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.2295, allocations: 319.1 kB / 0.5258 GB, free: 3.305 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2295, allocations: 3.938 kB / 0.5258 GB, free: 3.301 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001094/0.2306, allocations: 260 kB / 0.5261 GB, free: 3.047 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0003065/0.2309, allocations: 157.8 kB / 0.5262 GB, free: 2.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.2332, allocations: 1.365 MB / 0.5276 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2333, allocations: 0 / 0.5276 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.2345, allocations: 0.9472 MB / 0.5285 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.2352, allocations: 122.3 kB / 0.5286 GB, free: 392 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2905/0.5257, allocations: 1.782 MB / 0.5303 GB, free: 51.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008178/0.5266, allocations: 1.038 MB / 0.5314 GB, free: 50.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006883/0.5273, allocations: 192.3 kB / 0.5315 GB, free: 50.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.5275, allocations: 60.61 kB / 0.5316 GB, free: 50.55 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5275, allocations: 3.938 kB / 0.5316 GB, free: 50.55 MB / 414.1 MB Notification: Performance of Templates: time 0.02632/0.5538, allocations: 12.54 MB / 0.5438 GB, free: 47.83 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)