Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.144e-05/2.173e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 48.71 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5249, allocations: 89.57 MB / 405.9 MB, free: 2.941 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.5252, allocations: 63.59 kB / 405.9 MB, free: 2.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3041/0.8293, allocations: 63.34 MB / 469.3 MB, free: 7.371 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.8294, allocations: 0 / 469.3 MB, free: 7.371 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002166/0.8296, allocations: 63.98 kB / 469.3 MB, free: 7.309 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01366/0.8433, allocations: 2.906 MB / 472.2 MB, free: 4.344 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.8434, allocations: 12.03 kB / 472.3 MB, free: 4.332 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/0.8464, allocations: 411.8 kB / 472.7 MB, free: 3.926 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0046/0.851, allocations: 1.306 MB / 474 MB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00144/0.8525, allocations: 494.5 kB / 474.4 MB, free: 2.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00128/0.8538, allocations: 187.8 kB / 474.6 MB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01068/0.8645, allocations: 2.986 MB / 477.6 MB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.8764, allocations: 2.801 MB / 480.4 MB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003404/0.8768, allocations: 39.55 kB / 480.5 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007853/0.8776, allocations: 4 kB / 480.5 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.54e-05/0.8777, allocations: 68 kB / 480.5 MB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02863/0.9064, allocations: 9.146 MB / 489.7 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3442/1.251, allocations: 2.738 MB / 492.4 MB, free: 99.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004535/1.255, allocations: 1.46 MB / 493.9 MB, free: 99.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005354/1.256, allocations: 56.14 kB / 493.9 MB, free: 99.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.921e-05/1.256, allocations: 95.5 kB / 494 MB, free: 99.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=359): time 8.116e-06/1.256, allocations: 1.375 kB / 494 MB, free: 99.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=421): time 0.04065/1.297, allocations: 16.26 MB / 0.4983 GB, free: 90.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/1.297, allocations: 0.5536 MB / 0.4989 GB, free: 90.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/1.299, allocations: 1.083 MB / 0.4999 GB, free: 89.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001049/1.301, allocations: 58.5 kB / 0.5 GB, free: 89.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009539/1.302, allocations: 0.903 MB / 0.5009 GB, free: 89.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002229/1.304, allocations: 1.36 MB / 0.5022 GB, free: 88.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007624/1.305, allocations: 5.484 kB / 0.5022 GB, free: 88.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000327/1.305, allocations: 472.1 kB / 0.5026 GB, free: 88.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00435/1.309, allocations: 1.309 MB / 0.5039 GB, free: 88.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005333/1.315, allocations: 2.016 MB / 0.5059 GB, free: 87.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005083/1.32, allocations: 1.361 MB / 0.5072 GB, free: 87.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-05/1.32, allocations: 6.391 kB / 0.5072 GB, free: 87.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01537/1.335, allocations: 4.477 MB / 0.5116 GB, free: 87.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/1.335, allocations: 15.06 kB / 0.5116 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.072e-05/1.335, allocations: 20.22 kB / 0.5116 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006528/1.342, allocations: 1.948 MB / 0.5135 GB, free: 87.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006134/1.348, allocations: 0.8147 MB / 0.5143 GB, free: 87.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02384/1.372, allocations: 16 MB / 0.53 GB, free: 74.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005435/1.378, allocations: 304.5 kB / 0.5302 GB, free: 74.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/1.379, allocations: 185.2 kB / 0.5304 GB, free: 74.44 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (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,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001507/1.38, allocations: 234.8 kB / 0.5306 GB, free: 74.25 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01377/1.394, allocations: 3.918 MB / 0.5345 GB, free: 72.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001894/1.396, allocations: 272.8 kB / 0.5347 GB, free: 72.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/1.398, allocations: 0.5187 MB / 0.5352 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.842e-05/1.398, allocations: 45.91 kB / 0.5353 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.173e-05/1.398, allocations: 11.48 kB / 0.5353 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.203e-05/1.398, allocations: 22.72 kB / 0.5353 GB, free: 72.4 MB / 410.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.02893/1.427, allocations: 9.626 MB / 0.5447 GB, free: 67.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/1.427, allocations: 14.25 kB / 0.5447 GB, free: 67.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006414/1.434, allocations: 0.7234 MB / 0.5454 GB, free: 67.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006142/1.44, allocations: 1.814 MB / 0.5472 GB, free: 67.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009191/1.441, allocations: 87.48 kB / 0.5473 GB, free: 67.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02236/1.463, allocations: 15.44 MB / 0.5624 GB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-05/1.463, allocations: 11.94 kB / 0.5624 GB, free: 54.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/1.481, allocations: 7.56 MB / 0.5698 GB, free: 46.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.484, allocations: 0.6878 MB / 0.5704 GB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001514/1.486, allocations: 47.22 kB / 0.5705 GB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005807/1.491, allocations: 287.6 kB / 0.5708 GB, free: 45.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00242/1.494, allocations: 0.5977 MB / 0.5713 GB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000723/1.495, allocations: 171.6 kB / 0.5715 GB, free: 45.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001611/1.496, allocations: 0.7897 MB / 0.5723 GB, free: 44.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.496, allocations: 0 / 0.5723 GB, free: 44.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006727/1.503, allocations: 0.8533 MB / 0.5731 GB, free: 43.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (299): * Single equations (assignments): 289 * 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.01973/1.523, allocations: 10.65 MB / 0.5835 GB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01055/1.533, allocations: 4.31 MB / 0.5877 GB, free: 29.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.533, allocations: 0 / 0.5877 GB, free: 29.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008777/1.542, allocations: 3.289 MB / 0.5909 GB, free: 26.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004724/1.547, allocations: 283 kB / 0.5912 GB, free: 25.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02221/1.569, allocations: 7.307 MB / 0.5983 GB, free: 19.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/1.571, allocations: 1.904 MB / 0.6002 GB, free: 17.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002937/1.574, allocations: 1.143 MB / 0.6013 GB, free: 16.74 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.574, allocations: 0 / 0.6013 GB, free: 16.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.753/6.327, allocations: 138.9 MB / 0.737 GB, free: 43.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat