Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002388/0.002388, allocations: 353.3 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.461/3.461, allocations: 388.9 MB / 406.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003439/0.003439, allocations: 223.8 kB / 451.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.667/0.667, allocations: 76.01 MB / 0.5594 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004459, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06652/0.06699, allocations: 53.24 MB / 0.6736 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Fault): time 0.006724/0.07375, allocations: 7.293 MB / 0.6807 GB, free: 53.5 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0036/0.07737, allocations: 2.472 MB / 0.6832 GB, free: 51.02 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003775/0.07777, allocations: 35.75 kB / 0.6832 GB, free: 50.99 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003926/0.07818, allocations: 174.8 kB / 0.6834 GB, free: 50.82 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.07935, allocations: 0.618 MB / 0.684 GB, free: 50.2 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009427/0.08031, allocations: 403.2 kB / 0.6843 GB, free: 49.8 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.08157, allocations: 1.676 MB / 0.686 GB, free: 48.12 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/0.08301, allocations: 0.9645 MB / 0.6869 GB, free: 47.11 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005342/0.08356, allocations: 0.5056 MB / 0.6874 GB, free: 46.61 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000892/0.08447, allocations: 0.7751 MB / 0.6882 GB, free: 45.83 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.08462, allocations: 52 kB / 0.6882 GB, free: 45.78 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007585/0.08539, allocations: 483.2 kB / 0.6887 GB, free: 45.3 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004532/0.08586, allocations: 0.526 MB / 0.6892 GB, free: 44.78 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.0861, allocations: 237.1 kB / 0.6894 GB, free: 44.54 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.08713, allocations: 1.22 MB / 0.6906 GB, free: 43.32 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.824e-06/0.08715, allocations: 0 / 0.6906 GB, free: 43.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.879e-06/0.08716, allocations: 4 kB / 0.6906 GB, free: 43.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.08719, allocations: 0 / 0.6906 GB, free: 43.31 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002499/0.08969, allocations: 1.446 MB / 0.692 GB, free: 41.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.08974, allocations: 12.81 kB / 0.692 GB, free: 41.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.09084, allocations: 198.3 kB / 0.6922 GB, free: 41.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.09198, allocations: 0.6736 MB / 0.6929 GB, free: 40.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.658e-05/0.09208, allocations: 85.98 kB / 0.693 GB, free: 40.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/0.09244, allocations: 116 kB / 0.6931 GB, free: 40.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.09484, allocations: 1.606 MB / 0.6946 GB, free: 38.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.09489, allocations: 11.78 kB / 0.6947 GB, free: 38.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/0.09505, allocations: 47.97 kB / 0.6947 GB, free: 38.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002385/0.0953, allocations: 73.97 kB / 0.6948 GB, free: 38.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002511/0.09782, allocations: 1.44 MB / 0.6962 GB, free: 37.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008005/0.1058, allocations: 5.797 MB / 0.7018 GB, free: 31.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.1076, allocations: 1.536 MB / 0.7033 GB, free: 29.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.1089, allocations: 0.8093 MB / 0.7041 GB, free: 28.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.812e-05/0.109, allocations: 16.98 kB / 0.7041 GB, free: 28.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001557/0.1105, allocations: 1.107 MB / 0.7052 GB, free: 27.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 4.558e-06/0.1105, allocations: 3.938 kB / 0.7052 GB, free: 27.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=154): time 0.00714/0.1177, allocations: 4.531 MB / 0.7097 GB, free: 23.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.1178, allocations: 213.2 kB / 0.7099 GB, free: 22.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006149/0.1184, allocations: 0.5614 MB / 0.7104 GB, free: 22.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.89e-05/0.1185, allocations: 61.69 kB / 0.7105 GB, free: 22.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.1188, allocations: 456.3 kB / 0.7109 GB, free: 21.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003153/0.1191, allocations: 469.6 kB / 0.7114 GB, free: 21.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-05/0.1192, allocations: 28 kB / 0.7114 GB, free: 21.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1194, allocations: 414.7 kB / 0.7118 GB, free: 20.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.1206, allocations: 0.6676 MB / 0.7124 GB, free: 20.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.1219, allocations: 0.9637 MB / 0.7134 GB, free: 19.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.1232, allocations: 0.8324 MB / 0.7142 GB, free: 18.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.316e-06/0.1232, allocations: 7.891 kB / 0.7142 GB, free: 18.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005828/0.129, allocations: 2.804 MB / 0.7169 GB, free: 15.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.1291, allocations: 63.34 kB / 0.717 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004846/0.1339, allocations: 2.321 MB / 0.7193 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003781/0.1377, allocations: 1.079 MB / 0.7203 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005593/0.1383, allocations: 151.7 kB / 0.7205 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01428/0.1526, allocations: 8.297 MB / 0.7286 GB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007665/0.1534, allocations: 95.8 kB / 0.7286 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.1535, allocations: 52 kB / 0.7287 GB, free: 3.27 MB / 442.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: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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.fault_ab.theta_zero,fault_ab.theta_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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 3 * 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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006357/0.1542, allocations: 488.8 kB / 0.7292 GB, free: 2.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/0.1544, allocations: 102.8 kB / 0.7293 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003051/0.1575, allocations: 1.834 MB / 0.731 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-05/0.1575, allocations: 27.98 kB / 0.7311 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.881e-06/0.1575, allocations: 7.953 kB / 0.7311 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.1576, allocations: 7.969 kB / 0.7311 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2422/0.3998, allocations: 3.294 MB / 0.7343 GB, free: 127.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.886e-06/0.3998, allocations: 2.125 kB / 0.7343 GB, free: 127.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002533/0.4024, allocations: 368.6 kB / 0.7347 GB, free: 127.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.4025, allocations: 29.06 kB / 0.7347 GB, free: 127.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.4027, allocations: 36.64 kB / 0.7347 GB, free: 127.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009342/0.4036, allocations: 1.335 MB / 0.736 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.661e-06/0.4036, allocations: 2.328 kB / 0.736 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005649/0.4093, allocations: 2.905 MB / 0.7389 GB, free: 125.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000586/0.4099, allocations: 292.7 kB / 0.7391 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.4101, allocations: 35.97 kB / 0.7392 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008181/0.411, allocations: 79.11 kB / 0.7393 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/0.4113, allocations: 124.2 kB / 0.7394 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.4115, allocations: 38.02 kB / 0.7394 GB, free: 125.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005602/0.412, allocations: 389 kB / 0.7398 GB, free: 125.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.4121, allocations: 0 / 0.7398 GB, free: 125.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001437/0.4135, allocations: 392.9 kB / 0.7402 GB, free: 125.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 54 (switch1.switch_b.closed,switch1.switch_a.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,fault_ab.v_pos,fault_ab.first,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 105 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003362/0.4139, allocations: 176.3 kB / 0.7403 GB, free: 125.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005414/0.4193, allocations: 2.507 MB / 0.7428 GB, free: 124.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.308e-06/0.4193, allocations: 3.625 kB / 0.7428 GB, free: 124.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.4213, allocations: 1.203 MB / 0.744 GB, free: 124.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.4225, allocations: 163.6 kB / 0.7441 GB, free: 124 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005812/0.4283, allocations: 3.419 MB / 0.7474 GB, free: 122.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000964/0.4293, allocations: 1.235 MB / 0.7487 GB, free: 121.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00106/0.4304, allocations: 272.2 kB / 0.7489 GB, free: 121.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.4308, allocations: 73.91 kB / 0.749 GB, free: 121.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.584e-06/0.4308, allocations: 3.938 kB / 0.749 GB, free: 121.7 MB / 442.7 MB Notification: Performance of Templates: time 0.03496/0.4658, allocations: 16.19 MB / 0.7648 GB, free: 119.2 MB / 442.7 MB