Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.34/2.34, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.494e-05/3.499e-05, allocations: 2.875 kB / 249.8 MB, free: 5.273 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4734/0.5838, allocations: 75.62 MB / 369.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.5841, allocations: 73.45 kB / 370 MB, free: 7.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05423/0.6384, allocations: 9.849 MB / 379.8 MB, free: 21.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6384, allocations: 0 / 379.8 MB, free: 21.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.244e-05/0.6385, allocations: 3.938 kB / 379.8 MB, free: 21.39 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001877/0.6404, allocations: 0.5887 MB / 380.4 MB, free: 20.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.6404, allocations: 15.66 kB / 380.4 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006055/0.6411, allocations: 57.62 kB / 380.5 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000675/0.6418, allocations: 280.7 kB / 380.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.642, allocations: 75.48 kB / 380.8 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.6421, allocations: 23.28 kB / 380.9 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001192/0.6433, allocations: 404.7 kB / 381.3 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.6443, allocations: 344.1 kB / 381.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.6443, allocations: 0 / 381.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.6444, allocations: 3.906 kB / 381.6 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.6445, allocations: 7.875 kB / 381.6 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.6468, allocations: 0.8373 MB / 382.4 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.6479, allocations: 326.6 kB / 382.8 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/0.6484, allocations: 192.8 kB / 383 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-05/0.6485, allocations: 4.312 kB / 383 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.6486, allocations: 42.8 kB / 383 MB, free: 19.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.207e-06/0.6486, allocations: 0 / 383 MB, free: 19.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004829/0.6534, allocations: 1.431 MB / 384.4 MB, free: 19.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.6535, allocations: 85.48 kB / 384.5 MB, free: 19.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.6538, allocations: 179.7 kB / 384.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-05/0.6539, allocations: 33.58 kB / 384.7 MB, free: 18.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.6541, allocations: 138.7 kB / 384.9 MB, free: 18.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.6543, allocations: 180.3 kB / 385 MB, free: 18.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.993e-05/0.6544, allocations: 3.375 kB / 385 MB, free: 18.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.6546, allocations: 335.9 kB / 385.4 MB, free: 18.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.6551, allocations: 155.6 kB / 385.5 MB, free: 18.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005001/0.6556, allocations: 198.3 kB / 385.7 MB, free: 18.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006734/0.6563, allocations: 162.5 kB / 385.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.6563, allocations: 0 / 385.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001726/0.658, allocations: 0.5194 MB / 386.4 MB, free: 18.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.6581, allocations: 3.812 kB / 386.4 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.6581, allocations: 0 / 386.4 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.6595, allocations: 239 kB / 386.6 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007388/0.6602, allocations: 76.66 kB / 386.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006418/0.6667, allocations: 2.578 MB / 389.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007774/0.6675, allocations: 27.34 kB / 389.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.6677, allocations: 18.56 kB / 389.3 MB, free: 16.52 MB / 314.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: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003144/0.668, allocations: 121.9 kB / 389.4 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001898/0.6699, allocations: 0.4995 MB / 389.9 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.6701, allocations: 31.09 kB / 390 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000177/0.6703, allocations: 42.98 kB / 390 MB, free: 16.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.6703, allocations: 7.875 kB / 390 MB, free: 16.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.6704, allocations: 7.984 kB / 390 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.6704, allocations: 0 / 390 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003378/0.6738, allocations: 1.092 MB / 391.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.6738, allocations: 7.938 kB / 391.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007862/0.6746, allocations: 69.86 kB / 391.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.6759, allocations: 229.6 kB / 391.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.676, allocations: 7.859 kB / 391.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00596/0.682, allocations: 2.499 MB / 393.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/0.6821, allocations: 0 / 393.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.6844, allocations: 0.8284 MB / 394.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/0.6848, allocations: 147.5 kB / 394.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.685, allocations: 7.625 kB / 394.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.6857, allocations: 30.84 kB / 394.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.686, allocations: 74.67 kB / 395 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.319e-05/0.6861, allocations: 19.67 kB / 395 MB, free: 13.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002381/0.6864, allocations: 144.8 kB / 395.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6864, allocations: 0 / 395.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001269/0.6877, allocations: 147 kB / 395.3 MB, free: 13.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.003419/0.6911, allocations: 1.5 MB / 396.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.693, allocations: 0.5861 MB / 397.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.6931, allocations: 0 / 397.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.6943, allocations: 425.4 kB / 397.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.695, allocations: 22.02 kB / 397.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.6977, allocations: 0.6572 MB / 398.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/0.6983, allocations: 0.8095 MB / 399.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.6988, allocations: 58.05 kB / 399.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.6992, allocations: 100.2 kB / 399.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6992, allocations: 0 / 399.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06558/0.7648, allocations: 8.923 MB / 408.4 MB, free: 6.852 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003482/0.7652, allocations: 149.9 kB / 408.5 MB, free: 6.656 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.679/4.445, allocations: 0 / 408.5 MB, free: 6.656 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat