Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.84/1.84, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.083e-05, allocations: 0 / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2977, allocations: 38.77 MB / 263.9 MB, free: 9.711 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4273, allocations: 70.38 MB / 334.3 MB, free: 3.227 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.4276, allocations: 63.97 kB / 334.3 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04668/0.4743, allocations: 9.287 MB / 343.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4744, allocations: 0 / 343.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.4744, allocations: 8 kB / 343.6 MB, free: 9.84 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001439/0.4758, allocations: 0.5568 MB / 344.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4759, allocations: 8.031 kB / 344.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.476, allocations: 66.53 kB / 344.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004353/0.4765, allocations: 47.61 kB / 344.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.477, allocations: 290.4 kB / 344.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.4772, allocations: 95.94 kB / 344.7 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.4773, allocations: 27.95 kB / 344.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/0.4782, allocations: 348.2 kB / 345 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.4783, allocations: 0 / 345 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.4783, allocations: 12 kB / 345 MB, free: 8.281 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.4783, allocations: 8 kB / 345.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.4794, allocations: 372.9 kB / 345.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.4822, allocations: 1.171 MB / 346.6 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008801/0.4831, allocations: 299 kB / 346.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.4836, allocations: 160.8 kB / 347 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.4836, allocations: 7.938 kB / 347 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.4837, allocations: 38.56 kB / 347.1 MB, free: 6.145 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.945e-06/0.4837, allocations: 7.938 kB / 347.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003736/0.4874, allocations: 1.315 MB / 348.4 MB, free: 4.727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.4876, allocations: 96.8 kB / 348.5 MB, free: 4.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.4879, allocations: 186.6 kB / 348.7 MB, free: 4.426 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.851e-05/0.488, allocations: 37.7 kB / 348.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4881, allocations: 136.6 kB / 348.9 MB, free: 4.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.4883, allocations: 146.1 kB / 349 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.4884, allocations: 8 kB / 349 MB, free: 4.094 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4886, allocations: 334.8 kB / 349.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.489, allocations: 144.8 kB / 349.5 MB, free: 3.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.4895, allocations: 205.1 kB / 349.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.4899, allocations: 137.6 kB / 349.8 MB, free: 3.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.49, allocations: 0 / 349.8 MB, free: 3.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001503/0.4915, allocations: 0.5083 MB / 350.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.4915, allocations: 8 kB / 350.3 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4915, allocations: 3.953 kB / 350.3 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.4927, allocations: 236.8 kB / 350.6 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/0.4932, allocations: 55.89 kB / 350.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005672/0.4989, allocations: 2.626 MB / 353.2 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.4995, allocations: 35.97 kB / 353.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-05/0.4995, allocations: 16 kB / 353.3 MB, free: 15.63 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001942/0.4997, allocations: 140.9 kB / 353.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.4999, allocations: 27.62 kB / 353.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.5, allocations: 38.78 kB / 353.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.5, allocations: 4 kB / 353.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5, allocations: 0 / 353.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.5, allocations: 3.984 kB / 353.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.5026, allocations: 1.03 MB / 354.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.5027, allocations: 4 kB / 354.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.5031, allocations: 43.97 kB / 354.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.5042, allocations: 224.9 kB / 354.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-05/0.5043, allocations: 19.92 kB / 354.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00525/0.5095, allocations: 2.592 MB / 357.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5096, allocations: 0 / 357.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.5115, allocations: 0.7362 MB / 358.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/0.5118, allocations: 144.8 kB / 358.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.998e-05/0.5119, allocations: 12 kB / 358.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/0.5124, allocations: 27.97 kB / 358.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.5127, allocations: 67.88 kB / 358.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.265e-05/0.5128, allocations: 24.05 kB / 358.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002365/0.513, allocations: 151.4 kB / 358.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.62e-07/0.513, allocations: 0 / 358.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009408/0.514, allocations: 151.9 kB / 358.7 MB, free: 9.977 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002574/0.5166, allocations: 1.343 MB / 360.1 MB, free: 8.605 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.5182, allocations: 0.5457 MB / 360.6 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5182, allocations: 4 kB / 360.6 MB, free: 8.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009862/0.5192, allocations: 392.3 kB / 361 MB, free: 7.645 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.5197, allocations: 27.94 kB / 361 MB, free: 7.617 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.5217, allocations: 0.6002 MB / 361.6 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.5223, allocations: 0.7881 MB / 362.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003824/0.5227, allocations: 58.95 kB / 362.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.5229, allocations: 87.39 kB / 362.5 MB, free: 6.023 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.523, allocations: 0 / 362.5 MB, free: 6.023 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2758/0.7987, allocations: 8.688 MB / 371.2 MB, free: 93.91 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000238/0.799, allocations: 188.1 kB / 371.4 MB, free: 93.69 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.772/3.571, allocations: 0 / 371.4 MB, free: 93.69 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat