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.802/1.802, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.908e-05, allocations: 8 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2699, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.3908, allocations: 70.19 MB / 328.5 MB, free: 7.625 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.3911, allocations: 75.89 kB / 328.6 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04057/0.4317, allocations: 8.149 MB / 336.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4318, allocations: 0 / 336.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.021e-05/0.4318, allocations: 11.98 kB / 336.8 MB, free: 15.35 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.003101/0.4349, allocations: 0.8397 MB / 337.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.435, allocations: 12.03 kB / 337.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.4352, allocations: 55.34 kB / 337.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007315/0.436, allocations: 367.7 kB / 338 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.436, allocations: 15.95 kB / 338 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.4361, allocations: 28 kB / 338.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001114/0.4373, allocations: 361.5 kB / 338.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.4384, allocations: 403.9 kB / 338.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.4384, allocations: 0 / 338.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-05/0.4385, allocations: 4 kB / 338.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.4385, allocations: 8 kB / 338.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005702/0.4442, allocations: 1.963 MB / 340.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005697/0.45, allocations: 0.6984 MB / 341.5 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007273/0.4508, allocations: 249.2 kB / 341.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.606e-05/0.4508, allocations: 11.92 kB / 341.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007106/0.4516, allocations: 275.6 kB / 342 MB, free: 9.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.785e-06/0.4516, allocations: 0 / 342 MB, free: 9.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002009/0.4536, allocations: 0.5259 MB / 342.5 MB, free: 9.328 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.4537, allocations: 85.11 kB / 342.6 MB, free: 9.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.4542, allocations: 290.3 kB / 342.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.4544, allocations: 25.7 kB / 342.9 MB, free: 8.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.4546, allocations: 270.9 kB / 343.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.4548, allocations: 122.2 kB / 343.3 MB, free: 8.527 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.107e-05/0.4548, allocations: 4 kB / 343.3 MB, free: 8.523 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.455, allocations: 330.8 kB / 343.6 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004727/0.4555, allocations: 160.8 kB / 343.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004996/0.456, allocations: 189.9 kB / 344 MB, free: 7.836 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000439/0.4564, allocations: 146 kB / 344.1 MB, free: 7.695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.4564, allocations: 4 kB / 344.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001758/0.4582, allocations: 0.5141 MB / 344.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.739e-05/0.4583, allocations: 41.23 kB / 344.7 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.4583, allocations: 0 / 344.7 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.4598, allocations: 329.9 kB / 345 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/0.4607, allocations: 95.92 kB / 345.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/0.4723, allocations: 2.995 MB / 348.1 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.4735, allocations: 95.72 kB / 348.2 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.4736, allocations: 15.98 kB / 348.2 MB, free: 3.484 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real 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.0002485/0.4739, allocations: 116.8 kB / 348.3 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001859/0.4758, allocations: 0.525 MB / 348.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.4759, allocations: 39.53 kB / 348.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.4761, allocations: 52.62 kB / 348.9 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.4761, allocations: 4 kB / 348.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4761, allocations: 0 / 348.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.4761, allocations: 7.922 kB / 348.9 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009418/0.4771, allocations: 0.5175 MB / 349.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4771, allocations: 0 / 349.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008225/0.4779, allocations: 87.92 kB / 349.5 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.4794, allocations: 333.8 kB / 349.9 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.4795, allocations: 3.984 kB / 349.9 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.491, allocations: 2.995 MB / 352.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.491, allocations: 0 / 352.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.4936, allocations: 0.7985 MB / 353.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.494, allocations: 172.5 kB / 353.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.4942, allocations: 8 kB / 353.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.4953, allocations: 79.92 kB / 353.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.4955, allocations: 51.88 kB / 354 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.739e-05/0.4956, allocations: 12 kB / 354 MB, free: 13.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000373/0.496, allocations: 228.6 kB / 354.2 MB, free: 13.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.496, allocations: 0 / 354.2 MB, free: 13.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000888/0.4969, allocations: 151.7 kB / 354.4 MB, free: 13.11 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.002989/0.4999, allocations: 1.347 MB / 355.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.5021, allocations: 0.6335 MB / 356.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.5021, allocations: 4 kB / 356.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.5036, allocations: 414 kB / 356.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006272/0.5043, allocations: 53.38 kB / 356.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.5085, allocations: 0.854 MB / 357.7 MB, free: 9.699 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.509, allocations: 0.8434 MB / 358.5 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.5094, allocations: 143.4 kB / 358.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5095, allocations: 0 / 358.6 MB, free: 8.691 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.909/3.418, allocations: 10.13 MB / 368.8 MB, free: 94.13 MB / 314.7 MB