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.045/2.045, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.65e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3282, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.4738, allocations: 72.39 MB / 366.6 MB, free: 9.488 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.4741, allocations: 71.97 kB / 366.7 MB, free: 9.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02761/0.5018, allocations: 6.108 MB / 372.8 MB, free: 3.262 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5018, allocations: 0 / 372.8 MB, free: 3.262 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.5019, allocations: 12 kB / 372.8 MB, free: 3.25 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.001477/0.5034, allocations: 0.6155 MB / 373.4 MB, free: 2.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.5034, allocations: 11.97 kB / 373.4 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.5036, allocations: 51.39 kB / 373.5 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006248/0.5043, allocations: 298.3 kB / 373.7 MB, free: 2.195 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.5043, allocations: 8 kB / 373.8 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-05/0.5044, allocations: 24 kB / 373.8 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006889/0.5051, allocations: 213.5 kB / 374 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007772/0.5059, allocations: 283.2 kB / 374.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.5059, allocations: 0 / 374.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.506, allocations: 0 / 374.3 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.506, allocations: 8 kB / 374.3 MB, free: 1.652 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003395/0.5094, allocations: 1.373 MB / 375.6 MB, free: 200 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005821/0.5101, allocations: 198.4 kB / 375.8 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.5103, allocations: 80.86 kB / 375.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.5104, allocations: 11.95 kB / 375.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.5104, allocations: 38.56 kB / 376 MB, free: 15.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.5104, allocations: 0 / 376 MB, free: 15.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.000837/0.5113, allocations: 240.2 kB / 376.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.5114, allocations: 51.41 kB / 376.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.5118, allocations: 253 kB / 376.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.5119, allocations: 25.7 kB / 376.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.5121, allocations: 258.8 kB / 376.8 MB, free: 15 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/0.5122, allocations: 78.91 kB / 376.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.5122, allocations: 0 / 376.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.5124, allocations: 322.8 kB / 377.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.5126, allocations: 56 kB / 377.2 MB, free: 14.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.5128, allocations: 100.3 kB / 377.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.5131, allocations: 67.86 kB / 377.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.5131, allocations: 0 / 377.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000976/0.5141, allocations: 287.8 kB / 377.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.5141, allocations: 4 kB / 377.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.5142, allocations: 0 / 377.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000658/0.5148, allocations: 118.5 kB / 377.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.5152, allocations: 35.97 kB / 377.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004854/0.52, allocations: 4.267 MB / 382.1 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.5205, allocations: 23.86 kB / 382.1 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.5205, allocations: 4 kB / 382.1 MB, free: 9.254 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.0001488/0.5207, allocations: 116.7 kB / 382.2 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006211/0.5213, allocations: 251.8 kB / 382.5 MB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.5214, allocations: 31.62 kB / 382.5 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.395e-05/0.5215, allocations: 34.09 kB / 382.5 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.5215, allocations: 4 kB / 382.5 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.5216, allocations: 0 / 382.5 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.5216, allocations: 3.953 kB / 382.5 MB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.5221, allocations: 318.1 kB / 382.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5222, allocations: 0 / 382.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.5224, allocations: 31.92 kB / 382.9 MB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005449/0.523, allocations: 118.6 kB / 383 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.523, allocations: 0 / 383 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004749/0.5278, allocations: 4.272 MB / 387.3 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5278, allocations: 0 / 387.3 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007334/0.5286, allocations: 345.5 kB / 387.6 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.5288, allocations: 124.7 kB / 387.7 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.5288, allocations: 4.062 kB / 387.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000378/0.5292, allocations: 19.98 kB / 387.8 MB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.5294, allocations: 27.95 kB / 387.8 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.5294, allocations: 4 kB / 387.8 MB, free: 3.121 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.5297, allocations: 196.6 kB / 388 MB, free: 2.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5297, allocations: 0 / 388 MB, free: 2.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009701/0.5307, allocations: 107.7 kB / 388.1 MB, free: 2.824 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.001047/0.5318, allocations: 0.875 MB / 389 MB, free: 1.914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.5328, allocations: 0.5127 MB / 389.5 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5329, allocations: 0 / 389.5 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006285/0.5335, allocations: 441 kB / 389.9 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.534, allocations: 36.84 kB / 389.9 MB, free: 0.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.5357, allocations: 480.9 kB / 390.4 MB, free: 372 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.5363, allocations: 0.8109 MB / 391.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.5366, allocations: 103.4 kB / 391.3 MB, free: 15.42 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5366, allocations: 0 / 391.3 MB, free: 15.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.861/3.398, allocations: 9.334 MB / 400.7 MB, free: 6.094 MB / 346.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