Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.625e-05/3.668e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/0.09483, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4611/0.556, allocations: 73.06 MB / 373 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5563, allocations: 66.42 kB / 373.1 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0285/0.5848, allocations: 6.187 MB / 379.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5849, allocations: 0 / 379.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.491e-05/0.5849, allocations: 11.47 kB / 379.3 MB, free: 11.65 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001515/0.5865, allocations: 0.6136 MB / 379.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.5865, allocations: 10.08 kB / 379.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001493/0.5867, allocations: 66.38 kB / 380 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.5869, allocations: 51.58 kB / 380 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.5875, allocations: 296.3 kB / 380.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.5875, allocations: 25 kB / 380.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/0.5876, allocations: 30.28 kB / 380.4 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008673/0.5885, allocations: 334.7 kB / 380.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.5885, allocations: 1.5 kB / 380.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.5886, allocations: 14.38 kB / 380.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.5886, allocations: 7.938 kB / 380.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006895/0.5893, allocations: 226.9 kB / 380.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.5928, allocations: 1.434 MB / 382.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.5934, allocations: 213.1 kB / 382.6 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.5937, allocations: 97.77 kB / 382.7 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.5938, allocations: 2.281 kB / 382.7 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.5938, allocations: 35.62 kB / 382.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.306e-06/0.5938, allocations: 0 / 382.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008711/0.5947, allocations: 265.6 kB / 383 MB, free: 9.848 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.5948, allocations: 64.52 kB / 383 MB, free: 9.777 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000454/0.5952, allocations: 265.6 kB / 383.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.5953, allocations: 30.77 kB / 383.3 MB, free: 9.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.5954, allocations: 260.6 kB / 383.6 MB, free: 9.445 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/0.5955, allocations: 78.34 kB / 383.6 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.5956, allocations: 3.25 kB / 383.6 MB, free: 9.398 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.227e-05/0.5956, allocations: 324.2 kB / 384 MB, free: 9.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.5959, allocations: 63.12 kB / 384 MB, free: 9.082 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.5961, allocations: 101.8 kB / 384.1 MB, free: 9.043 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.5963, allocations: 71.59 kB / 384.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5964, allocations: 0 / 384.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009961/0.5974, allocations: 315.6 kB / 384.5 MB, free: 8.953 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.5974, allocations: 6.562 kB / 384.5 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.5975, allocations: 5.234 kB / 384.5 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006466/0.5981, allocations: 121.5 kB / 384.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/0.5985, allocations: 34.03 kB / 384.7 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/0.6035, allocations: 4.427 MB / 389.1 MB, free: 20.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.604, allocations: 32.31 kB / 389.1 MB, free: 20.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/0.6041, allocations: 13.03 kB / 389.1 MB, free: 20.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.6043, allocations: 119.8 kB / 389.3 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.179e-05/0.6044, allocations: 32.12 kB / 389.3 MB, free: 20.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.6045, allocations: 41.8 kB / 389.3 MB, free: 20.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.6045, allocations: 2.75 kB / 389.3 MB, free: 20.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.6045, allocations: 0 / 389.3 MB, free: 20.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.6045, allocations: 5.359 kB / 389.3 MB, free: 20.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006522/0.6052, allocations: 377.1 kB / 389.7 MB, free: 20.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.6052, allocations: 1.375 kB / 389.7 MB, free: 20.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.6055, allocations: 23.64 kB / 389.7 MB, free: 20.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005561/0.6061, allocations: 118.1 kB / 389.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.6061, allocations: 5.062 kB / 389.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005256/0.6114, allocations: 4.432 MB / 394.3 MB, free: 16.42 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6114, allocations: 1.344 kB / 394.3 MB, free: 16.42 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008694/0.6123, allocations: 368.6 kB / 394.6 MB, free: 16.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.6126, allocations: 127.5 kB / 394.8 MB, free: 16.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.6127, allocations: 4.156 kB / 394.8 MB, free: 16.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.6132, allocations: 25.77 kB / 394.8 MB, free: 16.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.6133, allocations: 31.89 kB / 394.8 MB, free: 16.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.6134, allocations: 7.922 kB / 394.8 MB, free: 16.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003739/0.6138, allocations: 216.3 kB / 395 MB, free: 16.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6138, allocations: 0 / 395 MB, free: 16.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00116/0.6149, allocations: 112.7 kB / 395.2 MB, free: 16.03 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001253/0.6162, allocations: 0.9091 MB / 396.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.6174, allocations: 0.5154 MB / 396.6 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.6175, allocations: 320 / 396.6 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006854/0.6182, allocations: 440.7 kB / 397 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006899/0.6189, allocations: 64.12 kB / 397.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.6208, allocations: 0.4922 MB / 397.6 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.6214, allocations: 0.8027 MB / 398.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.6217, allocations: 109.2 kB / 398.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of SimCode: time 2.385e-06/0.6217, allocations: 0 / 398.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.978/3.6, allocations: 9.53 MB / 408 MB, free: 12.88 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat