Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.2 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.244e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2613, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3803, allocations: 67.12 MB / 325.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.3806, allocations: 67.97 kB / 325.5 MB, free: 10.58 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02607/0.4067, allocations: 5.954 MB / 331.5 MB, free: 4.594 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4068, allocations: 384 / 331.5 MB, free: 4.594 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.856e-05/0.4068, allocations: 8 kB / 331.5 MB, free: 4.586 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001312/0.4081, allocations: 0.6191 MB / 332.1 MB, free: 3.922 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.4082, allocations: 8.031 kB / 332.1 MB, free: 3.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.4083, allocations: 47.44 kB / 332.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.4089, allocations: 306.2 kB / 332.5 MB, free: 3.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.4089, allocations: 8 kB / 332.5 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.409, allocations: 20 kB / 332.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006491/0.4096, allocations: 217.5 kB / 332.7 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007143/0.4104, allocations: 279.2 kB / 333 MB, free: 2.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.4104, allocations: 7.938 kB / 333 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/0.4105, allocations: 0 / 333 MB, free: 2.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.4105, allocations: 8 kB / 333 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.4136, allocations: 1.371 MB / 334.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.4142, allocations: 186.5 kB / 334.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.4144, allocations: 96.84 kB / 334.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.4145, allocations: 4 kB / 334.6 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.4145, allocations: 30.56 kB / 334.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.715e-06/0.4145, allocations: 0 / 334.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007276/0.4153, allocations: 244 kB / 334.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.4153, allocations: 63.39 kB / 335 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.4157, allocations: 249 kB / 335.2 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.4158, allocations: 29.64 kB / 335.2 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.4159, allocations: 216.4 kB / 335.5 MB, free: 368 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.4161, allocations: 70.92 kB / 335.5 MB, free: 296 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.905e-05/0.4161, allocations: 0 / 335.5 MB, free: 296 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.4163, allocations: 334.8 kB / 335.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.4165, allocations: 63.98 kB / 335.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.4167, allocations: 104.3 kB / 336 MB, free: 15.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.4169, allocations: 67.86 kB / 336.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4169, allocations: 0 / 336.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001009/0.418, allocations: 303.6 kB / 336.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.418, allocations: 11.66 kB / 336.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.418, allocations: 0 / 336.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005953/0.4186, allocations: 118.5 kB / 336.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.419, allocations: 27.98 kB / 336.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004919/0.4239, allocations: 4.271 MB / 340.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004166/0.4244, allocations: 19.86 kB / 340.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.4244, allocations: 8.281 kB / 340.8 MB, free: 10.59 MB / 298.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.0001502/0.4246, allocations: 120.9 kB / 341 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006259/0.4252, allocations: 243.8 kB / 341.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.4253, allocations: 35.56 kB / 341.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.4254, allocations: 34.86 kB / 341.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.4254, allocations: 4 kB / 341.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.4254, allocations: 0 / 341.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4255, allocations: 0 / 341.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.426, allocations: 325.8 kB / 341.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.426, allocations: 0 / 341.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.4263, allocations: 31.92 kB / 341.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005108/0.4268, allocations: 110.6 kB / 341.7 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.4269, allocations: 3.984 kB / 341.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004602/0.4315, allocations: 4.256 MB / 346 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.4315, allocations: 0 / 346 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007365/0.4323, allocations: 345.6 kB / 346.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.4325, allocations: 136.7 kB / 346.5 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.171e-05/0.4326, allocations: 3.953 kB / 346.5 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.433, allocations: 19.98 kB / 346.5 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4332, allocations: 31.89 kB / 346.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.4332, allocations: 7.938 kB / 346.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002897/0.4335, allocations: 200.6 kB / 346.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4335, allocations: 0 / 346.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009509/0.4345, allocations: 103.7 kB / 346.8 MB, free: 4.148 MB / 298.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.0009917/0.4355, allocations: 0.8752 MB / 347.7 MB, free: 3.238 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009724/0.4365, allocations: 0.5011 MB / 348.2 MB, free: 2.707 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4365, allocations: 0 / 348.2 MB, free: 2.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000619/0.4371, allocations: 449 kB / 348.6 MB, free: 2.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.4376, allocations: 41.69 kB / 348.7 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.4392, allocations: 447.3 kB / 349.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.4396, allocations: 0.8148 MB / 349.9 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.4398, allocations: 14.08 kB / 349.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4401, allocations: 111.4 kB / 350 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4401, allocations: 3.938 kB / 350 MB, free: 0.75 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04606/0.4862, allocations: 6.523 MB / 356.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003407/0.4866, allocations: 155.2 kB / 356.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.588/3.075, allocations: 3.938 kB / 356.7 MB, free: 10.05 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat