Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001619, allocations: 184.4 kB / 15.77 MB, free: 6.375 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.122/2.122, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001101/0.001101, allocations: 98.84 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.2798/0.2798, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004668/0.000467, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 56.34 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.01133/0.1252, allocations: 6.755 MB / 485.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.1306, allocations: 1.9 MB / 487.7 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009385/0.1316, allocations: 43.69 kB / 487.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007195/0.1324, allocations: 147 kB / 487.9 MB, free: 9.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001822/0.1342, allocations: 378.8 kB / 488.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1355, allocations: 279.4 kB / 488.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.1372, allocations: 0.6042 MB / 489.1 MB, free: 7.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005583/0.1378, allocations: 209 kB / 489.3 MB, free: 7.707 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.1389, allocations: 370.6 kB / 489.7 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009851/0.1399, allocations: 382.7 kB / 490.1 MB, free: 6.969 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.1401, allocations: 36 kB / 490.1 MB, free: 6.934 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.1403, allocations: 32 kB / 490.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004671/0.1408, allocations: 291.2 kB / 490.4 MB, free: 6.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002976/0.1411, allocations: 173.3 kB / 490.6 MB, free: 6.441 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.1423, allocations: 0.6818 MB / 491.3 MB, free: 5.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1423, allocations: 3.938 kB / 491.3 MB, free: 5.754 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1424, allocations: 4 kB / 491.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.129e-05/0.1424, allocations: 0 / 491.3 MB, free: 5.75 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003215/0.1456, allocations: 1.036 MB / 492.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.1457, allocations: 8.031 kB / 492.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003632/0.1461, allocations: 94.91 kB / 492.4 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.1477, allocations: 0.5407 MB / 493 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.1478, allocations: 53.3 kB / 493 MB, free: 3.914 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.148, allocations: 64 kB / 493.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.1503, allocations: 0.8358 MB / 493.9 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.1503, allocations: 0 / 493.9 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.1504, allocations: 27.98 kB / 493.9 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003588/0.1508, allocations: 53.27 kB / 494 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.1527, allocations: 0.6256 MB / 494.6 MB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006889/0.1596, allocations: 2.99 MB / 497.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.1616, allocations: 0.9269 MB / 498.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.89e-05/0.1617, allocations: 4.625 kB / 498.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0016/0.1633, allocations: 0.6389 MB / 499.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 4.108e-06/0.1633, allocations: 0 / 499.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=82): time 0.00794/0.1713, allocations: 2.775 MB / 0.4902 GB, free: 10.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.1715, allocations: 204.6 kB / 0.4904 GB, free: 10.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000888/0.1724, allocations: 482 kB / 0.4908 GB, free: 9.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.1726, allocations: 53.69 kB / 0.4909 GB, free: 9.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.1729, allocations: 370.7 kB / 0.4912 GB, free: 9.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.1733, allocations: 236.9 kB / 0.4915 GB, free: 9.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.1734, allocations: 24.03 kB / 0.4915 GB, free: 9.113 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1736, allocations: 346.8 kB / 0.4918 GB, free: 8.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000971/0.1746, allocations: 317.8 kB / 0.4921 GB, free: 8.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.1758, allocations: 0.4943 MB / 0.4926 GB, free: 7.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.1768, allocations: 398.2 kB / 0.493 GB, free: 7.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1769, allocations: 7.953 kB / 0.493 GB, free: 7.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003108/0.18, allocations: 1.052 MB / 0.494 GB, free: 6.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.469e-05/0.1801, allocations: 59.41 kB / 0.4941 GB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.1801, allocations: 4 kB / 0.4941 GB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008794/0.181, allocations: 145.9 kB / 0.4942 GB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.1828, allocations: 211.7 kB / 0.4944 GB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004992/0.1878, allocations: 3.123 MB / 0.4975 GB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/0.1888, allocations: 51.91 kB / 0.4975 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.837e-05/0.1889, allocations: 36 kB / 0.4976 GB, free: 2.504 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * 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.0007397/0.1897, allocations: 358.3 kB / 0.4979 GB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.1899, allocations: 71.16 kB / 0.498 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002984/0.1929, allocations: 1.05 MB / 0.499 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/0.193, allocations: 8 kB / 0.499 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.193, allocations: 3.984 kB / 0.499 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.193, allocations: 0 / 0.499 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00528/0.1983, allocations: 1.937 MB / 0.5009 GB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.1984, allocations: 0 / 0.5009 GB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.1998, allocations: 159.8 kB / 0.501 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.201, allocations: 165.4 kB / 0.5012 GB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.2012, allocations: 27.97 kB / 0.5012 GB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004954/0.2061, allocations: 3.122 MB / 0.5043 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2062, allocations: 256 / 0.5043 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004446/0.2107, allocations: 1.613 MB / 0.5059 GB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005841/0.2113, allocations: 208.2 kB / 0.5061 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.2115, allocations: 31.98 kB / 0.5061 GB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.2122, allocations: 39.95 kB / 0.5061 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/0.2126, allocations: 92.47 kB / 0.5062 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.2127, allocations: 31.97 kB / 0.5062 GB, free: 9.129 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006433/0.2134, allocations: 338.8 kB / 0.5066 GB, free: 8.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2134, allocations: 0 / 0.5066 GB, free: 8.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001152/0.2146, allocations: 208 kB / 0.5068 GB, free: 8.594 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_1.closed,switch1.switch_2.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_2.open,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * 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.0003306/0.2149, allocations: 162.9 kB / 0.5069 GB, free: 8.426 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.2186, allocations: 1.216 MB / 0.5081 GB, free: 7.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.2187, allocations: 4.062 kB / 0.5081 GB, free: 7.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/0.2214, allocations: 0.8667 MB / 0.509 GB, free: 6.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.2227, allocations: 137.9 kB / 0.5091 GB, free: 6.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006065/0.2288, allocations: 2.144 MB / 0.5112 GB, free: 3.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008912/0.2298, allocations: 1.001 MB / 0.5122 GB, free: 2.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/0.2302, allocations: 63.44 kB / 0.5122 GB, free: 2.828 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.2303, allocations: 0 / 0.5122 GB, free: 2.828 MB / 362.7 MB Notification: Performance of Templates: time 0.3328/0.5631, allocations: 14.77 MB / 0.5266 GB, free: 47.96 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)