Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.271e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09591, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5242, allocations: 77.66 MB / 377.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5245, allocations: 71.31 kB / 377.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06226/0.5868, allocations: 11.53 MB / 389.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5869, allocations: 0 / 389.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.591e-05/0.5869, allocations: 11.81 kB / 389.2 MB, free: 11.8 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002979/0.5899, allocations: 0.7103 MB / 389.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.767e-05/0.59, allocations: 7.812 kB / 389.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002279/0.5903, allocations: 79.62 kB / 390 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00082/0.5911, allocations: 64.64 kB / 390.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.5921, allocations: 330.9 kB / 390.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.5924, allocations: 96.12 kB / 390.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.5926, allocations: 43.75 kB / 390.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.5947, allocations: 0.5085 MB / 391 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/0.5948, allocations: 0 / 391 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.595, allocations: 19.56 kB / 391.1 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.595, allocations: 15.53 kB / 391.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.6096, allocations: 0.5395 MB / 391.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004614/0.6142, allocations: 1.16 MB / 392.8 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.6162, allocations: 463.6 kB / 393.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.6174, allocations: 285 kB / 393.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.6176, allocations: 9 kB / 393.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.6176, allocations: 42.88 kB / 393.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 5.721e-06/0.6176, allocations: 0 / 393.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.0209/0.6386, allocations: 1.994 MB / 395.5 MB, free: 9.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.6387, allocations: 85.52 kB / 395.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005954/0.6393, allocations: 248.5 kB / 395.9 MB, free: 9.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.6395, allocations: 47.92 kB / 395.9 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.6396, allocations: 209.8 kB / 396.1 MB, free: 9.414 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.64, allocations: 240.5 kB / 396.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.6401, allocations: 13.88 kB / 396.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.6472, allocations: 340.6 kB / 396.7 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.6484, allocations: 241.4 kB / 396.9 MB, free: 8.941 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.6495, allocations: 297.4 kB / 397.2 MB, free: 8.902 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008541/0.6503, allocations: 211.3 kB / 397.4 MB, free: 8.895 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.6504, allocations: 3.688 kB / 397.4 MB, free: 8.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002569/0.6529, allocations: 0.788 MB / 398.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.653, allocations: 3.875 kB / 398.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.653, allocations: 0 / 398.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001589/0.6546, allocations: 427.2 kB / 398.6 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.6553, allocations: 87.28 kB / 398.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.6569, allocations: 1.007 MB / 399.7 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009103/0.6579, allocations: 79.12 kB / 399.8 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.658, allocations: 33.52 kB / 399.8 MB, free: 8.238 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.6583, allocations: 136.7 kB / 400 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.6584, allocations: 42.97 kB / 400 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.6607, allocations: 0.8229 MB / 400.8 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.6608, allocations: 7.719 kB / 400.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.6608, allocations: 0 / 400.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.6608, allocations: 6.984 kB / 400.9 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004317/0.6651, allocations: 1.64 MB / 402.5 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.6652, allocations: 0 / 402.5 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/0.666, allocations: 97.55 kB / 402.6 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.6674, allocations: 394.9 kB / 403 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.6676, allocations: 19.5 kB / 403 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.6691, allocations: 0.9816 MB / 404 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6692, allocations: 3.797 kB / 404 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003186/0.6724, allocations: 1.194 MB / 405.2 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.6729, allocations: 185.1 kB / 405.4 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.6731, allocations: 14.19 kB / 405.4 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000863/0.6739, allocations: 77.28 kB / 405.4 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.6743, allocations: 104 kB / 405.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-05/0.6744, allocations: 33.7 kB / 405.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003161/0.6747, allocations: 202.3 kB / 405.8 MB, free: 6.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.6747, allocations: 0 / 405.8 MB, free: 6.547 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00081/0.6755, allocations: 158.5 kB / 405.9 MB, free: 6.535 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003632/0.6792, allocations: 1.934 MB / 407.9 MB, free: 5.602 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.6812, allocations: 0.6382 MB / 408.5 MB, free: 5.551 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.6812, allocations: 0 / 408.5 MB, free: 5.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.6823, allocations: 352.4 kB / 408.9 MB, free: 5.531 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006066/0.6829, allocations: 37.09 kB / 408.9 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.6872, allocations: 1.112 MB / 410 MB, free: 5.141 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.6878, allocations: 0.8307 MB / 410.8 MB, free: 20.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.6882, allocations: 138.7 kB / 411 MB, free: 20.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.412e-06/0.6882, allocations: 0 / 411 MB, free: 20.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.821/3.509, allocations: 8.561 MB / 419.5 MB, free: 16.17 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat