Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.511/2.511, allocations: 270 MB / 282.6 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.688e-05/3.694e-05, allocations: 7.938 kB / 347.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4449/0.445, allocations: 61.85 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1973/0.6423, allocations: 103.2 MB / 0.5001 GB, free: 3.426 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.6426, allocations: 67.97 kB / 0.5001 GB, free: 3.359 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.631/1.274, allocations: 66.24 MB / 0.5648 GB, free: 75.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.274, allocations: 3.938 kB / 0.5648 GB, free: 75.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002143/1.274, allocations: 63.98 kB / 0.5649 GB, free: 75.52 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01263/1.287, allocations: 2.871 MB / 0.5677 GB, free: 72.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/1.287, allocations: 12.03 kB / 0.5677 GB, free: 72.59 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001463/1.288, allocations: 392.3 kB / 0.5681 GB, free: 72.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/1.291, allocations: 403.9 kB / 0.5685 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004114/1.295, allocations: 1.294 MB / 0.5697 GB, free: 70.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001324/1.297, allocations: 0.5845 MB / 0.5703 GB, free: 69.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/1.298, allocations: 311.7 kB / 0.5706 GB, free: 69.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/1.308, allocations: 3.133 MB / 0.5736 GB, free: 66.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002562/1.309, allocations: 43.61 kB / 0.5737 GB, free: 66.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006124/1.309, allocations: 115.9 kB / 0.5738 GB, free: 66.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-05/1.309, allocations: 75.98 kB / 0.5739 GB, free: 66.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008942/1.318, allocations: 3.043 MB / 0.5768 GB, free: 62.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02661/1.345, allocations: 9.785 MB / 0.5864 GB, free: 52.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007467/1.352, allocations: 2.885 MB / 0.5892 GB, free: 49.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004542/1.357, allocations: 1.553 MB / 0.5907 GB, free: 48.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006495/1.358, allocations: 228 kB / 0.591 GB, free: 48.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.292e-05/1.358, allocations: 93.11 kB / 0.591 GB, free: 47.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=366): time 7.114e-06/1.358, allocations: 0 / 0.591 GB, free: 47.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=429): time 0.04029/1.398, allocations: 17.39 MB / 0.608 GB, free: 29.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002268/1.398, allocations: 0.6084 MB / 0.6086 GB, free: 28.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003235/1.402, allocations: 1.295 MB / 0.6099 GB, free: 27.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001218/1.403, allocations: 125.8 kB / 0.61 GB, free: 27.28 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008795/1.404, allocations: 0.8494 MB / 0.6108 GB, free: 26.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002054/1.406, allocations: 1.436 MB / 0.6122 GB, free: 24.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000832/1.407, allocations: 83.98 kB / 0.6123 GB, free: 24.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002699/1.407, allocations: 479.8 kB / 0.6128 GB, free: 24.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004153/1.411, allocations: 1.348 MB / 0.6141 GB, free: 23.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/1.416, allocations: 2.039 MB / 0.6161 GB, free: 20.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004097/1.42, allocations: 1.371 MB / 0.6174 GB, free: 19.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/1.42, allocations: 4 kB / 0.6174 GB, free: 19.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01367/1.434, allocations: 4.468 MB / 0.6218 GB, free: 14.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/1.434, allocations: 12 kB / 0.6218 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-05/1.434, allocations: 20 kB / 0.6218 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006291/1.44, allocations: 1.746 MB / 0.6235 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006094/1.447, allocations: 0.8074 MB / 0.6243 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02529/1.472, allocations: 16.23 MB / 0.6402 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005826/1.478, allocations: 387.7 kB / 0.6405 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00101/1.479, allocations: 184 kB / 0.6407 GB, free: 10.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * 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%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001189/1.48, allocations: 364 kB / 0.641 GB, free: 10.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.481, allocations: 296.5 kB / 0.6413 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00566/1.487, allocations: 1.544 MB / 0.6428 GB, free: 8.332 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.172e-05/1.487, allocations: 48 kB / 0.6429 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.201e-05/1.487, allocations: 8 kB / 0.6429 GB, free: 8.277 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/1.487, allocations: 23.92 kB / 0.6429 GB, free: 8.254 MB / 458.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.03274/1.52, allocations: 10.04 MB / 0.6527 GB, free: 13.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.499e-05/1.52, allocations: 8 kB / 0.6527 GB, free: 13.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006985/1.527, allocations: 0.7336 MB / 0.6534 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006596/1.534, allocations: 1.603 MB / 0.655 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/1.535, allocations: 135.9 kB / 0.6551 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02748/1.562, allocations: 15.72 MB / 0.6705 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-05/1.562, allocations: 15.94 kB / 0.6705 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02051/1.583, allocations: 7.841 MB / 0.6782 GB, free: 2.594 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002894/1.586, allocations: 0.7003 MB / 0.6788 GB, free: 1.871 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001264/1.587, allocations: 112 kB / 0.679 GB, free: 1.762 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006297/1.594, allocations: 351.7 kB / 0.6793 GB, free: 1.418 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002636/1.596, allocations: 0.6212 MB / 0.6799 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008582/1.597, allocations: 163.9 kB / 0.6801 GB, free: 0.6367 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00246/1.6, allocations: 0.981 MB / 0.681 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.92e-07/1.6, allocations: 96 / 0.681 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006773/1.606, allocations: 0.9999 MB / 0.682 GB, free: 14.66 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02313/1.63, allocations: 11.32 MB / 0.693 GB, free: 2.996 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01325/1.643, allocations: 4.523 MB / 0.6975 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.18e-05/1.643, allocations: 4.188 kB / 0.6975 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01113/1.654, allocations: 3.433 MB / 0.7008 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005086/1.659, allocations: 382.2 kB / 0.7012 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/1.685, allocations: 7.628 MB / 0.7086 GB, free: 2.699 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002446/1.688, allocations: 1.9 MB / 0.7105 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3563/2.044, allocations: 1.161 MB / 0.7116 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.524e-06/2.044, allocations: 0.6875 kB / 0.7116 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.632/6.676, allocations: 140.5 MB / 0.8488 GB, free: 35.28 MB / 0.5105 GB