Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.039e-05, allocations: 0 / 255.4 MB, free: 2.645 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09611, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.536, allocations: 77.66 MB / 377.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.5363, allocations: 72.92 kB / 377.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05174/0.5881, allocations: 11.53 MB / 389.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.5881, allocations: 3.875 kB / 389.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.834e-05/0.5882, allocations: 11.75 kB / 389.2 MB, free: 11.86 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001952/0.5901, allocations: 0.7002 MB / 389.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.232e-05/0.5902, allocations: 11.75 kB / 389.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.5904, allocations: 79.3 kB / 390 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004741/0.5909, allocations: 66.34 kB / 390.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.5915, allocations: 336.4 kB / 390.4 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.5917, allocations: 93.52 kB / 390.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.5918, allocations: 45.78 kB / 390.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.593, allocations: 0.5005 MB / 391 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.5931, allocations: 5.969 kB / 391.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.943e-05/0.5932, allocations: 13.91 kB / 391.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.5932, allocations: 11.53 kB / 391.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.5946, allocations: 0.542 MB / 391.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.5975, allocations: 1.159 MB / 392.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.5987, allocations: 469 kB / 393.2 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006564/0.5994, allocations: 287.2 kB / 393.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.354e-05/0.5995, allocations: 7.922 kB / 393.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.5996, allocations: 41.75 kB / 393.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.467e-06/0.5996, allocations: 0 / 393.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.005256/0.6048, allocations: 1.984 MB / 395.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.6049, allocations: 85.58 kB / 395.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.6054, allocations: 253.8 kB / 395.9 MB, free: 9.684 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.251e-05/0.6055, allocations: 46.61 kB / 395.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.6056, allocations: 155.1 kB / 396.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.6058, allocations: 235.4 kB / 396.3 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/0.6059, allocations: 17.84 kB / 396.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.606, allocations: 354.6 kB / 396.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006399/0.6067, allocations: 238.8 kB / 396.9 MB, free: 9.074 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.6073, allocations: 299.7 kB / 397.2 MB, free: 9.035 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005627/0.6079, allocations: 219.2 kB / 397.4 MB, free: 9.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.6079, allocations: 0 / 397.4 MB, free: 9.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002146/0.6101, allocations: 0.7947 MB / 398.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.6101, allocations: 7.75 kB / 398.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/0.6102, allocations: 0 / 398.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.6117, allocations: 433.3 kB / 398.6 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/0.6124, allocations: 84.56 kB / 398.7 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.6139, allocations: 1.002 MB / 399.7 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009121/0.6148, allocations: 86.83 kB / 399.8 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.615, allocations: 30.38 kB / 399.8 MB, free: 8.352 MB / 314.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.0002116/0.6152, allocations: 150.4 kB / 400 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.6153, allocations: 42.91 kB / 400 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/0.6175, allocations: 0.8269 MB / 400.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.6175, allocations: 7.438 kB / 400.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6175, allocations: 0 / 400.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.6176, allocations: 3.891 kB / 400.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.6216, allocations: 1.642 MB / 402.5 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.6216, allocations: 0 / 402.5 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007076/0.6223, allocations: 83.75 kB / 402.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.6237, allocations: 398 kB / 403 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.63e-05/0.6238, allocations: 31.67 kB / 403 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/0.6253, allocations: 0.9714 MB / 404 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.6253, allocations: 3.781 kB / 404 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.6283, allocations: 1.195 MB / 405.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003749/0.6287, allocations: 180.8 kB / 405.4 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.6289, allocations: 21.81 kB / 405.4 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008181/0.6297, allocations: 74.08 kB / 405.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/0.63, allocations: 103.9 kB / 405.5 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.95e-05/0.6301, allocations: 33.25 kB / 405.6 MB, free: 6.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00031/0.6305, allocations: 203.6 kB / 405.8 MB, free: 6.664 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6305, allocations: 0 / 405.8 MB, free: 6.664 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007239/0.6312, allocations: 151.6 kB / 405.9 MB, free: 6.652 MB / 314.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.003458/0.6347, allocations: 1.936 MB / 407.9 MB, free: 5.719 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.6365, allocations: 0.6376 MB / 408.5 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6365, allocations: 0 / 408.5 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009708/0.6375, allocations: 352.1 kB / 408.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005795/0.6381, allocations: 37.81 kB / 408.9 MB, free: 5.641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/0.642, allocations: 1.091 MB / 410 MB, free: 5.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005966/0.6426, allocations: 0.8351 MB / 410.8 MB, free: 20.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003864/0.643, allocations: 58.28 kB / 410.9 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003427/0.6434, allocations: 132.1 kB / 411 MB, free: 20.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6434, allocations: 0 / 411 MB, free: 20.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0474/0.6908, allocations: 12.17 MB / 423.2 MB, free: 14.42 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004235/0.6913, allocations: 182.7 kB / 423.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.133/3.824, allocations: 0 / 423.3 MB, free: 14.2 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat