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.656/1.656, allocations: 171.2 MB / 183.3 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.863e-05, allocations: 0 / 225.1 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2514, allocations: 38.77 MB / 263.8 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3727, allocations: 68.73 MB / 332.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.373, allocations: 67.97 kB / 332.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01979/0.3928, allocations: 4.801 MB / 337.4 MB, free: 108 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3929, allocations: 0 / 337.4 MB, free: 108 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.571e-05/0.3929, allocations: 8 kB / 337.4 MB, free: 100 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.001171/0.3941, allocations: 0.5431 MB / 338 MB, free: 15.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3941, allocations: 8.031 kB / 338 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.496e-05/0.3943, allocations: 58.55 kB / 338.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.776e-05/0.3944, allocations: 31.62 kB / 338.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.3948, allocations: 267.7 kB / 338.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.3949, allocations: 24.5 kB / 338.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-05/0.395, allocations: 31.95 kB / 338.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000699/0.3957, allocations: 276.6 kB / 338.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3957, allocations: 0 / 338.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.3958, allocations: 8 kB / 338.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3958, allocations: 8 kB / 338.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.3963, allocations: 186.2 kB / 338.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.3989, allocations: 1.156 MB / 340 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007435/0.3997, allocations: 215 kB / 340.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004207/0.4001, allocations: 137.2 kB / 340.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.4001, allocations: 8.125 kB / 340.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000368/0.4005, allocations: 156.7 kB / 340.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.564e-06/0.4005, allocations: 224 / 340.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008755/0.4014, allocations: 267.1 kB / 340.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/0.4015, allocations: 136.5 kB / 340.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.4019, allocations: 217.1 kB / 341.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.4019, allocations: 33.7 kB / 341.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.4021, allocations: 168.2 kB / 341.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.591e-05/0.4022, allocations: 70.95 kB / 341.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.4022, allocations: 4 kB / 341.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4024, allocations: 334.8 kB / 341.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.4026, allocations: 68 kB / 341.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.4029, allocations: 117.1 kB / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.4031, allocations: 71.91 kB / 342 MB, free: 11.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4031, allocations: 0 / 342 MB, free: 11.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000709/0.4038, allocations: 278.1 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.4039, allocations: 5.406 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.4039, allocations: 0 / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005164/0.4044, allocations: 96.77 kB / 342.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.4047, allocations: 31.92 kB / 342.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.4079, allocations: 1.975 MB / 344.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003958/0.4083, allocations: 31.86 kB / 344.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.4084, allocations: 12 kB / 344.4 MB, free: 8.676 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.0001539/0.4085, allocations: 128.9 kB / 344.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-05/0.4086, allocations: 23.72 kB / 344.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.999e-05/0.4087, allocations: 29.95 kB / 344.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4087, allocations: 4 kB / 344.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.4087, allocations: 0 / 344.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4088, allocations: 0 / 344.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.4103, allocations: 0.7959 MB / 345.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4103, allocations: 4 kB / 345.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.4105, allocations: 16 kB / 345.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004262/0.411, allocations: 88.84 kB / 345.5 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.416e-05/0.411, allocations: 8 kB / 345.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003085/0.4141, allocations: 1.936 MB / 347.4 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.4142, allocations: 4.031 kB / 347.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009571/0.4151, allocations: 445.4 kB / 347.9 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.4153, allocations: 136.9 kB / 348 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.107e-05/0.4154, allocations: 7.953 kB / 348 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/0.4157, allocations: 19.98 kB / 348 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4159, allocations: 31.95 kB / 348.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.4159, allocations: 11.98 kB / 348.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002534/0.4162, allocations: 173.4 kB / 348.2 MB, free: 4.586 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4162, allocations: 4 kB / 348.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006224/0.4169, allocations: 95.84 kB / 348.3 MB, free: 4.488 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.001335/0.4182, allocations: 1.055 MB / 349.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009695/0.4192, allocations: 354.4 kB / 349.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4192, allocations: 0 / 349.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005602/0.4198, allocations: 258.1 kB / 350 MB, free: 2.777 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.4203, allocations: 49.09 kB / 350 MB, free: 2.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.4217, allocations: 446.4 kB / 350.5 MB, free: 2.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.4221, allocations: 0.7716 MB / 351.3 MB, free: 1.461 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.4223, allocations: 26.05 kB / 351.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.4225, allocations: 79.41 kB / 351.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.4225, allocations: 3.938 kB / 351.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.4607, allocations: 6.609 MB / 358 MB, free: 10.8 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003495/0.4612, allocations: 198.9 kB / 358.2 MB, free: 10.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.579/3.04, allocations: 0 / 358.2 MB, free: 10.57 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