Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.437/2.437, allocations: 270 MB / 283.6 MB, free: 3.137 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.446e-05/5.452e-05, allocations: 7.938 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1687, allocations: 61.87 MB / 410.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5551/0.7238, allocations: 106.4 MB / 0.5046 GB, free: 13.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.7242, allocations: 70.03 kB / 0.5047 GB, free: 13.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2607/0.9849, allocations: 50.02 MB / 0.5536 GB, free: 11.38 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.9849, allocations: 0 / 0.5536 GB, free: 11.38 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002041/0.9851, allocations: 51.98 kB / 0.5536 GB, free: 11.33 MB / 474.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.01172/0.9969, allocations: 2.348 MB / 0.5559 GB, free: 8.926 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.997, allocations: 8.031 kB / 0.5559 GB, free: 8.918 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001362/0.9983, allocations: 303.9 kB / 0.5562 GB, free: 8.609 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/1.001, allocations: 292.9 kB / 0.5565 GB, free: 8.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003689/1.004, allocations: 0.9746 MB / 0.5574 GB, free: 7.289 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001501/1.006, allocations: 476 kB / 0.5579 GB, free: 6.777 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/1.007, allocations: 239.6 kB / 0.5581 GB, free: 6.543 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009634/1.017, allocations: 2.323 MB / 0.5604 GB, free: 4.141 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000286/1.017, allocations: 27.7 kB / 0.5604 GB, free: 4.113 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007348/1.018, allocations: 88 kB / 0.5605 GB, free: 4.027 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.819e-05/1.018, allocations: 52 kB / 0.5605 GB, free: 3.977 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008263/1.026, allocations: 2.175 MB / 0.5627 GB, free: 1.793 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/1.051, allocations: 6.764 MB / 0.5693 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006802/1.058, allocations: 2.222 MB / 0.5714 GB, free: 8.566 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004351/1.063, allocations: 1.2 MB / 0.5726 GB, free: 7.348 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006459/1.063, allocations: 131 kB / 0.5727 GB, free: 7.203 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.559e-05/1.063, allocations: 68.44 kB / 0.5728 GB, free: 7.129 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 6.552e-06/1.063, allocations: 3.938 kB / 0.5728 GB, free: 7.125 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.03633/1.1, allocations: 11.1 MB / 0.5836 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002291/1.1, allocations: 333.4 kB / 0.584 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/1.102, allocations: 0.9042 MB / 0.5848 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000859/1.103, allocations: 97.7 kB / 0.5849 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009418/1.104, allocations: 0.6716 MB / 0.5856 GB, free: 9.449 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002132/1.106, allocations: 1.132 MB / 0.5867 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008095/1.107, allocations: 71.92 kB / 0.5868 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000395/1.108, allocations: 428.6 kB / 0.5872 GB, free: 7.805 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004031/1.112, allocations: 1.01 MB / 0.5882 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004655/1.116, allocations: 1.406 MB / 0.5895 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/1.12, allocations: 1.017 MB / 0.5905 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.491e-05/1.12, allocations: 0 / 0.5905 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01319/1.133, allocations: 3.257 MB / 0.5937 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/1.134, allocations: 12 kB / 0.5937 GB, free: 0.9648 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.675e-05/1.134, allocations: 20.14 kB / 0.5937 GB, free: 0.9453 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004236/1.138, allocations: 1.019 MB / 0.5947 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006416/1.144, allocations: 0.7528 MB / 0.5955 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.159, allocations: 7.395 MB / 0.6027 GB, free: 7.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004374/1.164, allocations: 287.8 kB / 0.603 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007585/1.165, allocations: 128 kB / 0.6031 GB, free: 7.023 MB / 0.5105 GB 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.0009349/1.165, allocations: 292.3 kB / 0.6034 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009332/1.166, allocations: 217.4 kB / 0.6036 GB, free: 6.516 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/1.174, allocations: 2.293 MB / 0.6058 GB, free: 4.191 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.291e-05/1.174, allocations: 32 kB / 0.6058 GB, free: 4.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.391e-05/1.174, allocations: 8 kB / 0.6058 GB, free: 4.152 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.289e-05/1.174, allocations: 23.88 kB / 0.6059 GB, free: 4.129 MB / 0.5105 GB 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.391/1.565, allocations: 7.309 MB / 0.613 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.094e-05/1.565, allocations: 15.28 kB / 0.613 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006813/1.572, allocations: 0.7364 MB / 0.6137 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004134/1.576, allocations: 1.007 MB / 0.6147 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008747/1.577, allocations: 105.8 kB / 0.6148 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/1.592, allocations: 10.01 MB / 0.6246 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.539e-05/1.592, allocations: 12.89 kB / 0.6246 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0153/1.608, allocations: 5.749 MB / 0.6302 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002209/1.61, allocations: 0.5305 MB / 0.6308 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007863/1.611, allocations: 85.42 kB / 0.6308 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004622/1.615, allocations: 303.8 kB / 0.6311 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002028/1.617, allocations: 455.6 kB / 0.6316 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005376/1.618, allocations: 130.3 kB / 0.6317 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001666/1.62, allocations: 0.7022 MB / 0.6324 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.11e-07/1.62, allocations: 1.125 kB / 0.6324 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005138/1.625, allocations: 0.7286 MB / 0.6331 GB, free: 132.7 MB / 0.5105 GB 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.02261/1.647, allocations: 8.865 MB / 0.6417 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01149/1.659, allocations: 3.015 MB / 0.6447 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/1.659, allocations: 2 kB / 0.6447 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01091/1.67, allocations: 2.591 MB / 0.6472 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004873/1.675, allocations: 314.4 kB / 0.6475 GB, free: 125 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0263/1.701, allocations: 6.15 MB / 0.6535 GB, free: 122 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001884/1.703, allocations: 1.593 MB / 0.6551 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003205/1.706, allocations: 309.8 kB / 0.6554 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002738/1.709, allocations: 0.8605 MB / 0.6562 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/1.709, allocations: 0 / 0.6562 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1383/1.848, allocations: 53.48 MB / 0.7084 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/1.848, allocations: 171.9 kB / 0.7086 GB, free: 90.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.546/7.394, allocations: 4 kB / 0.7086 GB, free: 90.34 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat