Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.148e-05, allocations: 0 / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 50.42 MB / 342.6 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5358, allocations: 78.88 MB / 421.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.5361, allocations: 71.28 kB / 421.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02829/0.5644, allocations: 6.495 MB / 428.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5644, allocations: 0 / 428.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.96e-05/0.5645, allocations: 8 kB / 428.1 MB, free: 9.699 MB / 346.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.001538/0.566, allocations: 0.6057 MB / 428.7 MB, free: 9.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.651e-05/0.5661, allocations: 16.02 kB / 428.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.5663, allocations: 67.3 kB / 428.8 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.5665, allocations: 55.42 kB / 428.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/0.5672, allocations: 297.6 kB / 429.1 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.5672, allocations: 27.16 kB / 429.2 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.5673, allocations: 30.25 kB / 429.2 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008543/0.5682, allocations: 333 kB / 429.5 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.5682, allocations: 0 / 429.5 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.5683, allocations: 16.88 kB / 429.5 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.5683, allocations: 8 kB / 429.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006632/0.569, allocations: 231.2 kB / 429.8 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003209/0.5722, allocations: 1.435 MB / 431.2 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005457/0.5728, allocations: 207.4 kB / 431.4 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.573, allocations: 90.92 kB / 431.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.5731, allocations: 4 kB / 431.5 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.5731, allocations: 41.86 kB / 431.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.065e-06/0.5731, allocations: 0 / 431.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007663/0.5739, allocations: 260.3 kB / 431.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.574, allocations: 55.41 kB / 431.8 MB, free: 6.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004347/0.5744, allocations: 276.2 kB / 432.1 MB, free: 6.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.5745, allocations: 32.83 kB / 432.1 MB, free: 6.117 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.5747, allocations: 202 kB / 432.3 MB, free: 5.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.645e-05/0.5748, allocations: 76.59 kB / 432.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.5748, allocations: 3.375 kB / 432.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.575, allocations: 344.7 kB / 432.8 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.5752, allocations: 61.62 kB / 432.8 MB, free: 5.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.5754, allocations: 112.5 kB / 432.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.5757, allocations: 69.41 kB / 433 MB, free: 5.387 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5757, allocations: 0 / 433 MB, free: 5.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001049/0.5767, allocations: 341.8 kB / 433.3 MB, free: 5.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.5768, allocations: 4 kB / 433.3 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.5768, allocations: 4 kB / 433.3 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006116/0.5774, allocations: 107.2 kB / 433.4 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.5778, allocations: 35.67 kB / 433.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005005/0.5828, allocations: 4.431 MB / 437.9 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.5833, allocations: 39.45 kB / 437.9 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.5834, allocations: 11.62 kB / 438 MB, free: 392 kB / 346.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.0001455/0.5835, allocations: 120.8 kB / 438.1 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.055e-05/0.5836, allocations: 31.62 kB / 438.1 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.567e-05/0.5837, allocations: 38.2 kB / 438.1 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.5837, allocations: 0 / 438.1 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5838, allocations: 7.938 kB / 438.1 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5838, allocations: 0 / 438.1 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006335/0.5844, allocations: 373.9 kB / 438.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5844, allocations: 0 / 438.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.5847, allocations: 31.92 kB / 438.5 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005329/0.5852, allocations: 118.3 kB / 438.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.5853, allocations: 3.25 kB / 438.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004892/0.5902, allocations: 4.438 MB / 443.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5902, allocations: 256 / 443.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008244/0.591, allocations: 372.4 kB / 443.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.5913, allocations: 122.4 kB / 443.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.5913, allocations: 11.56 kB / 443.6 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.5918, allocations: 23.67 kB / 443.6 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.5919, allocations: 31.39 kB / 443.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.5919, allocations: 4 kB / 443.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003374/0.5923, allocations: 217.3 kB / 443.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5923, allocations: 4 kB / 443.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009386/0.5933, allocations: 115.1 kB / 444 MB, free: 10.39 MB / 362.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.001071/0.5943, allocations: 0.9012 MB / 444.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.5954, allocations: 0.5177 MB / 445.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.5954, allocations: 0 / 445.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000634/0.596, allocations: 438.6 kB / 445.8 MB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.5966, allocations: 48.95 kB / 445.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.5981, allocations: 489.8 kB / 446.4 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.5986, allocations: 0.8029 MB / 447.2 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001899/0.5988, allocations: 22.97 kB / 447.2 MB, free: 7.293 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.5991, allocations: 111.2 kB / 447.3 MB, free: 7.262 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5991, allocations: 0 / 447.3 MB, free: 7.262 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04027/0.6394, allocations: 7.519 MB / 454.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003464/0.6398, allocations: 198.2 kB / 455 MB, free: 15.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/3.345, allocations: 0 / 455 MB, free: 15.64 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat