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.834/1.834, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.461e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2713, allocations: 38.77 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4099, allocations: 67.79 MB / 331.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.4102, allocations: 75.95 kB / 331.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02861/0.4389, allocations: 6.016 MB / 337.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4389, allocations: 0 / 337.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.681e-05/0.439, allocations: 16 kB / 337.7 MB, free: 15.74 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.001536/0.4405, allocations: 0.6152 MB / 338.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.4406, allocations: 12.03 kB / 338.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.4408, allocations: 66.53 kB / 338.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.4409, allocations: 47.44 kB / 338.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.4415, allocations: 302.5 kB / 338.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.4416, allocations: 24.78 kB / 338.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.4417, allocations: 31.94 kB / 338.8 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009487/0.4426, allocations: 339.1 kB / 339.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.4427, allocations: 0 / 339.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-05/0.4428, allocations: 12 kB / 339.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.4428, allocations: 8 kB / 339.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007426/0.4436, allocations: 233.5 kB / 339.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.4472, allocations: 1.439 MB / 340.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.4479, allocations: 202.5 kB / 341 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.4482, allocations: 88.84 kB / 341.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.4482, allocations: 11.98 kB / 341.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.959e-05/0.4483, allocations: 42.52 kB / 341.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 5.481e-06/0.4483, allocations: 4 kB / 341.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008829/0.4492, allocations: 268.1 kB / 341.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.4493, allocations: 55.34 kB / 341.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.4498, allocations: 274.8 kB / 341.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.261e-05/0.4499, allocations: 25.7 kB / 341.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.4501, allocations: 262.5 kB / 342.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.4502, allocations: 74.92 kB / 342.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.4503, allocations: 8 kB / 342.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4505, allocations: 322.8 kB / 342.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.4507, allocations: 60 kB / 342.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/0.451, allocations: 108.3 kB / 342.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.4512, allocations: 75.84 kB / 342.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4513, allocations: 4 kB / 342.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001067/0.4524, allocations: 303.8 kB / 343 MB, free: 10.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.4524, allocations: 13.7 kB / 343 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4524, allocations: 0 / 343 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006715/0.4531, allocations: 110.6 kB / 343.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.4535, allocations: 39.92 kB / 343.2 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005356/0.4589, allocations: 4.438 MB / 347.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004614/0.4594, allocations: 31.72 kB / 347.6 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-05/0.4595, allocations: 11.98 kB / 347.6 MB, free: 5.117 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.0001462/0.4596, allocations: 116.9 kB / 347.7 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.995e-05/0.4597, allocations: 31.62 kB / 347.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.4599, allocations: 38.95 kB / 347.8 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4599, allocations: 8.062 kB / 347.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4599, allocations: 0 / 347.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.4599, allocations: 3.953 kB / 347.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000685/0.4606, allocations: 377.5 kB / 348.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4606, allocations: 0 / 348.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.4609, allocations: 24.11 kB / 348.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005942/0.4615, allocations: 126.4 kB / 348.3 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.4616, allocations: 8 kB / 348.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005211/0.4668, allocations: 4.418 MB / 352.8 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4669, allocations: 0 / 352.8 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008449/0.4677, allocations: 380.9 kB / 353.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.468, allocations: 128.6 kB / 353.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.495e-05/0.468, allocations: 7.984 kB / 353.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.4685, allocations: 27.98 kB / 353.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.4686, allocations: 27.91 kB / 353.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.4687, allocations: 4 kB / 353.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003703/0.4691, allocations: 222.2 kB / 353.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4691, allocations: 0 / 353.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001038/0.4701, allocations: 115.7 kB / 353.7 MB, free: 14.58 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.001238/0.4714, allocations: 0.9059 MB / 354.6 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.4726, allocations: 0.5165 MB / 355.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4726, allocations: 0 / 355.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000698/0.4733, allocations: 445 kB / 355.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006243/0.474, allocations: 53.23 kB / 355.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.4759, allocations: 0.4966 MB / 356.1 MB, free: 12.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004703/0.4764, allocations: 0.8028 MB / 356.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.4767, allocations: 111.4 kB / 357 MB, free: 11.09 MB / 314.7 MB Notification: Performance of SimCode: time 5.671e-06/0.4767, allocations: 0 / 357 MB, free: 11.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.923/3.4, allocations: 9.534 MB / 366.5 MB, free: 1.562 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