Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 173.3 kB / 15.77 MB, free: 6.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007228/0.0007227, allocations: 86.34 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2683/0.2683, allocations: 38.07 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09898, allocations: 56.34 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.006764/0.1058, allocations: 6.063 MB / 485.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0038/0.1096, allocations: 2.191 MB / 487.3 MB, free: 9.742 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006404/0.1103, allocations: 27.81 kB / 487.3 MB, free: 9.715 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000553/0.1109, allocations: 127 kB / 487.5 MB, free: 9.59 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.1123, allocations: 485.8 kB / 487.9 MB, free: 9.113 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008994/0.1132, allocations: 303.5 kB / 488.2 MB, free: 8.816 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.1146, allocations: 1.189 MB / 489.4 MB, free: 7.625 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.1159, allocations: 0.7231 MB / 490.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000685/0.1166, allocations: 370.4 kB / 490.5 MB, free: 6.504 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00088/0.1175, allocations: 0.5218 MB / 491 MB, free: 5.98 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.1176, allocations: 40 kB / 491.1 MB, free: 5.941 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008366/0.1185, allocations: 463.3 kB / 491.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004011/0.1189, allocations: 343.1 kB / 491.9 MB, free: 5.152 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003157/0.1192, allocations: 181.2 kB / 492 MB, free: 4.969 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009861/0.1202, allocations: 0.8962 MB / 492.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1202, allocations: 0 / 492.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1202, allocations: 0 / 492.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.209e-05/0.1203, allocations: 0 / 492.9 MB, free: 4.07 MB / 330.7 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.002485/0.1228, allocations: 1.112 MB / 494.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.1228, allocations: 8.031 kB / 494.1 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007312/0.1235, allocations: 134.8 kB / 494.2 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009456/0.1245, allocations: 0.5453 MB / 494.7 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.174e-05/0.1246, allocations: 54 kB / 494.8 MB, free: 2.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.1248, allocations: 83.98 kB / 494.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.1265, allocations: 1.084 MB / 496 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/0.1265, allocations: 3.938 kB / 496 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.152e-05/0.1266, allocations: 31.98 kB / 496 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.1268, allocations: 49.98 kB / 496 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.1283, allocations: 0.9367 MB / 497 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006021/0.1344, allocations: 4.227 MB / 0.4895 GB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.1358, allocations: 0.9537 MB / 0.4904 GB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006524/0.1364, allocations: 447.5 kB / 0.4908 GB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-05/0.1365, allocations: 8.562 kB / 0.4908 GB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009842/0.1375, allocations: 0.6358 MB / 0.4914 GB, free: 9.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 3.066e-06/0.1375, allocations: 0 / 0.4914 GB, free: 9.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.004694/0.1422, allocations: 2.912 MB / 0.4943 GB, free: 6.273 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.498e-05/0.1423, allocations: 153.5 kB / 0.4944 GB, free: 6.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005542/0.1429, allocations: 469.7 kB / 0.4949 GB, free: 5.621 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.143, allocations: 53.73 kB / 0.4949 GB, free: 5.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.1433, allocations: 387.6 kB / 0.4953 GB, free: 5.176 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.1435, allocations: 280.1 kB / 0.4956 GB, free: 4.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.1436, allocations: 20 kB / 0.4956 GB, free: 4.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1437, allocations: 382.7 kB / 0.496 GB, free: 4.496 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006167/0.1444, allocations: 390.4 kB / 0.4963 GB, free: 4.117 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007439/0.1451, allocations: 0.6206 MB / 0.4969 GB, free: 3.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000674/0.1458, allocations: 488.4 kB / 0.4974 GB, free: 2.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.1458, allocations: 0 / 0.4974 GB, free: 2.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002911/0.1487, allocations: 1.521 MB / 0.4989 GB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1488, allocations: 33.7 kB / 0.4989 GB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002248/0.151, allocations: 1.16 MB / 0.5 GB, free: 184 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.1525, allocations: 440.6 kB / 0.5005 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.1529, allocations: 123.8 kB / 0.5006 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007039/0.16, allocations: 4.698 MB / 0.5052 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007004/0.1607, allocations: 67.94 kB / 0.5052 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.55e-05/0.1608, allocations: 47.95 kB / 0.5053 GB, free: 10.67 MB / 362.7 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,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * 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 (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: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.000529/0.1614, allocations: 351.1 kB / 0.5056 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.1615, allocations: 67.16 kB / 0.5057 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.1634, allocations: 1.134 MB / 0.5068 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.1634, allocations: 16.08 kB / 0.5068 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.1635, allocations: 0 / 0.5068 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.1635, allocations: 7.984 kB / 0.5068 GB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.1668, allocations: 2.144 MB / 0.5089 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1669, allocations: 0 / 0.5089 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/0.1675, allocations: 123.8 kB / 0.509 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00018/0.1677, allocations: 90.55 kB / 0.5091 GB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/0.1677, allocations: 31.88 kB / 0.5091 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.1704, allocations: 3.91 MB / 0.513 GB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1704, allocations: 8.016 kB / 0.513 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.173, allocations: 1.761 MB / 0.5147 GB, free: 488 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.1732, allocations: 144.3 kB / 0.5148 GB, free: 324 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.1733, allocations: 24.09 kB / 0.5148 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.1738, allocations: 55.94 kB / 0.5149 GB, free: 244 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.174, allocations: 92.75 kB / 0.515 GB, free: 152 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.165e-05/0.1741, allocations: 35.98 kB / 0.515 GB, free: 116 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.1863/0.3604, allocations: 312.3 kB / 0.5153 GB, free: 52.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3604, allocations: 1.562 kB / 0.5153 GB, free: 52.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001345/0.3618, allocations: 256 kB / 0.5156 GB, free: 52.18 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002781/0.3621, allocations: 147.1 kB / 0.5157 GB, free: 52.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.3646, allocations: 1.349 MB / 0.517 GB, free: 51.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3646, allocations: 0 / 0.517 GB, free: 51.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.3656, allocations: 0.9432 MB / 0.5179 GB, free: 51.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007112/0.3664, allocations: 114.8 kB / 0.5181 GB, free: 51.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.3695, allocations: 2.244 MB / 0.5202 GB, free: 50.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006251/0.3701, allocations: 1.037 MB / 0.5213 GB, free: 49.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.3704, allocations: 62.22 kB / 0.5213 GB, free: 49.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3704, allocations: 0.5 kB / 0.5213 GB, free: 49.83 MB / 362.7 MB Notification: Performance of Templates: time 0.02331/0.3937, allocations: 16.37 MB / 0.5373 GB, free: 42.84 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)