Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.217e-05, allocations: 4 kB / 292.2 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 50.41 MB / 342.6 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4686/0.575, allocations: 83.18 MB / 425.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5753, allocations: 70.84 kB / 425.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06526/0.6406, allocations: 9.233 MB / 435.1 MB, free: 3.113 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.6407, allocations: 0 / 435.1 MB, free: 3.113 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.208e-05/0.6407, allocations: 8 kB / 435.1 MB, free: 3.105 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003544/0.6443, allocations: 0.8787 MB / 436 MB, free: 2.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.6444, allocations: 8.031 kB / 436 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.6446, allocations: 77.03 kB / 436.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.6448, allocations: 55.34 kB / 436.2 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008119/0.6456, allocations: 401.7 kB / 436.5 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.293e-05/0.6457, allocations: 27.16 kB / 436.6 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.6458, allocations: 45.84 kB / 436.6 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.6471, allocations: 473.3 kB / 437.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.6472, allocations: 0 / 437.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-05/0.6473, allocations: 14.12 kB / 437.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.6473, allocations: 8 kB / 437.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.6485, allocations: 404.1 kB / 437.5 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006362/0.6549, allocations: 2.201 MB / 439.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005836/0.6608, allocations: 0.7309 MB / 440.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007532/0.6616, allocations: 275.4 kB / 440.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.97e-05/0.6616, allocations: 4.328 kB / 440.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000782/0.6624, allocations: 299.4 kB / 441 MB, free: 14.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.825e-06/0.6625, allocations: 0 / 441 MB, free: 14.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.002052/0.6645, allocations: 0.5589 MB / 441.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.191e-05/0.6646, allocations: 88.97 kB / 441.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006644/0.6653, allocations: 353.3 kB / 442 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/0.6654, allocations: 36.7 kB / 442 MB, free: 13.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.6656, allocations: 236.4 kB / 442.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.6658, allocations: 126.4 kB / 442.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.277e-05/0.6659, allocations: 3.5 kB / 442.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.6661, allocations: 364.5 kB / 442.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005251/0.6666, allocations: 164.9 kB / 442.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005521/0.6672, allocations: 216.4 kB / 443.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.6677, allocations: 190.8 kB / 443.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6677, allocations: 0 / 443.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002016/0.6698, allocations: 0.621 MB / 443.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.223e-05/0.6698, allocations: 33.66 kB / 443.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6699, allocations: 0 / 443.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/0.6714, allocations: 341.1 kB / 444.3 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009855/0.6724, allocations: 103.9 kB / 444.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/0.6845, allocations: 3.082 MB / 447.5 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.6859, allocations: 121.5 kB / 447.6 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.686, allocations: 14.86 kB / 447.6 MB, free: 9.117 MB / 362.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.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.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.0002272/0.6863, allocations: 137.9 kB / 447.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.6864, allocations: 43.53 kB / 447.8 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.6866, allocations: 51.16 kB / 447.8 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.6866, allocations: 4 kB / 447.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.6866, allocations: 0 / 447.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.6866, allocations: 7.984 kB / 447.8 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.6877, allocations: 0.6059 MB / 448.4 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.6877, allocations: 4 kB / 448.4 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009522/0.6887, allocations: 103.4 kB / 448.5 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.6901, allocations: 340.9 kB / 448.9 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.473e-05/0.6903, allocations: 8 kB / 448.9 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/0.7025, allocations: 3.077 MB / 452 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.7025, allocations: 0 / 452 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.7053, allocations: 0.8608 MB / 452.8 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.7057, allocations: 184.4 kB / 453 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.7058, allocations: 4 kB / 453 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.7071, allocations: 103.9 kB / 453.1 MB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.7073, allocations: 59.98 kB / 453.2 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-05/0.7074, allocations: 12 kB / 453.2 MB, free: 3.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004962/0.7079, allocations: 281.2 kB / 453.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7079, allocations: 0 / 453.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009168/0.7089, allocations: 175.7 kB / 453.6 MB, free: 3.09 MB / 362.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.003169/0.712, allocations: 1.437 MB / 455.1 MB, free: 1.617 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.7149, allocations: 0.6648 MB / 455.7 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.715, allocations: 0 / 455.7 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.717, allocations: 433.4 kB / 456.1 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008801/0.7179, allocations: 81.97 kB / 456.2 MB, free: 428 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005918/0.7238, allocations: 0.9868 MB / 457.2 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006748/0.7245, allocations: 0.8514 MB / 458.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005835/0.7251, allocations: 43.39 kB / 458.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005383/0.7257, allocations: 159.4 kB / 458.3 MB, free: 14.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.253e-06/0.7257, allocations: 0 / 458.3 MB, free: 14.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08775/0.8135, allocations: 15.21 MB / 473.5 MB, free: 15.28 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003263/0.8139, allocations: 190.9 kB / 473.7 MB, free: 15.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.052/3.866, allocations: 0 / 473.7 MB, free: 15.05 MB / 394.7 MB