Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001547/0.001548, allocations: 190.2 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.359/1.359, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001761/0.001761, allocations: 122.6 kB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1782/0.1782, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.214e-06/7.234e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1287, allocations: 53.24 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4774, allocations: 100.3 MB / 0.5306 GB, free: 7.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.4777, allocations: 85.56 kB / 0.5307 GB, free: 7.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06879/0.5465, allocations: 24.63 MB / 0.5547 GB, free: 2.402 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.238e-05/0.5466, allocations: 28 kB / 0.5548 GB, free: 2.375 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.004131/0.5508, allocations: 1.36 MB / 0.5561 GB, free: 1.008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5508, allocations: 12.03 kB / 0.5561 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.5525, allocations: 202.3 kB / 0.5563 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.5566, allocations: 1.301 MB / 0.5576 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.494e-05/0.5567, allocations: 47.81 kB / 0.5576 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/0.5571, allocations: 63.5 kB / 0.5577 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002556/0.5596, allocations: 1.318 MB / 0.559 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/0.5622, allocations: 1.454 MB / 0.5604 GB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.5623, allocations: 11.84 kB / 0.5604 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.5624, allocations: 7.688 kB / 0.5604 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.984e-05/0.5625, allocations: 69.72 kB / 0.5605 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007981/0.5705, allocations: 5.609 MB / 0.5659 GB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.5717, allocations: 0.9012 MB / 0.5668 GB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009829/0.5727, allocations: 0.813 MB / 0.5676 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.659e-05/0.5728, allocations: 13 kB / 0.5676 GB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.5741, allocations: 1.014 MB / 0.5686 GB, free: 6.695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 4.278e-06/0.5741, allocations: 0 / 0.5686 GB, free: 6.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.005388/0.5795, allocations: 3.559 MB / 0.5721 GB, free: 3.855 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.5796, allocations: 241.2 kB / 0.5723 GB, free: 3.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.5802, allocations: 463.7 kB / 0.5728 GB, free: 3.211 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.959e-05/0.5803, allocations: 43.88 kB / 0.5728 GB, free: 3.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.5806, allocations: 384 kB / 0.5732 GB, free: 2.828 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.5809, allocations: 472.3 kB / 0.5736 GB, free: 2.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.581, allocations: 0 / 0.5736 GB, free: 2.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.5812, allocations: 419.5 kB / 0.574 GB, free: 2.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000874/0.5821, allocations: 0.6712 MB / 0.5747 GB, free: 1.574 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.5832, allocations: 0.9639 MB / 0.5756 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.5844, allocations: 0.7937 MB / 0.5764 GB, free: 15.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.5844, allocations: 4 kB / 0.5764 GB, free: 15.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005094/0.5895, allocations: 2.65 MB / 0.579 GB, free: 13.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.5895, allocations: 12.03 kB / 0.579 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004558/0.5941, allocations: 2.264 MB / 0.5812 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003505/0.5976, allocations: 1.028 MB / 0.5822 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000543/0.5982, allocations: 147.7 kB / 0.5823 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01285/0.611, allocations: 7.453 MB / 0.5896 GB, free: 2.023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.6122, allocations: 51.88 kB / 0.5897 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002831/0.6125, allocations: 55.94 kB / 0.5897 GB, free: 1.918 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 139 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(12,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00052/0.6131, allocations: 244 kB / 0.59 GB, free: 1.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003792/0.6134, allocations: 98.78 kB / 0.5901 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.6165, allocations: 1.704 MB / 0.5917 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.489e-05/0.6166, allocations: 35.98 kB / 0.5918 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.128e-06/0.6166, allocations: 0 / 0.5918 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.6166, allocations: 11.97 kB / 0.5918 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006058/0.6227, allocations: 3.445 MB / 0.5951 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.6227, allocations: 4 kB / 0.5951 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/0.6248, allocations: 364 kB / 0.5955 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.625, allocations: 52.83 kB / 0.5955 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.6251, allocations: 23.97 kB / 0.5956 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.6264, allocations: 1.497 MB / 0.597 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.6264, allocations: 8.094 kB / 0.597 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004205/0.6306, allocations: 3.038 MB / 0.6 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006954/0.6314, allocations: 303.8 kB / 0.6003 GB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002915/0.6317, allocations: 31.89 kB / 0.6003 GB, free: 6.664 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008201/0.6325, allocations: 43.94 kB / 0.6004 GB, free: 6.621 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.6328, allocations: 136.7 kB / 0.6005 GB, free: 6.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.6329, allocations: 43.98 kB / 0.6005 GB, free: 6.445 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005101/0.6334, allocations: 346.9 kB / 0.6009 GB, free: 6.109 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001685/0.6351, allocations: 344 kB / 0.6012 GB, free: 5.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 57 (switch1.switch_a.closed,switch1.switch_b.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004396/0.6356, allocations: 198.7 kB / 0.6014 GB, free: 5.566 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004502/0.6401, allocations: 2.312 MB / 0.6036 GB, free: 3.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.6401, allocations: 0 / 0.6036 GB, free: 3.234 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.642, allocations: 1.315 MB / 0.6049 GB, free: 1.898 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.643, allocations: 113.9 kB / 0.605 GB, free: 1.785 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005386/0.6484, allocations: 2.581 MB / 0.6075 GB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/0.6498, allocations: 1.308 MB / 0.6088 GB, free: 13.79 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.6498, allocations: 0 / 0.6088 GB, free: 13.79 MB / 426.7 MB Notification: Performance of Templates: time 0.03215/0.682, allocations: 17.28 MB / 0.6257 GB, free: 12.55 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)