Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.131/2.131, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.479e-05, allocations: 4 kB / 292.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.5877, allocations: 79.88 MB / 423 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.588, allocations: 69.39 kB / 423.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02176/0.6098, allocations: 5.063 MB / 428.2 MB, free: 9.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.6099, allocations: 0 / 428.2 MB, free: 9.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.6099, allocations: 4 kB / 428.2 MB, free: 9.586 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00134/0.6113, allocations: 0.5395 MB / 428.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.169e-05/0.6113, allocations: 12.02 kB / 428.7 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.6115, allocations: 63.48 kB / 428.8 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.6116, allocations: 39.53 kB / 428.8 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.6121, allocations: 272.3 kB / 429.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.6122, allocations: 19 kB / 429.1 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.405e-05/0.6123, allocations: 28.75 kB / 429.1 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000762/0.613, allocations: 270 kB / 429.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.6131, allocations: 3.953 kB / 429.4 MB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.6131, allocations: 10.25 kB / 429.4 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.6132, allocations: 8 kB / 429.4 MB, free: 8.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.6137, allocations: 187.2 kB / 429.6 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002737/0.6165, allocations: 1.146 MB / 430.8 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.6173, allocations: 198.6 kB / 430.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.6178, allocations: 141.9 kB / 431.1 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.6178, allocations: 8.188 kB / 431.1 MB, free: 7.051 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.6182, allocations: 158.4 kB / 431.2 MB, free: 6.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.506e-06/0.6182, allocations: 0 / 431.2 MB, free: 6.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008956/0.6191, allocations: 264.2 kB / 431.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.6193, allocations: 139.6 kB / 431.6 MB, free: 6.539 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.6197, allocations: 208.4 kB / 431.8 MB, free: 6.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.6197, allocations: 33.27 kB / 431.9 MB, free: 6.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.6199, allocations: 167.4 kB / 432 MB, free: 6.188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.442e-05/0.62, allocations: 73.12 kB / 432.1 MB, free: 6.125 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.62, allocations: 7.75 kB / 432.1 MB, free: 6.121 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.6202, allocations: 332.2 kB / 432.4 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.6204, allocations: 74.62 kB / 432.5 MB, free: 5.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.6207, allocations: 112 kB / 432.6 MB, free: 5.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.6209, allocations: 62.92 kB / 432.7 MB, free: 5.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.6209, allocations: 4 kB / 432.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007379/0.6217, allocations: 274.7 kB / 433 MB, free: 5.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.6217, allocations: 4 kB / 433 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.6217, allocations: 0 / 433 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.6223, allocations: 100.8 kB / 433.1 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.6226, allocations: 31.92 kB / 433.1 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003404/0.626, allocations: 1.983 MB / 435.1 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004373/0.6265, allocations: 31.3 kB / 435.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.6266, allocations: 8 kB / 435.1 MB, free: 3.461 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.6267, allocations: 119.4 kB / 435.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.26e-05/0.6268, allocations: 31.61 kB / 435.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.6269, allocations: 32.95 kB / 435.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.6269, allocations: 8 kB / 435.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.627, allocations: 0 / 435.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.627, allocations: 0 / 435.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.6285, allocations: 0.7912 MB / 436.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6286, allocations: 3.938 kB / 436.1 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.6289, allocations: 20.09 kB / 436.1 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004512/0.6293, allocations: 89.62 kB / 436.2 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.6294, allocations: 7.812 kB / 436.2 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003242/0.6326, allocations: 1.948 MB / 438.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.6327, allocations: 0 / 438.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009673/0.6337, allocations: 445.6 kB / 438.6 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.6339, allocations: 119.3 kB / 438.7 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.6339, allocations: 6.938 kB / 438.7 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.6343, allocations: 19.53 kB / 438.7 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.6345, allocations: 46.45 kB / 438.8 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.6345, allocations: 4 kB / 438.8 MB, free: 188 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002528/0.6348, allocations: 170.8 kB / 439 MB, free: 48 kB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6348, allocations: 4 kB / 439 MB, free: 44 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006912/0.6355, allocations: 98.42 kB / 439.1 MB, free: 15.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001417/0.6369, allocations: 1.06 MB / 440.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009779/0.6379, allocations: 330.2 kB / 440.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.638, allocations: 4 kB / 440.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.6386, allocations: 241.5 kB / 440.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.6392, allocations: 53.98 kB / 440.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.641, allocations: 466.3 kB / 441.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.6415, allocations: 0.7716 MB / 442 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001908/0.6417, allocations: 30 kB / 442 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.6418, allocations: 81.91 kB / 442.1 MB, free: 13.19 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6418, allocations: 0 / 442.1 MB, free: 13.19 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04581/0.6877, allocations: 6.596 MB / 448.7 MB, free: 6.742 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000375/0.6881, allocations: 186 kB / 448.8 MB, free: 6.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.266, allocations: 0 / 448.8 MB, free: 6.516 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat