Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.976e-05/3.979e-05, allocations: 12.78 kB / 292.8 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 50.41 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4952/0.6149, allocations: 78.88 MB / 422 MB, free: 15.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.6152, allocations: 75.09 kB / 422.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02725/0.6425, allocations: 6.492 MB / 428.6 MB, free: 9.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6426, allocations: 0 / 428.6 MB, free: 9.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.95e-05/0.6426, allocations: 8 kB / 428.6 MB, free: 9.707 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.001325/0.6439, allocations: 0.6074 MB / 429.2 MB, free: 9.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.644, allocations: 12.03 kB / 429.2 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.6441, allocations: 67.41 kB / 429.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.6442, allocations: 51.44 kB / 429.4 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/0.6448, allocations: 303 kB / 429.6 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.6448, allocations: 23.72 kB / 429.7 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.451e-05/0.6449, allocations: 30.62 kB / 429.7 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007911/0.6457, allocations: 337.5 kB / 430 MB, free: 8.375 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.6457, allocations: 0 / 430 MB, free: 8.375 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.6458, allocations: 17.88 kB / 430 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.6458, allocations: 12 kB / 430.1 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000655/0.6465, allocations: 225.1 kB / 430.3 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.6495, allocations: 1.435 MB / 431.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.6501, allocations: 201.9 kB / 431.9 MB, free: 6.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.6503, allocations: 96.91 kB / 432 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.6504, allocations: 4 kB / 432 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.6504, allocations: 38.31 kB / 432 MB, free: 6.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.825e-06/0.6504, allocations: 0 / 432 MB, free: 6.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007558/0.6512, allocations: 264.1 kB / 432.3 MB, free: 6.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.6513, allocations: 63.34 kB / 432.4 MB, free: 6.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.6517, allocations: 272.7 kB / 432.6 MB, free: 6.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.6518, allocations: 32.83 kB / 432.7 MB, free: 6.117 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.6519, allocations: 205.4 kB / 432.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.482e-05/0.652, allocations: 74.09 kB / 432.9 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/0.6521, allocations: 3.5 kB / 432.9 MB, free: 5.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.6522, allocations: 349.4 kB / 433.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.6524, allocations: 59.38 kB / 433.3 MB, free: 5.523 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.6527, allocations: 108.4 kB / 433.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.6529, allocations: 69.05 kB / 433.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6529, allocations: 0 / 433.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009884/0.6539, allocations: 333.5 kB / 433.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.654, allocations: 4 kB / 433.8 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.654, allocations: 4 kB / 433.8 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006016/0.6546, allocations: 120.2 kB / 434 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.6549, allocations: 27.98 kB / 434 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004805/0.6597, allocations: 4.424 MB / 438.4 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004395/0.6602, allocations: 35.2 kB / 438.5 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.6603, allocations: 11.88 kB / 438.5 MB, free: 408 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.0001419/0.6604, allocations: 124.8 kB / 438.6 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.671e-05/0.6605, allocations: 31.62 kB / 438.6 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.975e-05/0.6606, allocations: 39.94 kB / 438.7 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.6606, allocations: 0 / 438.7 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6607, allocations: 7.938 kB / 438.7 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.6607, allocations: 96 / 438.7 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.6613, allocations: 373.2 kB / 439 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6613, allocations: 3.984 kB / 439 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.6616, allocations: 35.73 kB / 439.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005366/0.6621, allocations: 110.5 kB / 439.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.6622, allocations: 3.688 kB / 439.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00468/0.6669, allocations: 4.438 MB / 443.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.6669, allocations: 0 / 443.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007934/0.6677, allocations: 373.7 kB / 444 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.6679, allocations: 129.8 kB / 444.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.878e-05/0.668, allocations: 3.375 kB / 444.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.6684, allocations: 22.23 kB / 444.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.6686, allocations: 27.2 kB / 444.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.6686, allocations: 7.188 kB / 444.2 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003208/0.6689, allocations: 213 kB / 444.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.669, allocations: 4 kB / 444.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009538/0.6699, allocations: 118.8 kB / 444.5 MB, free: 10.4 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.001088/0.671, allocations: 0.9042 MB / 445.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.6721, allocations: 0.517 MB / 445.9 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6721, allocations: 192 / 445.9 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006352/0.6728, allocations: 438.2 kB / 446.3 MB, free: 8.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005724/0.6734, allocations: 54.3 kB / 446.4 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.675, allocations: 488.5 kB / 446.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.6755, allocations: 0.8067 MB / 447.7 MB, free: 7.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000206/0.6757, allocations: 23.02 kB / 447.7 MB, free: 7.301 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.6759, allocations: 110.5 kB / 447.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6759, allocations: 0 / 447.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03635/0.7123, allocations: 7.511 MB / 455.3 MB, free: 15.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003559/0.7127, allocations: 199.2 kB / 455.5 MB, free: 15.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.791/3.504, allocations: 3.938 kB / 455.5 MB, free: 15.64 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat