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.803/1.803, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.832e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2759, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4003, allocations: 67.11 MB / 325.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.4006, allocations: 71.97 kB / 325.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02544/0.4261, allocations: 5.946 MB / 331.5 MB, free: 4.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4261, allocations: 0 / 331.5 MB, free: 4.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.985e-05/0.4262, allocations: 8 kB / 331.5 MB, free: 4.742 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.00133/0.4275, allocations: 0.6191 MB / 332.1 MB, free: 4.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.4276, allocations: 8.031 kB / 332.1 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.4277, allocations: 51.44 kB / 332.1 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.4282, allocations: 302.5 kB / 332.4 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.4283, allocations: 12 kB / 332.4 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.631e-05/0.4284, allocations: 19.94 kB / 332.5 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006463/0.429, allocations: 217.5 kB / 332.7 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000721/0.4297, allocations: 287.1 kB / 333 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.4298, allocations: 0 / 333 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.4298, allocations: 0 / 333 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.4299, allocations: 12 kB / 333 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.4328, allocations: 1.364 MB / 334.3 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.4334, allocations: 198.5 kB / 334.5 MB, free: 1.473 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.4336, allocations: 88.86 kB / 334.6 MB, free: 1.383 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.4337, allocations: 4 kB / 334.6 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.4337, allocations: 30.56 kB / 334.6 MB, free: 1.34 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.455e-06/0.4337, allocations: 3.938 kB / 334.7 MB, free: 1.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007656/0.4345, allocations: 252.1 kB / 334.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.4346, allocations: 51.41 kB / 334.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.435, allocations: 253 kB / 335.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.435, allocations: 25.7 kB / 335.2 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.4352, allocations: 270.8 kB / 335.5 MB, free: 472 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.4353, allocations: 70.91 kB / 335.6 MB, free: 400 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.4353, allocations: 0 / 335.6 MB, free: 400 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4355, allocations: 322.8 kB / 335.9 MB, free: 68 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.4356, allocations: 60 kB / 335.9 MB, free: 8 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.4359, allocations: 104.3 kB / 336 MB, free: 15.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.4361, allocations: 71.84 kB / 336.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4361, allocations: 0 / 336.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008975/0.437, allocations: 287.8 kB / 336.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.4371, allocations: 11.59 kB / 336.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4371, allocations: 3.984 kB / 336.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005631/0.4377, allocations: 102.5 kB / 336.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.438, allocations: 35.92 kB / 336.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.4426, allocations: 4.267 MB / 340.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.443, allocations: 15.84 kB / 340.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.4431, allocations: 15.98 kB / 340.8 MB, free: 10.72 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.0001422/0.4432, allocations: 114.3 kB / 340.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006111/0.4439, allocations: 243.8 kB / 341.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.444, allocations: 31.62 kB / 341.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.4441, allocations: 38.8 kB / 341.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4441, allocations: 4.172 kB / 341.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4441, allocations: 8 kB / 341.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4441, allocations: 0 / 341.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005505/0.4447, allocations: 329.8 kB / 341.6 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.4447, allocations: 0 / 341.6 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.4449, allocations: 19.98 kB / 341.6 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004984/0.4454, allocations: 110.5 kB / 341.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.4455, allocations: 0 / 341.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004468/0.4499, allocations: 4.263 MB / 346 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.45, allocations: 0 / 346 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007502/0.4508, allocations: 346.3 kB / 346.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.451, allocations: 140.5 kB / 346.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.4511, allocations: 4.203 kB / 346.5 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.4514, allocations: 23.98 kB / 346.5 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4516, allocations: 23.95 kB / 346.5 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.4516, allocations: 12 kB / 346.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.4519, allocations: 196.6 kB / 346.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4519, allocations: 0 / 346.7 MB, free: 4.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009634/0.4529, allocations: 103.7 kB / 346.8 MB, free: 4.285 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.0009929/0.4539, allocations: 0.884 MB / 347.7 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009661/0.4549, allocations: 0.5011 MB / 348.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4549, allocations: 0 / 348.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006094/0.4555, allocations: 441 kB / 348.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.456, allocations: 45.14 kB / 348.7 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.4576, allocations: 477.1 kB / 349.1 MB, free: 1.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.4581, allocations: 0.8109 MB / 349.9 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.4584, allocations: 105.8 kB / 350 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of SimCode: time 1.203e-06/0.4584, allocations: 0 / 350 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.671/3.129, allocations: 9.338 MB / 359.4 MB, free: 7.539 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