Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.376e-05, allocations: 8 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09505/0.0951, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.43/0.5252, allocations: 76.63 MB / 376.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.5255, allocations: 75.94 kB / 376.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04611/0.5717, allocations: 11.86 MB / 388.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5717, allocations: 0 / 388.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.625e-05/0.5718, allocations: 23.53 kB / 388.5 MB, free: 11.44 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.002129/0.5739, allocations: 0.8625 MB / 389.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.574, allocations: 7.75 kB / 389.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003521/0.5744, allocations: 138.3 kB / 389.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.5746, allocations: 89.38 kB / 389.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.5757, allocations: 0.5005 MB / 390.1 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.593e-05/0.5758, allocations: 67.84 kB / 390.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.576, allocations: 95.16 kB / 390.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.5782, allocations: 0.7924 MB / 391.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.119e-05/0.5784, allocations: 11.69 kB / 391.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.884e-05/0.5785, allocations: 38.72 kB / 391.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.5785, allocations: 23.09 kB / 391.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.5801, allocations: 475.7 kB / 391.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/0.5855, allocations: 3.071 MB / 394.7 MB, free: 8.691 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008639/0.5864, allocations: 274.5 kB / 394.9 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.5867, allocations: 106.7 kB / 395 MB, free: 8.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002136/0.5869, allocations: 250.1 kB / 395.3 MB, free: 8.309 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.587, allocations: 42.34 kB / 395.3 MB, free: 8.266 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.835e-06/0.587, allocations: 0 / 395.3 MB, free: 8.266 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.00307/0.5901, allocations: 1.418 MB / 396.7 MB, free: 7.293 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.5902, allocations: 110.7 kB / 396.8 MB, free: 7.164 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004181/0.5906, allocations: 286.1 kB / 397.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.5907, allocations: 35.89 kB / 397.2 MB, free: 7.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.5909, allocations: 448.2 kB / 397.6 MB, free: 6.707 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.591, allocations: 144.9 kB / 397.7 MB, free: 6.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.591, allocations: 9.938 kB / 397.8 MB, free: 6.621 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.037e-05/0.5911, allocations: 328.4 kB / 398.1 MB, free: 6.309 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.5914, allocations: 104.8 kB / 398.2 MB, free: 6.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.5918, allocations: 256.7 kB / 398.4 MB, free: 6.117 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.5921, allocations: 140.6 kB / 398.6 MB, free: 6.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.5921, allocations: 3.844 kB / 398.6 MB, free: 6.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009892/0.5931, allocations: 444 kB / 399 MB, free: 6.012 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.5932, allocations: 11.41 kB / 399 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5932, allocations: 3.875 kB / 399 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002924/0.5935, allocations: 39.16 kB / 399.1 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007546/0.5943, allocations: 124.3 kB / 399.2 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003954/0.5947, allocations: 0.5573 MB / 399.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.5952, allocations: 33.33 kB / 399.8 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.713e-05/0.5952, allocations: 25.55 kB / 399.8 MB, free: 5.457 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 61 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.5954, allocations: 135.4 kB / 399.9 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.5955, allocations: 46.72 kB / 400 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009115/0.5965, allocations: 292.9 kB / 400.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.5965, allocations: 3.875 kB / 400.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.5965, allocations: 0 / 400.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.5965, allocations: 0 / 400.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.5989, allocations: 1.081 MB / 401.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.5989, allocations: 4.156 kB / 401.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008027/0.5997, allocations: 92.84 kB / 401.4 MB, free: 20.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001974/0.5999, allocations: 35.56 kB / 401.5 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.6, allocations: 13.53 kB / 401.5 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004387/0.6005, allocations: 0.5505 MB / 402 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6005, allocations: 3.875 kB / 402 MB, free: 20.24 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.6016, allocations: 0.7777 MB / 402.8 MB, free: 19.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.6018, allocations: 115.8 kB / 402.9 MB, free: 19.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.339e-05/0.6019, allocations: 11.44 kB / 402.9 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.6023, allocations: 18.67 kB / 403 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.537e-05/0.6024, allocations: 30.17 kB / 403 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.6025, allocations: 15.3 kB / 403 MB, free: 19.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000331/0.6028, allocations: 222.5 kB / 403.2 MB, free: 19.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6028, allocations: 0 / 403.2 MB, free: 19.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008384/0.6037, allocations: 134 kB / 403.3 MB, free: 19.54 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001828/0.6055, allocations: 1.828 MB / 405.2 MB, free: 18.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.6066, allocations: 303.2 kB / 405.5 MB, free: 18.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6066, allocations: 3.875 kB / 405.5 MB, free: 18.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003998/0.607, allocations: 147.6 kB / 405.6 MB, free: 18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.6077, allocations: 67.53 kB / 405.7 MB, free: 17.99 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/0.6116, allocations: 1.578 MB / 407.3 MB, free: 17.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.6123, allocations: 0.9466 MB / 408.2 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004671/0.6128, allocations: 260.8 kB / 408.5 MB, free: 16.38 MB / 330.7 MB Notification: Performance of SimCode: time 2.695e-06/0.6128, allocations: 0 / 408.5 MB, free: 16.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.947/3.56, allocations: 12.88 MB / 421.3 MB, free: 10.64 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat