Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001966/0.001966, allocations: 173.6 kB / 16.76 MB, free: 5.055 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.756/2.756, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.001216/0.001216, allocations: 93.86 kB / 271.3 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2495/0.2495, allocations: 38.08 MB / 357.6 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006474/0.0006475, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4938/0.4944, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.72, allocations: 106.2 MB / 0.5727 GB, free: 12.14 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000387/0.7205, allocations: 95.95 kB / 0.5728 GB, free: 12.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1145/0.835, allocations: 25.17 MB / 0.5974 GB, free: 2.574 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.8351, allocations: 0 / 0.5974 GB, free: 2.574 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.034e-05/0.8352, allocations: 20 kB / 0.5974 GB, free: 2.555 MB / 426.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.005527/0.8407, allocations: 1.485 MB / 0.5989 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.616e-05/0.8408, allocations: 12.03 kB / 0.5989 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.8429, allocations: 199.2 kB / 0.5991 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00334/0.8462, allocations: 0.9474 MB / 0.6 GB, free: 15.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/0.8464, allocations: 82.38 kB / 0.6001 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003556/0.8468, allocations: 108.2 kB / 0.6002 GB, free: 15.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004665/0.8515, allocations: 1.603 MB / 0.6017 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.83e-05/0.8516, allocations: 3.938 kB / 0.6017 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.8518, allocations: 44 kB / 0.6018 GB, free: 13.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/0.852, allocations: 77.95 kB / 0.6018 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004078/0.8561, allocations: 1.405 MB / 0.6032 GB, free: 12.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.8706, allocations: 5.768 MB / 0.6089 GB, free: 6.445 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002948/0.8736, allocations: 1.116 MB / 0.6099 GB, free: 5.316 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002157/0.8758, allocations: 0.8412 MB / 0.6108 GB, free: 4.469 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.8759, allocations: 16.98 kB / 0.6108 GB, free: 4.449 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002755/0.8787, allocations: 1.139 MB / 0.6119 GB, free: 3.277 MB / 442.7 MB Notification: Performance of pre-optimization done (n=161): time 5.69e-06/0.8787, allocations: 0 / 0.6119 GB, free: 3.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.01332/0.8921, allocations: 4.757 MB / 0.6165 GB, free: 14.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001886/0.8923, allocations: 242.8 kB / 0.6168 GB, free: 14.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.8935, allocations: 0.5692 MB / 0.6173 GB, free: 13.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.8937, allocations: 61.69 kB / 0.6174 GB, free: 13.47 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000627/0.8944, allocations: 464.5 kB / 0.6178 GB, free: 13.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007132/0.8951, allocations: 493.2 kB / 0.6183 GB, free: 12.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.8953, allocations: 31.98 kB / 0.6183 GB, free: 12.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003049/0.8956, allocations: 418.7 kB / 0.6187 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.8977, allocations: 0.6989 MB / 0.6194 GB, free: 11.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/0.9001, allocations: 1.007 MB / 0.6204 GB, free: 10.26 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004386/0.9045, allocations: 1.831 MB / 0.6222 GB, free: 8.305 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.9045, allocations: 4 kB / 0.6222 GB, free: 8.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01034/0.9149, allocations: 2.87 MB / 0.625 GB, free: 5.406 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.9151, allocations: 59.41 kB / 0.625 GB, free: 5.336 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008626/0.9237, allocations: 2.376 MB / 0.6274 GB, free: 2.957 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005775/0.9295, allocations: 1.074 MB / 0.6284 GB, free: 1.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.9306, allocations: 151.6 kB / 0.6286 GB, free: 1.734 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02427/0.9549, allocations: 8.23 MB / 0.6366 GB, free: 9.355 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.9566, allocations: 99.8 kB / 0.6367 GB, free: 9.258 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003603/0.957, allocations: 56 kB / 0.6367 GB, free: 9.203 MB / 474.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 () * Number of clocked 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.00164/0.9587, allocations: 0.4919 MB / 0.6372 GB, free: 8.691 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005665/0.9592, allocations: 106.8 kB / 0.6373 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005829/0.9651, allocations: 1.885 MB / 0.6392 GB, free: 6.684 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.773e-05/0.9652, allocations: 47.92 kB / 0.6392 GB, free: 6.637 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.9653, allocations: 0 / 0.6392 GB, free: 6.637 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.856e-05/0.9653, allocations: 3.984 kB / 0.6392 GB, free: 6.633 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.976, allocations: 3.562 MB / 0.6427 GB, free: 2.984 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.976, allocations: 4 kB / 0.6427 GB, free: 2.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003745/0.9798, allocations: 379.7 kB / 0.6431 GB, free: 2.609 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002963/0.9801, allocations: 48.81 kB / 0.6431 GB, free: 2.559 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000215/0.9804, allocations: 39.95 kB / 0.6431 GB, free: 2.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.9826, allocations: 1.564 MB / 0.6447 GB, free: 0.8242 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9826, allocations: 4.031 kB / 0.6447 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2094/1.192, allocations: 2.961 MB / 0.6476 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005748/1.193, allocations: 303.3 kB / 0.6479 GB, free: 136.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/1.193, allocations: 39.36 kB / 0.6479 GB, free: 136.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/1.193, allocations: 83.53 kB / 0.648 GB, free: 136.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/1.194, allocations: 136.5 kB / 0.6481 GB, free: 136.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/1.194, allocations: 40.78 kB / 0.6481 GB, free: 136.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005233/1.194, allocations: 401.9 kB / 0.6485 GB, free: 136.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.194, allocations: 1.031 kB / 0.6485 GB, free: 136.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001347/1.196, allocations: 417.4 kB / 0.6489 GB, free: 136.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Number of clocked states: 0 () * 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.000388/1.196, allocations: 214.6 kB / 0.6491 GB, free: 136.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004593/1.201, allocations: 2.54 MB / 0.6516 GB, free: 136.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.201, allocations: 6.25 kB / 0.6516 GB, free: 136.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/1.203, allocations: 1.232 MB / 0.6528 GB, free: 135.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/1.204, allocations: 162.1 kB / 0.653 GB, free: 135.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/1.209, allocations: 3.579 MB / 0.6565 GB, free: 134.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009731/1.21, allocations: 1.222 MB / 0.6577 GB, free: 134 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004377/1.211, allocations: 84.75 kB / 0.6577 GB, free: 134 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/1.211, allocations: 0 / 0.6577 GB, free: 134 MB / 474.7 MB Notification: Performance of Templates: time 0.02923/1.24, allocations: 19.64 MB / 0.6769 GB, free: 132.8 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)