Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.023e-05, allocations: 7.984 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.08986, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4154/0.5053, allocations: 73.99 MB / 373.9 MB, free: 16.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.5057, allocations: 67.56 kB / 374 MB, free: 16.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.533, allocations: 4.871 MB / 378.8 MB, free: 16.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5331, allocations: 4 kB / 378.9 MB, free: 16.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.5331, allocations: 6 kB / 378.9 MB, free: 16.03 MB / 314.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.001088/0.5342, allocations: 0.539 MB / 379.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.5343, allocations: 8.656 kB / 379.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.838e-05/0.5344, allocations: 62.94 kB / 379.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.483e-05/0.5345, allocations: 36.53 kB / 379.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.5349, allocations: 274.9 kB / 379.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.5349, allocations: 22.28 kB / 379.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-05/0.535, allocations: 22.94 kB / 379.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/0.5357, allocations: 277.4 kB / 380.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.5357, allocations: 0 / 380.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.5357, allocations: 10.97 kB / 380.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.5358, allocations: 11.41 kB / 380.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005297/0.5363, allocations: 189.7 kB / 380.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.5386, allocations: 1.155 MB / 381.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006661/0.5394, allocations: 210.5 kB / 381.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.5398, allocations: 139.7 kB / 381.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.5398, allocations: 2.719 kB / 381.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003362/0.5402, allocations: 165.5 kB / 382 MB, free: 14.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.866e-06/0.5402, allocations: 0 / 382 MB, free: 14.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008305/0.541, allocations: 261.1 kB / 382.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.5411, allocations: 133.6 kB / 382.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.5414, allocations: 217.2 kB / 382.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.5415, allocations: 37.27 kB / 382.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.5416, allocations: 220.4 kB / 382.8 MB, free: 13.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.5417, allocations: 70.47 kB / 382.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.5417, allocations: 6.156 kB / 382.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.5418, allocations: 318.9 kB / 383.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.542, allocations: 69.66 kB / 383.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.5422, allocations: 115.7 kB / 383.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.5425, allocations: 76.17 kB / 383.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.5425, allocations: 0 / 383.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006352/0.5431, allocations: 266.8 kB / 383.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.5431, allocations: 9.594 kB / 383.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.5432, allocations: 1.969 kB / 383.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004991/0.5437, allocations: 96.11 kB / 383.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.5439, allocations: 30.27 kB / 383.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.5468, allocations: 1.975 MB / 385.8 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.5472, allocations: 36.38 kB / 385.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.5473, allocations: 6.656 kB / 385.9 MB, free: 12.09 MB / 314.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.0001255/0.5474, allocations: 122 kB / 386 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.943e-05/0.5475, allocations: 23.56 kB / 386 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-05/0.5476, allocations: 34.98 kB / 386 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.5476, allocations: 2.938 kB / 386 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5476, allocations: 3.984 kB / 386 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.5477, allocations: 3.719 kB / 386 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.549, allocations: 0.789 MB / 386.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5491, allocations: 0 / 386.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.5493, allocations: 24.42 kB / 386.9 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004133/0.5497, allocations: 85.5 kB / 386.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.5498, allocations: 7.734 kB / 386.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002973/0.5528, allocations: 1.942 MB / 388.9 MB, free: 26.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5528, allocations: 4.062 kB / 388.9 MB, free: 26.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009121/0.5537, allocations: 459.7 kB / 389.3 MB, free: 25.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.5539, allocations: 119.9 kB / 389.5 MB, free: 25.85 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.554, allocations: 8.719 kB / 389.5 MB, free: 25.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003523/0.5544, allocations: 25.38 kB / 389.5 MB, free: 25.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.5545, allocations: 30.38 kB / 389.5 MB, free: 25.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.5546, allocations: 10.8 kB / 389.5 MB, free: 25.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002464/0.5548, allocations: 172.6 kB / 389.7 MB, free: 25.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5548, allocations: 0 / 389.7 MB, free: 25.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006366/0.5555, allocations: 90.97 kB / 389.8 MB, free: 25.76 MB / 330.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.001239/0.5567, allocations: 1.058 MB / 390.8 MB, free: 24.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009088/0.5577, allocations: 345 kB / 391.2 MB, free: 24.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5577, allocations: 1.656 kB / 391.2 MB, free: 24.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005254/0.5582, allocations: 254.9 kB / 391.4 MB, free: 24.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.5588, allocations: 59.28 kB / 391.5 MB, free: 24.7 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.5604, allocations: 491.6 kB / 392 MB, free: 24.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.5609, allocations: 0.7719 MB / 392.7 MB, free: 23.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.561, allocations: 78.78 kB / 392.8 MB, free: 23.73 MB / 330.7 MB Notification: Performance of SimCode: time 8.31e-07/0.561, allocations: 3.938 kB / 392.8 MB, free: 23.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.415/2.976, allocations: 5.707 MB / 398.5 MB, free: 23.39 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat