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.782/1.782, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.777e-05/3.787e-05, allocations: 4 kB / 225.1 MB, free: 2.742 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2848, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.4128, allocations: 70.85 MB / 334.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4131, allocations: 71.95 kB / 334.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04208/0.4552, allocations: 8.25 MB / 343 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4553, allocations: 0 / 343 MB, free: 10.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.051e-05/0.4553, allocations: 8 kB / 343 MB, free: 10.54 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.003201/0.4585, allocations: 0.8398 MB / 343.9 MB, free: 9.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.4586, allocations: 12.03 kB / 343.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.4588, allocations: 70.89 kB / 343.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.459, allocations: 59.34 kB / 344 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007353/0.4597, allocations: 371.4 kB / 344.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-05/0.4598, allocations: 28.78 kB / 344.4 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.46, allocations: 40 kB / 344.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.4612, allocations: 461.5 kB / 344.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.4613, allocations: 3.938 kB / 344.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.22e-05/0.4614, allocations: 19.94 kB / 344.9 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.4614, allocations: 8 kB / 344.9 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.4626, allocations: 387 kB / 345.3 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006193/0.4688, allocations: 2.026 MB / 347.3 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005874/0.4748, allocations: 0.7148 MB / 348 MB, free: 5.293 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008295/0.4756, allocations: 272.8 kB / 348.3 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.565e-05/0.4757, allocations: 11.98 kB / 348.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008272/0.4766, allocations: 287.9 kB / 348.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.386e-06/0.4766, allocations: 0 / 348.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002183/0.4788, allocations: 0.5607 MB / 349.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.4789, allocations: 85.05 kB / 349.2 MB, free: 4.047 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006043/0.4795, allocations: 318.9 kB / 349.5 MB, free: 3.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.291e-05/0.4796, allocations: 37.7 kB / 349.6 MB, free: 3.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.4798, allocations: 270.9 kB / 349.8 MB, free: 3.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.48, allocations: 126.2 kB / 350 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.4801, allocations: 8 kB / 350 MB, free: 3.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4802, allocations: 326.8 kB / 350.3 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.4808, allocations: 168.8 kB / 350.5 MB, free: 2.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005704/0.4814, allocations: 202.3 kB / 350.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005437/0.4819, allocations: 187.7 kB / 350.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.482, allocations: 0 / 350.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001957/0.4839, allocations: 0.5739 MB / 351.4 MB, free: 1.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.178e-05/0.484, allocations: 41.69 kB / 351.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.4841, allocations: 0 / 351.4 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001519/0.4856, allocations: 328.6 kB / 351.8 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008635/0.4865, allocations: 95.92 kB / 351.9 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/0.4988, allocations: 3.068 MB / 354.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.5001, allocations: 103.7 kB / 355 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-05/0.5003, allocations: 19.98 kB / 355.1 MB, free: 14.02 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.0002541/0.5005, allocations: 125 kB / 355.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.5007, allocations: 43.52 kB / 355.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.5009, allocations: 56.44 kB / 355.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5009, allocations: 4 kB / 355.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.5009, allocations: 3.984 kB / 355.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.501, allocations: 7.953 kB / 355.3 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.502, allocations: 0.5872 MB / 355.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5021, allocations: 0 / 355.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008301/0.5029, allocations: 83.94 kB / 356 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001466/0.5044, allocations: 336.6 kB / 356.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.423e-05/0.5045, allocations: 8 kB / 356.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01212/0.5166, allocations: 3.078 MB / 359.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5167, allocations: 0 / 359.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.5196, allocations: 0.8295 MB / 360.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003757/0.52, allocations: 172.5 kB / 360.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.5201, allocations: 11.95 kB / 360.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.5213, allocations: 83.92 kB / 360.5 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.5215, allocations: 51.92 kB / 360.5 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-05/0.5216, allocations: 15.98 kB / 360.5 MB, free: 8.305 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004572/0.5221, allocations: 253.2 kB / 360.8 MB, free: 8.059 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5221, allocations: 0 / 360.8 MB, free: 8.059 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008917/0.523, allocations: 167.8 kB / 360.9 MB, free: 7.895 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.003289/0.5263, allocations: 1.409 MB / 362.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.5287, allocations: 0.6697 MB / 363 MB, free: 5.758 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5287, allocations: 3.938 kB / 363 MB, free: 5.754 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.5303, allocations: 426.7 kB / 363.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.531, allocations: 69.53 kB / 363.5 MB, free: 5.258 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/0.5363, allocations: 0.901 MB / 364.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007646/0.5371, allocations: 0.8358 MB / 365.2 MB, free: 3.461 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006274/0.5378, allocations: 147.4 kB / 365.4 MB, free: 3.316 MB / 314.7 MB Notification: Performance of SimCode: time 1.844e-06/0.5378, allocations: 0 / 365.4 MB, free: 3.316 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.878/3.416, allocations: 10.32 MB / 375.7 MB, free: 91.35 MB / 314.7 MB