Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.425e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4299/0.5443, allocations: 83.24 MB / 425.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.5447, allocations: 74.64 kB / 425.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04418/0.5889, allocations: 9.237 MB / 435.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5889, allocations: 0 / 435.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.639e-05/0.5889, allocations: 8 kB / 435.2 MB, free: 2.938 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.003328/0.5923, allocations: 0.8798 MB / 436.1 MB, free: 2.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.5923, allocations: 8.031 kB / 436.1 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.5925, allocations: 77.2 kB / 436.1 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.5927, allocations: 55.34 kB / 436.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007899/0.5935, allocations: 395.4 kB / 436.6 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.5935, allocations: 26.84 kB / 436.6 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.5937, allocations: 42.41 kB / 436.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.5949, allocations: 476.9 kB / 437.1 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.5949, allocations: 3.938 kB / 437.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.097e-05/0.595, allocations: 17.86 kB / 437.1 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.595, allocations: 8 kB / 437.2 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.5962, allocations: 397.9 kB / 437.5 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005866/0.6021, allocations: 2.199 MB / 439.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005876/0.608, allocations: 0.7262 MB / 440.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007065/0.6087, allocations: 275.8 kB / 440.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.019e-05/0.6088, allocations: 8.328 kB / 440.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007652/0.6096, allocations: 298.9 kB / 441 MB, free: 14.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.595e-06/0.6096, allocations: 0 / 441 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.002023/0.6116, allocations: 0.5602 MB / 441.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/0.6117, allocations: 85.05 kB / 441.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006429/0.6124, allocations: 353.4 kB / 442 MB, free: 13.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.993e-05/0.6125, allocations: 36.89 kB / 442.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.6127, allocations: 265.3 kB / 442.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.6129, allocations: 130.9 kB / 442.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.613, allocations: 15.38 kB / 442.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6132, allocations: 325.7 kB / 442.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000542/0.6137, allocations: 178 kB / 443 MB, free: 12.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005786/0.6143, allocations: 207.8 kB / 443.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005543/0.6149, allocations: 192.9 kB / 443.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.6149, allocations: 0 / 443.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002016/0.6169, allocations: 0.582 MB / 443.9 MB, free: 12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.994e-05/0.617, allocations: 41.39 kB / 444 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.6171, allocations: 7.938 kB / 444 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.6186, allocations: 333.7 kB / 444.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.6197, allocations: 99.17 kB / 444.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.6323, allocations: 3.092 MB / 447.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.6337, allocations: 110.8 kB / 447.6 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/0.6338, allocations: 15.94 kB / 447.6 MB, free: 8.953 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.000222/0.6341, allocations: 127.2 kB / 447.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.6342, allocations: 51.44 kB / 447.8 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001891/0.6344, allocations: 61.39 kB / 447.8 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.6344, allocations: 4 kB / 447.9 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.6344, allocations: 0 / 447.9 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.6345, allocations: 0 / 447.9 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.6355, allocations: 0.6081 MB / 448.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6355, allocations: 0 / 448.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009548/0.6365, allocations: 103.3 kB / 448.6 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.6379, allocations: 341 kB / 448.9 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.61e-05/0.638, allocations: 11.86 kB / 448.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/0.65, allocations: 3.072 MB / 452 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.65, allocations: 4 kB / 452 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.6529, allocations: 0.8686 MB / 452.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.6533, allocations: 180.4 kB / 453 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.6534, allocations: 12 kB / 453 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6547, allocations: 91.91 kB / 453.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.6549, allocations: 51.88 kB / 453.2 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.934e-05/0.655, allocations: 15.94 kB / 453.2 MB, free: 3.785 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005249/0.6555, allocations: 289.2 kB / 453.5 MB, free: 3.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6555, allocations: 0 / 453.5 MB, free: 3.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009046/0.6565, allocations: 175.7 kB / 453.6 MB, free: 3.332 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.003203/0.6597, allocations: 1.429 MB / 455.1 MB, free: 1.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.6621, allocations: 0.6648 MB / 455.7 MB, free: 1.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.6621, allocations: 4.062 kB / 455.7 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.6637, allocations: 425.4 kB / 456.2 MB, free: 0.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007134/0.6644, allocations: 88.09 kB / 456.2 MB, free: 0.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/0.6691, allocations: 1.024 MB / 457.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005339/0.6696, allocations: 0.8436 MB / 458.1 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.6701, allocations: 163.4 kB / 458.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6701, allocations: 0 / 458.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.684/3.354, allocations: 11.08 MB / 469.4 MB, free: 3.535 MB / 378.7 MB