Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.752/1.752, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.685e-05/4.693e-05, allocations: 7.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2845, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4105, allocations: 70.87 MB / 334.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.4108, allocations: 71.97 kB / 334.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04164/0.4524, allocations: 8.235 MB / 343 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4525, allocations: 8 kB / 343 MB, free: 10.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.868e-05/0.4525, allocations: 8 kB / 343 MB, free: 10.43 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003263/0.4558, allocations: 0.8445 MB / 343.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.4559, allocations: 12.03 kB / 343.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001713/0.4561, allocations: 66.53 kB / 344 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.4563, allocations: 55.34 kB / 344 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007419/0.457, allocations: 375.5 kB / 344.4 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.892e-05/0.4571, allocations: 28.78 kB / 344.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.4573, allocations: 35.98 kB / 344.4 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.4585, allocations: 455.9 kB / 344.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.4586, allocations: 4 kB / 344.9 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.762e-05/0.4586, allocations: 8 kB / 344.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.4587, allocations: 15.98 kB / 344.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.4598, allocations: 385.4 kB / 345.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00602/0.4659, allocations: 2.038 MB / 347.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/0.4719, allocations: 0.7093 MB / 348 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008456/0.4728, allocations: 261.2 kB / 348.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.4729, allocations: 11.97 kB / 348.3 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000785/0.4737, allocations: 287.5 kB / 348.6 MB, free: 4.629 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.116e-06/0.4737, allocations: 0 / 348.6 MB, free: 4.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002157/0.4759, allocations: 0.561 MB / 349.2 MB, free: 4.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.476, allocations: 85.11 kB / 349.2 MB, free: 3.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.4766, allocations: 314.9 kB / 349.5 MB, free: 3.645 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.4767, allocations: 37.7 kB / 349.6 MB, free: 3.602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.477, allocations: 270.9 kB / 349.8 MB, free: 3.336 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.4771, allocations: 126.2 kB / 350 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.4772, allocations: 8 kB / 350 MB, free: 3.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4774, allocations: 330.8 kB / 350.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005306/0.4779, allocations: 168.7 kB / 350.5 MB, free: 2.703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/0.4785, allocations: 197.9 kB / 350.7 MB, free: 2.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005227/0.479, allocations: 187.6 kB / 350.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.479, allocations: 0 / 350.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001916/0.481, allocations: 0.5744 MB / 351.4 MB, free: 1.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.481, allocations: 33.7 kB / 351.4 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4811, allocations: 3.984 kB / 351.5 MB, free: 1.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/0.4826, allocations: 336.6 kB / 351.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.4835, allocations: 95.88 kB / 351.9 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/0.4961, allocations: 3.063 MB / 354.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.4974, allocations: 111.8 kB / 355 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.14e-05/0.4975, allocations: 12 kB / 355.1 MB, free: 13.94 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.4978, allocations: 130.8 kB / 355.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.4979, allocations: 43.44 kB / 355.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.4981, allocations: 52.5 kB / 355.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4981, allocations: 8.078 kB / 355.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.4981, allocations: 7.938 kB / 355.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4982, allocations: 7.938 kB / 355.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.4992, allocations: 0.5755 MB / 355.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4992, allocations: 0 / 355.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.5001, allocations: 95.92 kB / 356 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.5015, allocations: 332.6 kB / 356.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.159e-05/0.5016, allocations: 7.984 kB / 356.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/0.5139, allocations: 3.073 MB / 359.4 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.514, allocations: 3.938 kB / 359.4 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.5168, allocations: 0.8252 MB / 360.2 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.5172, allocations: 168.6 kB / 360.4 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.5174, allocations: 11.95 kB / 360.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.5185, allocations: 91.91 kB / 360.5 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.5188, allocations: 47.92 kB / 360.5 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.786e-05/0.5189, allocations: 12 kB / 360.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004513/0.5193, allocations: 257.2 kB / 360.8 MB, free: 7.969 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5193, allocations: 0 / 360.8 MB, free: 7.969 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009183/0.5203, allocations: 171.7 kB / 361 MB, free: 7.801 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003319/0.5236, allocations: 1.405 MB / 362.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.526, allocations: 0.6535 MB / 363 MB, free: 5.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.526, allocations: 3.938 kB / 363 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.5276, allocations: 413.8 kB / 363.4 MB, free: 5.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000693/0.5284, allocations: 73.45 kB / 363.5 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.5329, allocations: 0.8918 MB / 364.4 MB, free: 4.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.5335, allocations: 0.8397 MB / 365.2 MB, free: 3.406 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.5339, allocations: 147.4 kB / 365.4 MB, free: 3.262 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5339, allocations: 0 / 365.4 MB, free: 3.262 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.954/3.488, allocations: 10.31 MB / 375.7 MB, free: 91.26 MB / 314.7 MB