Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.387/2.387, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.555e-05/4.565e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.129, allocations: 53.24 MB / 354.6 MB, free: 2.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.5879, allocations: 101.9 MB / 456.5 MB, free: 108 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/0.5883, allocations: 92.84 kB / 456.5 MB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1129/0.7012, allocations: 25 MB / 481.5 MB, free: 6.758 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.7013, allocations: 0 / 481.5 MB, free: 6.758 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.217e-05/0.7014, allocations: 28 kB / 481.6 MB, free: 6.73 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004439/0.7058, allocations: 1.385 MB / 483 MB, free: 5.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.7059, allocations: 12.03 kB / 483 MB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005456/0.7064, allocations: 169.3 kB / 483.1 MB, free: 5.082 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.7083, allocations: 198.6 kB / 483.3 MB, free: 4.887 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005585/0.7139, allocations: 1.208 MB / 484.5 MB, free: 3.641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.7142, allocations: 80.53 kB / 484.6 MB, free: 3.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004311/0.7146, allocations: 103.9 kB / 484.7 MB, free: 3.461 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/0.7204, allocations: 1.544 MB / 486.3 MB, free: 1.836 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.719e-05/0.7205, allocations: 8 kB / 486.3 MB, free: 1.828 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002606/0.7208, allocations: 43.98 kB / 486.3 MB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002013/0.721, allocations: 73.95 kB / 486.4 MB, free: 1.711 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006103/0.7271, allocations: 1.347 MB / 487.7 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02051/0.7477, allocations: 5.686 MB / 493.4 MB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003783/0.7515, allocations: 1.053 MB / 494.5 MB, free: 9.418 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002848/0.7545, allocations: 0.8095 MB / 495.3 MB, free: 8.602 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.7546, allocations: 16.98 kB / 495.3 MB, free: 8.586 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003725/0.7584, allocations: 1.082 MB / 496.4 MB, free: 7.473 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 7.364e-06/0.7584, allocations: 0 / 496.4 MB, free: 7.473 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01374/0.7722, allocations: 3.761 MB / 0.4884 GB, free: 3.621 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002282/0.7725, allocations: 209.2 kB / 0.4886 GB, free: 3.371 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.7739, allocations: 492.8 kB / 0.4891 GB, free: 2.883 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004131/0.7744, allocations: 65.69 kB / 0.4892 GB, free: 2.812 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006707/0.775, allocations: 475 kB / 0.4896 GB, free: 2.344 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001083/0.7761, allocations: 485.4 kB / 0.4901 GB, free: 1.863 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.7764, allocations: 32 kB / 0.4901 GB, free: 1.832 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002739/0.7767, allocations: 374.8 kB / 0.4905 GB, free: 1.457 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.7793, allocations: 0.6756 MB / 0.4911 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002955/0.7823, allocations: 0.9527 MB / 0.492 GB, free: 15.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/0.7852, allocations: 0.836 MB / 0.4929 GB, free: 14.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.511e-05/0.7852, allocations: 8 kB / 0.4929 GB, free: 14.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.01254/0.7978, allocations: 2.749 MB / 0.4956 GB, free: 12.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.89e-05/0.7979, allocations: 59.41 kB / 0.4956 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008367/0.8063, allocations: 2.365 MB / 0.4979 GB, free: 9.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006078/0.8124, allocations: 1.083 MB / 0.499 GB, free: 8.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.8136, allocations: 155.6 kB / 0.4991 GB, free: 8.426 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02363/0.8373, allocations: 8.283 MB / 0.5072 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.8389, allocations: 95.89 kB / 0.5073 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.8391, allocations: 52 kB / 0.5074 GB, free: 15.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.fault_ab.theta_zero,fault_ab.theta_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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * 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 {(12,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005296/0.8397, allocations: 291.3 kB / 0.5076 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.84, allocations: 94.88 kB / 0.5077 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004884/0.8449, allocations: 1.849 MB / 0.5095 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.011e-05/0.845, allocations: 31.98 kB / 0.5096 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8451, allocations: 0 / 0.5096 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.8451, allocations: 3.984 kB / 0.5096 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009532/0.8546, allocations: 3.376 MB / 0.5129 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.8547, allocations: 4 kB / 0.5129 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/0.8587, allocations: 379.7 kB / 0.5132 GB, free: 9.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.859, allocations: 32.78 kB / 0.5133 GB, free: 9.691 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/0.8593, allocations: 35.97 kB / 0.5133 GB, free: 9.656 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.8606, allocations: 1.323 MB / 0.5146 GB, free: 8.195 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.8607, allocations: 0 / 0.5146 GB, free: 8.195 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007569/0.8682, allocations: 2.917 MB / 0.5174 GB, free: 5.219 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.8693, allocations: 299.8 kB / 0.5177 GB, free: 4.906 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.8696, allocations: 39.98 kB / 0.5178 GB, free: 4.867 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.8709, allocations: 75.91 kB / 0.5178 GB, free: 4.793 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004596/0.8714, allocations: 136.8 kB / 0.518 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.8715, allocations: 39.98 kB / 0.518 GB, free: 4.621 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007765/0.8723, allocations: 381.5 kB / 0.5184 GB, free: 4.246 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.8723, allocations: 7.938 kB / 0.5184 GB, free: 4.238 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002263/0.8747, allocations: 403.9 kB / 0.5188 GB, free: 3.844 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2918/1.167, allocations: 3.782 MB / 0.5224 GB, free: 0 / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008294/1.175, allocations: 2.432 MB / 0.5248 GB, free: 133.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.175, allocations: 4.125 kB / 0.5248 GB, free: 133.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002802/1.178, allocations: 1.173 MB / 0.526 GB, free: 133.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.179, allocations: 142.2 kB / 0.5261 GB, free: 133.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008413/1.188, allocations: 2.845 MB / 0.5289 GB, free: 132.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/1.189, allocations: 1.235 MB / 0.5301 GB, free: 132 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.19, allocations: 404.9 kB / 0.5305 GB, free: 132 MB / 458.7 MB Notification: Performance of SimCode: time 1.793e-06/1.19, allocations: 0 / 0.5305 GB, free: 132 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.479/4.669, allocations: 23.79 MB / 0.5537 GB, free: 130.6 MB / 458.7 MB