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 1.976/1.976, allocations: 209.3 MB / 221.9 MB, free: 1.922 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.309e-05/4.323e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.524, allocations: 89.99 MB / 411.8 MB, free: 15.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.5243, allocations: 66.75 kB / 411.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3314/0.8558, allocations: 63.81 MB / 475.7 MB, free: 15.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.8559, allocations: 0 / 475.7 MB, free: 15.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002461/0.8561, allocations: 63.98 kB / 475.8 MB, free: 15.71 MB / 410.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.01402/0.8702, allocations: 2.91 MB / 478.7 MB, free: 12.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.8702, allocations: 8.031 kB / 478.7 MB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00173/0.872, allocations: 392.3 kB / 479.1 MB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003176/0.8752, allocations: 411.8 kB / 479.5 MB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004708/0.88, allocations: 1.302 MB / 480.8 MB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001609/0.8816, allocations: 0.5845 MB / 481.4 MB, free: 9.938 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001572/0.8833, allocations: 303.7 kB / 481.7 MB, free: 9.641 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.8952, allocations: 3.153 MB / 484.8 MB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002736/0.8955, allocations: 35.61 kB / 484.8 MB, free: 6.344 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008221/0.8964, allocations: 112 kB / 485 MB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.851e-05/0.8965, allocations: 76 kB / 485 MB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.9069, allocations: 3.125 MB / 488.2 MB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03776/0.9448, allocations: 9.627 MB / 497.8 MB, free: 9.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/0.9565, allocations: 2.883 MB / 0.4889 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006942/0.9635, allocations: 1.549 MB / 0.4904 GB, free: 4.535 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006554/0.9642, allocations: 69 kB / 0.4905 GB, free: 4.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.9644, allocations: 87.58 kB / 0.4906 GB, free: 4.371 MB / 426.7 MB Notification: Performance of pre-optimization done (n=359): time 1.18e-05/0.9644, allocations: 0 / 0.4906 GB, free: 4.371 MB / 426.7 MB Notification: Performance of matching and sorting (n=421): time 0.3455/1.31, allocations: 17.04 MB / 0.5072 GB, free: 102.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001935/1.31, allocations: 0.5555 MB / 0.5078 GB, free: 102.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003476/1.314, allocations: 1.35 MB / 0.5091 GB, free: 102.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001066/1.315, allocations: 127.6 kB / 0.5092 GB, free: 102.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00096/1.316, allocations: 0.8671 MB / 0.5101 GB, free: 101.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002336/1.318, allocations: 1.416 MB / 0.5114 GB, free: 101 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/1.319, allocations: 88.7 kB / 0.5115 GB, free: 101 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004339/1.32, allocations: 470.1 kB / 0.512 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006573/1.326, allocations: 1.394 MB / 0.5133 GB, free: 100.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009215/1.336, allocations: 2.097 MB / 0.5154 GB, free: 99.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007628/1.343, allocations: 1.411 MB / 0.5168 GB, free: 99.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.129e-05/1.343, allocations: 4.906 kB / 0.5168 GB, free: 99.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02543/1.369, allocations: 4.808 MB / 0.5215 GB, free: 99.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.24e-05/1.369, allocations: 12.38 kB / 0.5215 GB, free: 99.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-05/1.369, allocations: 19.25 kB / 0.5215 GB, free: 99.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00785/1.377, allocations: 1.975 MB / 0.5234 GB, free: 99.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008666/1.386, allocations: 0.8145 MB / 0.5242 GB, free: 99.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03708/1.423, allocations: 16.37 MB / 0.5402 GB, free: 86.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007472/1.43, allocations: 380.3 kB / 0.5406 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.432, allocations: 187.3 kB / 0.5407 GB, free: 86.84 MB / 426.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 (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.001959/1.434, allocations: 365.3 kB / 0.5411 GB, free: 86.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002106/1.436, allocations: 288 kB / 0.5414 GB, free: 86.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002715/1.439, allocations: 0.6126 MB / 0.542 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.899e-05/1.439, allocations: 44.27 kB / 0.542 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.396e-05/1.439, allocations: 11.41 kB / 0.542 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/1.439, allocations: 25.92 kB / 0.542 GB, free: 86.07 MB / 426.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.04132/1.48, allocations: 10.14 MB / 0.5519 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.571e-05/1.481, allocations: 9.406 kB / 0.552 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008628/1.489, allocations: 0.727 MB / 0.5527 GB, free: 81.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008786/1.498, allocations: 1.832 MB / 0.5545 GB, free: 80.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001244/1.499, allocations: 145.7 kB / 0.5546 GB, free: 80.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02847/1.528, allocations: 15.84 MB / 0.5701 GB, free: 67.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-05/1.528, allocations: 11.75 kB / 0.5701 GB, free: 67.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03/1.558, allocations: 7.846 MB / 0.5777 GB, free: 63.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004073/1.562, allocations: 0.7145 MB / 0.5784 GB, free: 62.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002148/1.564, allocations: 119.9 kB / 0.5785 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008458/1.573, allocations: 343.7 kB / 0.5789 GB, free: 62.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003459/1.576, allocations: 0.6017 MB / 0.5795 GB, free: 62.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001426/1.578, allocations: 165 kB / 0.5796 GB, free: 62.65 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003778/1.582, allocations: 1.014 MB / 0.5806 GB, free: 61.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.443e-06/1.582, allocations: 0 / 0.5806 GB, free: 61.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009124/1.591, allocations: 1.018 MB / 0.5816 GB, free: 60.84 MB / 426.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.03092/1.622, allocations: 10.94 MB / 0.5923 GB, free: 50.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01594/1.638, allocations: 4.493 MB / 0.5967 GB, free: 45.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-05/1.638, allocations: 7.469 kB / 0.5967 GB, free: 45.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01352/1.652, allocations: 3.361 MB / 0.6 GB, free: 42.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007215/1.659, allocations: 374.5 kB / 0.6003 GB, free: 42.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/1.691, allocations: 7.668 MB / 0.6078 GB, free: 35.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00179/1.693, allocations: 1.895 MB / 0.6097 GB, free: 33.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003003/1.696, allocations: 1.163 MB / 0.6108 GB, free: 32.76 MB / 426.7 MB Notification: Performance of SimCode: time 1.443e-06/1.696, allocations: 0 / 0.6108 GB, free: 32.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.726/6.423, allocations: 139.9 MB / 0.7475 GB, free: 72.5 MB / 442.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