Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.395/2.395, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.96e-05/3.968e-05, allocations: 3.938 kB / 302.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 53.24 MB / 355.5 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4688/0.5848, allocations: 95.09 MB / 450.6 MB, free: 6.477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/0.5851, allocations: 87.95 kB / 450.7 MB, free: 6.391 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07787/0.663, allocations: 14.89 MB / 465.6 MB, free: 7.324 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.6631, allocations: 0 / 465.6 MB, free: 7.324 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001057/0.6632, allocations: 12 kB / 465.6 MB, free: 7.312 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.004132/0.6674, allocations: 0.9726 MB / 466.6 MB, free: 6.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.65e-05/0.6675, allocations: 8.031 kB / 466.6 MB, free: 6.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004174/0.6679, allocations: 110.5 kB / 466.7 MB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004266/0.6683, allocations: 88.05 kB / 466.8 MB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006077/0.6744, allocations: 1.076 MB / 467.9 MB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.6746, allocations: 61.27 kB / 467.9 MB, free: 4.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.6749, allocations: 64 kB / 468 MB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/0.6779, allocations: 0.7865 MB / 468.8 MB, free: 3.992 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.49e-05/0.678, allocations: 4 kB / 468.8 MB, free: 3.988 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001617/0.6781, allocations: 33.39 kB / 468.8 MB, free: 3.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.894e-05/0.6782, allocations: 12 kB / 468.8 MB, free: 3.945 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002447/0.6806, allocations: 0.5725 MB / 469.4 MB, free: 3.371 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009249/0.6899, allocations: 2.966 MB / 472.4 MB, free: 300 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.6921, allocations: 0.5738 MB / 472.9 MB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.6936, allocations: 405.2 kB / 473.3 MB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.097e-05/0.6937, allocations: 8.562 kB / 473.3 MB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/0.6957, allocations: 0.6042 MB / 473.9 MB, free: 14.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 5.32e-06/0.6958, allocations: 0 / 473.9 MB, free: 14.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.007403/0.7032, allocations: 2.016 MB / 476 MB, free: 12.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.7035, allocations: 216.6 kB / 476.2 MB, free: 12.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.7046, allocations: 419.9 kB / 476.6 MB, free: 11.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002121/0.7048, allocations: 53.7 kB / 476.6 MB, free: 11.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/0.7053, allocations: 332.2 kB / 477 MB, free: 11.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/0.7058, allocations: 237.5 kB / 477.2 MB, free: 11.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.7059, allocations: 20 kB / 477.2 MB, free: 11.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002899/0.7062, allocations: 386.8 kB / 477.6 MB, free: 10.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.7075, allocations: 301.9 kB / 477.9 MB, free: 10.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/0.709, allocations: 484.1 kB / 478.4 MB, free: 10.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.7104, allocations: 385.6 kB / 478.7 MB, free: 9.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.7104, allocations: 5.125 kB / 478.7 MB, free: 9.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004204/0.7147, allocations: 1.047 MB / 479.8 MB, free: 8.547 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.574e-05/0.7148, allocations: 63.98 kB / 479.9 MB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.7148, allocations: 4 kB / 479.9 MB, free: 8.469 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.716, allocations: 137.6 kB / 480 MB, free: 8.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/0.7184, allocations: 207.7 kB / 480.2 MB, free: 8.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006102/0.7245, allocations: 3.045 MB / 483.2 MB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.7259, allocations: 48.12 kB / 483.3 MB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.7261, allocations: 36 kB / 483.3 MB, free: 4.734 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_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,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005375/0.7266, allocations: 253.3 kB / 483.6 MB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.7269, allocations: 75.14 kB / 483.6 MB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/0.73, allocations: 0.9733 MB / 484.6 MB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.7301, allocations: 9.031 kB / 484.6 MB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.7301, allocations: 0 / 484.6 MB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.7301, allocations: 15.91 kB / 484.6 MB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005668/0.7358, allocations: 1.87 MB / 486.5 MB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.7359, allocations: 0 / 486.5 MB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.7373, allocations: 155.8 kB / 486.7 MB, free: 1.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.7384, allocations: 145.6 kB / 486.8 MB, free: 1.121 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.7386, allocations: 27.97 kB / 486.8 MB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005665/0.7443, allocations: 3.041 MB / 489.9 MB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.7443, allocations: 3.984 kB / 489.9 MB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006621/0.751, allocations: 1.509 MB / 491.4 MB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007987/0.7518, allocations: 213.6 kB / 491.6 MB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/0.7522, allocations: 27.98 kB / 491.6 MB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.7533, allocations: 43.95 kB / 491.7 MB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/0.7538, allocations: 96.56 kB / 491.8 MB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.7539, allocations: 27.98 kB / 491.8 MB, free: 11.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000901/0.7548, allocations: 325.6 kB / 492.1 MB, free: 11.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.7549, allocations: 0 / 492.1 MB, free: 11.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001828/0.7567, allocations: 216 kB / 492.3 MB, free: 11.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00703/0.7638, allocations: 2.265 MB / 494.6 MB, free: 8.945 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005005/0.7688, allocations: 1.155 MB / 495.7 MB, free: 7.746 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.7689, allocations: 5.188 kB / 495.7 MB, free: 7.742 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003677/0.7726, allocations: 0.8371 MB / 496.6 MB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.7745, allocations: 132.7 kB / 496.7 MB, free: 6.734 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008514/0.7831, allocations: 1.608 MB / 498.3 MB, free: 5.074 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.7843, allocations: 1.005 MB / 499.3 MB, free: 4.043 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001335/0.7857, allocations: 150.1 kB / 499.5 MB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008583/0.7866, allocations: 267.3 kB / 499.7 MB, free: 3.633 MB / 426.7 MB Notification: Performance of SimCode: time 2.605e-06/0.7866, allocations: 0 / 499.7 MB, free: 3.633 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05675/0.8434, allocations: 15.43 MB / 0.5031 GB, free: 4.281 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003458/0.8438, allocations: 177.3 kB / 0.5033 GB, free: 4.055 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.077/3.921, allocations: 7.938 kB / 0.5033 GB, free: 4.047 MB / 442.7 MB