Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.457/2.457, allocations: 270 MB / 282.6 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.6e-05/3.62e-05, allocations: 4 kB / 347.1 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4102, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.6035, allocations: 106.4 MB / 0.5032 GB, free: 124 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.6038, allocations: 63.97 kB / 0.5033 GB, free: 60 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5712/1.175, allocations: 50.03 MB / 0.5522 GB, free: 89.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.983e-06/1.175, allocations: 0 / 0.5522 GB, free: 89.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001532/1.175, allocations: 51.98 kB / 0.5522 GB, free: 89.12 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01036/1.186, allocations: 2.348 MB / 0.5545 GB, free: 86.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.186, allocations: 8.031 kB / 0.5545 GB, free: 86.7 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001028/1.187, allocations: 307.9 kB / 0.5548 GB, free: 86.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001654/1.188, allocations: 292.9 kB / 0.5551 GB, free: 86.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003047/1.192, allocations: 0.9784 MB / 0.556 GB, free: 85.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001238/1.193, allocations: 468.1 kB / 0.5565 GB, free: 84.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/1.194, allocations: 243.6 kB / 0.5567 GB, free: 84.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007539/1.201, allocations: 2.315 MB / 0.559 GB, free: 81.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002103/1.202, allocations: 35.64 kB / 0.559 GB, free: 81.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004479/1.202, allocations: 84 kB / 0.5591 GB, free: 81.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.636e-05/1.202, allocations: 52 kB / 0.5591 GB, free: 81.76 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006955/1.209, allocations: 2.176 MB / 0.5613 GB, free: 79.58 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/1.229, allocations: 6.751 MB / 0.5679 GB, free: 72.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005432/1.235, allocations: 2.234 MB / 0.57 GB, free: 70.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/1.238, allocations: 1.201 MB / 0.5712 GB, free: 69.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000414/1.239, allocations: 130.9 kB / 0.5713 GB, free: 68.99 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.138e-05/1.239, allocations: 72.38 kB / 0.5714 GB, free: 68.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 7.053e-06/1.239, allocations: 0 / 0.5714 GB, free: 68.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=338): time 0.02908/1.268, allocations: 11.1 MB / 0.5822 GB, free: 57.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/1.268, allocations: 333.4 kB / 0.5826 GB, free: 56.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/1.27, allocations: 0.9042 MB / 0.5834 GB, free: 56.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008028/1.271, allocations: 97.69 kB / 0.5835 GB, free: 55.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005632/1.271, allocations: 0.6538 MB / 0.5842 GB, free: 55.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001522/1.273, allocations: 1.132 MB / 0.5853 GB, free: 54.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006144/1.274, allocations: 67.98 kB / 0.5854 GB, free: 54.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002372/1.274, allocations: 425.5 kB / 0.5858 GB, free: 53.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00343/1.277, allocations: 1.014 MB / 0.5867 GB, free: 52.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003845/1.281, allocations: 1.406 MB / 0.5881 GB, free: 51.08 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004162/1.285, allocations: 1.013 MB / 0.5891 GB, free: 50.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/1.285, allocations: 4 kB / 0.5891 GB, free: 50.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01052/1.296, allocations: 3.183 MB / 0.5922 GB, free: 46.85 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/1.296, allocations: 16.14 kB / 0.5922 GB, free: 46.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.547e-05/1.296, allocations: 12 kB / 0.5922 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/1.3, allocations: 1.02 MB / 0.5932 GB, free: 45.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005938/1.306, allocations: 0.749 MB / 0.594 GB, free: 45.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/1.318, allocations: 7.382 MB / 0.6012 GB, free: 37.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004226/1.322, allocations: 303.8 kB / 0.6015 GB, free: 37.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007542/1.323, allocations: 124 kB / 0.6016 GB, free: 36.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000908/1.324, allocations: 292.3 kB / 0.6019 GB, free: 36.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007995/1.325, allocations: 213.4 kB / 0.6021 GB, free: 36.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006728/1.331, allocations: 2.286 MB / 0.6043 GB, free: 34.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.885e-05/1.332, allocations: 44.03 kB / 0.6044 GB, free: 34.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/1.332, allocations: 7.938 kB / 0.6044 GB, free: 34.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.337e-05/1.332, allocations: 15.94 kB / 0.6044 GB, free: 34.01 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/1.354, allocations: 7.34 MB / 0.6115 GB, free: 26.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.078e-05/1.354, allocations: 8.906 kB / 0.6115 GB, free: 26.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006543/1.36, allocations: 0.7334 MB / 0.6123 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003724/1.364, allocations: 1.004 MB / 0.6132 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007482/1.365, allocations: 103.9 kB / 0.6133 GB, free: 24.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/1.378, allocations: 10.02 MB / 0.6231 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/1.378, allocations: 11.94 kB / 0.6231 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/1.392, allocations: 5.745 MB / 0.6287 GB, free: 7.891 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/1.394, allocations: 0.5294 MB / 0.6293 GB, free: 7.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000873/1.395, allocations: 95.94 kB / 0.6294 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004516/1.399, allocations: 295.8 kB / 0.6296 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/1.401, allocations: 457.1 kB / 0.6301 GB, free: 6.508 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005817/1.402, allocations: 123.9 kB / 0.6302 GB, free: 6.387 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001412/1.403, allocations: 0.7011 MB / 0.6309 GB, free: 5.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.403, allocations: 4 kB / 0.6309 GB, free: 5.676 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004581/1.408, allocations: 0.742 MB / 0.6316 GB, free: 4.934 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0173/1.425, allocations: 8.837 MB / 0.6402 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009394/1.435, allocations: 3.023 MB / 0.6432 GB, free: 8.668 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.435, allocations: 4 kB / 0.6432 GB, free: 8.664 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008162/1.443, allocations: 2.479 MB / 0.6456 GB, free: 6.145 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/1.447, allocations: 311.3 kB / 0.6459 GB, free: 5.848 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.468, allocations: 6.215 MB / 0.652 GB, free: 15.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/1.47, allocations: 1.596 MB / 0.6535 GB, free: 13.83 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002561/1.473, allocations: 0.8819 MB / 0.6544 GB, free: 12.95 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/1.473, allocations: 0 / 0.6544 GB, free: 12.95 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.566/6.039, allocations: 80.04 MB / 0.7326 GB, free: 153.9 MB / 0.5105 GB