Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.389/2.389, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.297e-05, allocations: 8 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4273/0.4274, allocations: 44.48 MB / 294.3 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.5918, allocations: 75.03 MB / 369.3 MB, free: 6.785 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.5922, allocations: 67.97 kB / 369.4 MB, free: 6.719 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05964/0.6518, allocations: 9.227 MB / 378.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6519, allocations: 0 / 378.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.6519, allocations: 8 kB / 378.6 MB, free: 13.46 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.001947/0.6539, allocations: 0.5645 MB / 379.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.638e-05/0.654, allocations: 8.031 kB / 379.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006264/0.6546, allocations: 55.55 kB / 379.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006754/0.6553, allocations: 270.6 kB / 379.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.6556, allocations: 75.95 kB / 379.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.6557, allocations: 16 kB / 379.6 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001251/0.657, allocations: 376.8 kB / 380 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.6581, allocations: 312.2 kB / 380.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/0.6582, allocations: 3.906 kB / 380.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-05/0.6583, allocations: 4 kB / 380.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.6583, allocations: 4 kB / 380.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004639/0.663, allocations: 1.114 MB / 381.4 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009962/0.664, allocations: 294.5 kB / 381.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004863/0.6646, allocations: 152.8 kB / 381.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.206e-05/0.6647, allocations: 4 kB / 381.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.6647, allocations: 42.5 kB / 381.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 4.429e-06/0.6647, allocations: 0 / 381.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.005256/0.67, allocations: 1.237 MB / 383.1 MB, free: 8.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.6702, allocations: 88.86 kB / 383.2 MB, free: 8.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006344/0.6708, allocations: 177.7 kB / 383.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.6711, allocations: 33.69 kB / 383.4 MB, free: 8.352 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.6713, allocations: 136.9 kB / 383.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003769/0.6717, allocations: 141.9 kB / 383.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.6718, allocations: 0 / 383.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002575/0.6721, allocations: 334.8 kB / 384 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000769/0.6729, allocations: 136.9 kB / 384.1 MB, free: 7.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.6739, allocations: 193 kB / 384.3 MB, free: 7.395 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.6752, allocations: 136.8 kB / 384.5 MB, free: 7.266 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.6753, allocations: 0 / 384.5 MB, free: 7.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.003299/0.6786, allocations: 488.6 kB / 384.9 MB, free: 6.777 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.6787, allocations: 8 kB / 384.9 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.6787, allocations: 0 / 384.9 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.6805, allocations: 224.8 kB / 385.2 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008285/0.6814, allocations: 55.91 kB / 385.2 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.6915, allocations: 2.568 MB / 387.8 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009272/0.6925, allocations: 24.05 kB / 387.8 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.6927, allocations: 19.98 kB / 387.8 MB, free: 3.758 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.0003932/0.6931, allocations: 116.7 kB / 387.9 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002648/0.6958, allocations: 437.9 kB / 388.4 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.696, allocations: 23.72 kB / 388.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002098/0.6963, allocations: 39.39 kB / 388.4 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.6963, allocations: 8 kB / 388.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.6963, allocations: 0 / 388.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.6964, allocations: 3.984 kB / 388.4 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004633/0.701, allocations: 0.9567 MB / 389.4 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.7011, allocations: 4 kB / 389.4 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008344/0.7019, allocations: 47.89 kB / 389.4 MB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/0.7041, allocations: 228.6 kB / 389.7 MB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/0.7043, allocations: 7.984 kB / 389.7 MB, free: 1.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009668/0.714, allocations: 2.495 MB / 392.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/0.714, allocations: 64 / 392.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.7165, allocations: 0.7123 MB / 392.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003429/0.7169, allocations: 136.8 kB / 393 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.717, allocations: 7.938 kB / 393 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006026/0.7176, allocations: 23.94 kB / 393.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.718, allocations: 71.92 kB / 393.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.509e-05/0.7181, allocations: 15.98 kB / 393.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002515/0.7183, allocations: 152.3 kB / 393.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7184, allocations: 0 / 393.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001139/0.7195, allocations: 127.9 kB / 393.4 MB, free: 13.96 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.003021/0.7226, allocations: 1.292 MB / 394.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.7244, allocations: 0.5343 MB / 395.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7245, allocations: 4.312 kB / 395.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.7256, allocations: 372.2 kB / 395.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.7262, allocations: 15.98 kB / 395.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.7285, allocations: 0.5817 MB / 396.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.7291, allocations: 0.78 MB / 397 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005167/0.7296, allocations: 63.27 kB / 397 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.73, allocations: 83.39 kB / 397.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.73, allocations: 0 / 397.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08622/0.8162, allocations: 8.184 MB / 405.3 MB, free: 1.969 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003357/0.8166, allocations: 158.6 kB / 405.5 MB, free: 1.766 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.547/4.364, allocations: 0 / 405.5 MB, free: 1.766 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat