Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.081e-05/4.094e-05, allocations: 7.984 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.41 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.5664, allocations: 78.93 MB / 421.6 MB, free: 15.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5667, allocations: 68.06 kB / 421.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02701/0.5937, allocations: 6.493 MB / 428.1 MB, free: 9.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5938, allocations: 0 / 428.1 MB, free: 9.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.5938, allocations: 8 kB / 428.1 MB, free: 9.523 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.00137/0.5952, allocations: 0.6127 MB / 428.7 MB, free: 8.891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.5953, allocations: 16.02 kB / 428.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.5954, allocations: 66.05 kB / 428.8 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.5955, allocations: 51.42 kB / 428.9 MB, free: 8.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.596, allocations: 295.3 kB / 429.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.5961, allocations: 24.78 kB / 429.2 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.5962, allocations: 30 kB / 429.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007946/0.597, allocations: 329.2 kB / 429.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.597, allocations: 4 kB / 429.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.903e-05/0.5971, allocations: 18.12 kB / 429.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.5971, allocations: 8 kB / 429.6 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006921/0.5978, allocations: 232.8 kB / 429.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.601, allocations: 1.436 MB / 431.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.6016, allocations: 204.5 kB / 431.4 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.6019, allocations: 94.48 kB / 431.5 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.6019, allocations: 0 / 431.5 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.602, allocations: 41.92 kB / 431.6 MB, free: 6.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.225e-06/0.602, allocations: 0 / 431.6 MB, free: 6.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000746/0.6028, allocations: 269.2 kB / 431.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.6028, allocations: 51.41 kB / 431.9 MB, free: 6.199 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.6032, allocations: 275.9 kB / 432.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.6033, allocations: 29.27 kB / 432.2 MB, free: 5.941 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.6035, allocations: 258.6 kB / 432.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.6036, allocations: 76.78 kB / 432.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.966e-05/0.6036, allocations: 3.125 kB / 432.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6037, allocations: 328.7 kB / 432.8 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.604, allocations: 69.38 kB / 432.9 MB, free: 5.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.6042, allocations: 103.1 kB / 433 MB, free: 5.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/0.6044, allocations: 66.59 kB / 433.1 MB, free: 5.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6045, allocations: 0 / 433.1 MB, free: 5.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009584/0.6054, allocations: 321.7 kB / 433.4 MB, free: 4.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.6055, allocations: 7.984 kB / 433.4 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6055, allocations: 0 / 433.4 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005961/0.6061, allocations: 111.5 kB / 433.5 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.6064, allocations: 35.95 kB / 433.5 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/0.6112, allocations: 4.43 MB / 438 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.6117, allocations: 34.16 kB / 438 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.6118, allocations: 7.984 kB / 438 MB, free: 188 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.0001407/0.6119, allocations: 120.2 kB / 438.1 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.372e-05/0.612, allocations: 31.62 kB / 438.1 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.394e-05/0.6121, allocations: 39.89 kB / 438.2 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.6121, allocations: 4 kB / 438.2 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.6121, allocations: 3.938 kB / 438.2 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.6122, allocations: 0 / 438.2 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.6128, allocations: 379.9 kB / 438.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6128, allocations: 3.938 kB / 438.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.613, allocations: 23.98 kB / 438.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000522/0.6136, allocations: 115.2 kB / 438.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.6136, allocations: 11.11 kB / 438.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004788/0.6184, allocations: 4.433 MB / 443.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6185, allocations: 0 / 443.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007864/0.6193, allocations: 371.4 kB / 443.5 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.6195, allocations: 123.7 kB / 443.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.6195, allocations: 7.625 kB / 443.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.62, allocations: 23.11 kB / 443.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.6201, allocations: 27.39 kB / 443.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.6201, allocations: 11.75 kB / 443.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003373/0.6205, allocations: 216.6 kB / 443.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6205, allocations: 0 / 443.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009295/0.6214, allocations: 114.3 kB / 444 MB, free: 10.19 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.001122/0.6226, allocations: 0.9088 MB / 444.9 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.6236, allocations: 0.5222 MB / 445.5 MB, free: 8.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6237, allocations: 0 / 445.5 MB, free: 8.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.6243, allocations: 436.2 kB / 445.9 MB, free: 8.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000554/0.6249, allocations: 59.56 kB / 445.9 MB, free: 8.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.6265, allocations: 0.5014 MB / 446.4 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.627, allocations: 0.799 MB / 447.2 MB, free: 7.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.6273, allocations: 112.1 kB / 447.3 MB, free: 7.043 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6273, allocations: 0 / 447.3 MB, free: 7.043 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.779/3.407, allocations: 9.526 MB / 456.9 MB, free: 13.58 MB / 378.7 MB