Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.308e-05, allocations: 0 / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09348, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4117/0.5053, allocations: 76.3 MB / 376.2 MB, free: 22.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.5056, allocations: 69.53 kB / 376.3 MB, free: 22.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04664/0.5523, allocations: 9.901 MB / 386.2 MB, free: 21.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5523, allocations: 4 kB / 386.2 MB, free: 21.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.866e-05/0.5524, allocations: 6.594 kB / 386.2 MB, free: 21.26 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001841/0.5542, allocations: 0.5927 MB / 386.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.5543, allocations: 8.5 kB / 386.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.5545, allocations: 72.62 kB / 386.9 MB, free: 20.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006049/0.5551, allocations: 54.73 kB / 387 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.5557, allocations: 285.7 kB / 387.2 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.556, allocations: 86.42 kB / 387.3 MB, free: 20.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.5561, allocations: 39.41 kB / 387.4 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.5574, allocations: 377.1 kB / 387.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.5574, allocations: 1.312 kB / 387.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-05/0.5575, allocations: 13.22 kB / 387.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.5576, allocations: 7.844 kB / 387.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.559, allocations: 421.5 kB / 388.2 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.5621, allocations: 0.9016 MB / 389.1 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.5636, allocations: 348 kB / 389.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007323/0.5644, allocations: 205.3 kB / 389.6 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.258e-05/0.5645, allocations: 12.28 kB / 389.6 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.5645, allocations: 38.84 kB / 389.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.679e-06/0.5645, allocations: 3.938 kB / 389.7 MB, free: 19.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.005399/0.5699, allocations: 1.533 MB / 391.2 MB, free: 19.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.57, allocations: 85.52 kB / 391.3 MB, free: 19.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/0.5705, allocations: 208.3 kB / 391.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.615e-05/0.5706, allocations: 33.33 kB / 391.5 MB, free: 19.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.5707, allocations: 197.8 kB / 391.7 MB, free: 18.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.5709, allocations: 182.5 kB / 391.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.287e-05/0.571, allocations: 7.875 kB / 391.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.5711, allocations: 336.7 kB / 392.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006125/0.5717, allocations: 162.4 kB / 392.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006676/0.5724, allocations: 212 kB / 392.6 MB, free: 18.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/0.573, allocations: 159.4 kB / 392.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.5731, allocations: 3.906 kB / 392.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001898/0.575, allocations: 0.5362 MB / 393.3 MB, free: 18.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.575, allocations: 9.406 kB / 393.3 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.575, allocations: 4.031 kB / 393.3 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.5765, allocations: 252.6 kB / 393.5 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.5773, allocations: 63.23 kB / 393.6 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00697/0.5843, allocations: 2.677 MB / 396.3 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008097/0.5852, allocations: 37.12 kB / 396.3 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.5853, allocations: 22.77 kB / 396.3 MB, free: 16.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.5855, allocations: 131.6 kB / 396.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.5857, allocations: 31.25 kB / 396.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.5858, allocations: 47.16 kB / 396.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.5859, allocations: 7.906 kB / 396.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.5859, allocations: 3.984 kB / 396.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.5859, allocations: 7.922 kB / 396.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003679/0.5896, allocations: 1.187 MB / 397.7 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.5897, allocations: 0 / 397.7 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008233/0.5905, allocations: 71.12 kB / 397.8 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.5918, allocations: 222.1 kB / 398 MB, free: 16.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.645e-05/0.592, allocations: 14.89 kB / 398 MB, free: 16.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006396/0.5984, allocations: 2.595 MB / 400.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5984, allocations: 3.422 kB / 400.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.6011, allocations: 0.8636 MB / 401.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.6015, allocations: 154.9 kB / 401.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.6017, allocations: 11.03 kB / 401.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/0.6025, allocations: 41.66 kB / 401.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003162/0.6028, allocations: 78.98 kB / 401.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.448e-05/0.6029, allocations: 19.17 kB / 401.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000296/0.6032, allocations: 171.6 kB / 402 MB, free: 14.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6032, allocations: 0 / 402 MB, free: 14.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001392/0.6046, allocations: 169.7 kB / 402.1 MB, free: 14.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.004121/0.6088, allocations: 1.55 MB / 403.7 MB, free: 29.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.6108, allocations: 0.6022 MB / 404.3 MB, free: 29.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.6109, allocations: 0 / 404.3 MB, free: 29.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.6129, allocations: 431.5 kB / 404.7 MB, free: 29.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006931/0.6136, allocations: 29.58 kB / 404.7 MB, free: 29.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.6166, allocations: 0.7243 MB / 405.5 MB, free: 29.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.6172, allocations: 0.8073 MB / 406.3 MB, free: 28.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004423/0.6177, allocations: 101.9 kB / 406.4 MB, free: 28.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6177, allocations: 0 / 406.4 MB, free: 28.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.057/3.674, allocations: 7.024 MB / 413.4 MB, free: 27.61 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat