Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.386e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3248, allocations: 44.49 MB / 294.2 MB, free: 14.39 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4634, allocations: 75.03 MB / 369.2 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4637, allocations: 71.97 kB / 369.3 MB, free: 6.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04336/0.5071, allocations: 9.219 MB / 378.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5071, allocations: 4 kB / 378.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.5072, allocations: 4 kB / 378.5 MB, free: 13.51 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.00138/0.5086, allocations: 0.5606 MB / 379.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5086, allocations: 12.03 kB / 379.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004362/0.5091, allocations: 51.55 kB / 379.2 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.5097, allocations: 278.5 kB / 379.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.5098, allocations: 71.95 kB / 379.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-05/0.5099, allocations: 20 kB / 379.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001005/0.511, allocations: 360.9 kB / 379.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007567/0.5117, allocations: 316.2 kB / 380.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.5118, allocations: 7.906 kB / 380.2 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.268e-05/0.5118, allocations: 4 kB / 380.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.5118, allocations: 4 kB / 380.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.5145, allocations: 1.11 MB / 381.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007132/0.5152, allocations: 294.8 kB / 381.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.5156, allocations: 152.8 kB / 381.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.459e-05/0.5157, allocations: 8 kB / 381.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.5157, allocations: 42.55 kB / 381.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 2.906e-06/0.5158, allocations: 0 / 381.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.003627/0.5194, allocations: 1.237 MB / 383 MB, free: 8.723 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.5195, allocations: 84.86 kB / 383.1 MB, free: 8.621 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.5198, allocations: 177.7 kB / 383.3 MB, free: 8.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.245e-05/0.5199, allocations: 29.7 kB / 383.3 MB, free: 8.406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.52, allocations: 136.9 kB / 383.5 MB, free: 8.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.5202, allocations: 146.1 kB / 383.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.5202, allocations: 0 / 383.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5204, allocations: 338.8 kB / 383.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.5207, allocations: 136.9 kB / 384.1 MB, free: 7.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.5212, allocations: 193 kB / 384.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.5217, allocations: 140.7 kB / 384.4 MB, free: 7.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.5217, allocations: 0 / 384.4 MB, free: 7.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0014/0.5231, allocations: 488.5 kB / 384.9 MB, free: 6.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.5232, allocations: 4 kB / 384.9 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.5232, allocations: 0 / 384.9 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.5243, allocations: 228.8 kB / 385.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.5248, allocations: 59.89 kB / 385.2 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005409/0.5302, allocations: 2.568 MB / 387.7 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.5308, allocations: 19.98 kB / 387.7 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.5309, allocations: 19.98 kB / 387.8 MB, free: 3.801 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.0002395/0.5311, allocations: 120.3 kB / 387.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001362/0.5325, allocations: 437.8 kB / 388.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.262e-05/0.5326, allocations: 23.72 kB / 388.3 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.5328, allocations: 39.39 kB / 388.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.5328, allocations: 4 kB / 388.4 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.5328, allocations: 4 kB / 388.4 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.5328, allocations: 7.922 kB / 388.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.5353, allocations: 0.9491 MB / 389.3 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5353, allocations: 0 / 389.3 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.5358, allocations: 47.89 kB / 389.4 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/0.5368, allocations: 228.7 kB / 389.6 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.101e-05/0.5369, allocations: 7.984 kB / 389.6 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005001/0.5419, allocations: 2.495 MB / 392.1 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.5419, allocations: 0 / 392.1 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.5437, allocations: 0.7161 MB / 392.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.544, allocations: 140.8 kB / 393 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.815e-05/0.5441, allocations: 8.125 kB / 393 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.5446, allocations: 23.94 kB / 393 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.5448, allocations: 67.86 kB / 393.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.015e-05/0.5449, allocations: 15.98 kB / 393.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001944/0.5451, allocations: 148.3 kB / 393.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5451, allocations: 0 / 393.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009426/0.5461, allocations: 124 kB / 393.3 MB, free: 14.01 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.002343/0.5484, allocations: 1.292 MB / 394.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.5499, allocations: 0.5383 MB / 395.2 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5499, allocations: 0 / 395.2 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008709/0.5508, allocations: 372.5 kB / 395.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.5513, allocations: 20.83 kB / 395.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.5532, allocations: 0.5701 MB / 396.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.5537, allocations: 0.7917 MB / 396.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003792/0.5541, allocations: 63.25 kB / 397 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.5544, allocations: 87.39 kB / 397.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5544, allocations: 0 / 397.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07299/0.6274, allocations: 8.177 MB / 405.2 MB, free: 2.004 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002785/0.6278, allocations: 149.3 kB / 405.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/3.641, allocations: 0 / 405.4 MB, free: 1.805 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat