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.515/2.515, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.118e-05/4.124e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4422/0.4423, allocations: 54.86 MB / 359.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.6467, allocations: 99.53 MB / 459.4 MB, free: 13.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003796/0.6472, allocations: 64.97 kB / 459.5 MB, free: 13.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2354/0.8826, allocations: 47.88 MB / 0.4955 GB, free: 13.21 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8827, allocations: 0 / 0.4955 GB, free: 13.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001994/0.8829, allocations: 52 kB / 0.4955 GB, free: 13.16 MB / 442.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.01207/0.895, allocations: 2.356 MB / 0.4978 GB, free: 10.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.153e-05/0.8951, allocations: 8.031 kB / 0.4978 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001455/0.8966, allocations: 307.9 kB / 0.4981 GB, free: 10.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002247/0.8989, allocations: 292.9 kB / 0.4984 GB, free: 10.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/0.9024, allocations: 0.9745 MB / 0.4994 GB, free: 9.105 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0015/0.904, allocations: 464.1 kB / 0.4998 GB, free: 8.605 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/0.9052, allocations: 243.7 kB / 0.5 GB, free: 8.367 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009631/0.9149, allocations: 2.307 MB / 0.5023 GB, free: 5.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002289/0.9152, allocations: 39.64 kB / 0.5023 GB, free: 5.941 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004473/0.9157, allocations: 91.95 kB / 0.5024 GB, free: 5.852 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-05/0.9157, allocations: 52 kB / 0.5025 GB, free: 5.801 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007723/0.9235, allocations: 2.168 MB / 0.5046 GB, free: 3.633 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02301/0.9465, allocations: 6.759 MB / 0.5112 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006631/0.9533, allocations: 2.225 MB / 0.5133 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004142/0.9575, allocations: 1.204 MB / 0.5145 GB, free: 9.168 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004746/0.958, allocations: 123.1 kB / 0.5146 GB, free: 9.031 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.407e-05/0.9581, allocations: 68.38 kB / 0.5147 GB, free: 8.957 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 9.037e-06/0.9581, allocations: 4.094 kB / 0.5147 GB, free: 8.953 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.3805/1.339, allocations: 11.09 MB / 0.5255 GB, free: 119.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001898/1.339, allocations: 335.7 kB / 0.5259 GB, free: 118.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003222/1.342, allocations: 0.9042 MB / 0.5267 GB, free: 118.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/1.343, allocations: 98.56 kB / 0.5268 GB, free: 118.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/1.344, allocations: 0.6796 MB / 0.5275 GB, free: 118.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001872/1.346, allocations: 1.138 MB / 0.5286 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007655/1.347, allocations: 66.17 kB / 0.5287 GB, free: 117.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003069/1.347, allocations: 424.2 kB / 0.5291 GB, free: 117.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004959/1.352, allocations: 1.01 MB / 0.5301 GB, free: 117.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008186/1.361, allocations: 1.406 MB / 0.5314 GB, free: 117.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005832/1.367, allocations: 1.018 MB / 0.5324 GB, free: 117.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.521e-05/1.367, allocations: 7.656 kB / 0.5324 GB, free: 117.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01388/1.381, allocations: 3.255 MB / 0.5356 GB, free: 117 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/1.381, allocations: 12.98 kB / 0.5356 GB, free: 117 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.851e-05/1.381, allocations: 18.36 kB / 0.5356 GB, free: 117 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/1.385, allocations: 1.012 MB / 0.5366 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0063/1.391, allocations: 0.751 MB / 0.5374 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01337/1.405, allocations: 7.39 MB / 0.5446 GB, free: 112.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00459/1.41, allocations: 289.3 kB / 0.5449 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008105/1.41, allocations: 128.2 kB / 0.545 GB, free: 112.3 MB / 458.7 MB 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.0009641/1.411, allocations: 287.7 kB / 0.5453 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009666/1.412, allocations: 224.6 kB / 0.5455 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008116/1.42, allocations: 2.293 MB / 0.5477 GB, free: 111 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.573e-05/1.421, allocations: 33.86 kB / 0.5477 GB, free: 111 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.423e-05/1.421, allocations: 3.812 kB / 0.5477 GB, free: 111 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001132/1.421, allocations: 21.08 kB / 0.5478 GB, free: 111 MB / 458.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.02641/1.447, allocations: 7.331 MB / 0.5549 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.36e-05/1.447, allocations: 7.625 kB / 0.5549 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006558/1.454, allocations: 0.7392 MB / 0.5557 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/1.458, allocations: 1.016 MB / 0.5566 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008231/1.459, allocations: 104 kB / 0.5567 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0149/1.474, allocations: 10 MB / 0.5665 GB, free: 98.94 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.474, allocations: 13.97 kB / 0.5665 GB, free: 98.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.49, allocations: 5.757 MB / 0.5722 GB, free: 95.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.492, allocations: 0.5333 MB / 0.5727 GB, free: 95.19 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001278/1.493, allocations: 93.31 kB / 0.5728 GB, free: 95.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004802/1.498, allocations: 299.6 kB / 0.573 GB, free: 95.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001858/1.5, allocations: 458.1 kB / 0.5735 GB, free: 95.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000556/1.501, allocations: 123.7 kB / 0.5736 GB, free: 94.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001494/1.502, allocations: 0.702 MB / 0.5743 GB, free: 94.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.502, allocations: 0 / 0.5743 GB, free: 94.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004891/1.507, allocations: 0.7331 MB / 0.575 GB, free: 94.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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.01585/1.523, allocations: 8.854 MB / 0.5837 GB, free: 88.17 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008682/1.532, allocations: 3.014 MB / 0.5866 GB, free: 86.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.532, allocations: 3.75 kB / 0.5866 GB, free: 86.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008637/1.541, allocations: 2.593 MB / 0.5891 GB, free: 85.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003925/1.544, allocations: 303.1 kB / 0.5894 GB, free: 85.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/1.566, allocations: 6.154 MB / 0.5954 GB, free: 81.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/1.567, allocations: 1.59 MB / 0.597 GB, free: 80.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002523/1.57, allocations: 311.7 kB / 0.5973 GB, free: 80.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/1.572, allocations: 0.8711 MB / 0.5981 GB, free: 79.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.302e-06/1.572, allocations: 3.719 kB / 0.5981 GB, free: 79.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1324/1.705, allocations: 53.48 MB / 0.6504 GB, free: 32.39 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/1.705, allocations: 191.3 kB / 0.6505 GB, free: 32.15 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.247/6.952, allocations: 0 / 0.6505 GB, free: 32.15 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