Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.812e-05/3.814e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1554, allocations: 44.5 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5981, allocations: 73.4 MB / 373.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.5985, allocations: 73.22 kB / 373.4 MB, free: 22.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01763/0.6161, allocations: 4.038 MB / 377.5 MB, free: 21.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6162, allocations: 0 / 377.5 MB, free: 21.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.356e-05/0.6162, allocations: 5.469 kB / 377.5 MB, free: 21.52 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009217/0.6172, allocations: 0.4903 MB / 378 MB, free: 21.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.6172, allocations: 9.031 kB / 378 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.524e-05/0.6173, allocations: 58.33 kB / 378 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.416e-05/0.6174, allocations: 39.83 kB / 378.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.6177, allocations: 232 kB / 378.3 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.6177, allocations: 18.78 kB / 378.3 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.6178, allocations: 27.81 kB / 378.3 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.6184, allocations: 204 kB / 378.5 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.6184, allocations: 1.844 kB / 378.5 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.6185, allocations: 8.688 kB / 378.5 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.6185, allocations: 10.98 kB / 378.5 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.6189, allocations: 144 kB / 378.7 MB, free: 20.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.6206, allocations: 0.7553 MB / 379.4 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005812/0.6212, allocations: 203.9 kB / 379.6 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.6214, allocations: 99.58 kB / 379.7 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.6215, allocations: 3.062 kB / 379.7 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.6215, allocations: 33.69 kB / 379.8 MB, free: 20.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.246e-06/0.6215, allocations: 3.938 kB / 379.8 MB, free: 20.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001704/0.6232, allocations: 0.8332 MB / 380.6 MB, free: 19.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.6233, allocations: 54.47 kB / 380.7 MB, free: 19.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.6235, allocations: 143.9 kB / 380.8 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.6235, allocations: 31.17 kB / 380.8 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.669e-05/0.6236, allocations: 202 kB / 381 MB, free: 19.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.219e-05/0.6237, allocations: 106.1 kB / 381.1 MB, free: 19.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.6237, allocations: 3.562 kB / 381.1 MB, free: 19.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.6238, allocations: 328.2 kB / 381.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.624, allocations: 62.75 kB / 381.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.6242, allocations: 95.81 kB / 381.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.6245, allocations: 69.5 kB / 381.7 MB, free: 19.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.6245, allocations: 2.062 kB / 381.7 MB, free: 19.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005203/0.625, allocations: 225.1 kB / 381.9 MB, free: 19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.625, allocations: 10.81 kB / 381.9 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.6251, allocations: 1.375 kB / 381.9 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.6251, allocations: 2.062 kB / 381.9 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.6257, allocations: 78.95 kB / 382 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.6257, allocations: 6.516 kB / 382 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.626, allocations: 16.33 kB / 382 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.626, allocations: 10.12 kB / 382 MB, free: 18.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.284e-05/0.6261, allocations: 124.7 kB / 382.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.934e-05/0.6262, allocations: 16.59 kB / 382.2 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-05/0.6263, allocations: 26.64 kB / 382.2 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.6263, allocations: 6.375 kB / 382.2 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.6263, allocations: 6.531 kB / 382.2 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.6263, allocations: 1.438 kB / 382.2 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.6275, allocations: 0.6318 MB / 382.8 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.6276, allocations: 1.125 kB / 382.8 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000697/0.6283, allocations: 76.16 kB / 382.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.6283, allocations: 2.406 kB / 382.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.6284, allocations: 5.25 kB / 382.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.6284, allocations: 3.812 kB / 382.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.6284, allocations: 0.7812 kB / 382.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007476/0.6291, allocations: 433.5 kB / 383.4 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.6292, allocations: 89.92 kB / 383.4 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.6293, allocations: 8.516 kB / 383.4 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.6296, allocations: 24.5 kB / 383.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.6297, allocations: 18.34 kB / 383.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.6297, allocations: 6.031 kB / 383.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001278/0.6299, allocations: 113.8 kB / 383.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6299, allocations: 1.406 kB / 383.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000502/0.6304, allocations: 65.03 kB / 383.7 MB, free: 18.12 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009407/0.6313, allocations: 1.091 MB / 384.8 MB, free: 17.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004795/0.6318, allocations: 172.6 kB / 384.9 MB, free: 17.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.6319, allocations: 4.188 kB / 384.9 MB, free: 17.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.6321, allocations: 90.59 kB / 385 MB, free: 17.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.6327, allocations: 33.53 kB / 385.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.6347, allocations: 0.7909 MB / 385.8 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.635, allocations: 0.7608 MB / 386.6 MB, free: 16.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.6351, allocations: 73.16 kB / 386.7 MB, free: 16 MB / 314.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6352, allocations: 0 / 386.7 MB, free: 16 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.374/3.009, allocations: 3.778 MB / 390.5 MB, free: 15.68 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat