Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.612e-05/3.623e-05, allocations: 0 / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1417, allocations: 50.41 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5266/0.6683, allocations: 83.53 MB / 426.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.6686, allocations: 70.33 kB / 426.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05893/0.7276, allocations: 12.02 MB / 438.8 MB, free: 56 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.7276, allocations: 0 / 438.8 MB, free: 56 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.013e-05/0.7277, allocations: 12 kB / 438.8 MB, free: 44 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002169/0.7299, allocations: 0.7012 MB / 439.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.7299, allocations: 12.03 kB / 439.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.7301, allocations: 75.53 kB / 439.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004968/0.7306, allocations: 63.41 kB / 439.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006814/0.7313, allocations: 333 kB / 440 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.7315, allocations: 94.61 kB / 440.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.7317, allocations: 42.53 kB / 440.1 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.733, allocations: 0.5072 MB / 440.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.7331, allocations: 3.953 kB / 440.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.168e-05/0.7332, allocations: 18.92 kB / 440.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.7332, allocations: 8 kB / 440.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.7347, allocations: 0.5392 MB / 441.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.738, allocations: 1.152 MB / 442.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.7393, allocations: 465.8 kB / 442.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007404/0.74, allocations: 282.8 kB / 443.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.553e-05/0.7401, allocations: 8.562 kB / 443.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.7402, allocations: 34.62 kB / 443.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 4.137e-06/0.7402, allocations: 0 / 443.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006079/0.7463, allocations: 1.992 MB / 445.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.7464, allocations: 85.89 kB / 445.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/0.7469, allocations: 249.8 kB / 445.4 MB, free: 10.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.7471, allocations: 51.14 kB / 445.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.7473, allocations: 148.6 kB / 445.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/0.7476, allocations: 239.8 kB / 445.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.7477, allocations: 10.75 kB / 445.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.7478, allocations: 349 kB / 446.2 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007074/0.7486, allocations: 241.3 kB / 446.4 MB, free: 9.715 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007928/0.7494, allocations: 300.5 kB / 446.7 MB, free: 9.512 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006318/0.75, allocations: 213.4 kB / 446.9 MB, free: 9.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.7501, allocations: 0 / 446.9 MB, free: 9.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00242/0.7525, allocations: 0.7953 MB / 447.7 MB, free: 8.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.7525, allocations: 4 kB / 447.7 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/0.7526, allocations: 7.938 kB / 447.7 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.7543, allocations: 427.6 kB / 448.2 MB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000796/0.7551, allocations: 87.31 kB / 448.2 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/0.757, allocations: 1.005 MB / 449.3 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.7581, allocations: 81.83 kB / 449.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.7582, allocations: 27.69 kB / 449.4 MB, free: 7.438 MB / 362.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: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002648/0.7585, allocations: 152.4 kB / 449.5 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.7587, allocations: 46 kB / 449.6 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.7612, allocations: 0.8177 MB / 450.4 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.7613, allocations: 11.95 kB / 450.4 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.7613, allocations: 0 / 450.4 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.7613, allocations: 3.984 kB / 450.4 MB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.766, allocations: 1.635 MB / 452 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.7661, allocations: 0 / 452 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007811/0.7668, allocations: 91.83 kB / 452.1 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.7684, allocations: 405.1 kB / 452.5 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.7685, allocations: 19.97 kB / 452.5 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.7703, allocations: 0.9704 MB / 453.5 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.7703, allocations: 4.031 kB / 453.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003479/0.7738, allocations: 1.201 MB / 454.7 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/0.7743, allocations: 180.6 kB / 454.9 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.7745, allocations: 16 kB / 454.9 MB, free: 2.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00087/0.7754, allocations: 72 kB / 455 MB, free: 2.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/0.7757, allocations: 104.4 kB / 455.1 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.7758, allocations: 36.03 kB / 455.1 MB, free: 2.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003434/0.7762, allocations: 207.1 kB / 455.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7762, allocations: 0 / 455.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008077/0.777, allocations: 155.9 kB / 455.5 MB, free: 1.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004076/0.7811, allocations: 1.931 MB / 457.4 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.7832, allocations: 0.6327 MB / 458 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.7832, allocations: 0 / 458 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.7844, allocations: 353.8 kB / 458.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006722/0.7851, allocations: 36.88 kB / 458.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.7901, allocations: 1.067 MB / 459.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005335/0.7907, allocations: 0.8329 MB / 460.3 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000452/0.7911, allocations: 63.28 kB / 460.4 MB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.7916, allocations: 131.4 kB / 460.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7916, allocations: 0 / 460.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0597/0.8513, allocations: 12.14 MB / 472.6 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003225/0.8517, allocations: 178.8 kB / 472.8 MB, free: 428 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.096/3.948, allocations: 0 / 472.8 MB, free: 428 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat