Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.621e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2837, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.43, allocations: 67.79 MB / 331.6 MB, free: 5.988 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.4304, allocations: 63.97 kB / 331.7 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02672/0.4571, allocations: 6.028 MB / 337.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4572, allocations: 0 / 337.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.278e-05/0.4572, allocations: 12 kB / 337.7 MB, free: 15.86 MB / 298.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.001391/0.4586, allocations: 0.6113 MB / 338.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4587, allocations: 8.031 kB / 338.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.4588, allocations: 74.53 kB / 338.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.4589, allocations: 47.44 kB / 338.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.4595, allocations: 306.5 kB / 338.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.4596, allocations: 24.78 kB / 338.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.797e-05/0.4596, allocations: 28 kB / 338.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000888/0.4605, allocations: 340.6 kB / 339.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4606, allocations: 0 / 339.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.139e-05/0.4607, allocations: 12 kB / 339.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.4607, allocations: 12 kB / 339.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007122/0.4614, allocations: 239 kB / 339.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.4648, allocations: 1.439 MB / 340.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.4654, allocations: 211.5 kB / 341 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.4657, allocations: 92.86 kB / 341.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.955e-05/0.4658, allocations: 7.938 kB / 341.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.4658, allocations: 38.52 kB / 341.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.186e-06/0.4658, allocations: 0 / 341.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008588/0.4667, allocations: 264.1 kB / 341.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.4668, allocations: 59.41 kB / 341.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004782/0.4672, allocations: 274.7 kB / 341.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.4673, allocations: 33.7 kB / 341.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.4675, allocations: 258.5 kB / 342 MB, free: 11.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.681e-05/0.4676, allocations: 74.91 kB / 342.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.4676, allocations: 8 kB / 342.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.4678, allocations: 318.8 kB / 342.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.468, allocations: 64 kB / 342.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.4683, allocations: 116.2 kB / 342.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.4686, allocations: 71.91 kB / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4686, allocations: 0 / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001036/0.4696, allocations: 307.8 kB / 343 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.4697, allocations: 4 kB / 343 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.4697, allocations: 4 kB / 343 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006304/0.4703, allocations: 118.4 kB / 343.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.4707, allocations: 27.98 kB / 343.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005345/0.476, allocations: 4.453 MB / 347.6 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.4765, allocations: 27.75 kB / 347.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.4766, allocations: 8.062 kB / 347.6 MB, free: 5.219 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.0001492/0.4767, allocations: 124.9 kB / 347.7 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.947e-05/0.4769, allocations: 35.62 kB / 347.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.477, allocations: 38.95 kB / 347.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.477, allocations: 0 / 347.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.477, allocations: 0 / 347.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.477, allocations: 3.953 kB / 347.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006329/0.4777, allocations: 377.4 kB / 348.2 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4777, allocations: 8.281 kB / 348.2 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.4779, allocations: 23.98 kB / 348.2 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005405/0.4785, allocations: 110.5 kB / 348.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.4785, allocations: 11.92 kB / 348.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005246/0.4838, allocations: 4.43 MB / 352.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4838, allocations: 0 / 352.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008839/0.4847, allocations: 377.2 kB / 353.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.485, allocations: 136.6 kB / 353.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.4851, allocations: 4 kB / 353.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.4855, allocations: 27.97 kB / 353.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.4857, allocations: 23.97 kB / 353.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.4857, allocations: 8.125 kB / 353.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.4861, allocations: 222.2 kB / 353.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4861, allocations: 0 / 353.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009108/0.487, allocations: 115.7 kB / 353.7 MB, free: 14.66 MB / 314.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.001201/0.4882, allocations: 0.9176 MB / 354.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.4894, allocations: 0.5308 MB / 355.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4894, allocations: 0 / 355.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007153/0.4902, allocations: 468.2 kB / 355.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.4908, allocations: 49.75 kB / 355.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.4925, allocations: 0.5038 MB / 356.1 MB, free: 12.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.493, allocations: 0.8029 MB / 356.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.4933, allocations: 107.4 kB / 357 MB, free: 11.11 MB / 314.7 MB Notification: Performance of SimCode: time 1.031e-06/0.4933, allocations: 0 / 357 MB, free: 11.11 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.791/3.284, allocations: 9.527 MB / 366.6 MB, free: 1.586 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat