Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 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.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.001318/0.001318, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.432/1.432, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.03 MB / 329.3 MB, free: 8.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 65.5 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1369, allocations: 58.06 MB / 456.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.008186/0.1452, allocations: 5.941 MB / 462.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.1475, allocations: 1.352 MB / 463.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.1478, allocations: 27.81 kB / 463.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004044/0.1482, allocations: 71.45 kB / 463.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.1489, allocations: 298.7 kB / 463.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.1492, allocations: 119.9 kB / 464 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009571/0.1502, allocations: 1.091 MB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.1505, allocations: 164.3 kB / 465.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.1508, allocations: 270.6 kB / 465.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005419/0.1514, allocations: 378.7 kB / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.577e-05/0.1515, allocations: 24 kB / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.963e-05/0.1516, allocations: 28 kB / 465.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.1518, allocations: 187.5 kB / 466.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.1521, allocations: 246.7 kB / 466.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005062/0.1526, allocations: 0.5217 MB / 466.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1526, allocations: 8 kB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1526, allocations: 0 / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1526, allocations: 0 / 466.8 MB, free: 13.75 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001578/0.1542, allocations: 0.8308 MB / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1543, allocations: 15.97 kB / 467.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.1544, allocations: 56.28 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006451/0.155, allocations: 416.6 kB / 468.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.1551, allocations: 37.11 kB / 468.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-05/0.1551, allocations: 35.91 kB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.1559, allocations: 490.5 kB / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1559, allocations: 0 / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.156, allocations: 16 kB / 468.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.1561, allocations: 32.62 kB / 468.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005927/0.1567, allocations: 366.6 kB / 469.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.159, allocations: 1.707 MB / 470.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006408/0.1596, allocations: 409.7 kB / 471.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004892/0.1601, allocations: 233.6 kB / 471.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.1602, allocations: 4 kB / 471.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004387/0.1606, allocations: 283.6 kB / 471.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.803e-06/0.1606, allocations: 3.938 kB / 471.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002365/0.163, allocations: 1.401 MB / 473.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.1631, allocations: 140.6 kB / 473.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.1635, allocations: 377.5 kB / 473.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.1635, allocations: 37.7 kB / 473.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.1637, allocations: 256 kB / 473.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.833e-05/0.1638, allocations: 106.5 kB / 474 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.164, allocations: 82.25 kB / 474.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1641, allocations: 354.8 kB / 474.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1644, allocations: 129.1 kB / 474.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.1647, allocations: 268.1 kB / 474.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005485/0.1652, allocations: 449.4 kB / 475.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.1652, allocations: 4 kB / 475.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008986/0.1661, allocations: 0.546 MB / 475.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.1662, allocations: 37.7 kB / 475.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.1662, allocations: 4.469 kB / 475.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002869/0.1665, allocations: 81.66 kB / 475.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.1668, allocations: 71.84 kB / 476 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.1691, allocations: 2.798 MB / 478.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.1694, allocations: 19.98 kB / 478.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.1694, allocations: 23.98 kB / 478.9 MB, free: 0.8555 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003257/0.1698, allocations: 235.3 kB / 479.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.1699, allocations: 39.62 kB / 479.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008991/0.1708, allocations: 0.5006 MB / 479.6 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1708, allocations: 8 kB / 479.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1708, allocations: 0 / 479.6 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1708, allocations: 3.984 kB / 479.6 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.1723, allocations: 1.057 MB / 480.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1724, allocations: 0 / 480.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.1726, allocations: 47.91 kB / 480.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002564/0.1728, allocations: 89.53 kB / 480.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.1729, allocations: 19.88 kB / 480.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.1752, allocations: 2.792 MB / 483.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1752, allocations: 0 / 483.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.1764, allocations: 0.7832 MB / 484.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1765, allocations: 116.6 kB / 484.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.239e-05/0.1766, allocations: 8 kB / 484.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.1768, allocations: 27.91 kB / 484.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.177, allocations: 31.95 kB / 484.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.177, allocations: 12.06 kB / 484.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003229/0.1773, allocations: 263.2 kB / 484.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1773, allocations: 0 / 484.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006081/0.1779, allocations: 112 kB / 485 MB, free: 10.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0002151/0.1782, allocations: 126.6 kB / 485.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.1792, allocations: 0.6447 MB / 485.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1793, allocations: 0 / 485.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007544/0.18, allocations: 498.1 kB / 486.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.1807, allocations: 89.45 kB / 486.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.1825, allocations: 1.146 MB / 487.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.183, allocations: 0.8665 MB / 488.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000276/0.1833, allocations: 75.34 kB / 488.4 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.826e-05/0.1834, allocations: 27.44 kB / 488.4 MB, free: 6.703 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1834, allocations: 0 / 488.4 MB, free: 6.703 MB / 366.1 MB Notification: Performance of Templates: time 0.01115/0.1946, allocations: 5.057 MB / 493.5 MB, free: 1.684 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)