Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.195/2.195, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.034e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4075, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1549/0.5624, allocations: 72.39 MB / 366.6 MB, free: 9.453 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/0.5628, allocations: 67.97 kB / 366.7 MB, free: 9.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03383/0.5967, allocations: 6.12 MB / 372.8 MB, free: 3.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5967, allocations: 0 / 372.8 MB, free: 3.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.173e-05/0.5968, allocations: 8 kB / 372.8 MB, free: 3.211 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.001534/0.5983, allocations: 0.6117 MB / 373.4 MB, free: 2.555 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.5984, allocations: 11.97 kB / 373.4 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.5986, allocations: 55.38 kB / 373.5 MB, free: 2.488 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.5992, allocations: 294.3 kB / 373.8 MB, free: 2.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.5993, allocations: 8 kB / 373.8 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-05/0.5993, allocations: 20 kB / 373.8 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007077/0.6001, allocations: 213.5 kB / 374 MB, free: 1.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007623/0.6008, allocations: 283.2 kB / 374.3 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.6009, allocations: 0 / 374.3 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.601, allocations: 7.984 kB / 374.3 MB, free: 1.621 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.601, allocations: 8 kB / 374.3 MB, free: 1.613 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.6044, allocations: 1.365 MB / 375.7 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.605, allocations: 202.5 kB / 375.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.6053, allocations: 84.86 kB / 375.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.6053, allocations: 3.953 kB / 375.9 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.6054, allocations: 46.55 kB / 376 MB, free: 15.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.367e-06/0.6054, allocations: 0 / 376 MB, free: 15.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007964/0.6062, allocations: 236.2 kB / 376.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.6063, allocations: 55.41 kB / 376.3 MB, free: 15.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004243/0.6067, allocations: 245 kB / 376.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.6068, allocations: 25.7 kB / 376.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.607, allocations: 212.4 kB / 376.7 MB, free: 15.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.467e-05/0.6071, allocations: 74.91 kB / 376.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.6071, allocations: 4 kB / 376.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.6073, allocations: 334.8 kB / 377.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.6075, allocations: 56 kB / 377.2 MB, free: 14.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.6078, allocations: 100.3 kB / 377.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.608, allocations: 75.84 kB / 377.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.608, allocations: 0 / 377.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001023/0.609, allocations: 299.5 kB / 377.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.6091, allocations: 8 kB / 377.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.6091, allocations: 0 / 377.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006567/0.6098, allocations: 122.5 kB / 377.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/0.6101, allocations: 27.98 kB / 377.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005276/0.6154, allocations: 4.271 MB / 382.1 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.6159, allocations: 19.83 kB / 382.1 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.616, allocations: 8 kB / 382.1 MB, free: 9.227 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.0001721/0.6162, allocations: 120.7 kB / 382.2 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007033/0.6169, allocations: 247.8 kB / 382.5 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.271e-05/0.617, allocations: 27.72 kB / 382.5 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.6171, allocations: 34.09 kB / 382.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.6171, allocations: 288 / 382.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.6172, allocations: 0 / 382.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.6172, allocations: 11.94 kB / 382.6 MB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.6178, allocations: 317.7 kB / 382.9 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.6179, allocations: 4.094 kB / 382.9 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.6181, allocations: 23.92 kB / 382.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005613/0.6187, allocations: 114.5 kB / 383 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.6188, allocations: 4 kB / 383 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00505/0.6238, allocations: 4.276 MB / 387.3 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.6239, allocations: 0 / 387.3 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007455/0.6247, allocations: 349.5 kB / 387.6 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.6249, allocations: 124.6 kB / 387.8 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.6249, allocations: 0 / 387.8 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.6253, allocations: 24.05 kB / 387.8 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.6255, allocations: 27.95 kB / 387.8 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.6255, allocations: 8 kB / 387.8 MB, free: 3.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000311/0.6259, allocations: 188.6 kB / 388 MB, free: 2.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6259, allocations: 4 kB / 388 MB, free: 2.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009879/0.6269, allocations: 107.7 kB / 388.1 MB, free: 2.797 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.001092/0.628, allocations: 0.8789 MB / 389 MB, free: 1.883 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.629, allocations: 0.505 MB / 389.5 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6291, allocations: 0 / 389.5 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007018/0.6298, allocations: 437 kB / 389.9 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.6304, allocations: 32.83 kB / 389.9 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.6321, allocations: 458.6 kB / 390.4 MB, free: 388 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.6327, allocations: 0.8031 MB / 391.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002076/0.6329, allocations: 22.08 kB / 391.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.6332, allocations: 104 kB / 391.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6332, allocations: 0 / 391.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05142/0.6846, allocations: 6.524 MB / 397.8 MB, free: 8.93 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003222/0.685, allocations: 151.6 kB / 398 MB, free: 8.738 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.786/3.471, allocations: 0 / 398 MB, free: 8.738 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat