Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.599e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2612, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.4453, allocations: 81.2 MB / 339.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004019/0.4457, allocations: 67.97 kB / 339.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5042/0.9499, allocations: 41.44 MB / 381 MB, free: 83.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.95, allocations: 0 / 381 MB, free: 83.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.181e-05/0.95, allocations: 11.12 kB / 381.1 MB, free: 83.27 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002508/0.9526, allocations: 1.111 MB / 382.2 MB, free: 82.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.9526, allocations: 11.41 kB / 382.2 MB, free: 82.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.9529, allocations: 117.3 kB / 382.3 MB, free: 82.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.9544, allocations: 0.712 MB / 383 MB, free: 82.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.9544, allocations: 7.016 kB / 383 MB, free: 82.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/0.9545, allocations: 26.22 kB / 383 MB, free: 82.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005602/0.9551, allocations: 212.5 kB / 383.2 MB, free: 82.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.9556, allocations: 251.6 kB / 383.5 MB, free: 82.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.9557, allocations: 0 / 383.5 MB, free: 82.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.9557, allocations: 1.312 kB / 383.5 MB, free: 82.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.9557, allocations: 7.25 kB / 383.5 MB, free: 82.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/0.9584, allocations: 1.335 MB / 384.8 MB, free: 81.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005501/0.959, allocations: 234.8 kB / 385.1 MB, free: 81.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.9594, allocations: 210.7 kB / 385.3 MB, free: 80.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006249/0.9657, allocations: 4.229 MB / 389.5 MB, free: 77.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003399/0.9661, allocations: 165.5 kB / 389.7 MB, free: 77.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.876e-06/0.9661, allocations: 0 / 389.7 MB, free: 77.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001242/0.9673, allocations: 427.5 kB / 390.1 MB, free: 76.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.9674, allocations: 59.47 kB / 390.1 MB, free: 76.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009913/0.9684, allocations: 0.6545 MB / 390.8 MB, free: 76.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.9685, allocations: 25.7 kB / 390.8 MB, free: 76.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003109/0.9688, allocations: 424.8 kB / 391.2 MB, free: 76.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.2e-05/0.9689, allocations: 97.38 kB / 391.3 MB, free: 76.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.9689, allocations: 3.75 kB / 391.3 MB, free: 76.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.969, allocations: 326.4 kB / 391.6 MB, free: 75.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.9692, allocations: 84.58 kB / 391.7 MB, free: 75.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.9695, allocations: 189 kB / 391.9 MB, free: 75.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.97, allocations: 179.9 kB / 392.1 MB, free: 75.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.97, allocations: 0 / 392.1 MB, free: 75.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001078/0.9711, allocations: 424.7 kB / 392.5 MB, free: 75.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.9712, allocations: 11.88 kB / 392.5 MB, free: 75.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.504e-05/0.9713, allocations: 43.2 kB / 392.6 MB, free: 75.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.9715, allocations: 48.77 kB / 392.6 MB, free: 75.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.9721, allocations: 78.03 kB / 392.7 MB, free: 75.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.9739, allocations: 2.553 MB / 395.2 MB, free: 72.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/0.9746, allocations: 41.42 kB / 395.3 MB, free: 72.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.888e-05/0.9746, allocations: 17.72 kB / 395.3 MB, free: 72.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.9748, allocations: 122.1 kB / 395.4 MB, free: 72.59 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001049/0.9758, allocations: 427.7 kB / 395.8 MB, free: 72.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.976, allocations: 102.9 kB / 395.9 MB, free: 72.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.9775, allocations: 499.6 kB / 396.4 MB, free: 72.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.9775, allocations: 3.5 kB / 396.4 MB, free: 72.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.9775, allocations: 3.625 kB / 396.4 MB, free: 72.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.9775, allocations: 10.16 kB / 396.4 MB, free: 72.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007548/0.9783, allocations: 0.5184 MB / 397 MB, free: 71.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.308e-05/0.9784, allocations: 36.25 kB / 397 MB, free: 71.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004543/0.9789, allocations: 40.91 kB / 397 MB, free: 71.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002123/0.9791, allocations: 53.12 kB / 397.1 MB, free: 71.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.9792, allocations: 15.7 kB / 397.1 MB, free: 71.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.9809, allocations: 2.54 MB / 399.6 MB, free: 69.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.9809, allocations: 2.906 kB / 399.6 MB, free: 69.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.9824, allocations: 0.5674 MB / 400.2 MB, free: 69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.9827, allocations: 190.3 kB / 400.4 MB, free: 68.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/0.9829, allocations: 3.562 kB / 400.4 MB, free: 68.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.9833, allocations: 17.52 kB / 400.4 MB, free: 68.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.9835, allocations: 25.91 kB / 400.4 MB, free: 68.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.9835, allocations: 20.67 kB / 400.5 MB, free: 68.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007869/0.9843, allocations: 0.4935 MB / 401 MB, free: 68.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.9844, allocations: 0 / 401 MB, free: 68.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001067/0.9854, allocations: 260.6 kB / 401.2 MB, free: 68.53 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002426/0.9879, allocations: 1.527 MB / 402.7 MB, free: 67.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009288/0.9888, allocations: 0.4971 MB / 403.2 MB, free: 67.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.9889, allocations: 4 kB / 403.2 MB, free: 67.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005472/0.9894, allocations: 394.5 kB / 403.6 MB, free: 66.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.99, allocations: 94.84 kB / 403.7 MB, free: 66.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.9934, allocations: 1.324 MB / 405 MB, free: 65.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.9939, allocations: 0.9788 MB / 406 MB, free: 64.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004809/0.9943, allocations: 334.5 kB / 406.3 MB, free: 64.27 MB / 314.7 MB Notification: Performance of SimCode: time 9.52e-07/0.9944, allocations: 7.938 kB / 406.3 MB, free: 64.26 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.018/4.013, allocations: 20.94 MB / 427.3 MB, free: 44.3 MB / 314.7 MB