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.719/1.719, allocations: 171.2 MB / 183.8 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.348e-05, allocations: 4 kB / 225.1 MB, free: 2.75 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2527, allocations: 38.76 MB / 263.8 MB, free: 9.781 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.3751, allocations: 68.72 MB / 332.5 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.3754, allocations: 75.95 kB / 332.6 MB, free: 4.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02016/0.3956, allocations: 4.803 MB / 337.4 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3956, allocations: 0 / 337.4 MB, free: 68 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.3956, allocations: 4 kB / 337.4 MB, free: 64 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.001199/0.3969, allocations: 0.5392 MB / 338 MB, free: 15.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3969, allocations: 12.03 kB / 338 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.762e-05/0.397, allocations: 58.53 kB / 338 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.827e-05/0.3971, allocations: 39.62 kB / 338.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.3976, allocations: 263.7 kB / 338.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.3976, allocations: 16.56 kB / 338.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-05/0.3977, allocations: 27.95 kB / 338.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006962/0.3984, allocations: 276.5 kB / 338.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.3985, allocations: 0 / 338.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.3985, allocations: 16 kB / 338.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3985, allocations: 4 kB / 338.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005632/0.3991, allocations: 190.2 kB / 338.8 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.4016, allocations: 1.156 MB / 340 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.4023, allocations: 203.3 kB / 340.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.4028, allocations: 145.2 kB / 340.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.4028, allocations: 192 / 340.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.4032, allocations: 160 kB / 340.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/0.4032, allocations: 4.219 kB / 340.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.000863/0.4041, allocations: 271 kB / 340.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.916e-05/0.4042, allocations: 132.5 kB / 340.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.4045, allocations: 213.1 kB / 341.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.4046, allocations: 33.7 kB / 341.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.4048, allocations: 222.7 kB / 341.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.449e-05/0.4049, allocations: 83.02 kB / 341.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.4049, allocations: 4 kB / 341.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.405, allocations: 318.8 kB / 341.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.4053, allocations: 64 kB / 341.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.4055, allocations: 113.1 kB / 341.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.4058, allocations: 75.94 kB / 342 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.4058, allocations: 0 / 342 MB, free: 11.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006841/0.4065, allocations: 262.3 kB / 342.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.4065, allocations: 4 kB / 342.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4065, allocations: 0 / 342.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.407, allocations: 104.8 kB / 342.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.4073, allocations: 27.92 kB / 342.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/0.4108, allocations: 1.979 MB / 344.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.4113, allocations: 35.92 kB / 344.4 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.4113, allocations: 15.94 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.0001524/0.4115, allocations: 124.9 kB / 344.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.4116, allocations: 31.7 kB / 344.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.179e-05/0.4117, allocations: 25.97 kB / 344.6 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.4117, allocations: 4 kB / 344.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.4117, allocations: 4 kB / 344.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.4117, allocations: 3.984 kB / 344.6 MB, free: 8.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.4133, allocations: 0.7881 MB / 345.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4134, allocations: 4 kB / 345.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.4136, allocations: 19.98 kB / 345.4 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004353/0.414, allocations: 88.89 kB / 345.5 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.4141, allocations: 8 kB / 345.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.4173, allocations: 1.94 MB / 347.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4173, allocations: 0 / 347.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009817/0.4183, allocations: 446.4 kB / 347.9 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.4185, allocations: 136.7 kB / 348 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.4186, allocations: 3.953 kB / 348 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.419, allocations: 23.98 kB / 348 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.4191, allocations: 40 kB / 348.1 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.4192, allocations: 8 kB / 348.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000271/0.4195, allocations: 173.4 kB / 348.3 MB, free: 4.504 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.4195, allocations: 0 / 348.3 MB, free: 4.504 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006339/0.4201, allocations: 91.84 kB / 348.4 MB, free: 4.414 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.001421/0.4216, allocations: 1.057 MB / 349.4 MB, free: 3.324 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009909/0.4226, allocations: 342.4 kB / 349.7 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.4226, allocations: 4.25 kB / 349.7 MB, free: 2.973 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.4232, allocations: 257.9 kB / 350 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.4237, allocations: 57.7 kB / 350.1 MB, free: 2.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.4253, allocations: 472.1 kB / 350.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.4257, allocations: 0.7716 MB / 351.3 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.4259, allocations: 79.41 kB / 351.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4259, allocations: 0 / 351.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.535/2.961, allocations: 5.693 MB / 357.1 MB, free: 11.59 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