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.777/1.777, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.248e-05, allocations: 0 / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2643, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.3896, allocations: 67.77 MB / 331.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.39, allocations: 67.97 kB / 331.7 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01623/0.4062, allocations: 3.779 MB / 335.5 MB, free: 2.031 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.609e-06/0.4063, allocations: 0 / 335.5 MB, free: 2.031 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.4063, allocations: 7.938 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.0008242/0.4072, allocations: 486.2 kB / 335.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.4072, allocations: 8.031 kB / 336 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/0.4073, allocations: 54.55 kB / 336 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.54e-05/0.4074, allocations: 23.72 kB / 336 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.4077, allocations: 231.4 kB / 336.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.4078, allocations: 20.44 kB / 336.3 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.973e-05/0.4078, allocations: 27.89 kB / 336.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4083, allocations: 174.5 kB / 336.5 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.4084, allocations: 3.906 kB / 336.5 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.4084, allocations: 19.98 kB / 336.5 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.4084, allocations: 7.984 kB / 336.5 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.4088, allocations: 120.9 kB / 336.6 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.4101, allocations: 0.6191 MB / 337.2 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.4106, allocations: 174.7 kB / 337.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.4108, allocations: 91.95 kB / 337.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.4108, allocations: 4 kB / 337.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.4109, allocations: 46.5 kB / 337.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.025e-06/0.4109, allocations: 0 / 337.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002435/0.4134, allocations: 0.9685 MB / 338.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.4134, allocations: 55.41 kB / 338.6 MB, free: 14.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.4137, allocations: 170.4 kB / 338.7 MB, free: 14.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.4137, allocations: 29.7 kB / 338.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.4139, allocations: 202.8 kB / 339 MB, free: 14.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.414, allocations: 114.3 kB / 339.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.414, allocations: 4 kB / 339.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4142, allocations: 326.8 kB / 339.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.4143, allocations: 64 kB / 339.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.4146, allocations: 98.59 kB / 339.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.4148, allocations: 81.31 kB / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4148, allocations: 224 / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006881/0.4155, allocations: 256 kB / 339.9 MB, free: 13.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.4156, allocations: 11.94 kB / 339.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.4156, allocations: 7.891 kB / 339.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002528/0.4159, allocations: 52.88 kB / 340 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004481/0.4163, allocations: 51.97 kB / 340 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001918/0.4183, allocations: 1.565 MB / 341.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.4185, allocations: 8.031 kB / 341.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.4186, allocations: 15.98 kB / 341.6 MB, free: 11.43 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.0001297/0.4187, allocations: 122.6 kB / 341.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/0.4188, allocations: 23.78 kB / 341.7 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.4189, allocations: 26.78 kB / 341.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.4189, allocations: 4 kB / 341.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4189, allocations: 4 kB / 341.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.419, allocations: 3.984 kB / 341.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.4206, allocations: 0.7628 MB / 342.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4206, allocations: 3.953 kB / 342.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.4211, allocations: 59.91 kB / 342.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.4213, allocations: 32.84 kB / 342.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.4214, allocations: 16.08 kB / 342.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.4229, allocations: 1.379 MB / 344 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4229, allocations: 0 / 344 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009642/0.4239, allocations: 495.8 kB / 344.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.4241, allocations: 108.9 kB / 344.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.828e-05/0.4241, allocations: 15.95 kB / 344.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.4244, allocations: 15.98 kB / 344.7 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.4244, allocations: 15.97 kB / 344.7 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.4245, allocations: 12 kB / 344.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001879/0.4247, allocations: 131.4 kB / 344.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4247, allocations: 7.938 kB / 344.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005595/0.4253, allocations: 68 kB / 344.9 MB, free: 7.859 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.001481/0.4268, allocations: 1.251 MB / 346.1 MB, free: 6.555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008223/0.4276, allocations: 313.5 kB / 346.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4276, allocations: 0 / 346.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004955/0.4281, allocations: 229.8 kB / 346.7 MB, free: 6.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.4287, allocations: 36.05 kB / 346.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.4305, allocations: 0.6795 MB / 347.4 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.4309, allocations: 0.7641 MB / 348.1 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.4311, allocations: 75.41 kB / 348.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.4311, allocations: 0 / 348.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.789/3.22, allocations: 4.745 MB / 353 MB, free: 15.63 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