Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.801/1.801, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.921e-05/3.94e-05, allocations: 8 kB / 225.1 MB, free: 2.621 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2604, allocations: 38.77 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3861, allocations: 67.76 MB / 331.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.3865, allocations: 67.97 kB / 331.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01763/0.4041, allocations: 3.783 MB / 335.4 MB, free: 2.031 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4042, allocations: 0 / 335.4 MB, free: 2.031 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.574e-05/0.4042, allocations: 8 kB / 335.5 MB, free: 2.023 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009207/0.4051, allocations: 470.2 kB / 335.9 MB, free: 1.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.4052, allocations: 16.03 kB / 335.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.747e-05/0.4053, allocations: 62.48 kB / 336 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/0.4054, allocations: 23.72 kB / 336 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.4058, allocations: 223.4 kB / 336.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.4059, allocations: 16.44 kB / 336.2 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.202e-05/0.406, allocations: 27.95 kB / 336.3 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005176/0.4065, allocations: 179.3 kB / 336.4 MB, free: 0.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.4065, allocations: 7.906 kB / 336.5 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.4066, allocations: 4 kB / 336.5 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.4066, allocations: 4 kB / 336.5 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003938/0.407, allocations: 137.7 kB / 336.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.4084, allocations: 0.6269 MB / 337.2 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.4089, allocations: 170.5 kB / 337.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.4092, allocations: 88.86 kB / 337.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.4092, allocations: 0 / 337.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.4093, allocations: 42.59 kB / 337.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.325e-06/0.4093, allocations: 0 / 337.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002585/0.4119, allocations: 0.9845 MB / 338.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.412, allocations: 55.41 kB / 338.6 MB, free: 14.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.4122, allocations: 162.4 kB / 338.7 MB, free: 14.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.4123, allocations: 37.64 kB / 338.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4124, allocations: 198.9 kB / 338.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4126, allocations: 114.3 kB / 339.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.4126, allocations: 4 kB / 339.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4127, allocations: 326.8 kB / 339.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.413, allocations: 64 kB / 339.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.4132, allocations: 98.59 kB / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.4134, allocations: 77.33 kB / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4135, allocations: 224 / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007294/0.4142, allocations: 263.9 kB / 339.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.4142, allocations: 7.938 kB / 339.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4143, allocations: 7.953 kB / 339.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.4145, allocations: 44.83 kB / 339.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.415, allocations: 63.97 kB / 340 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.417, allocations: 1.569 MB / 341.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.4173, allocations: 8.188 kB / 341.6 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.4173, allocations: 16 kB / 341.6 MB, free: 11.42 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.4175, allocations: 120.9 kB / 341.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.606e-05/0.4175, allocations: 23.7 kB / 341.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.198e-05/0.4176, allocations: 26.78 kB / 341.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.4176, allocations: 8.062 kB / 341.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4177, allocations: 0 / 341.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.4177, allocations: 3.984 kB / 341.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.4193, allocations: 0.7666 MB / 342.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.4193, allocations: 3.953 kB / 342.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.4199, allocations: 63.91 kB / 342.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/0.4201, allocations: 28.84 kB / 342.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.4201, allocations: 8 kB / 342.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.4217, allocations: 1.383 MB / 344 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4217, allocations: 0 / 344 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.4227, allocations: 499.8 kB / 344.5 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.4229, allocations: 116.8 kB / 344.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.962e-05/0.423, allocations: 11.95 kB / 344.6 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.4232, allocations: 11.94 kB / 344.6 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.4233, allocations: 23.97 kB / 344.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.4233, allocations: 7.984 kB / 344.7 MB, free: 8.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001637/0.4235, allocations: 131.4 kB / 344.8 MB, free: 7.918 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4235, allocations: 4 kB / 344.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005143/0.424, allocations: 68 kB / 344.9 MB, free: 7.848 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002457/0.4265, allocations: 1.251 MB / 346.1 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.4278, allocations: 326.3 kB / 346.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4279, allocations: 0 / 346.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4289, allocations: 234.8 kB / 346.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.4297, allocations: 40.05 kB / 346.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.4332, allocations: 0.6753 MB / 347.4 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.4344, allocations: 0.7602 MB / 348.1 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.4347, allocations: 79.34 kB / 348.2 MB, free: 4.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.994e-06/0.4347, allocations: 4 kB / 348.2 MB, free: 4.336 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.684/3.118, allocations: 4.755 MB / 353 MB, free: 15.57 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat