Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 111.1 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.001231/0.001231, 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.421/1.421, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1804/0.1804, allocations: 38.02 MB / 329.3 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 57.42 kB / 398.1 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1369, allocations: 58.06 MB / 456.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.009028/0.146, allocations: 7.926 MB / 464.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.1501, allocations: 1.901 MB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.1513, allocations: 43.69 kB / 466 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008089/0.1521, allocations: 127.2 kB / 466.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001683/0.1539, allocations: 426.1 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008846/0.1548, allocations: 259.7 kB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.1568, allocations: 1.734 MB / 468.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.1572, allocations: 249.9 kB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006889/0.1579, allocations: 430 kB / 469.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007576/0.1586, allocations: 0.5683 MB / 469.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.994e-05/0.1588, allocations: 44 kB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.1589, allocations: 40 kB / 469.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.1592, allocations: 319.1 kB / 470.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003929/0.1596, allocations: 394 kB / 470.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007702/0.1604, allocations: 0.8837 MB / 471.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1604, allocations: 0 / 471.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1604, allocations: 0 / 471.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1605, allocations: 4 kB / 471.4 MB, free: 9.117 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002141/0.1626, allocations: 1.165 MB / 472.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1626, allocations: 8.031 kB / 472.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1628, allocations: 91.89 kB / 472.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008754/0.1637, allocations: 0.5608 MB / 473.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.741e-05/0.1638, allocations: 61.28 kB / 473.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.1639, allocations: 67.91 kB / 473.4 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.1652, allocations: 0.8396 MB / 474.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1653, allocations: 4 kB / 474.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.1654, allocations: 28 kB / 474.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002012/0.1656, allocations: 57.25 kB / 474.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1666, allocations: 0.61 MB / 474.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.1708, allocations: 2.974 MB / 477.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.172, allocations: 0.9223 MB / 478.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006118/0.1726, allocations: 427 kB / 479.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.1727, allocations: 4.562 kB / 479.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.1739, allocations: 0.6389 MB / 479.9 MB, free: 288 kB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 3.226e-06/0.1739, allocations: 0 / 479.9 MB, free: 288 kB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.005427/0.1794, allocations: 2.583 MB / 482.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.1795, allocations: 204.6 kB / 482.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006738/0.1802, allocations: 486 kB / 483.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.147e-05/0.1803, allocations: 53.69 kB / 483.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.1806, allocations: 340.1 kB / 483.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.1809, allocations: 236.9 kB / 483.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.1811, allocations: 170.6 kB / 483.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1813, allocations: 382.8 kB / 484.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.1819, allocations: 321.8 kB / 484.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007467/0.1826, allocations: 0.4993 MB / 485.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.1837, allocations: 0.867 MB / 486 MB, free: 9.805 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1838, allocations: 7.938 kB / 486 MB, free: 9.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001874/0.1856, allocations: 1.099 MB / 487.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.499e-05/0.1857, allocations: 59.41 kB / 487.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1858, allocations: 4 kB / 487.2 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/0.1863, allocations: 145.9 kB / 487.3 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008383/0.1872, allocations: 211.7 kB / 487.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003512/0.1907, allocations: 3.099 MB / 490.6 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.1913, allocations: 43.97 kB / 490.6 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.1914, allocations: 39.98 kB / 490.7 MB, free: 4.793 MB / 366.1 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,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pg.t0,$PRE.fault_Ab.fault_pg.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,fault_Ab.fault_pg.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pp.on,fault_Ab.first,$PRE.fault_Ab.first,fault_Ab.v_pos,$PRE.fault_Ab.v_pos,fault_Ab.t_zero,$PRE.fault_Ab.t_zero,switch2.switch_2.closed,switch2.switch_2.open,$PRE.switch2.switch_2.open,switch2.switch_2.arc,$PRE.switch2.switch_2.arc,switch2.switch_1.closed,switch2.switch_1.open,$PRE.switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_2.closed,switch1.switch_2.open,$PRE.switch1.switch_2.open,switch1.switch_2.arc,$PRE.switch1.switch_2.arc,switch1.switch_1.closed,switch1.switch_1.open,$PRE.switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17) * 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 (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.0005357/0.1919, allocations: 358.2 kB / 491 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.192, allocations: 67.16 kB / 491.1 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.194, allocations: 1.031 MB / 492.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1941, allocations: 12 kB / 492.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1941, allocations: 0 / 492.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.1941, allocations: 3.984 kB / 492.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/0.1971, allocations: 1.925 MB / 494.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.1971, allocations: 0 / 494.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000688/0.1978, allocations: 159.8 kB / 494.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006533/0.1985, allocations: 177.4 kB / 494.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.435e-05/0.1986, allocations: 19.98 kB / 494.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0032/0.2018, allocations: 3.099 MB / 497.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2018, allocations: 3.938 kB / 497.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.2045, allocations: 1.571 MB / 499.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/0.2048, allocations: 204.1 kB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.205, allocations: 35.92 kB / 499.3 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003778/0.2054, allocations: 39.97 kB / 499.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.2056, allocations: 80.53 kB / 499.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.2057, allocations: 31.98 kB / 499.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004752/0.2062, allocations: 330.8 kB / 499.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2062, allocations: 3.938 kB / 499.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008563/0.2071, allocations: 216 kB / 0.4883 GB, free: 11 MB / 382.1 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 (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.0002791/0.2074, allocations: 159 kB / 0.4884 GB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.2096, allocations: 1.22 MB / 0.4896 GB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2096, allocations: 0 / 0.4896 GB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.2112, allocations: 0.8713 MB / 0.4905 GB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000848/0.212, allocations: 145.8 kB / 0.4906 GB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.2156, allocations: 2.04 MB / 0.4926 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006527/0.2162, allocations: 1.001 MB / 0.4936 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000468/0.2167, allocations: 142 kB / 0.4937 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.2169, allocations: 59.42 kB / 0.4938 GB, free: 5.195 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2169, allocations: 0 / 0.4938 GB, free: 5.195 MB / 382.1 MB Notification: Performance of Templates: time 0.01669/0.2336, allocations: 9.333 MB / 0.5029 GB, free: 11.93 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)