Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.303e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2607, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.3842, allocations: 68.74 MB / 332.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.3845, allocations: 63.97 kB / 332.6 MB, free: 4.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0212/0.4058, allocations: 4.8 MB / 337.4 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd: time 4.759e-06/0.4058, allocations: 3.984 kB / 337.4 MB, free: 48 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.492e-05/0.4058, allocations: 4 kB / 337.5 MB, free: 44 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.001296/0.4072, allocations: 0.5353 MB / 338 MB, free: 15.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.4072, allocations: 8.031 kB / 338 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.4073, allocations: 62.53 kB / 338.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.4075, allocations: 35.62 kB / 338.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.4079, allocations: 271.6 kB / 338.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.408, allocations: 16.56 kB / 338.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.427e-05/0.4081, allocations: 35.95 kB / 338.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.4088, allocations: 263.5 kB / 338.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.4088, allocations: 8 kB / 338.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.4089, allocations: 8 kB / 338.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.4089, allocations: 8 kB / 338.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005582/0.4095, allocations: 185 kB / 338.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.4124, allocations: 1.156 MB / 340 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.4132, allocations: 207.1 kB / 340.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.4137, allocations: 137.2 kB / 340.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.4137, allocations: 4.172 kB / 340.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004208/0.4141, allocations: 164.4 kB / 340.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 3.267e-06/0.4142, allocations: 224 / 340.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009552/0.4151, allocations: 262.7 kB / 340.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.4153, allocations: 144.5 kB / 340.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.4157, allocations: 213.1 kB / 341.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.4157, allocations: 25.7 kB / 341.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.4159, allocations: 226.7 kB / 341.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.416, allocations: 74.98 kB / 341.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.4161, allocations: 4 kB / 341.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4162, allocations: 322.8 kB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.4165, allocations: 64 kB / 341.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.4167, allocations: 117.1 kB / 341.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.417, allocations: 67.98 kB / 342 MB, free: 11.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.417, allocations: 0 / 342 MB, free: 11.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007217/0.4177, allocations: 262.4 kB / 342.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4178, allocations: 4 kB / 342.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.4178, allocations: 4 kB / 342.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005971/0.4184, allocations: 96.7 kB / 342.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.4187, allocations: 27.98 kB / 342.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003593/0.4223, allocations: 1.979 MB / 344.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.4228, allocations: 31.86 kB / 344.4 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.4228, allocations: 19.92 kB / 344.4 MB, free: 8.605 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.000166/0.423, allocations: 128.2 kB / 344.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.059e-05/0.4231, allocations: 23.72 kB / 344.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.972e-05/0.4232, allocations: 33.95 kB / 344.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.4232, allocations: 4 kB / 344.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4232, allocations: 0 / 344.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4233, allocations: 0 / 344.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.4249, allocations: 0.7959 MB / 345.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.4249, allocations: 0 / 345.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.4252, allocations: 23.98 kB / 345.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004467/0.4256, allocations: 88.86 kB / 345.5 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.4257, allocations: 8 kB / 345.5 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/0.4288, allocations: 1.936 MB / 347.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4289, allocations: 0 / 347.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009441/0.4298, allocations: 448.8 kB / 347.9 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001961/0.43, allocations: 120.9 kB / 348 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.4301, allocations: 15.95 kB / 348 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003632/0.4305, allocations: 19.98 kB / 348.1 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4307, allocations: 35.94 kB / 348.1 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.4307, allocations: 8 kB / 348.1 MB, free: 4.684 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002608/0.431, allocations: 173.4 kB / 348.3 MB, free: 4.516 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.431, allocations: 3.938 kB / 348.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006803/0.4317, allocations: 95.75 kB / 348.4 MB, free: 4.418 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.001369/0.4331, allocations: 1.053 MB / 349.4 MB, free: 3.332 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009498/0.434, allocations: 345.5 kB / 349.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4341, allocations: 0 / 349.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.4346, allocations: 233.6 kB / 350 MB, free: 2.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.4352, allocations: 62.45 kB / 350 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.4367, allocations: 484 kB / 350.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.4371, allocations: 0.7755 MB / 351.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.4373, allocations: 83.41 kB / 351.4 MB, free: 1.289 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4373, allocations: 0 / 351.4 MB, free: 1.289 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.516/2.953, allocations: 5.67 MB / 357 MB, free: 11.63 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat