Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_DoublelLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.537/2.537, allocations: 233 MB / 246.1 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.781e-05/5.791e-05, allocations: 13.86 kB / 302.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1415, allocations: 53.22 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5227/0.6642, allocations: 104.7 MB / 460.2 MB, free: 12.95 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003386/0.6646, allocations: 89.02 kB / 460.3 MB, free: 12.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1227/0.7874, allocations: 24.39 MB / 484.7 MB, free: 4.195 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.7875, allocations: 4 kB / 484.7 MB, free: 4.191 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001387/0.7876, allocations: 20 kB / 484.7 MB, free: 4.172 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.008065/0.7957, allocations: 1.488 MB / 486.2 MB, free: 2.613 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.7958, allocations: 8.031 kB / 486.2 MB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006665/0.7964, allocations: 143.1 kB / 486.4 MB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006669/0.7971, allocations: 135.2 kB / 486.5 MB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.8095, allocations: 2.482 MB / 489 MB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.8097, allocations: 81.98 kB / 489.1 MB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000693/0.8104, allocations: 119.9 kB / 489.2 MB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004671/0.8151, allocations: 1.739 MB / 490.9 MB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/0.8151, allocations: 0 / 490.9 MB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/0.8154, allocations: 43.98 kB / 491 MB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.768e-05/0.8155, allocations: 34.66 kB / 491 MB, free: 13.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003594/0.8191, allocations: 1.085 MB / 492.1 MB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.8369, allocations: 5.792 MB / 497.9 MB, free: 6.723 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003245/0.8402, allocations: 1.238 MB / 499.1 MB, free: 5.449 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002648/0.8429, allocations: 0.9792 MB / 0.4884 GB, free: 4.469 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/0.8431, allocations: 16.77 kB / 0.4884 GB, free: 4.453 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003612/0.8468, allocations: 1.33 MB / 0.4897 GB, free: 3.094 MB / 426.7 MB Notification: Performance of pre-optimization done (n=101): time 6.051e-06/0.8468, allocations: 4 kB / 0.4897 GB, free: 3.09 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.03417/0.881, allocations: 8.014 MB / 0.4975 GB, free: 10.94 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001808/0.8813, allocations: 208.9 kB / 0.4977 GB, free: 10.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.8827, allocations: 0.637 MB / 0.4983 GB, free: 10.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004166/0.8832, allocations: 53.7 kB / 0.4984 GB, free: 9.992 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006162/0.8838, allocations: 492 kB / 0.4989 GB, free: 9.504 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008648/0.8847, allocations: 411 kB / 0.4993 GB, free: 9.098 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.8849, allocations: 32 kB / 0.4993 GB, free: 9.066 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.8851, allocations: 357.9 kB / 0.4996 GB, free: 8.711 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/0.8878, allocations: 1.011 MB / 0.5006 GB, free: 7.699 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002826/0.8906, allocations: 1.262 MB / 0.5019 GB, free: 6.344 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04801/0.9387, allocations: 8.62 MB / 0.5103 GB, free: 13.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.9387, allocations: 0 / 0.5103 GB, free: 13.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01813/0.9569, allocations: 5.091 MB / 0.5152 GB, free: 8.543 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.384e-05/0.957, allocations: 59.41 kB / 0.5153 GB, free: 8.473 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/0.957, allocations: 8.312 kB / 0.5153 GB, free: 8.465 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02759/0.9846, allocations: 6.48 MB / 0.5216 GB, free: 1.977 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.9861, allocations: 179.7 kB / 0.5218 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3567/1.343, allocations: 15.6 MB / 0.537 GB, free: 129.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/1.345, allocations: 91.38 kB / 0.5371 GB, free: 129.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/1.345, allocations: 151.6 kB / 0.5373 GB, free: 129.4 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.0006405/1.346, allocations: 263.5 kB / 0.5375 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/1.346, allocations: 106.9 kB / 0.5376 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0238/1.37, allocations: 5.04 MB / 0.5425 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/1.37, allocations: 12.22 kB / 0.5426 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/1.37, allocations: 1 kB / 0.5426 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.434e-05/1.37, allocations: 7.422 kB / 0.5426 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02838/1.399, allocations: 6.911 MB / 0.5493 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.694e-05/1.399, allocations: 0.8125 kB / 0.5493 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/1.4, allocations: 126.9 kB / 0.5494 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03448/1.434, allocations: 6.646 MB / 0.5559 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007097/1.435, allocations: 215.4 kB / 0.5561 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03878/1.474, allocations: 20.84 MB / 0.5765 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.474, allocations: 0 / 0.5765 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02426/1.498, allocations: 6.024 MB / 0.5824 GB, free: 109.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/1.5, allocations: 411.7 kB / 0.5828 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007595/1.501, allocations: 190 kB / 0.5829 GB, free: 109.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.502, allocations: 76.41 kB / 0.583 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008918/1.503, allocations: 187.2 kB / 0.5832 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003062/1.504, allocations: 147.8 kB / 0.5833 GB, free: 108.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009059/1.504, allocations: 0.4913 MB / 0.5838 GB, free: 108.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.504, allocations: 0 / 0.5838 GB, free: 108.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002904/1.507, allocations: 0.5281 MB / 0.5843 GB, free: 107.7 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.02302/1.53, allocations: 6.56 MB / 0.5907 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01027/1.541, allocations: 2.963 MB / 0.5936 GB, free: 98.19 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.541, allocations: 0 / 0.5936 GB, free: 98.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007307/1.548, allocations: 2.32 MB / 0.5959 GB, free: 95.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/1.55, allocations: 235.6 kB / 0.5961 GB, free: 95.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/1.562, allocations: 5.023 MB / 0.601 GB, free: 90.73 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009528/1.563, allocations: 1.253 MB / 0.6022 GB, free: 89.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00108/1.565, allocations: 207.5 kB / 0.6024 GB, free: 89.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006621/1.565, allocations: 415.3 kB / 0.6028 GB, free: 88.85 MB / 458.7 MB Notification: Performance of SimCode: time 1.183e-06/1.565, allocations: 0 / 0.6028 GB, free: 88.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1145/1.68, allocations: 48.07 MB / 0.6498 GB, free: 40.91 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002882/1.68, allocations: 194.5 kB / 0.65 GB, free: 40.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.108/5.788, allocations: 3.938 kB / 0.65 GB, free: 40.68 MB / 458.7 MB