Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestBearingConversion",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.713/2.713, allocations: 235.1 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.617e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4091, allocations: 54.85 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.6158, allocations: 95.61 MB / 450 MB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.6162, allocations: 67.91 kB / 450.1 MB, free: 15.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6924/1.309, allocations: 63.28 MB / 0.5014 GB, free: 64.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.295e-06/1.309, allocations: 7.875 kB / 0.5014 GB, free: 64.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002053/1.309, allocations: 67.98 kB / 0.5014 GB, free: 64.15 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01372/1.323, allocations: 2.872 MB / 0.5042 GB, free: 61.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/1.323, allocations: 8.031 kB / 0.5042 GB, free: 61.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003121/1.326, allocations: 411.8 kB / 0.5046 GB, free: 60.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004512/1.33, allocations: 1.302 MB / 0.5059 GB, free: 59.45 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001265/1.332, allocations: 498.5 kB / 0.5064 GB, free: 58.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009118/1.333, allocations: 191.7 kB / 0.5066 GB, free: 58.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008888/1.342, allocations: 2.916 MB / 0.5094 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007975/1.35, allocations: 2.76 MB / 0.5121 GB, free: 52.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001895/1.35, allocations: 43.7 kB / 0.5121 GB, free: 52.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004629/1.35, allocations: 0 / 0.5121 GB, free: 52.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.338e-05/1.35, allocations: 75.98 kB / 0.5122 GB, free: 52.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02704/1.377, allocations: 9.14 MB / 0.5211 GB, free: 43.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006874/1.384, allocations: 2.697 MB / 0.5238 GB, free: 40.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004557/1.389, allocations: 1.449 MB / 0.5252 GB, free: 39.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00083/1.39, allocations: 216.5 kB / 0.5254 GB, free: 38.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.891e-05/1.39, allocations: 95.92 kB / 0.5255 GB, free: 38.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 9.217e-06/1.39, allocations: 0 / 0.5255 GB, free: 38.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.05029/1.44, allocations: 16.11 MB / 0.5412 GB, free: 21.56 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002486/1.441, allocations: 0.5582 MB / 0.5418 GB, free: 20.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003263/1.444, allocations: 1.034 MB / 0.5428 GB, free: 19.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00129/1.445, allocations: 61.62 kB / 0.5428 GB, free: 19.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/1.447, allocations: 0.9096 MB / 0.5437 GB, free: 18.85 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0103/1.457, allocations: 1.378 MB / 0.5451 GB, free: 17.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006743/1.458, allocations: 5.297 kB / 0.5451 GB, free: 17.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003609/1.458, allocations: 463.1 kB / 0.5455 GB, free: 16.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01456/1.473, allocations: 1.262 MB / 0.5468 GB, free: 15.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/1.485, allocations: 1.973 MB / 0.5487 GB, free: 13.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01862/1.504, allocations: 1.319 MB / 0.55 GB, free: 12.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.532e-05/1.504, allocations: 12 kB / 0.55 GB, free: 12.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01897/1.523, allocations: 4.251 MB / 0.5541 GB, free: 7.852 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/1.523, allocations: 12.75 kB / 0.5541 GB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.512e-05/1.523, allocations: 23.95 kB / 0.5542 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007627/1.531, allocations: 1.712 MB / 0.5558 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007567/1.539, allocations: 0.8074 MB / 0.5566 GB, free: 5.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03771/1.576, allocations: 15.86 MB / 0.5721 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007285/1.584, allocations: 303.6 kB / 0.5724 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.585, allocations: 179.9 kB / 0.5726 GB, free: 4.141 MB / 410.7 MB 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 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: 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: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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 ($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.002161/1.588, allocations: 243.4 kB / 0.5728 GB, free: 3.898 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0234/1.611, allocations: 3.68 MB / 0.5764 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002807/1.614, allocations: 268.9 kB / 0.5767 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009962/1.624, allocations: 1.463 MB / 0.5781 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000145/1.624, allocations: 48 kB / 0.5781 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.746e-05/1.624, allocations: 4 kB / 0.5781 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001445/1.624, allocations: 23.92 kB / 0.5782 GB, free: 14.33 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.04717/1.671, allocations: 9.536 MB / 0.5875 GB, free: 4.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.764e-05/1.672, allocations: 8 kB / 0.5875 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008622/1.68, allocations: 0.726 MB / 0.5882 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008017/1.688, allocations: 1.577 MB / 0.5897 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00115/1.69, allocations: 83.86 kB / 0.5898 GB, free: 2.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03304/1.723, allocations: 15.3 MB / 0.6048 GB, free: 2.055 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.04e-05/1.723, allocations: 19.88 kB / 0.6048 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02362/1.746, allocations: 7.327 MB / 0.6119 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003229/1.75, allocations: 0.6772 MB / 0.6126 GB, free: 9.555 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/1.751, allocations: 47.94 kB / 0.6126 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006434/1.758, allocations: 283.7 kB / 0.6129 GB, free: 9.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003021/1.761, allocations: 0.6173 MB / 0.6135 GB, free: 8.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008825/1.762, allocations: 163.9 kB / 0.6137 GB, free: 8.453 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00203/1.764, allocations: 0.764 MB / 0.6144 GB, free: 7.691 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.764, allocations: 0 / 0.6144 GB, free: 7.691 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007796/1.772, allocations: 0.8163 MB / 0.6152 GB, free: 6.875 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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.3761/2.148, allocations: 10.62 MB / 0.6256 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01247/2.16, allocations: 4.354 MB / 0.6298 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/2.16, allocations: 2.656 kB / 0.6298 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01188/2.172, allocations: 3.523 MB / 0.6333 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/2.178, allocations: 288.7 kB / 0.6335 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02536/2.203, allocations: 7.227 MB / 0.6406 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00227/2.205, allocations: 1.89 MB / 0.6425 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003801/2.209, allocations: 435.2 kB / 0.6429 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003428/2.213, allocations: 1.122 MB / 0.644 GB, free: 114.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.954e-06/2.213, allocations: 0 / 0.644 GB, free: 114.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2084/2.421, allocations: 69.67 MB / 0.712 GB, free: 64.7 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002546/2.421, allocations: 144.6 kB / 0.7121 GB, free: 64.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.061/9.483, allocations: 0 / 0.7121 GB, free: 64.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat