Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.087/2.087, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.268e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3186, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.4625, allocations: 75.03 MB / 369.2 MB, free: 6.867 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.4629, allocations: 67.97 kB / 369.3 MB, free: 6.801 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.044/0.5069, allocations: 9.219 MB / 378.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.472e-06/0.507, allocations: 4 kB / 378.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.507, allocations: 7.938 kB / 378.5 MB, free: 13.55 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001396/0.5084, allocations: 0.5645 MB / 379.1 MB, free: 12.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5085, allocations: 8.031 kB / 379.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000485/0.509, allocations: 55.55 kB / 379.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.5096, allocations: 286.5 kB / 379.4 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.5097, allocations: 71.95 kB / 379.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-05/0.5098, allocations: 16 kB / 379.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000996/0.5108, allocations: 360.9 kB / 379.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007727/0.5116, allocations: 312.2 kB / 380.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.5117, allocations: 7.844 kB / 380.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.737e-05/0.5117, allocations: 4 kB / 380.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.5118, allocations: 8 kB / 380.2 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.5146, allocations: 1.103 MB / 381.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007541/0.5154, allocations: 306.8 kB / 381.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003784/0.5158, allocations: 148.8 kB / 381.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.5159, allocations: 4 kB / 381.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.5159, allocations: 42.56 kB / 381.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.386e-06/0.516, allocations: 0 / 381.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.0038/0.5198, allocations: 1.237 MB / 383 MB, free: 8.758 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.5199, allocations: 88.86 kB / 383.1 MB, free: 8.652 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.5202, allocations: 177.7 kB / 383.3 MB, free: 8.473 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/0.5203, allocations: 33.7 kB / 383.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.5204, allocations: 195.4 kB / 383.5 MB, free: 8.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.5206, allocations: 141.9 kB / 383.6 MB, free: 8.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.5206, allocations: 0 / 383.6 MB, free: 8.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5208, allocations: 326.8 kB / 384 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.5212, allocations: 140.9 kB / 384.1 MB, free: 7.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004653/0.5217, allocations: 193 kB / 384.3 MB, free: 7.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005156/0.5222, allocations: 136.7 kB / 384.4 MB, free: 7.297 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.5222, allocations: 0 / 384.4 MB, free: 7.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001419/0.5236, allocations: 484.6 kB / 384.9 MB, free: 6.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.5237, allocations: 4 kB / 384.9 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.5237, allocations: 0 / 384.9 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.5249, allocations: 232.8 kB / 385.1 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.5254, allocations: 51.91 kB / 385.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005665/0.5311, allocations: 2.568 MB / 387.7 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000503/0.5316, allocations: 23.92 kB / 387.8 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.619e-05/0.5317, allocations: 19.98 kB / 387.8 MB, free: 3.793 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0002614/0.532, allocations: 120.8 kB / 387.9 MB, free: 3.668 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001414/0.5334, allocations: 429.9 kB / 388.3 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.5335, allocations: 23.72 kB / 388.3 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.5337, allocations: 47.33 kB / 388.4 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.5337, allocations: 4 kB / 388.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5337, allocations: 4 kB / 388.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.5338, allocations: 7.922 kB / 388.4 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.5363, allocations: 0.9491 MB / 389.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.5363, allocations: 0 / 389.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.5368, allocations: 47.89 kB / 389.4 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.5379, allocations: 220.7 kB / 389.6 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.5379, allocations: 7.984 kB / 389.6 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005151/0.5431, allocations: 2.503 MB / 392.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.5432, allocations: 0 / 392.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.545, allocations: 0.7161 MB / 392.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.5454, allocations: 140.8 kB / 393 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.879e-05/0.5455, allocations: 0 / 393 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.546, allocations: 32.06 kB / 393 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000261/0.5463, allocations: 67.86 kB / 393.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.5463, allocations: 15.98 kB / 393.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002183/0.5466, allocations: 148.3 kB / 393.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5466, allocations: 0 / 393.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009486/0.5475, allocations: 124 kB / 393.4 MB, free: 14 MB / 346.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.002508/0.55, allocations: 1.295 MB / 394.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.5516, allocations: 0.5384 MB / 395.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.5516, allocations: 0 / 395.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009145/0.5525, allocations: 368.2 kB / 395.6 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.553, allocations: 20.53 kB / 395.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.555, allocations: 0.6077 MB / 396.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.5555, allocations: 0.7839 MB / 397 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.5558, allocations: 91.38 kB / 397.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.5558, allocations: 4 kB / 397.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.804/3.359, allocations: 6.125 MB / 403.2 MB, free: 4.055 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat