Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.502/2.502, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.932e-05, allocations: 4 kB / 299.5 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4141, allocations: 54.84 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2623/0.6764, allocations: 98.86 MB / 453.2 MB, free: 15.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.6767, allocations: 63.97 kB / 453.3 MB, free: 15.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5439/1.221, allocations: 47.54 MB / 0.4891 GB, free: 104.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.221, allocations: 0.5312 kB / 0.4891 GB, free: 104.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002446/1.221, allocations: 44.91 kB / 0.4891 GB, free: 104.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01205/1.233, allocations: 2.351 MB / 0.4914 GB, free: 104.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/1.233, allocations: 9.125 kB / 0.4914 GB, free: 104.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002213/1.235, allocations: 301 kB / 0.4917 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00357/1.239, allocations: 0.9731 MB / 0.4926 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001427/1.24, allocations: 394 kB / 0.493 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/1.242, allocations: 139.4 kB / 0.4931 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008289/1.25, allocations: 2.078 MB / 0.4952 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008715/1.259, allocations: 2.045 MB / 0.4972 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002962/1.259, allocations: 39.84 kB / 0.4972 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006027/1.26, allocations: 4.844 kB / 0.4972 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.265e-05/1.26, allocations: 51.91 kB / 0.4973 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02084/1.281, allocations: 6.227 MB / 0.5033 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004866/1.285, allocations: 2.093 MB / 0.5054 GB, free: 101.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003171/1.289, allocations: 1.116 MB / 0.5065 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004745/1.289, allocations: 126.8 kB / 0.5066 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.354e-05/1.289, allocations: 66.88 kB / 0.5067 GB, free: 101.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.503e-06/1.289, allocations: 2.344 kB / 0.5067 GB, free: 101.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=338): time 0.02918/1.319, allocations: 10.07 MB / 0.5165 GB, free: 95.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/1.319, allocations: 264.7 kB / 0.5168 GB, free: 95.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/1.32, allocations: 0.7334 MB / 0.5175 GB, free: 94.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007647/1.321, allocations: 43.38 kB / 0.5175 GB, free: 94.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000805/1.322, allocations: 0.6916 MB / 0.5182 GB, free: 94.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00177/1.324, allocations: 1.091 MB / 0.5193 GB, free: 93.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008325/1.324, allocations: 4.219 kB / 0.5193 GB, free: 93.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002895/1.325, allocations: 426.4 kB / 0.5197 GB, free: 93.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/1.328, allocations: 0.9512 MB / 0.5206 GB, free: 92.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003609/1.332, allocations: 1.343 MB / 0.5219 GB, free: 92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/1.335, allocations: 0.9743 MB / 0.5229 GB, free: 91.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.954e-05/1.335, allocations: 7.297 kB / 0.5229 GB, free: 91.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.009779/1.345, allocations: 3.021 MB / 0.5258 GB, free: 90.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/1.345, allocations: 10.56 kB / 0.5258 GB, free: 90.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-05/1.345, allocations: 10.94 kB / 0.5258 GB, free: 90.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/1.349, allocations: 1.01 MB / 0.5268 GB, free: 90.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005842/1.354, allocations: 0.7514 MB / 0.5276 GB, free: 90.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/1.366, allocations: 7.293 MB / 0.5347 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004258/1.37, allocations: 238.7 kB / 0.5349 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007661/1.371, allocations: 130.8 kB / 0.535 GB, free: 84.49 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.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: 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: 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: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009133/1.372, allocations: 184.1 kB / 0.5352 GB, free: 84.34 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009565/1.382, allocations: 2.762 MB / 0.5379 GB, free: 82.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/1.383, allocations: 205.4 kB / 0.5381 GB, free: 81.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006638/1.39, allocations: 2.144 MB / 0.5402 GB, free: 80.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.597e-05/1.39, allocations: 40.23 kB / 0.5402 GB, free: 80.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-05/1.39, allocations: 0 / 0.5402 GB, free: 80.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-05/1.39, allocations: 18.2 kB / 0.5402 GB, free: 80.02 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.02262/1.413, allocations: 6.886 MB / 0.547 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.323e-05/1.413, allocations: 9.688 kB / 0.547 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006511/1.419, allocations: 0.7371 MB / 0.5477 GB, free: 73.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0037/1.423, allocations: 0.9862 MB / 0.5487 GB, free: 72.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008279/1.424, allocations: 62.78 kB / 0.5487 GB, free: 72.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.437, allocations: 9.805 MB / 0.5583 GB, free: 62.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-05/1.437, allocations: 15.94 kB / 0.5583 GB, free: 62.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/1.451, allocations: 5.249 MB / 0.5634 GB, free: 57.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00215/1.453, allocations: 0.5172 MB / 0.5639 GB, free: 57.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009843/1.454, allocations: 31.38 kB / 0.564 GB, free: 57.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004421/1.458, allocations: 248.7 kB / 0.5642 GB, free: 56.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001789/1.46, allocations: 454.8 kB / 0.5646 GB, free: 56.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004428/1.461, allocations: 127 kB / 0.5648 GB, free: 56.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001075/1.462, allocations: 0.5499 MB / 0.5653 GB, free: 56.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.683e-06/1.462, allocations: 0 / 0.5653 GB, free: 56.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004475/1.466, allocations: 0.6181 MB / 0.5659 GB, free: 55.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01418/1.481, allocations: 8.238 MB / 0.5739 GB, free: 47.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00764/1.488, allocations: 2.885 MB / 0.5768 GB, free: 44.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/1.488, allocations: 0 / 0.5768 GB, free: 44.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007828/1.496, allocations: 2.514 MB / 0.5792 GB, free: 42.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/1.501, allocations: 239.2 kB / 0.5794 GB, free: 41.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01926/1.52, allocations: 5.881 MB / 0.5852 GB, free: 36.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/1.521, allocations: 1.588 MB / 0.5867 GB, free: 34.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002331/1.524, allocations: 296.7 kB / 0.587 GB, free: 34.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/1.526, allocations: 0.8624 MB / 0.5879 GB, free: 33.42 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/1.526, allocations: 0 / 0.5879 GB, free: 33.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.147/1.673, allocations: 50.46 MB / 0.6371 GB, free: 14.94 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003001/1.673, allocations: 146.2 kB / 0.6373 GB, free: 14.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.827/6.5, allocations: 0 / 0.6373 GB, free: 14.73 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat