Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 235 MB / 247.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.586e-05/3.594e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3869, allocations: 54.86 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1774/0.5644, allocations: 96.28 MB / 456.1 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.5647, allocations: 63.97 kB / 456.2 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3445/0.9092, allocations: 63.77 MB / 0.5078 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.9093, allocations: 0 / 0.5078 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001989/0.9095, allocations: 71.98 kB / 0.5078 GB, free: 0.5352 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.01312/0.9226, allocations: 2.868 MB / 0.5106 GB, free: 13.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.9227, allocations: 8.031 kB / 0.5107 GB, free: 13.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001397/0.9241, allocations: 396.3 kB / 0.511 GB, free: 13.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.9267, allocations: 407.8 kB / 0.5114 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00436/0.9311, allocations: 1.294 MB / 0.5127 GB, free: 11.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001561/0.9327, allocations: 0.5845 MB / 0.5133 GB, free: 10.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.9343, allocations: 311.6 kB / 0.5136 GB, free: 10.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.9462, allocations: 3.13 MB / 0.5166 GB, free: 7.266 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003081/0.9466, allocations: 43.55 kB / 0.5167 GB, free: 7.223 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007936/0.9474, allocations: 116 kB / 0.5168 GB, free: 7.109 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.059e-05/0.9475, allocations: 79.89 kB / 0.5168 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/0.9577, allocations: 3.047 MB / 0.5198 GB, free: 3.984 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3536/1.311, allocations: 9.761 MB / 0.5293 GB, free: 110.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007855/1.319, allocations: 2.865 MB / 0.5321 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004829/1.324, allocations: 1.563 MB / 0.5337 GB, free: 109.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006726/1.325, allocations: 241.2 kB / 0.5339 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.1e-05/1.325, allocations: 93.52 kB / 0.534 GB, free: 109.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=366): time 7.885e-06/1.325, allocations: 0 / 0.534 GB, free: 109.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=429): time 0.04238/1.367, allocations: 17.39 MB / 0.551 GB, free: 100.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002081/1.368, allocations: 0.6147 MB / 0.5516 GB, free: 99.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/1.371, allocations: 1.292 MB / 0.5528 GB, free: 99.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.372, allocations: 126.7 kB / 0.553 GB, free: 99.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008488/1.373, allocations: 0.8519 MB / 0.5538 GB, free: 98.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002269/1.375, allocations: 1.439 MB / 0.5552 GB, free: 98.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007302/1.376, allocations: 89.09 kB / 0.5553 GB, free: 98.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003061/1.376, allocations: 475.9 kB / 0.5557 GB, free: 97.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004353/1.381, allocations: 1.349 MB / 0.5571 GB, free: 97.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005132/1.386, allocations: 2.044 MB / 0.559 GB, free: 95.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004412/1.39, allocations: 1.365 MB / 0.5604 GB, free: 95.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.779e-05/1.39, allocations: 7.844 kB / 0.5604 GB, free: 95.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01466/1.405, allocations: 4.464 MB / 0.5648 GB, free: 93.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/1.405, allocations: 16.58 kB / 0.5648 GB, free: 93.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-05/1.405, allocations: 26.81 kB / 0.5648 GB, free: 93.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006302/1.411, allocations: 1.734 MB / 0.5665 GB, free: 93.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006105/1.418, allocations: 0.8037 MB / 0.5673 GB, free: 93.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0242/1.442, allocations: 16.25 MB / 0.5831 GB, free: 80.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00574/1.448, allocations: 376.9 kB / 0.5835 GB, free: 80.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/1.449, allocations: 187 kB / 0.5837 GB, free: 80.1 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.001604/1.451, allocations: 374 kB / 0.584 GB, free: 79.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00141/1.452, allocations: 287.1 kB / 0.5843 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005361/1.457, allocations: 1.532 MB / 0.5858 GB, free: 78.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.381e-05/1.457, allocations: 47.84 kB / 0.5858 GB, free: 78.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.206e-05/1.458, allocations: 7.875 kB / 0.5859 GB, free: 78.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001188/1.458, allocations: 22.56 kB / 0.5859 GB, free: 78.93 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.02985/1.488, allocations: 10.05 MB / 0.5957 GB, free: 74.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-05/1.488, allocations: 9.844 kB / 0.5957 GB, free: 74.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00651/1.494, allocations: 0.7338 MB / 0.5964 GB, free: 74.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005954/1.5, allocations: 1.594 MB / 0.598 GB, free: 73.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009779/1.501, allocations: 140.9 kB / 0.5981 GB, free: 73.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02292/1.524, allocations: 15.7 MB / 0.6134 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/1.524, allocations: 15.94 kB / 0.6135 GB, free: 59.55 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0172/1.541, allocations: 7.861 MB / 0.6211 GB, free: 51.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002698/1.544, allocations: 0.7035 MB / 0.6218 GB, free: 51.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001143/1.545, allocations: 111.9 kB / 0.6219 GB, free: 51.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005857/1.551, allocations: 352.2 kB / 0.6223 GB, free: 50.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002325/1.554, allocations: 0.6146 MB / 0.6229 GB, free: 50.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006903/1.554, allocations: 163.6 kB / 0.623 GB, free: 50.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002064/1.556, allocations: 0.9841 MB / 0.624 GB, free: 49.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.556, allocations: 4 kB / 0.624 GB, free: 49.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006995/1.563, allocations: 0.9882 MB / 0.625 GB, free: 48.41 MB / 458.7 MB 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.01958/1.583, allocations: 11.31 MB / 0.636 GB, free: 37.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.595, allocations: 4.534 MB / 0.6404 GB, free: 32.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/1.595, allocations: 4 kB / 0.6404 GB, free: 32.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009646/1.605, allocations: 3.426 MB / 0.6438 GB, free: 29.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005069/1.61, allocations: 384.3 kB / 0.6441 GB, free: 29.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02332/1.633, allocations: 7.648 MB / 0.6516 GB, free: 22.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/1.635, allocations: 1.899 MB / 0.6535 GB, free: 20.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003027/1.638, allocations: 1.156 MB / 0.6546 GB, free: 19.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.823e-06/1.638, allocations: 4 kB / 0.6546 GB, free: 19.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.76/6.398, allocations: 140.5 MB / 0.7918 GB, free: 90.27 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat