Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.309e-05/5.329e-05, allocations: 8 kB / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.5518, allocations: 79.85 MB / 422.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.5522, allocations: 70.52 kB / 422.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02125/0.5735, allocations: 5.062 MB / 427.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5735, allocations: 4 kB / 427.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.25e-05/0.5735, allocations: 4 kB / 427.6 MB, free: 10.04 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.001182/0.5747, allocations: 0.5422 MB / 428.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5748, allocations: 8.031 kB / 428.2 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.611e-05/0.5749, allocations: 62.47 kB / 428.2 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.765e-05/0.575, allocations: 39.53 kB / 428.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.5755, allocations: 275.6 kB / 428.6 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.5755, allocations: 19.06 kB / 428.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.5756, allocations: 22.81 kB / 428.6 MB, free: 9.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006948/0.5763, allocations: 271.3 kB / 428.9 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.5763, allocations: 7.953 kB / 428.9 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.5764, allocations: 9.5 kB / 428.9 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.5764, allocations: 8 kB / 428.9 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005432/0.577, allocations: 187.5 kB / 429.1 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.5795, allocations: 1.144 MB / 430.2 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007471/0.5803, allocations: 199.6 kB / 430.4 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.5808, allocations: 145.8 kB / 430.5 MB, free: 7.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.5808, allocations: 4.188 kB / 430.6 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.5812, allocations: 167.2 kB / 430.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.835e-06/0.5812, allocations: 0 / 430.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000895/0.5821, allocations: 259 kB / 431 MB, free: 7.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.5822, allocations: 140 kB / 431.1 MB, free: 6.996 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/0.5826, allocations: 205.1 kB / 431.3 MB, free: 6.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.5827, allocations: 40.97 kB / 431.3 MB, free: 6.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.5828, allocations: 163.9 kB / 431.5 MB, free: 6.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.553e-05/0.5829, allocations: 73.94 kB / 431.6 MB, free: 6.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.017e-05/0.583, allocations: 6.688 kB / 431.6 MB, free: 6.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5831, allocations: 334.9 kB / 431.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.5833, allocations: 68.25 kB / 432 MB, free: 6.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.5836, allocations: 115.3 kB / 432.1 MB, free: 6.113 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.5838, allocations: 61.17 kB / 432.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.5838, allocations: 4 kB / 432.2 MB, free: 6.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007335/0.5846, allocations: 271.8 kB / 432.4 MB, free: 5.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.5846, allocations: 4 kB / 432.4 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.5846, allocations: 128 / 432.4 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/0.5852, allocations: 103.7 kB / 432.5 MB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.5854, allocations: 31.92 kB / 432.6 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.5888, allocations: 1.981 MB / 434.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.5893, allocations: 35.72 kB / 434.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.5893, allocations: 11.25 kB / 434.6 MB, free: 3.918 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.0001658/0.5895, allocations: 117.4 kB / 434.7 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.932e-05/0.5896, allocations: 27.67 kB / 434.7 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.649e-05/0.5897, allocations: 38.33 kB / 434.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.5897, allocations: 4 kB / 434.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.5897, allocations: 3.938 kB / 434.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.5897, allocations: 0 / 434.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.5913, allocations: 0.789 MB / 435.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5913, allocations: 0 / 435.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.5915, allocations: 24.12 kB / 435.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/0.592, allocations: 89.62 kB / 435.7 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.592, allocations: 4 kB / 435.7 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/0.5951, allocations: 1.946 MB / 437.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5951, allocations: 8 kB / 437.6 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009556/0.5961, allocations: 443.9 kB / 438.1 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.5963, allocations: 119.7 kB / 438.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/0.5964, allocations: 7.125 kB / 438.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.5967, allocations: 23.28 kB / 438.2 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.5969, allocations: 43.39 kB / 438.2 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.5969, allocations: 7.062 kB / 438.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002427/0.5972, allocations: 168.8 kB / 438.4 MB, free: 0.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5972, allocations: 0 / 438.4 MB, free: 0.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006605/0.5979, allocations: 97 kB / 438.5 MB, free: 424 kB / 346.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.001332/0.5992, allocations: 1.058 MB / 439.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009288/0.6002, allocations: 327.8 kB / 439.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.6002, allocations: 4 kB / 439.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.6008, allocations: 245.6 kB / 440.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.6013, allocations: 55.23 kB / 440.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.603, allocations: 467 kB / 440.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.6034, allocations: 0.7794 MB / 441.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001738/0.6036, allocations: 26 kB / 441.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.6038, allocations: 84.53 kB / 441.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6038, allocations: 0 / 441.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.6378, allocations: 6.59 MB / 448.1 MB, free: 7.199 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003475/0.6382, allocations: 191.8 kB / 448.3 MB, free: 6.973 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.261, allocations: 0 / 448.3 MB, free: 6.973 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat