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.767/1.767, allocations: 171.3 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/2.99e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2623, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.401, allocations: 67.09 MB / 325.4 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4013, allocations: 71.97 kB / 325.5 MB, free: 10.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01598/0.4173, allocations: 3.743 MB / 329.2 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4174, allocations: 0 / 329.2 MB, free: 6.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.4174, allocations: 7.938 kB / 329.2 MB, free: 6.918 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.0007786/0.4182, allocations: 482.2 kB / 329.7 MB, free: 6.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.4183, allocations: 8.031 kB / 329.7 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.367e-05/0.4183, allocations: 27.72 kB / 329.7 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.4187, allocations: 227.3 kB / 330 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.4187, allocations: 8 kB / 330 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.4188, allocations: 15.95 kB / 330 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003477/0.4191, allocations: 112.9 kB / 330.1 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.4196, allocations: 154.4 kB / 330.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.4196, allocations: 3.906 kB / 330.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.4196, allocations: 0 / 330.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.4197, allocations: 12 kB / 330.3 MB, free: 5.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.4209, allocations: 0.572 MB / 330.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.4213, allocations: 150.5 kB / 331 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.4215, allocations: 85.98 kB / 331.1 MB, free: 4.938 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.4216, allocations: 4 kB / 331.1 MB, free: 4.934 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4216, allocations: 34.55 kB / 331.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.136e-06/0.4216, allocations: 0 / 331.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.002409/0.4241, allocations: 0.9117 MB / 332 MB, free: 3.879 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.4242, allocations: 55.41 kB / 332.1 MB, free: 3.812 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.4244, allocations: 137.5 kB / 332.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.4244, allocations: 25.7 kB / 332.2 MB, free: 3.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.4245, allocations: 206.8 kB / 332.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.4247, allocations: 110.3 kB / 332.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.4247, allocations: 0 / 332.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4248, allocations: 326.8 kB / 332.9 MB, free: 3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.425, allocations: 56 kB / 332.9 MB, free: 2.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.4253, allocations: 82.84 kB / 333 MB, free: 2.855 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.4255, allocations: 73.39 kB / 333.1 MB, free: 2.785 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.4255, allocations: 3.953 kB / 333.1 MB, free: 2.781 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006862/0.4262, allocations: 244 kB / 333.3 MB, free: 2.535 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.4262, allocations: 4 kB / 333.3 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.4263, allocations: 7.938 kB / 333.3 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.4265, allocations: 36.84 kB / 333.3 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.427, allocations: 63.97 kB / 333.4 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.4291, allocations: 1.515 MB / 334.9 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.4294, allocations: 4.031 kB / 334.9 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.4294, allocations: 12 kB / 334.9 MB, free: 0.7812 MB / 282.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.0001308/0.4296, allocations: 104.9 kB / 335 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006092/0.4302, allocations: 234.4 kB / 335.3 MB, free: 444 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.4303, allocations: 23.72 kB / 335.3 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.886e-05/0.4304, allocations: 27.41 kB / 335.3 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.4304, allocations: 4 kB / 335.3 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4304, allocations: 4.188 kB / 335.3 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.4304, allocations: 11.94 kB / 335.3 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/0.4319, allocations: 0.6931 MB / 336 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.432, allocations: 4 kB / 336 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005169/0.4325, allocations: 55.91 kB / 336.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/0.4327, allocations: 36.83 kB / 336.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.4328, allocations: 8.094 kB / 336.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.4342, allocations: 1.319 MB / 337.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4343, allocations: 4.062 kB / 337.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009264/0.4352, allocations: 484.8 kB / 337.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.4354, allocations: 108.9 kB / 338 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.4354, allocations: 4 kB / 338 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.4357, allocations: 7.984 kB / 338.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/0.4358, allocations: 15.97 kB / 338.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.4358, allocations: 12 kB / 338.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.4359, allocations: 115.3 kB / 338.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.436, allocations: 4 kB / 338.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005935/0.4366, allocations: 56 kB / 338.3 MB, free: 13.21 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.00134/0.4379, allocations: 1.209 MB / 339.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.4387, allocations: 301.8 kB / 339.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.4388, allocations: 0 / 339.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004594/0.4392, allocations: 225.8 kB / 340 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.4397, allocations: 35.5 kB / 340 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.4417, allocations: 0.6562 MB / 340.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.4421, allocations: 0.7679 MB / 341.4 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.4423, allocations: 63.42 kB / 341.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.4423, allocations: 0 / 341.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.758/3.201, allocations: 4.681 MB / 346.2 MB, free: 5.137 MB / 298.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