Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.251/2.251, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.598e-05, allocations: 4 kB / 269.4 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 47.57 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4935/0.6047, allocations: 81.46 MB / 398.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.6051, allocations: 76.2 kB / 398.6 MB, free: 6.195 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05277/0.6579, allocations: 11.7 MB / 410.3 MB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6579, allocations: 0 / 410.3 MB, free: 12.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.614e-05/0.658, allocations: 31.94 kB / 410.3 MB, free: 12.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002439/0.6605, allocations: 0.8372 MB / 411.1 MB, free: 11.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.6606, allocations: 12.02 kB / 411.1 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003822/0.661, allocations: 132.6 kB / 411.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.6612, allocations: 94.92 kB / 411.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.6626, allocations: 0.4912 MB / 411.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.844e-05/0.6627, allocations: 64.69 kB / 411.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.6629, allocations: 88.53 kB / 412 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.6655, allocations: 0.7646 MB / 412.8 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.707e-05/0.6657, allocations: 7.938 kB / 412.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.6658, allocations: 36.06 kB / 412.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.6658, allocations: 23.95 kB / 412.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.6677, allocations: 455.6 kB / 413.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00607/0.6738, allocations: 2.898 MB / 416.2 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008333/0.6747, allocations: 214.8 kB / 416.4 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.675, allocations: 92.92 kB / 416.5 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003019/0.6753, allocations: 251.3 kB / 416.7 MB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.6754, allocations: 34.12 kB / 416.8 MB, free: 7.043 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 3.727e-06/0.6754, allocations: 4 kB / 416.8 MB, free: 7.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=35): time 0.003441/0.6788, allocations: 1.145 MB / 417.9 MB, free: 5.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.6789, allocations: 55.41 kB / 418 MB, free: 5.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004851/0.6794, allocations: 266.9 kB / 418.2 MB, free: 5.688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/0.6795, allocations: 33.08 kB / 418.2 MB, free: 5.652 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003376/0.6799, allocations: 394.4 kB / 418.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.6801, allocations: 134.6 kB / 418.8 MB, free: 5.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.6802, allocations: 9.188 kB / 418.8 MB, free: 5.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002957/0.6805, allocations: 354.5 kB / 419.1 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.6809, allocations: 94.44 kB / 419.2 MB, free: 4.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.6816, allocations: 243.3 kB / 419.4 MB, free: 4.559 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/0.6821, allocations: 145.6 kB / 419.6 MB, free: 4.461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.6822, allocations: 0 / 419.6 MB, free: 4.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001595/0.6838, allocations: 418 kB / 420 MB, free: 4.133 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.763e-05/0.6839, allocations: 11.98 kB / 420 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.684, allocations: 7.984 kB / 420 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.6844, allocations: 35.78 kB / 420.1 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.6854, allocations: 112 kB / 420.2 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007725/0.6862, allocations: 0.5649 MB / 420.7 MB, free: 3.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005805/0.6868, allocations: 18.56 kB / 420.7 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.088e-05/0.687, allocations: 19.75 kB / 420.8 MB, free: 3.375 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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.0002295/0.6872, allocations: 133.9 kB / 420.9 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.6874, allocations: 35.62 kB / 420.9 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.6887, allocations: 311.7 kB / 421.2 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.6888, allocations: 7.953 kB / 421.2 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.6888, allocations: 0 / 421.2 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.6888, allocations: 7.922 kB / 421.2 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003247/0.6921, allocations: 0.9953 MB / 422.2 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.6921, allocations: 0 / 422.2 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.6933, allocations: 83.33 kB / 422.3 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003481/0.6937, allocations: 31.78 kB / 422.4 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/0.6938, allocations: 11.69 kB / 422.4 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007101/0.6945, allocations: 0.5545 MB / 422.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.6945, allocations: 3.953 kB / 422.9 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.6964, allocations: 0.5854 MB / 423.5 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.6967, allocations: 108.7 kB / 423.6 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.6968, allocations: 10.44 kB / 423.6 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.6973, allocations: 11.69 kB / 423.6 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.6974, allocations: 26.89 kB / 423.7 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.917e-05/0.6975, allocations: 19.3 kB / 423.7 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004895/0.698, allocations: 201 kB / 423.9 MB, free: 0.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.698, allocations: 0 / 423.9 MB, free: 0.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001282/0.6993, allocations: 125.7 kB / 424 MB, free: 484 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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.002634/0.702, allocations: 1.487 MB / 425.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.7033, allocations: 276.2 kB / 425.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/0.7034, allocations: 8.375 kB / 425.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005541/0.7039, allocations: 128.2 kB / 425.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009008/0.7049, allocations: 63.64 kB / 426 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.719, allocations: 1.485 MB / 427.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005104/0.7242, allocations: 0.9402 MB / 428.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005133/0.7248, allocations: 55.27 kB / 428.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006039/0.7254, allocations: 242.9 kB / 428.7 MB, free: 12.19 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/0.7254, allocations: 0 / 428.7 MB, free: 12.19 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07266/0.7981, allocations: 8.063 MB / 436.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003335/0.7985, allocations: 179.6 kB / 436.9 MB, free: 4 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.911/3.71, allocations: 8 kB / 436.9 MB, free: 3.992 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat