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.702/1.702, allocations: 171.3 MB / 178.8 MB, free: 148 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.806e-05, allocations: 8 kB / 219.6 MB, free: 7.309 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2542, allocations: 38.77 MB / 258.3 MB, free: 12.13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1168/0.371, allocations: 68.06 MB / 326.4 MB, free: 9.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.3713, allocations: 63.97 kB / 326.4 MB, free: 9.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0197/0.391, allocations: 4.745 MB / 331.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3911, allocations: 0 / 331.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.46e-05/0.3911, allocations: 11.98 kB / 331.2 MB, free: 4.977 MB / 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.001163/0.3923, allocations: 0.5392 MB / 331.7 MB, free: 4.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3923, allocations: 12.03 kB / 331.8 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.3925, allocations: 31.62 kB / 331.8 MB, free: 4.352 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.3929, allocations: 271.6 kB / 332 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.3929, allocations: 8 kB / 332.1 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.647e-05/0.393, allocations: 19.95 kB / 332.1 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005208/0.3936, allocations: 173.1 kB / 332.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.3942, allocations: 239.4 kB / 332.5 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3942, allocations: 4 kB / 332.5 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.3942, allocations: 0 / 332.5 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.3943, allocations: 8 kB / 332.5 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.3967, allocations: 1.093 MB / 333.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006428/0.3974, allocations: 191.1 kB / 333.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.3978, allocations: 133.2 kB / 333.9 MB, free: 2.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.3978, allocations: 192 / 333.9 MB, free: 2.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/0.3982, allocations: 156.4 kB / 334.1 MB, free: 1.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.685e-06/0.3982, allocations: 4 kB / 334.1 MB, free: 1.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008105/0.399, allocations: 247.6 kB / 334.3 MB, free: 1.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/0.3991, allocations: 136.5 kB / 334.4 MB, free: 1.496 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.3994, allocations: 196 kB / 334.6 MB, free: 1.301 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3995, allocations: 25.7 kB / 334.6 MB, free: 1.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.3996, allocations: 230.6 kB / 334.9 MB, free: 1.043 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.164e-05/0.3997, allocations: 71.03 kB / 334.9 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.3998, allocations: 0 / 334.9 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3999, allocations: 318.8 kB / 335.3 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.4001, allocations: 63.94 kB / 335.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.4003, allocations: 113.1 kB / 335.4 MB, free: 472 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.4005, allocations: 67.94 kB / 335.5 MB, free: 404 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4005, allocations: 0 / 335.5 MB, free: 404 kB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006157/0.4011, allocations: 234.3 kB / 335.7 MB, free: 160 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.4012, allocations: 15.58 kB / 335.7 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4012, allocations: 0 / 335.7 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005174/0.4017, allocations: 88.91 kB / 335.8 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.402, allocations: 31.92 kB / 335.9 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003077/0.4051, allocations: 1.931 MB / 337.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/0.4055, allocations: 35.91 kB / 337.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.4055, allocations: 8 kB / 337.8 MB, free: 13.93 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: idealTriac.idealThyristor.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real idealTriac.idealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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.0002019/0.4057, allocations: 113.4 kB / 337.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006831/0.4064, allocations: 250 kB / 338.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.4065, allocations: 27.67 kB / 338.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.548e-05/0.4066, allocations: 21.97 kB / 338.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.4066, allocations: 7.984 kB / 338.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.4066, allocations: 0 / 338.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.4067, allocations: 0 / 338.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.408, allocations: 0.7262 MB / 339 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.408, allocations: 4.031 kB / 339 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.4083, allocations: 19.98 kB / 339 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004032/0.4087, allocations: 92.8 kB / 339.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.4087, allocations: 0 / 339.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002831/0.4116, allocations: 1.873 MB / 341 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4116, allocations: 0 / 341 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008494/0.4125, allocations: 414.6 kB / 341.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.4126, allocations: 128.7 kB / 341.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.4127, allocations: 0 / 341.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003409/0.4131, allocations: 24.11 kB / 341.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4132, allocations: 35.94 kB / 341.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.4133, allocations: 4 kB / 341.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002118/0.4135, allocations: 160.5 kB / 341.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4135, allocations: 0 / 341.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006832/0.4142, allocations: 87.7 kB / 341.8 MB, free: 9.738 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.001237/0.4154, allocations: 1.031 MB / 342.8 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008481/0.4163, allocations: 321.5 kB / 343.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4163, allocations: 4 kB / 343.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.4168, allocations: 233.6 kB / 343.4 MB, free: 8.105 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.4174, allocations: 52.55 kB / 343.4 MB, free: 8.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.4188, allocations: 451.9 kB / 343.9 MB, free: 7.566 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.4192, allocations: 0.7717 MB / 344.6 MB, free: 6.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.4194, allocations: 75.41 kB / 344.7 MB, free: 6.691 MB / 298.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4194, allocations: 4 kB / 344.7 MB, free: 6.688 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.768/3.187, allocations: 5.541 MB / 350.2 MB, free: 1.148 MB / 298.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