Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.23/2.23, allocations: 233 MB / 246.1 MB, free: 14.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.643e-05/3.649e-05, allocations: 4 kB / 302.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 53.24 MB / 355.5 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.453/0.5595, allocations: 104.7 MB / 460.2 MB, free: 12.86 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.5599, allocations: 91.95 kB / 460.3 MB, free: 12.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1142/0.6741, allocations: 24.39 MB / 484.7 MB, free: 4.094 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6741, allocations: 0 / 484.7 MB, free: 4.094 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.848e-05/0.6743, allocations: 31.94 kB / 484.8 MB, free: 4.062 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005792/0.6801, allocations: 1.484 MB / 486.2 MB, free: 2.508 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.6801, allocations: 13.61 kB / 486.3 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004489/0.6806, allocations: 139.2 kB / 486.4 MB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.6811, allocations: 135.2 kB / 486.5 MB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.6926, allocations: 2.482 MB / 489 MB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.6928, allocations: 74 kB / 489.1 MB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005253/0.6933, allocations: 119.9 kB / 489.2 MB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004289/0.6976, allocations: 1.743 MB / 490.9 MB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.6977, allocations: 0 / 490.9 MB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000223/0.6979, allocations: 43.98 kB / 491 MB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.29e-05/0.698, allocations: 30 kB / 491 MB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003005/0.701, allocations: 1.085 MB / 492.1 MB, free: 12.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.7159, allocations: 5.8 MB / 497.9 MB, free: 6.617 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002804/0.7187, allocations: 1.227 MB / 499.1 MB, free: 5.352 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/0.721, allocations: 0.9798 MB / 0.4884 GB, free: 4.371 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.7211, allocations: 12.78 kB / 0.4884 GB, free: 4.359 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00302/0.7241, allocations: 1.336 MB / 0.4897 GB, free: 2.992 MB / 426.7 MB Notification: Performance of pre-optimization done (n=101): time 4.067e-06/0.7241, allocations: 3.938 kB / 0.4897 GB, free: 2.988 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: voltage2.theta Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=104): time 0.03142/0.7556, allocations: 8.018 MB / 0.4975 GB, free: 10.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.7558, allocations: 204.9 kB / 0.4977 GB, free: 10.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.7572, allocations: 0.637 MB / 0.4984 GB, free: 9.949 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003726/0.7576, allocations: 53.7 kB / 0.4984 GB, free: 9.891 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005462/0.7581, allocations: 496 kB / 0.4989 GB, free: 9.398 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006462/0.7588, allocations: 407 kB / 0.4993 GB, free: 8.996 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.759, allocations: 32 kB / 0.4993 GB, free: 8.965 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.7592, allocations: 361.9 kB / 0.4996 GB, free: 8.605 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/0.7617, allocations: 1.004 MB / 0.5006 GB, free: 7.602 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002729/0.7644, allocations: 1.266 MB / 0.5019 GB, free: 6.242 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04774/0.8122, allocations: 8.624 MB / 0.5103 GB, free: 13.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.8123, allocations: 0 / 0.5103 GB, free: 13.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01706/0.8293, allocations: 5.087 MB / 0.5152 GB, free: 8.441 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.768e-05/0.8295, allocations: 63.39 kB / 0.5153 GB, free: 8.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.8295, allocations: 8 kB / 0.5153 GB, free: 8.359 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02689/0.8564, allocations: 6.473 MB / 0.5216 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.8577, allocations: 179.7 kB / 0.5218 GB, free: 1.703 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3313/1.189, allocations: 15.6 MB / 0.537 GB, free: 129.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/1.191, allocations: 96.38 kB / 0.5371 GB, free: 129.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003566/1.191, allocations: 149.7 kB / 0.5373 GB, free: 129.1 MB / 458.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 124 * Array equations: 0 * 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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006026/1.192, allocations: 262.2 kB / 0.5375 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003591/1.192, allocations: 107.8 kB / 0.5376 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0228/1.215, allocations: 5.046 MB / 0.5426 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-05/1.215, allocations: 10.22 kB / 0.5426 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/1.215, allocations: 1.375 kB / 0.5426 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.701e-05/1.215, allocations: 6.891 kB / 0.5426 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02617/1.241, allocations: 6.905 MB / 0.5493 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/1.241, allocations: 2.75 kB / 0.5493 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/1.242, allocations: 121.9 kB / 0.5494 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03385/1.276, allocations: 6.645 MB / 0.5559 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006543/1.277, allocations: 217.2 kB / 0.5561 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0369/1.314, allocations: 20.84 MB / 0.5765 GB, free: 114.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.314, allocations: 0 / 0.5765 GB, free: 114.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02318/1.337, allocations: 6.034 MB / 0.5824 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.338, allocations: 407.7 kB / 0.5828 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005915/1.339, allocations: 181 kB / 0.5829 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/1.34, allocations: 78.72 kB / 0.583 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008388/1.341, allocations: 184.4 kB / 0.5832 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002834/1.342, allocations: 150.2 kB / 0.5833 GB, free: 108.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008246/1.342, allocations: 0.4941 MB / 0.5838 GB, free: 108 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.342, allocations: 1.594 kB / 0.5838 GB, free: 108 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002537/1.345, allocations: 0.5307 MB / 0.5843 GB, free: 107.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02206/1.367, allocations: 6.561 MB / 0.5907 GB, free: 101 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008699/1.376, allocations: 2.96 MB / 0.5936 GB, free: 97.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/1.376, allocations: 0 / 0.5936 GB, free: 97.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006717/1.383, allocations: 2.32 MB / 0.5959 GB, free: 95.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/1.384, allocations: 228.1 kB / 0.5961 GB, free: 95.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.395, allocations: 5.025 MB / 0.601 GB, free: 90.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008851/1.396, allocations: 1.248 MB / 0.6022 GB, free: 89.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001054/1.398, allocations: 205.8 kB / 0.6024 GB, free: 89.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006513/1.398, allocations: 419.3 kB / 0.6028 GB, free: 88.66 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/1.398, allocations: 4 kB / 0.6028 GB, free: 88.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/1.507, allocations: 48.07 MB / 0.6498 GB, free: 40.71 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/1.507, allocations: 186.9 kB / 0.65 GB, free: 40.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.025/5.532, allocations: 3.938 kB / 0.65 GB, free: 40.48 MB / 458.7 MB