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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001075/0.001075, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.261/1.261, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001831/0.001831, allocations: 129.4 kB / 256.6 MB, free: 4.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1651/0.1651, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1114, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.008786/0.1202, allocations: 7.914 MB / 461.9 MB, free: 8.605 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1235, allocations: 1.953 MB / 463.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004634/0.124, allocations: 39.75 kB / 463.9 MB, free: 6.605 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004827/0.1245, allocations: 135.1 kB / 464 MB, free: 6.473 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007864/0.1254, allocations: 418.1 kB / 464.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005322/0.1259, allocations: 255.7 kB / 464.7 MB, free: 5.812 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.127, allocations: 1.745 MB / 466.4 MB, free: 4.062 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002963/0.1273, allocations: 245.9 kB / 466.7 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000426/0.1277, allocations: 441.9 kB / 467.1 MB, free: 3.387 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005892/0.1283, allocations: 0.5722 MB / 467.7 MB, free: 2.812 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.859e-05/0.1284, allocations: 40 kB / 467.7 MB, free: 2.773 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.1285, allocations: 44 kB / 467.8 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.1288, allocations: 311.2 kB / 468.1 MB, free: 2.426 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.1291, allocations: 397.9 kB / 468.5 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.1296, allocations: 0.8993 MB / 469.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1296, allocations: 0 / 469.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1296, allocations: 0 / 469.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1296, allocations: 0 / 469.4 MB, free: 1.133 MB / 314.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.001907/0.1316, allocations: 1.149 MB / 470.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1316, allocations: 16.03 kB / 470.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.1318, allocations: 87.91 kB / 470.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000915/0.1327, allocations: 0.5723 MB / 471.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.1327, allocations: 49.31 kB / 471.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.1329, allocations: 67.98 kB / 471.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.134, allocations: 0.828 MB / 472.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.134, allocations: 3.938 kB / 472.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.95e-05/0.1341, allocations: 31.98 kB / 472.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001737/0.1343, allocations: 57.25 kB / 472.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009109/0.1352, allocations: 0.6101 MB / 472.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003792/0.139, allocations: 2.986 MB / 475.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1401, allocations: 0.9108 MB / 476.7 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.1407, allocations: 415.3 kB / 477.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.1407, allocations: 12.56 kB / 477.1 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008846/0.1416, allocations: 0.6349 MB / 477.8 MB, free: 8.324 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.855e-06/0.1416, allocations: 4 kB / 477.8 MB, free: 8.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=82): time 0.004169/0.1458, allocations: 2.579 MB / 480.4 MB, free: 5.602 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.1459, allocations: 212.4 kB / 480.6 MB, free: 5.352 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004702/0.1464, allocations: 486 kB / 481 MB, free: 4.867 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.1465, allocations: 49.7 kB / 481.1 MB, free: 4.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.1467, allocations: 344.1 kB / 481.4 MB, free: 4.469 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.1469, allocations: 236.9 kB / 481.7 MB, free: 4.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.1471, allocations: 170.5 kB / 481.8 MB, free: 4.062 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1473, allocations: 382.8 kB / 482.2 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.1477, allocations: 325.8 kB / 482.5 MB, free: 3.359 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005749/0.1483, allocations: 0.4938 MB / 483 MB, free: 2.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009982/0.1493, allocations: 0.8748 MB / 483.9 MB, free: 1.836 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1494, allocations: 4 kB / 483.9 MB, free: 1.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001633/0.151, allocations: 1.099 MB / 485 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.151, allocations: 59.41 kB / 485 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.1511, allocations: 7.984 kB / 485 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005208/0.1516, allocations: 141.9 kB / 485.2 MB, free: 492 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007997/0.1524, allocations: 215.7 kB / 485.4 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.1553, allocations: 3.095 MB / 488.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.1557, allocations: 47.95 kB / 488.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.1558, allocations: 32 kB / 488.6 MB, free: 12.83 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,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.0003942/0.1562, allocations: 354.4 kB / 488.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1563, allocations: 75.14 kB / 489 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.1579, allocations: 1.019 MB / 490 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.1579, allocations: 8 kB / 490 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1579, allocations: 8 kB / 490 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.1579, allocations: 3.984 kB / 490 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.1607, allocations: 1.936 MB / 492 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1607, allocations: 0 / 492 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006261/0.1614, allocations: 159.8 kB / 492.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006069/0.162, allocations: 169.5 kB / 492.3 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.409e-05/0.162, allocations: 23.98 kB / 492.3 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/0.1648, allocations: 3.083 MB / 495.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1648, allocations: 0 / 495.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/0.178, allocations: 10.05 MB / 0.4936 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.1783, allocations: 204.2 kB / 0.4938 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.761e-05/0.1784, allocations: 32.14 kB / 0.4938 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.1787, allocations: 39.97 kB / 0.4939 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.1789, allocations: 80.53 kB / 0.4939 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/0.179, allocations: 31.98 kB / 0.494 GB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003317/0.1794, allocations: 330.8 kB / 0.4943 GB, free: 10.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1794, allocations: 0 / 0.4943 GB, free: 10.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009268/0.1803, allocations: 311.9 kB / 0.4946 GB, free: 10.05 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 (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.0001953/0.1805, allocations: 155.2 kB / 0.4947 GB, free: 9.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.1824, allocations: 1.22 MB / 0.4959 GB, free: 8.617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1825, allocations: 0 / 0.4959 GB, free: 8.617 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.1838, allocations: 0.8713 MB / 0.4968 GB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.1846, allocations: 145.8 kB / 0.4969 GB, free: 7.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00419/0.1888, allocations: 2.919 MB / 0.4998 GB, free: 4.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.1894, allocations: 1.013 MB / 0.5007 GB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004794/0.1899, allocations: 146 kB / 0.5009 GB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.1901, allocations: 63.36 kB / 0.5009 GB, free: 3.285 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1901, allocations: 0 / 0.5009 GB, free: 3.285 MB / 362.7 MB Notification: Performance of Templates: time 0.2126/0.4027, allocations: 12.05 MB / 0.5127 GB, free: 63.12 MB / 362.7 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)