Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.665/1.665, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.409e-05, allocations: 7.984 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.254, allocations: 38.76 MB / 263.9 MB, free: 9.812 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.3744, allocations: 68.74 MB / 332.6 MB, free: 4.977 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.3747, allocations: 67.91 kB / 332.7 MB, free: 4.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01986/0.3946, allocations: 4.797 MB / 337.5 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3947, allocations: 0 / 337.5 MB, free: 96 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.3947, allocations: 4 kB / 337.5 MB, free: 92 kB / 282.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.0012/0.3959, allocations: 0.5431 MB / 338 MB, free: 15.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.396, allocations: 8.031 kB / 338 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.758e-05/0.3961, allocations: 58.55 kB / 338.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.862e-05/0.3962, allocations: 35.62 kB / 338.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/0.3966, allocations: 279.6 kB / 338.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.3967, allocations: 16.56 kB / 338.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.047e-05/0.3968, allocations: 31.95 kB / 338.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000681/0.3975, allocations: 267.5 kB / 338.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3975, allocations: 0 / 338.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.3975, allocations: 8 kB / 338.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3976, allocations: 8 kB / 338.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.3981, allocations: 189 kB / 338.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.4007, allocations: 1.152 MB / 340 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.4014, allocations: 207.1 kB / 340.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.4019, allocations: 149.1 kB / 340.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.4019, allocations: 192 / 340.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003702/0.4023, allocations: 164.4 kB / 340.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 4.258e-06/0.4023, allocations: 0 / 340.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008756/0.4032, allocations: 267.5 kB / 340.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.417e-05/0.4033, allocations: 132.5 kB / 340.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.4037, allocations: 217.1 kB / 341.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.4037, allocations: 33.64 kB / 341.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.4039, allocations: 172.2 kB / 341.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.942e-05/0.404, allocations: 67.02 kB / 341.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.404, allocations: 0 / 341.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4042, allocations: 342.8 kB / 341.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.4044, allocations: 64 kB / 341.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.4046, allocations: 113.1 kB / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.4049, allocations: 67.36 kB / 342 MB, free: 11.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.4049, allocations: 8.016 kB / 342 MB, free: 11.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007211/0.4056, allocations: 270.1 kB / 342.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.4057, allocations: 11.94 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4057, allocations: 0 / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005357/0.4062, allocations: 96.75 kB / 342.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.4065, allocations: 31.92 kB / 342.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.4098, allocations: 1.979 MB / 344.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/0.4103, allocations: 31.83 kB / 344.4 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.4103, allocations: 12.06 kB / 344.4 MB, free: 8.672 MB / 298.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.pulsStart,booleanPulse.pulsStart,$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.0001597/0.4105, allocations: 120.9 kB / 344.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.4106, allocations: 27.72 kB / 344.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.211e-05/0.4107, allocations: 29.95 kB / 344.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.4107, allocations: 4 kB / 344.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4107, allocations: 3.984 kB / 344.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4107, allocations: 0 / 344.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.4122, allocations: 0.7959 MB / 345.4 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4123, allocations: 0 / 345.4 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.4125, allocations: 19.98 kB / 345.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004317/0.4129, allocations: 92.84 kB / 345.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.413, allocations: 4 kB / 345.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/0.416, allocations: 1.94 MB / 347.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4161, allocations: 4.031 kB / 347.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009451/0.417, allocations: 438.4 kB / 347.9 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.4172, allocations: 124.8 kB / 348 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.694e-05/0.4173, allocations: 11.94 kB / 348 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.4177, allocations: 23.98 kB / 348.1 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.4179, allocations: 27.95 kB / 348.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.4179, allocations: 11.98 kB / 348.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002597/0.4182, allocations: 173.5 kB / 348.3 MB, free: 4.586 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4182, allocations: 0 / 348.3 MB, free: 4.586 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006899/0.4189, allocations: 91.84 kB / 348.4 MB, free: 4.496 MB / 298.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.pulsStart,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.00139/0.4203, allocations: 1.062 MB / 349.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009167/0.4212, allocations: 329.5 kB / 349.7 MB, free: 3.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4212, allocations: 4 kB / 349.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005706/0.4218, allocations: 245.8 kB / 350 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.4224, allocations: 62.08 kB / 350 MB, free: 2.754 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.4238, allocations: 454.3 kB / 350.5 MB, free: 2.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.4243, allocations: 0.7716 MB / 351.3 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.4245, allocations: 14.08 kB / 351.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.4247, allocations: 83.41 kB / 351.3 MB, free: 1.383 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4247, allocations: 4 kB / 351.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03742/0.4621, allocations: 6.574 MB / 357.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003218/0.4625, allocations: 189.5 kB / 358.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.492/2.954, allocations: 0 / 358.1 MB, free: 10.64 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat