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.11/2.11, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.718e-05/3.736e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5461, allocations: 89.98 MB / 411.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5464, allocations: 66.53 kB / 411.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3226/0.869, allocations: 63.8 MB / 475.7 MB, free: 15.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.8691, allocations: 3.938 kB / 475.7 MB, free: 15.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000255/0.8694, allocations: 63.98 kB / 475.7 MB, free: 15.73 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.01401/0.8834, allocations: 2.906 MB / 478.6 MB, free: 12.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.8835, allocations: 12.03 kB / 478.7 MB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001612/0.8851, allocations: 392.3 kB / 479 MB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002737/0.8879, allocations: 411.8 kB / 479.4 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004406/0.8923, allocations: 1.31 MB / 480.8 MB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001414/0.8938, allocations: 0.5806 MB / 481.3 MB, free: 9.953 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.895, allocations: 307.7 kB / 481.6 MB, free: 9.652 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/0.9052, allocations: 3.183 MB / 484.8 MB, free: 6.355 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002186/0.9055, allocations: 39.61 kB / 484.9 MB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005236/0.9061, allocations: 120 kB / 485 MB, free: 6.199 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.419e-05/0.9062, allocations: 72 kB / 485 MB, free: 6.129 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009871/0.916, allocations: 3.16 MB / 488.2 MB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02968/0.9458, allocations: 9.627 MB / 497.8 MB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008599/0.9544, allocations: 2.911 MB / 0.489 GB, free: 6.031 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005107/0.9596, allocations: 1.571 MB / 0.4905 GB, free: 4.418 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005375/0.9602, allocations: 53.09 kB / 0.4906 GB, free: 4.367 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000121/0.9603, allocations: 92.33 kB / 0.4907 GB, free: 4.27 MB / 426.7 MB Notification: Performance of pre-optimization done (n=359): time 1.076e-05/0.9603, allocations: 7.922 kB / 0.4907 GB, free: 4.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=421): time 0.3302/1.291, allocations: 17.06 MB / 0.5073 GB, free: 102.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002002/1.291, allocations: 0.5587 MB / 0.5079 GB, free: 102.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/1.294, allocations: 1.358 MB / 0.5092 GB, free: 102.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.296, allocations: 123.8 kB / 0.5093 GB, free: 102.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009748/1.297, allocations: 0.864 MB / 0.5102 GB, free: 101.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002535/1.299, allocations: 1.42 MB / 0.5116 GB, free: 101 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009631/1.3, allocations: 87.42 kB / 0.5117 GB, free: 101 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004164/1.301, allocations: 467.7 kB / 0.5121 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005223/1.306, allocations: 1.396 MB / 0.5135 GB, free: 100.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006106/1.312, allocations: 2.121 MB / 0.5155 GB, free: 99.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005187/1.317, allocations: 1.412 MB / 0.5169 GB, free: 99.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.735e-05/1.317, allocations: 6.375 kB / 0.5169 GB, free: 99.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01759/1.335, allocations: 4.857 MB / 0.5217 GB, free: 99.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.243e-05/1.335, allocations: 16.09 kB / 0.5217 GB, free: 99.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.06e-05/1.335, allocations: 22.97 kB / 0.5217 GB, free: 99.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007277/1.342, allocations: 1.97 MB / 0.5236 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006523/1.349, allocations: 0.8098 MB / 0.5244 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02558/1.375, allocations: 16.37 MB / 0.5404 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005891/1.38, allocations: 376.8 kB / 0.5408 GB, free: 86.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001223/1.382, allocations: 192.6 kB / 0.5409 GB, free: 86.83 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.00146/1.383, allocations: 364.3 kB / 0.5413 GB, free: 86.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.385, allocations: 284.1 kB / 0.5416 GB, free: 86.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/1.387, allocations: 0.6174 MB / 0.5422 GB, free: 86.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.335e-05/1.387, allocations: 46.06 kB / 0.5422 GB, free: 86.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.792e-05/1.387, allocations: 7.094 kB / 0.5422 GB, free: 86.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.456e-05/1.387, allocations: 23.95 kB / 0.5422 GB, free: 86.06 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.0316/1.419, allocations: 10.18 MB / 0.5522 GB, free: 81.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-05/1.419, allocations: 7.844 kB / 0.5522 GB, free: 81.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006586/1.425, allocations: 0.7312 MB / 0.5529 GB, free: 81.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006577/1.432, allocations: 1.84 MB / 0.5547 GB, free: 80.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001125/1.433, allocations: 134.2 kB / 0.5548 GB, free: 80.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02407/1.457, allocations: 15.83 MB / 0.5703 GB, free: 67.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/1.457, allocations: 8.625 kB / 0.5703 GB, free: 67.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/1.478, allocations: 7.843 MB / 0.5779 GB, free: 63.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003007/1.481, allocations: 0.7142 MB / 0.5786 GB, free: 62.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.482, allocations: 116.3 kB / 0.5788 GB, free: 62.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005907/1.488, allocations: 351.7 kB / 0.5791 GB, free: 62.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002538/1.491, allocations: 0.5976 MB / 0.5797 GB, free: 62.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000736/1.491, allocations: 167.6 kB / 0.5798 GB, free: 62.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002321/1.494, allocations: 1.015 MB / 0.5808 GB, free: 61.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.494, allocations: 0 / 0.5808 GB, free: 61.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007312/1.501, allocations: 1.011 MB / 0.5818 GB, free: 60.65 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.02132/1.523, allocations: 10.96 MB / 0.5925 GB, free: 49.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/1.535, allocations: 4.628 MB / 0.597 GB, free: 45.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/1.535, allocations: 0 / 0.597 GB, free: 45.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009608/1.545, allocations: 3.44 MB / 0.6004 GB, free: 42.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004958/1.55, allocations: 381.5 kB / 0.6008 GB, free: 41.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/1.573, allocations: 7.671 MB / 0.6083 GB, free: 34.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001746/1.575, allocations: 1.901 MB / 0.6101 GB, free: 33.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003027/1.578, allocations: 1.167 MB / 0.6113 GB, free: 32.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/1.578, allocations: 0 / 0.6113 GB, free: 32.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.054/6.633, allocations: 140.1 MB / 0.7481 GB, free: 72.11 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