Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001664/0.001664, allocations: 188.1 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001134/0.001134, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.272/0.272, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004694/0.0004695, allocations: 20 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1144, allocations: 56.33 MB / 479 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00839/0.1229, allocations: 5.067 MB / 484.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003575/0.1265, allocations: 1.346 MB / 485.5 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005052/0.1271, allocations: 19.88 kB / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.1275, allocations: 95.41 kB / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1286, allocations: 259.1 kB / 485.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.1292, allocations: 147.7 kB / 486 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008089/0.1301, allocations: 383.2 kB / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.1305, allocations: 135.2 kB / 486.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005605/0.131, allocations: 231.1 kB / 486.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005843/0.1316, allocations: 239.2 kB / 486.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.437e-05/0.1317, allocations: 20 kB / 486.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.1319, allocations: 20 kB / 487 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.1321, allocations: 163.6 kB / 487.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.1323, allocations: 125.4 kB / 487.2 MB, free: 9.766 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.133, allocations: 402.9 kB / 487.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.133, allocations: 0 / 487.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.133, allocations: 0 / 487.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.133, allocations: 0 / 487.6 MB, free: 9.371 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00206/0.1351, allocations: 0.7568 MB / 488.4 MB, free: 8.562 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1351, allocations: 12.03 kB / 488.4 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.1353, allocations: 67.22 kB / 488.5 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000993/0.1363, allocations: 415.4 kB / 488.9 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.042e-05/0.1364, allocations: 29 kB / 488.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.1365, allocations: 36 kB / 488.9 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.1377, allocations: 486.5 kB / 489.4 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.1378, allocations: 0 / 489.4 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.1378, allocations: 19.98 kB / 489.4 MB, free: 7.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001929/0.1381, allocations: 32.58 kB / 489.5 MB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.1391, allocations: 362.6 kB / 489.8 MB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003825/0.1429, allocations: 1.719 MB / 491.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.144, allocations: 407.2 kB / 491.9 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.1441, allocations: 8.047 kB / 491.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00066/0.1448, allocations: 287.5 kB / 492.2 MB, free: 4.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 3.056e-06/0.1448, allocations: 4 kB / 492.2 MB, free: 4.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.00387/0.1487, allocations: 1.483 MB / 493.7 MB, free: 2.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1488, allocations: 140.5 kB / 493.9 MB, free: 2.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.1495, allocations: 377.6 kB / 494.2 MB, free: 2.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.1496, allocations: 33.7 kB / 494.3 MB, free: 2.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.1498, allocations: 290.5 kB / 494.5 MB, free: 2.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.15, allocations: 114.4 kB / 494.7 MB, free: 1.906 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.15, allocations: 12 kB / 494.7 MB, free: 1.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1502, allocations: 326.8 kB / 495 MB, free: 1.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.1506, allocations: 133 kB / 495.1 MB, free: 1.438 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.1511, allocations: 256.1 kB / 495.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004805/0.1516, allocations: 185.4 kB / 495.5 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1516, allocations: 3.938 kB / 495.5 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00145/0.1531, allocations: 0.5193 MB / 496.1 MB, free: 412 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/0.1532, allocations: 29.7 kB / 496.1 MB, free: 376 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1532, allocations: 4 kB / 496.1 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004492/0.1537, allocations: 86.17 kB / 496.2 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/0.1542, allocations: 71.84 kB / 496.3 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/0.1576, allocations: 2.822 MB / 499.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.1582, allocations: 23.98 kB / 499.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.1583, allocations: 20 kB / 499.1 MB, free: 13.07 MB / 346.7 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,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening,$whenCondition1,$PRE.relay.cnt,relay.cnt) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004306/0.1588, allocations: 239.5 kB / 499.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/0.1589, allocations: 43.52 kB / 499.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.1603, allocations: 0.5006 MB / 499.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.1603, allocations: 4 kB / 499.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1603, allocations: 0 / 499.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.1604, allocations: 7.891 kB / 499.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.1629, allocations: 1.068 MB / 0.4892 GB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.163, allocations: 4 kB / 0.4892 GB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.1633, allocations: 35.92 kB / 0.4893 GB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.1638, allocations: 85.64 kB / 0.4894 GB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.1638, allocations: 16.02 kB / 0.4894 GB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003345/0.1672, allocations: 2.814 MB / 0.4921 GB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1673, allocations: 0 / 0.4921 GB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.1693, allocations: 0.8106 MB / 0.4929 GB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.1695, allocations: 116.6 kB / 0.493 GB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.1696, allocations: 11.95 kB / 0.493 GB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.1701, allocations: 24.05 kB / 0.4931 GB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.1703, allocations: 39.94 kB / 0.4931 GB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.1703, allocations: 8 kB / 0.4931 GB, free: 6.809 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004642/0.1708, allocations: 259.2 kB / 0.4933 GB, free: 6.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1708, allocations: 0 / 0.4933 GB, free: 6.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008089/0.1716, allocations: 112 kB / 0.4935 GB, free: 6.449 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0002468/0.1719, allocations: 123.2 kB / 0.4936 GB, free: 6.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.1737, allocations: 0.634 MB / 0.4942 GB, free: 5.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1738, allocations: 8.062 kB / 0.4942 GB, free: 5.641 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.1749, allocations: 0.4931 MB / 0.4947 GB, free: 5.109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.1757, allocations: 77.59 kB / 0.4948 GB, free: 5.035 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.1784, allocations: 1.265 MB / 0.496 GB, free: 3.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006184/0.179, allocations: 0.8781 MB / 0.4968 GB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.1793, allocations: 31.44 kB / 0.4969 GB, free: 2.797 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1793, allocations: 0 / 0.4969 GB, free: 2.797 MB / 346.7 MB Notification: Performance of Templates: time 0.01862/0.1979, allocations: 8.861 MB / 0.5055 GB, free: 9.926 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)