Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.85/1.85, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.668e-05/3.695e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09275, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.479/0.5718, allocations: 75.93 MB / 375.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.5721, allocations: 74.23 kB / 375.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03131/0.6034, allocations: 6.501 MB / 382.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.6035, allocations: 0 / 382.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.014e-05/0.6036, allocations: 7 kB / 382.4 MB, free: 11.85 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001973/0.6055, allocations: 0.66 MB / 383.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.6056, allocations: 9.625 kB / 383.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002238/0.6058, allocations: 82.72 kB / 383.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.606, allocations: 41.53 kB / 383.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005446/0.6066, allocations: 291.1 kB / 383.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.096e-05/0.6066, allocations: 25.47 kB / 383.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.6068, allocations: 46.16 kB / 383.6 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.6079, allocations: 391.4 kB / 384 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.6079, allocations: 4.328 kB / 384 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.547e-05/0.608, allocations: 13.88 kB / 384 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.608, allocations: 8.25 kB / 384 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.6091, allocations: 379.3 kB / 384.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004421/0.6136, allocations: 1.312 MB / 385.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.6147, allocations: 343.5 kB / 386 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005559/0.6153, allocations: 218.4 kB / 386.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.6154, allocations: 13.77 kB / 386.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.6154, allocations: 47.47 kB / 386.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.007e-06/0.6155, allocations: 0 / 386.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.004675/0.6201, allocations: 1.581 MB / 387.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.6202, allocations: 55.72 kB / 387.9 MB, free: 9.844 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.6205, allocations: 201.1 kB / 388.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.6207, allocations: 42.14 kB / 388.2 MB, free: 9.715 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.6208, allocations: 231.1 kB / 388.4 MB, free: 9.527 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.621, allocations: 166.3 kB / 388.5 MB, free: 9.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.424e-05/0.6211, allocations: 14.88 kB / 388.6 MB, free: 9.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.517e-05/0.6211, allocations: 331.6 kB / 388.9 MB, free: 9.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.6217, allocations: 187.2 kB / 389.1 MB, free: 9.113 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005439/0.6222, allocations: 254.5 kB / 389.3 MB, free: 9.062 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004229/0.6227, allocations: 161.1 kB / 389.5 MB, free: 9.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.6227, allocations: 0 / 389.5 MB, free: 9.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002329/0.625, allocations: 0.6823 MB / 390.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.6251, allocations: 7.859 kB / 390.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.6251, allocations: 5.953 kB / 390.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.6266, allocations: 435.9 kB / 390.6 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.6272, allocations: 71.84 kB / 390.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003433/0.6306, allocations: 3.392 MB / 394.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.6318, allocations: 109.2 kB / 394.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.6319, allocations: 22.31 kB / 394.2 MB, free: 21.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.6322, allocations: 138.5 kB / 394.3 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.6323, allocations: 35.09 kB / 394.4 MB, free: 21.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.6346, allocations: 0.7099 MB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.6346, allocations: 7.562 kB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.6346, allocations: 0 / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.6347, allocations: 3.141 kB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.6375, allocations: 1.153 MB / 396.2 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.6375, allocations: 0 / 396.2 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005665/0.6381, allocations: 62.77 kB / 396.3 MB, free: 21.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.6395, allocations: 424.6 kB / 396.7 MB, free: 21.17 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.991e-05/0.6396, allocations: 23.67 kB / 396.7 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003589/0.6432, allocations: 3.35 MB / 400.1 MB, free: 18.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6432, allocations: 0 / 400.1 MB, free: 18.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.6456, allocations: 0.8882 MB / 401 MB, free: 17.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.646, allocations: 156.1 kB / 401.1 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.6461, allocations: 23.55 kB / 401.1 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008954/0.647, allocations: 96.78 kB / 401.2 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.6474, allocations: 109.2 kB / 401.3 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.6475, allocations: 22.7 kB / 401.4 MB, free: 17.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002396/0.6477, allocations: 164.9 kB / 401.5 MB, free: 17.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6477, allocations: 3.938 kB / 401.5 MB, free: 17.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007529/0.6485, allocations: 125.7 kB / 401.6 MB, free: 17.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.002764/0.6513, allocations: 1.472 MB / 403.1 MB, free: 16.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.6532, allocations: 0.7702 MB / 403.9 MB, free: 16.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.6532, allocations: 0 / 403.9 MB, free: 16.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.6543, allocations: 0.4999 MB / 404.4 MB, free: 16.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.6551, allocations: 49.17 kB / 404.4 MB, free: 16.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.6583, allocations: 0.9317 MB / 405.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.6588, allocations: 0.8132 MB / 406.2 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.6591, allocations: 106.9 kB / 406.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6591, allocations: 0 / 406.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.095/3.754, allocations: 9.989 MB / 416.3 MB, free: 12.26 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat