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.001486/0.001486, allocations: 111.2 kB / 17.74 MB, free: 5.344 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.001518/0.001518, allocations: 188.1 kB / 18.67 MB, free: 4.422 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.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.99 MB / 309.9 MB, free: 5.965 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.001376/0.001376, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09471, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.007367/0.1021, allocations: 6.2 MB / 494 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.106, allocations: 2.131 MB / 496.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000551/0.1065, allocations: 19.78 kB / 496.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.1081, allocations: 0.5255 MB / 496.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001438/0.1095, allocations: 0.4937 MB / 497.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009122/0.1104, allocations: 359.2 kB / 497.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.1118, allocations: 1.076 MB / 498.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007809/0.1126, allocations: 0.4965 MB / 499.1 MB, free: 13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008747/0.1135, allocations: 458.2 kB / 499.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009184/0.1144, allocations: 0.5607 MB / 0.4884 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.1147, allocations: 84 kB / 0.4884 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009721/0.1156, allocations: 0.4915 MB / 0.4889 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004454/0.1161, allocations: 395 kB / 0.4893 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006164/0.1167, allocations: 485.7 kB / 0.4898 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.1181, allocations: 1.223 MB / 0.491 GB, free: 9.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1182, allocations: 0 / 0.491 GB, free: 9.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1182, allocations: 4 kB / 0.491 GB, free: 9.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.538e-05/0.1182, allocations: 4 kB / 0.491 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.002674/0.1209, allocations: 1.229 MB / 0.4922 GB, free: 8.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.121, allocations: 11.89 kB / 0.4922 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/0.1217, allocations: 131.8 kB / 0.4923 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009431/0.1227, allocations: 0.5813 MB / 0.4929 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.025e-05/0.1228, allocations: 62.31 kB / 0.4929 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.123, allocations: 88.09 kB / 0.493 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.1247, allocations: 1.088 MB / 0.4941 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.1247, allocations: 0 / 0.4941 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.204e-05/0.1248, allocations: 35.98 kB / 0.4941 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001285/0.1249, allocations: 45.98 kB / 0.4942 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.1265, allocations: 0.9367 MB / 0.4951 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005238/0.1317, allocations: 4.203 MB / 0.4992 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.1329, allocations: 0.9338 MB / 0.5001 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.1335, allocations: 443.5 kB / 0.5005 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.91e-05/0.1336, allocations: 8.562 kB / 0.5005 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000894/0.1345, allocations: 0.6474 MB / 0.5011 GB, free: 14.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 2.445e-06/0.1345, allocations: 3.938 kB / 0.5012 GB, free: 14.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004468/0.139, allocations: 2.908 MB / 0.504 GB, free: 11.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/0.1391, allocations: 153.5 kB / 0.5041 GB, free: 11.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.1397, allocations: 473.8 kB / 0.5046 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.1397, allocations: 45.69 kB / 0.5046 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.14, allocations: 383.6 kB / 0.505 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.1403, allocations: 284.1 kB / 0.5053 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.1405, allocations: 186.9 kB / 0.5054 GB, free: 9.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1407, allocations: 374.8 kB / 0.5058 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005845/0.1413, allocations: 390.4 kB / 0.5062 GB, free: 9.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007242/0.142, allocations: 0.6207 MB / 0.5068 GB, free: 8.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1433, allocations: 1.086 MB / 0.5078 GB, free: 7.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.1434, allocations: 4 kB / 0.5078 GB, free: 7.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002825/0.1462, allocations: 1.521 MB / 0.5093 GB, free: 5.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.1462, allocations: 37.64 kB / 0.5094 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002202/0.1484, allocations: 1.156 MB / 0.5105 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.1498, allocations: 436.4 kB / 0.5109 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.1502, allocations: 127.7 kB / 0.511 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007354/0.1576, allocations: 5.162 MB / 0.5161 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006634/0.1583, allocations: 59.95 kB / 0.5161 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.1584, allocations: 43.98 kB / 0.5162 GB, free: 14.47 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.000521/0.1589, allocations: 343.8 kB / 0.5165 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.1591, allocations: 67.16 kB / 0.5166 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.1609, allocations: 1.126 MB / 0.5177 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.1609, allocations: 16 kB / 0.5177 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1609, allocations: 0 / 0.5177 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.161, allocations: 7.984 kB / 0.5177 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.1642, allocations: 2.146 MB / 0.5198 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1642, allocations: 4 kB / 0.5198 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005885/0.1648, allocations: 119.7 kB / 0.5199 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001721/0.165, allocations: 94.58 kB / 0.52 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.1651, allocations: 16 kB / 0.52 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/0.1679, allocations: 4.226 MB / 0.5241 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1679, allocations: 0 / 0.5241 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.1707, allocations: 1.769 MB / 0.5259 GB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.1711, allocations: 144.2 kB / 0.526 GB, free: 3.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.1712, allocations: 20 kB / 0.526 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005743/0.1718, allocations: 47.94 kB / 0.5261 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.1721, allocations: 84.89 kB / 0.5261 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.424e-05/0.1722, allocations: 27.98 kB / 0.5262 GB, free: 3.629 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000497/0.1727, allocations: 327.1 kB / 0.5265 GB, free: 3.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1727, allocations: 0 / 0.5265 GB, free: 3.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0012/0.1739, allocations: 256 kB / 0.5267 GB, free: 3.059 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.0003177/0.1742, allocations: 161.7 kB / 0.5269 GB, free: 2.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.1765, allocations: 1.369 MB / 0.5282 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1766, allocations: 0 / 0.5282 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.1777, allocations: 0.9316 MB / 0.5291 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007868/0.1785, allocations: 129.6 kB / 0.5293 GB, free: 404 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2132/0.3917, allocations: 1.858 MB / 0.5311 GB, free: 51.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.3923, allocations: 1.033 MB / 0.5321 GB, free: 50.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.3927, allocations: 64.83 kB / 0.5321 GB, free: 50.44 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3927, allocations: 1.719 kB / 0.5321 GB, free: 50.44 MB / 414.1 MB Notification: Performance of Templates: time 0.02633/0.419, allocations: 16.58 MB / 0.5483 GB, free: 45.23 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)