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.836/1.836, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.911e-05/3.918e-05, allocations: 11.98 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09396, allocations: 44.5 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4181/0.5121, allocations: 76.63 MB / 376.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.5125, allocations: 75.12 kB / 376.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04643/0.5589, allocations: 11.85 MB / 388.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.559, allocations: 3.906 kB / 388.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.934e-05/0.5591, allocations: 19.78 kB / 388.5 MB, free: 11.33 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.001939/0.561, allocations: 0.8681 MB / 389.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.5611, allocations: 11.62 kB / 389.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002489/0.5613, allocations: 134.3 kB / 389.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.5615, allocations: 92.84 kB / 389.6 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009698/0.5625, allocations: 0.5025 MB / 390.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.43e-05/0.5626, allocations: 67.31 kB / 390.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.5628, allocations: 93.36 kB / 390.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.5646, allocations: 0.7791 MB / 391.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.048e-05/0.5647, allocations: 11.31 kB / 391.1 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-05/0.5648, allocations: 35.16 kB / 391.1 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.5648, allocations: 23.5 kB / 391.1 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.5662, allocations: 463.3 kB / 391.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.5709, allocations: 3.077 MB / 394.7 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008229/0.5718, allocations: 267 kB / 394.9 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.5721, allocations: 111.5 kB / 395 MB, free: 8.488 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002268/0.5723, allocations: 249.5 kB / 395.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.5723, allocations: 36.88 kB / 395.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.397e-06/0.5724, allocations: 0 / 395.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.002923/0.5753, allocations: 1.413 MB / 396.7 MB, free: 7.199 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.5754, allocations: 110.7 kB / 396.8 MB, free: 7.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003961/0.5758, allocations: 291 kB / 397.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.5758, allocations: 32.89 kB / 397.2 MB, free: 6.914 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.576, allocations: 458.6 kB / 397.6 MB, free: 6.602 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.5762, allocations: 135.3 kB / 397.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.5762, allocations: 11.81 kB / 397.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/0.5763, allocations: 330 kB / 398.1 MB, free: 6.203 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.5766, allocations: 101.5 kB / 398.2 MB, free: 6.203 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.5769, allocations: 252.1 kB / 398.4 MB, free: 6.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.5773, allocations: 143.8 kB / 398.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5773, allocations: 8.062 kB / 398.6 MB, free: 6.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009838/0.5783, allocations: 437.5 kB / 399 MB, free: 5.914 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.5783, allocations: 7.688 kB / 399 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.5783, allocations: 8.219 kB / 399 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.5786, allocations: 40.28 kB / 399 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007446/0.5794, allocations: 119.4 kB / 399.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003594/0.5797, allocations: 0.5564 MB / 399.7 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/0.5802, allocations: 33.89 kB / 399.8 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.5802, allocations: 23.16 kB / 399.8 MB, free: 5.363 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.0001279/0.5804, allocations: 138.8 kB / 399.9 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.5805, allocations: 38.84 kB / 399.9 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007564/0.5813, allocations: 288.7 kB / 400.2 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.5813, allocations: 11.83 kB / 400.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.5813, allocations: 4 kB / 400.2 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.5814, allocations: 11.39 kB / 400.3 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.5834, allocations: 1.065 MB / 401.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.5834, allocations: 8 kB / 401.3 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009027/0.5843, allocations: 89.23 kB / 401.4 MB, free: 4.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002455/0.5846, allocations: 32.09 kB / 401.4 MB, free: 4.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.5847, allocations: 15.3 kB / 401.5 MB, free: 4.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007605/0.5854, allocations: 0.5428 MB / 402 MB, free: 20.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.5855, allocations: 11.8 kB / 402 MB, free: 20.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.587, allocations: 0.7744 MB / 402.8 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.5872, allocations: 108.3 kB / 402.9 MB, free: 19.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5873, allocations: 15.2 kB / 402.9 MB, free: 19.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006103/0.5879, allocations: 19.59 kB / 402.9 MB, free: 19.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.588, allocations: 26.12 kB / 403 MB, free: 19.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.5881, allocations: 19.64 kB / 403 MB, free: 19.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004329/0.5886, allocations: 220.6 kB / 403.2 MB, free: 19.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5886, allocations: 4.25 kB / 403.2 MB, free: 19.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001337/0.5899, allocations: 128.2 kB / 403.3 MB, free: 19.45 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.002283/0.5922, allocations: 1.838 MB / 405.2 MB, free: 17.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.5934, allocations: 288.5 kB / 405.4 MB, free: 17.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5934, allocations: 0 / 405.4 MB, free: 17.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.5939, allocations: 145.1 kB / 405.6 MB, free: 17.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.595, allocations: 63.59 kB / 405.6 MB, free: 17.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005448/0.6004, allocations: 1.566 MB / 407.2 MB, free: 17.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009577/0.6014, allocations: 0.9508 MB / 408.2 MB, free: 16.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006568/0.6021, allocations: 260 kB / 408.4 MB, free: 16.3 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6021, allocations: 0 / 408.4 MB, free: 16.3 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.975/3.577, allocations: 12.85 MB / 421.3 MB, free: 10.58 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