Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.449/2.449, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.997e-05/4.005e-05, allocations: 7.984 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4591/0.5744, allocations: 95.1 MB / 449.7 MB, free: 6.883 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.5748, allocations: 87.94 kB / 449.8 MB, free: 6.797 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06816/0.643, allocations: 14.88 MB / 464.7 MB, free: 7.734 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.643, allocations: 0 / 464.7 MB, free: 7.734 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.855e-05/0.6431, allocations: 12 kB / 464.7 MB, free: 7.723 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.002806/0.6459, allocations: 0.9726 MB / 465.7 MB, free: 6.688 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.646, allocations: 8.031 kB / 465.7 MB, free: 6.68 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002832/0.6463, allocations: 106.5 kB / 465.8 MB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.6466, allocations: 87.48 kB / 465.8 MB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004516/0.6511, allocations: 1.084 MB / 466.9 MB, free: 5.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.6513, allocations: 53.27 kB / 467 MB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.6515, allocations: 64.56 kB / 467 MB, free: 5.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.6536, allocations: 0.7982 MB / 467.8 MB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.6536, allocations: 0 / 467.8 MB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.6538, allocations: 31.98 kB / 467.9 MB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.6538, allocations: 20 kB / 467.9 MB, free: 4.344 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.6555, allocations: 0.5686 MB / 468.5 MB, free: 3.773 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006996/0.6625, allocations: 2.964 MB / 471.4 MB, free: 0.6992 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.6642, allocations: 0.5815 MB / 472 MB, free: 104 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.6652, allocations: 399 kB / 472.4 MB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.6653, allocations: 8.562 kB / 472.4 MB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00141/0.6667, allocations: 0.6004 MB / 473 MB, free: 15.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 3.768e-06/0.6667, allocations: 0 / 473 MB, free: 15.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.005514/0.6723, allocations: 2.02 MB / 475 MB, free: 12.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.6725, allocations: 208.6 kB / 475.2 MB, free: 12.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008786/0.6734, allocations: 427.9 kB / 475.7 MB, free: 12.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.6736, allocations: 45.7 kB / 475.7 MB, free: 12.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.6739, allocations: 370.7 kB / 476.1 MB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.6743, allocations: 232.9 kB / 476.3 MB, free: 11.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/0.6744, allocations: 20 kB / 476.3 MB, free: 11.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.6746, allocations: 350.8 kB / 476.6 MB, free: 11.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008719/0.6755, allocations: 305.9 kB / 476.9 MB, free: 10.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.6765, allocations: 488.4 kB / 477.4 MB, free: 10.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009542/0.6775, allocations: 386.5 kB / 477.8 MB, free: 10.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.6776, allocations: 8 kB / 477.8 MB, free: 10.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002862/0.6804, allocations: 1.012 MB / 478.8 MB, free: 8.984 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.902e-05/0.6805, allocations: 59.41 kB / 478.9 MB, free: 8.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.6806, allocations: 4 kB / 478.9 MB, free: 8.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008155/0.6814, allocations: 133.9 kB / 479 MB, free: 8.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.6832, allocations: 211.7 kB / 479.2 MB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004345/0.6876, allocations: 3.045 MB / 482.3 MB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009706/0.6886, allocations: 47.97 kB / 482.3 MB, free: 5.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.845e-05/0.6887, allocations: 32 kB / 482.3 MB, free: 5.18 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.0003904/0.6891, allocations: 257.4 kB / 482.6 MB, free: 4.914 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.6893, allocations: 71.16 kB / 482.7 MB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002779/0.6921, allocations: 0.9732 MB / 483.6 MB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.6922, allocations: 13.48 kB / 483.6 MB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.6922, allocations: 4 kB / 483.7 MB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.6922, allocations: 3.984 kB / 483.7 MB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004913/0.6971, allocations: 1.87 MB / 485.5 MB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.6972, allocations: 4 kB / 485.5 MB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/0.699, allocations: 155.8 kB / 485.7 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.7002, allocations: 149.5 kB / 485.8 MB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.7005, allocations: 27.98 kB / 485.9 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005523/0.706, allocations: 3.041 MB / 488.9 MB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.7061, allocations: 4.031 kB / 488.9 MB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005474/0.7115, allocations: 1.509 MB / 490.4 MB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/0.7124, allocations: 208.2 kB / 490.6 MB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.7127, allocations: 31.98 kB / 490.6 MB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.7138, allocations: 39.97 kB / 490.7 MB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000491/0.7144, allocations: 92.58 kB / 490.8 MB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.7145, allocations: 27.98 kB / 490.8 MB, free: 12.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009752/0.7155, allocations: 327 kB / 491.1 MB, free: 11.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.7156, allocations: 4 kB / 491.1 MB, free: 11.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002175/0.7178, allocations: 220 kB / 491.3 MB, free: 11.71 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.006506/0.7243, allocations: 2.265 MB / 493.6 MB, free: 9.387 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004877/0.7293, allocations: 1.148 MB / 494.8 MB, free: 8.195 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/0.7294, allocations: 4 kB / 494.8 MB, free: 8.191 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003459/0.7328, allocations: 0.8174 MB / 495.6 MB, free: 7.332 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.7346, allocations: 137.3 kB / 495.7 MB, free: 7.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008021/0.7427, allocations: 1.672 MB / 497.4 MB, free: 5.469 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.7439, allocations: 1.013 MB / 498.4 MB, free: 4.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009804/0.7449, allocations: 275.3 kB / 498.7 MB, free: 4.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/0.7449, allocations: 4 kB / 498.7 MB, free: 4.156 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.179/3.924, allocations: 18.2 MB / 0.5048 GB, free: 1.945 MB / 442.7 MB