Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.302/2.302, allocations: 233 MB / 245.6 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.111e-05/7.115e-05, allocations: 4 kB / 301.4 MB, free: 7.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1182, allocations: 53.24 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4715/0.5897, allocations: 104.7 MB / 459.3 MB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.5901, allocations: 83.95 kB / 459.4 MB, free: 13.06 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1166/0.7068, allocations: 24.39 MB / 483.8 MB, free: 4.387 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7068, allocations: 0 / 483.8 MB, free: 4.387 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.7069, allocations: 27.94 kB / 483.8 MB, free: 4.359 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.006331/0.7133, allocations: 1.492 MB / 485.3 MB, free: 2.797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.7134, allocations: 8.031 kB / 485.3 MB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005228/0.7139, allocations: 143.2 kB / 485.5 MB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005891/0.7145, allocations: 131.2 kB / 485.6 MB, free: 2.512 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.7263, allocations: 2.486 MB / 488.1 MB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.7265, allocations: 70.75 kB / 488.1 MB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006199/0.7272, allocations: 123.8 kB / 488.3 MB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004502/0.7317, allocations: 1.747 MB / 490 MB, free: 14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/0.7317, allocations: 0 / 490 MB, free: 14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.732, allocations: 36 kB / 490 MB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.994e-05/0.7321, allocations: 30 kB / 490.1 MB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003121/0.7352, allocations: 1.085 MB / 491.2 MB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01642/0.7517, allocations: 5.803 MB / 497 MB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/0.7549, allocations: 1.227 MB / 498.2 MB, free: 5.641 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002599/0.7576, allocations: 0.9759 MB / 499.2 MB, free: 4.664 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001424/0.7578, allocations: 12.78 kB / 499.2 MB, free: 4.652 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003397/0.7612, allocations: 1.343 MB / 0.4888 GB, free: 3.277 MB / 426.7 MB Notification: Performance of pre-optimization done (n=101): time 4.97e-06/0.7612, allocations: 0 / 0.4888 GB, free: 3.277 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.03287/0.7941, allocations: 8.017 MB / 0.4966 GB, free: 11.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001903/0.7944, allocations: 204.9 kB / 0.4968 GB, free: 10.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.7959, allocations: 0.6409 MB / 0.4974 GB, free: 10.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004033/0.7963, allocations: 53.7 kB / 0.4975 GB, free: 10.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005629/0.7969, allocations: 498.5 kB / 0.498 GB, free: 9.688 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008381/0.7977, allocations: 411 kB / 0.4984 GB, free: 9.281 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.7979, allocations: 24 kB / 0.4984 GB, free: 9.258 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.7982, allocations: 374.8 kB / 0.4987 GB, free: 8.883 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002693/0.8009, allocations: 0.9996 MB / 0.4997 GB, free: 7.883 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003088/0.804, allocations: 1.262 MB / 0.5009 GB, free: 6.527 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04221/0.8463, allocations: 7.184 MB / 0.508 GB, free: 15.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.8463, allocations: 4 kB / 0.508 GB, free: 15.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0182/0.8645, allocations: 5.029 MB / 0.5129 GB, free: 10.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.8647, allocations: 63.41 kB / 0.5129 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.8648, allocations: 8 kB / 0.5129 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03168/0.8965, allocations: 6.485 MB / 0.5193 GB, free: 3.648 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.8983, allocations: 171.7 kB / 0.5194 GB, free: 3.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3791/1.277, allocations: 15.6 MB / 0.5347 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/1.279, allocations: 95.59 kB / 0.5348 GB, free: 128.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/1.28, allocations: 149.4 kB / 0.5349 GB, free: 128.9 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.0006608/1.28, allocations: 261.2 kB / 0.5352 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/1.281, allocations: 104.4 kB / 0.5353 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02296/1.304, allocations: 5.049 MB / 0.5402 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.001e-05/1.304, allocations: 9.5 kB / 0.5402 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/1.304, allocations: 1.688 kB / 0.5402 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.191e-05/1.304, allocations: 9.984 kB / 0.5402 GB, free: 128.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02675/1.331, allocations: 6.909 MB / 0.547 GB, free: 127.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.331, allocations: 0 / 0.547 GB, free: 127.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/1.332, allocations: 116.6 kB / 0.5471 GB, free: 127.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03369/1.366, allocations: 6.651 MB / 0.5536 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000665/1.366, allocations: 220.5 kB / 0.5538 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03718/1.404, allocations: 20.84 MB / 0.5741 GB, free: 115.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/1.404, allocations: 3.391 kB / 0.5741 GB, free: 115.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02344/1.427, allocations: 6.02 MB / 0.58 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/1.428, allocations: 411.9 kB / 0.5804 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/1.429, allocations: 187.9 kB / 0.5806 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/1.43, allocations: 76.27 kB / 0.5806 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008452/1.431, allocations: 189.3 kB / 0.5808 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002926/1.431, allocations: 138.1 kB / 0.581 GB, free: 110.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008815/1.432, allocations: 0.4933 MB / 0.5814 GB, free: 109.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.432, allocations: 0 / 0.5814 GB, free: 109.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002761/1.435, allocations: 0.5372 MB / 0.582 GB, free: 109.1 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.0222/1.457, allocations: 6.558 MB / 0.5884 GB, free: 102.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008804/1.466, allocations: 2.958 MB / 0.5913 GB, free: 99.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.466, allocations: 0 / 0.5913 GB, free: 99.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006837/1.473, allocations: 2.316 MB / 0.5935 GB, free: 97.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/1.475, allocations: 236.8 kB / 0.5937 GB, free: 97.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/1.487, allocations: 5.112 MB / 0.5987 GB, free: 92.06 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009073/1.488, allocations: 1.245 MB / 0.6 GB, free: 90.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007873/1.489, allocations: 425.3 kB / 0.6004 GB, free: 90.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.203e-06/1.489, allocations: 4 kB / 0.6004 GB, free: 90.37 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.157/5.646, allocations: 38.08 MB / 0.6375 GB, free: 52.39 MB / 458.7 MB