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.08/2.08, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.238e-05/4.256e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 44.51 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4072/0.5213, allocations: 73.05 MB / 373 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.5216, allocations: 69.97 kB / 373 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02662/0.5483, allocations: 6.171 MB / 379.2 MB, free: 11.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5483, allocations: 0 / 379.2 MB, free: 11.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.281e-05/0.5484, allocations: 12.5 kB / 379.2 MB, free: 11.98 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.001465/0.5499, allocations: 0.6159 MB / 379.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.5499, allocations: 14.89 kB / 379.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.5501, allocations: 67.03 kB / 379.9 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.5503, allocations: 51.33 kB / 380 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.5508, allocations: 296.8 kB / 380.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.5509, allocations: 26.47 kB / 380.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.551, allocations: 35.64 kB / 380.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008524/0.5518, allocations: 329 kB / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.5519, allocations: 1.5 kB / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.5519, allocations: 13.31 kB / 380.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.552, allocations: 8.25 kB / 380.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.5527, allocations: 237.6 kB / 380.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.556, allocations: 1.432 MB / 382.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.5566, allocations: 220.1 kB / 382.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.5569, allocations: 95.92 kB / 382.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.5569, allocations: 2.219 kB / 382.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.5569, allocations: 37.56 kB / 382.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.216e-06/0.557, allocations: 0 / 382.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008502/0.5578, allocations: 263 kB / 382.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.5579, allocations: 57.97 kB / 383 MB, free: 10.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004512/0.5583, allocations: 272.6 kB / 383.3 MB, free: 10 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.5584, allocations: 30.45 kB / 383.3 MB, free: 9.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.5585, allocations: 262.9 kB / 383.5 MB, free: 9.777 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.5586, allocations: 73.67 kB / 383.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.5587, allocations: 7.188 kB / 383.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.5587, allocations: 319.8 kB / 383.9 MB, free: 9.418 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.5589, allocations: 63.34 kB / 384 MB, free: 9.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.5592, allocations: 107 kB / 384.1 MB, free: 9.375 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.5594, allocations: 71.52 kB / 384.2 MB, free: 9.371 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.5594, allocations: 5.578 kB / 384.2 MB, free: 9.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009574/0.5604, allocations: 312 kB / 384.5 MB, free: 9.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.5605, allocations: 9.719 kB / 384.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.5605, allocations: 5.391 kB / 384.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006236/0.5611, allocations: 110.3 kB / 384.6 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000362/0.5615, allocations: 34.94 kB / 384.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004677/0.5662, allocations: 4.441 MB / 389.1 MB, free: 21.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.5667, allocations: 32.14 kB / 389.1 MB, free: 21.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.5668, allocations: 8.922 kB / 389.1 MB, free: 21.17 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.0001534/0.567, allocations: 121.7 kB / 389.2 MB, free: 21.06 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.404e-05/0.5671, allocations: 32.06 kB / 389.3 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.5672, allocations: 44.34 kB / 389.3 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.5672, allocations: 3.438 kB / 389.3 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.5672, allocations: 0 / 389.3 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5672, allocations: 0 / 389.3 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000637/0.5679, allocations: 372.7 kB / 389.7 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5679, allocations: 1.25 kB / 389.7 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.5681, allocations: 27.44 kB / 389.7 MB, free: 20.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000536/0.5687, allocations: 115.9 kB / 389.8 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.5687, allocations: 5.406 kB / 389.8 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005325/0.5741, allocations: 4.441 MB / 394.3 MB, free: 16.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5741, allocations: 3.938 kB / 394.3 MB, free: 16.74 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000846/0.575, allocations: 361.6 kB / 394.6 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.5753, allocations: 127 kB / 394.8 MB, free: 16.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.5754, allocations: 10.25 kB / 394.8 MB, free: 16.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.5758, allocations: 24.58 kB / 394.8 MB, free: 16.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.576, allocations: 29.56 kB / 394.8 MB, free: 16.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.576, allocations: 4.188 kB / 394.8 MB, free: 16.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003599/0.5764, allocations: 218.2 kB / 395 MB, free: 16.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5764, allocations: 1.281 kB / 395 MB, free: 16.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009936/0.5774, allocations: 113.6 kB / 395.1 MB, free: 16.35 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.001188/0.5786, allocations: 0.9086 MB / 396.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.5798, allocations: 0.5441 MB / 396.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.5798, allocations: 0 / 396.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006928/0.5805, allocations: 460.8 kB / 397 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.5811, allocations: 57.48 kB / 397.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.5829, allocations: 0.5005 MB / 397.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.5834, allocations: 0.8052 MB / 398.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.5837, allocations: 110.7 kB / 398.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.352e-06/0.5837, allocations: 0 / 398.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.973/3.556, allocations: 9.524 MB / 408 MB, free: 13.13 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