Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.324/2.324, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.424e-05/3.431e-05, allocations: 4 kB / 301.4 MB, free: 7.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1197, allocations: 53.24 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.5978, allocations: 96.59 MB / 451.2 MB, free: 5.289 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/0.5982, allocations: 89.91 kB / 451.3 MB, free: 5.203 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07169/0.6699, allocations: 15.67 MB / 466.9 MB, free: 5.395 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.67, allocations: 0 / 466.9 MB, free: 5.395 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.014e-05/0.67, allocations: 19.86 kB / 467 MB, free: 5.375 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00191/0.672, allocations: 0.7785 MB / 467.7 MB, free: 4.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.672, allocations: 16.03 kB / 467.8 MB, free: 4.523 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.6722, allocations: 99.14 kB / 467.8 MB, free: 4.418 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007226/0.6729, allocations: 91.2 kB / 467.9 MB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.6753, allocations: 0.6898 MB / 468.6 MB, free: 3.602 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/0.6754, allocations: 28.73 kB / 468.7 MB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.6755, allocations: 44 kB / 468.7 MB, free: 3.531 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.6774, allocations: 0.8247 MB / 469.5 MB, free: 2.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.6774, allocations: 8 kB / 469.5 MB, free: 2.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.609e-05/0.6775, allocations: 12.56 kB / 469.5 MB, free: 2.645 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/0.6778, allocations: 64.73 kB / 469.6 MB, free: 2.582 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.6796, allocations: 0.7396 MB / 470.3 MB, free: 1.844 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005555/0.6852, allocations: 2.654 MB / 473 MB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.6866, allocations: 0.5814 MB / 473.6 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009264/0.6875, allocations: 478.7 kB / 474 MB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.199e-05/0.6876, allocations: 4 kB / 474.1 MB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.6877, allocations: 34.83 kB / 474.1 MB, free: 13.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=60): time 3.637e-06/0.6877, allocations: 0 / 474.1 MB, free: 13.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.003639/0.6913, allocations: 1.5 MB / 475.6 MB, free: 12.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.6915, allocations: 138.8 kB / 475.7 MB, free: 12.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/0.6919, allocations: 246.7 kB / 476 MB, free: 12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.545e-05/0.692, allocations: 29.7 kB / 476 MB, free: 11.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.6922, allocations: 306.8 kB / 476.3 MB, free: 11.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/0.6925, allocations: 201 kB / 476.5 MB, free: 11.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.6925, allocations: 4 kB / 476.5 MB, free: 11.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.6927, allocations: 338.8 kB / 476.8 MB, free: 11.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008074/0.6936, allocations: 365 kB / 477.2 MB, free: 10.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009347/0.6945, allocations: 470.6 kB / 477.6 MB, free: 10.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.6956, allocations: 478.8 kB / 478.1 MB, free: 9.777 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.6956, allocations: 1.219 kB / 478.1 MB, free: 9.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002328/0.698, allocations: 0.9714 MB / 479.1 MB, free: 8.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.6981, allocations: 69.67 kB / 479.1 MB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.6981, allocations: 11.97 kB / 479.2 MB, free: 8.707 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.6984, allocations: 44.78 kB / 479.2 MB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007147/0.6991, allocations: 79.88 kB / 479.3 MB, free: 8.582 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.7009, allocations: 1.441 MB / 480.7 MB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006484/0.7016, allocations: 31.97 kB / 480.8 MB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.971e-05/0.7017, allocations: 31.92 kB / 480.8 MB, free: 6.945 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3],system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 1 * 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 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003084/0.702, allocations: 207.2 kB / 481 MB, free: 6.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.7022, allocations: 39.53 kB / 481 MB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.7049, allocations: 1.116 MB / 482.1 MB, free: 5.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.686e-05/0.705, allocations: 19.94 kB / 482.2 MB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.705, allocations: 0 / 482.2 MB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.705, allocations: 0 / 482.2 MB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/0.7091, allocations: 1.808 MB / 484 MB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.7091, allocations: 1.688 kB / 484 MB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.7097, allocations: 55.95 kB / 484 MB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/0.7099, allocations: 40.83 kB / 484.1 MB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.71, allocations: 12 kB / 484.1 MB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.7116, allocations: 1.437 MB / 485.5 MB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7117, allocations: 0 / 485.5 MB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.7142, allocations: 1.254 MB / 486.8 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.7146, allocations: 180.7 kB / 486.9 MB, free: 480 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.7147, allocations: 15.98 kB / 487 MB, free: 464 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.7152, allocations: 35.95 kB / 487 MB, free: 428 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.7154, allocations: 35.95 kB / 487 MB, free: 392 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/0.7155, allocations: 19.98 kB / 487 MB, free: 372 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002971/0.7158, allocations: 198.2 kB / 487.2 MB, free: 176 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7158, allocations: 3.938 kB / 487.2 MB, free: 172 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008645/0.7167, allocations: 160 kB / 487.4 MB, free: 12 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003182/0.7199, allocations: 2.059 MB / 489.5 MB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.7227, allocations: 1.388 MB / 490.8 MB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7227, allocations: 0 / 490.8 MB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.7244, allocations: 0.9321 MB / 491.8 MB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.7251, allocations: 59.56 kB / 491.8 MB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.7286, allocations: 1.4 MB / 493.2 MB, free: 10.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006838/0.7293, allocations: 0.918 MB / 494.2 MB, free: 9.086 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004055/0.7297, allocations: 155.4 kB / 494.3 MB, free: 8.934 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/0.7297, allocations: 0 / 494.3 MB, free: 8.934 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.215/3.945, allocations: 10.67 MB / 0.4931 GB, free: 14.27 MB / 442.7 MB