Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.242/2.242, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.313e-05/2.314e-05, allocations: 0 / 267.6 MB, free: 4.957 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 48.7 MB / 316.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4802/0.6012, allocations: 89.54 MB / 405.9 MB, free: 3.129 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.6015, allocations: 66.09 kB / 405.9 MB, free: 3.098 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3562/0.9578, allocations: 63.33 MB / 469.3 MB, free: 7.195 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.9578, allocations: 0 / 469.3 MB, free: 7.195 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002552/0.9581, allocations: 63.98 kB / 469.3 MB, free: 7.133 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.01368/0.9718, allocations: 2.91 MB / 472.2 MB, free: 4.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.9719, allocations: 12.03 kB / 472.2 MB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003111/0.975, allocations: 411.8 kB / 472.6 MB, free: 3.746 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004587/0.9796, allocations: 1.299 MB / 473.9 MB, free: 2.395 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001332/0.981, allocations: 0.4907 MB / 474.4 MB, free: 1.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.9821, allocations: 187.8 kB / 474.6 MB, free: 1.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01016/0.9923, allocations: 2.99 MB / 477.6 MB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/1.003, allocations: 2.801 MB / 480.4 MB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002523/1.003, allocations: 39.61 kB / 480.4 MB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/1.003, allocations: 4 kB / 480.5 MB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.164e-05/1.003, allocations: 68 kB / 480.5 MB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02855/1.032, allocations: 9.146 MB / 489.7 MB, free: 2.281 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.317/1.349, allocations: 2.736 MB / 492.4 MB, free: 99.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006836/1.356, allocations: 1.457 MB / 493.9 MB, free: 99.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008168/1.357, allocations: 62.38 kB / 493.9 MB, free: 99.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001318/1.357, allocations: 91.36 kB / 494 MB, free: 99.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=359): time 1.523e-05/1.357, allocations: 1.219 kB / 494 MB, free: 99.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=421): time 0.06704/1.424, allocations: 16.27 MB / 0.4983 GB, free: 91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002627/1.425, allocations: 0.5549 MB / 0.4989 GB, free: 90.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004359/1.429, allocations: 1.08 MB / 0.4999 GB, free: 90.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001466/1.43, allocations: 56.53 kB / 0.5 GB, free: 90.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/1.432, allocations: 0.9309 MB / 0.5009 GB, free: 89.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003434/1.436, allocations: 1.361 MB / 0.5022 GB, free: 89.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/1.437, allocations: 2.688 kB / 0.5022 GB, free: 89.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005827/1.438, allocations: 473.9 kB / 0.5027 GB, free: 88.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007098/1.445, allocations: 1.308 MB / 0.5039 GB, free: 88.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/1.453, allocations: 2.012 MB / 0.5059 GB, free: 88.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00803/1.461, allocations: 1.363 MB / 0.5072 GB, free: 87.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.461, allocations: 4.438 kB / 0.5072 GB, free: 87.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.02439/1.486, allocations: 4.569 MB / 0.5117 GB, free: 87.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.548e-05/1.486, allocations: 15.97 kB / 0.5117 GB, free: 87.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.99e-05/1.486, allocations: 18.62 kB / 0.5117 GB, free: 87.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/1.496, allocations: 1.952 MB / 0.5136 GB, free: 87.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008888/1.505, allocations: 0.8095 MB / 0.5144 GB, free: 87.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03215/1.538, allocations: 16 MB / 0.5301 GB, free: 74.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005569/1.543, allocations: 298.3 kB / 0.5303 GB, free: 74.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001317/1.545, allocations: 186.1 kB / 0.5305 GB, free: 74.64 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.002109/1.547, allocations: 235.8 kB / 0.5307 GB, free: 74.46 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01464/1.561, allocations: 3.928 MB / 0.5346 GB, free: 73.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0021/1.564, allocations: 264.2 kB / 0.5348 GB, free: 72.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002844/1.566, allocations: 0.5135 MB / 0.5353 GB, free: 72.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002006/1.567, allocations: 45.94 kB / 0.5354 GB, free: 72.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-05/1.567, allocations: 9.953 kB / 0.5354 GB, free: 72.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001664/1.567, allocations: 26.53 kB / 0.5354 GB, free: 72.6 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.03107/1.598, allocations: 9.633 MB / 0.5448 GB, free: 68.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.871e-05/1.598, allocations: 7.875 kB / 0.5448 GB, free: 68.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006493/1.605, allocations: 0.7293 MB / 0.5455 GB, free: 68.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006197/1.611, allocations: 1.81 MB / 0.5473 GB, free: 67.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001023/1.612, allocations: 81.33 kB / 0.5474 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02269/1.635, allocations: 15.45 MB / 0.5625 GB, free: 54.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/1.635, allocations: 15.39 kB / 0.5625 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01813/1.653, allocations: 7.549 MB / 0.5699 GB, free: 46.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00298/1.656, allocations: 0.6869 MB / 0.5705 GB, free: 46.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/1.658, allocations: 51.09 kB / 0.5706 GB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005769/1.663, allocations: 284.6 kB / 0.5709 GB, free: 46.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002557/1.666, allocations: 0.5988 MB / 0.5714 GB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008018/1.667, allocations: 167.6 kB / 0.5716 GB, free: 45.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001628/1.668, allocations: 0.7895 MB / 0.5724 GB, free: 44.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.668, allocations: 0 / 0.5724 GB, free: 44.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007234/1.676, allocations: 0.8454 MB / 0.5732 GB, free: 44.05 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.02195/1.698, allocations: 10.65 MB / 0.5836 GB, free: 33.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01142/1.709, allocations: 4.323 MB / 0.5878 GB, free: 29.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.692e-05/1.709, allocations: 4 kB / 0.5878 GB, free: 29.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01071/1.72, allocations: 3.467 MB / 0.5912 GB, free: 26.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005174/1.725, allocations: 281.9 kB / 0.5915 GB, free: 25.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/1.75, allocations: 7.239 MB / 0.5985 GB, free: 19.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/1.752, allocations: 1.906 MB / 0.6004 GB, free: 17.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003358/1.755, allocations: 436.6 kB / 0.6008 GB, free: 17.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003386/1.759, allocations: 1.126 MB / 0.6019 GB, free: 16.46 MB / 410.7 MB Notification: Performance of SimCode: time 1.724e-06/1.759, allocations: 0 / 0.6019 GB, free: 16.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4913/2.25, allocations: 69.41 MB / 0.6697 GB, free: 100.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/2.25, allocations: 137.1 kB / 0.6698 GB, free: 100.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.511/8.762, allocations: 0 / 0.6698 GB, free: 100.2 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat