Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.263/2.263, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.454e-05/3.459e-05, allocations: 4 kB / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 47.57 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4503/0.5592, allocations: 82.21 MB / 399.2 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5595, allocations: 72.2 kB / 399.3 MB, free: 5.816 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06012/0.6197, allocations: 11.83 MB / 411.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6197, allocations: 0 / 411.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.46e-05/0.6198, allocations: 8 kB / 411.1 MB, free: 11.71 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002455/0.6223, allocations: 0.6921 MB / 411.8 MB, free: 11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.6223, allocations: 8.031 kB / 411.8 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002654/0.6226, allocations: 84.89 kB / 411.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.6232, allocations: 66.92 kB / 412 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.624, allocations: 330.9 kB / 412.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.6243, allocations: 101.8 kB / 412.4 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.6245, allocations: 53.58 kB / 412.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.626, allocations: 0.4947 MB / 413 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.51e-05/0.6261, allocations: 6.938 kB / 413 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.6262, allocations: 14.31 kB / 413 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.6262, allocations: 8 kB / 413 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.6277, allocations: 0.5379 MB / 413.5 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003414/0.6312, allocations: 1.161 MB / 414.7 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.6325, allocations: 463.9 kB / 415.1 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007356/0.6333, allocations: 286.9 kB / 415.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-05/0.6334, allocations: 4.562 kB / 415.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.6334, allocations: 45.36 kB / 415.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.977e-06/0.6334, allocations: 0 / 415.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.005951/0.6394, allocations: 1.984 MB / 417.4 MB, free: 6.531 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/0.6395, allocations: 85.88 kB / 417.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.64, allocations: 248.9 kB / 417.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.6402, allocations: 41.45 kB / 417.8 MB, free: 6.184 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.6403, allocations: 163.5 kB / 418 MB, free: 6.055 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003101/0.6406, allocations: 233.5 kB / 418.2 MB, free: 5.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.726e-05/0.6407, allocations: 13.48 kB / 418.2 MB, free: 5.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.6409, allocations: 350.6 kB / 418.6 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007956/0.6417, allocations: 237.9 kB / 418.8 MB, free: 5.375 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000836/0.6426, allocations: 294.2 kB / 419.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007366/0.6434, allocations: 215.6 kB / 419.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.6434, allocations: 4.031 kB / 419.3 MB, free: 5.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002626/0.646, allocations: 0.7909 MB / 420.1 MB, free: 4.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.6461, allocations: 4 kB / 420.1 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.6462, allocations: 4 kB / 420.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.6479, allocations: 436.9 kB / 420.5 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008051/0.6487, allocations: 91.38 kB / 420.6 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.6507, allocations: 0.9986 MB / 421.6 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.6518, allocations: 82.3 kB / 421.7 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.6519, allocations: 27.86 kB / 421.7 MB, free: 3.102 MB / 330.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.0002662/0.6522, allocations: 142.2 kB / 421.9 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.6523, allocations: 47.39 kB / 421.9 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.6549, allocations: 0.8234 MB / 422.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.655, allocations: 15.94 kB / 422.7 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.655, allocations: 0 / 422.7 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.655, allocations: 3.984 kB / 422.7 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/0.6598, allocations: 1.646 MB / 424.4 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.6598, allocations: 7.984 kB / 424.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007631/0.6606, allocations: 79.2 kB / 424.5 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0016/0.6622, allocations: 405 kB / 424.9 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.566e-05/0.6624, allocations: 22.03 kB / 424.9 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.6642, allocations: 0.972 MB / 425.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.6643, allocations: 3.953 kB / 425.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.6678, allocations: 1.192 MB / 427.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004461/0.6683, allocations: 178.4 kB / 427.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/0.6685, allocations: 22.81 kB / 427.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008711/0.6694, allocations: 70.56 kB / 427.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.6697, allocations: 104.3 kB / 427.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.942e-05/0.6699, allocations: 31.75 kB / 427.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000346/0.6702, allocations: 212.5 kB / 427.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6702, allocations: 0 / 427.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008054/0.671, allocations: 153.2 kB / 427.8 MB, free: 14.26 MB / 346.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.004106/0.6752, allocations: 1.922 MB / 429.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.6772, allocations: 0.6367 MB / 430.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.6773, allocations: 0 / 430.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.6784, allocations: 345 kB / 430.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006237/0.6791, allocations: 36.62 kB / 430.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.6838, allocations: 1.078 MB / 431.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.6844, allocations: 0.8324 MB / 432.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004492/0.6848, allocations: 67.33 kB / 432.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.6852, allocations: 129.6 kB / 432.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of SimCode: time 1.393e-06/0.6852, allocations: 0 / 432.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06239/0.7476, allocations: 12.13 MB / 445 MB, free: 13.94 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000384/0.7481, allocations: 185.5 kB / 445.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.085/3.833, allocations: 7.938 kB / 445.2 MB, free: 13.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat