Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.596/2.596, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.417e-05/4.442e-05, allocations: 0 / 348.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1592, allocations: 61.88 MB / 410.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5252/0.6845, allocations: 103.2 MB / 0.5015 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.6848, allocations: 63.97 kB / 0.5015 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3381/1.023, allocations: 66.25 MB / 0.5662 GB, free: 14.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.574e-06/1.023, allocations: 3.938 kB / 0.5662 GB, free: 14.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002472/1.023, allocations: 67.98 kB / 0.5663 GB, free: 14.29 MB / 490.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.01458/1.038, allocations: 2.875 MB / 0.5691 GB, free: 11.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/1.038, allocations: 8.031 kB / 0.5691 GB, free: 11.36 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001667/1.04, allocations: 396.3 kB / 0.5695 GB, free: 10.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003278/1.043, allocations: 403.9 kB / 0.5699 GB, free: 10.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004804/1.048, allocations: 1.294 MB / 0.5711 GB, free: 9.215 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00154/1.049, allocations: 0.5845 MB / 0.5717 GB, free: 8.566 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00157/1.051, allocations: 323.5 kB / 0.572 GB, free: 8.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/1.063, allocations: 3.115 MB / 0.5751 GB, free: 5.023 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003375/1.064, allocations: 35.7 kB / 0.5751 GB, free: 4.988 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008483/1.064, allocations: 127.9 kB / 0.5752 GB, free: 4.863 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-05/1.064, allocations: 68 kB / 0.5753 GB, free: 4.797 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/1.075, allocations: 3.039 MB / 0.5782 GB, free: 1.758 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/1.108, allocations: 9.783 MB / 0.5878 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009418/1.117, allocations: 2.87 MB / 0.5906 GB, free: 4.672 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006872/1.124, allocations: 1.56 MB / 0.5921 GB, free: 3.066 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000896/1.125, allocations: 232 kB / 0.5923 GB, free: 2.805 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/1.125, allocations: 97.3 kB / 0.5924 GB, free: 2.699 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=366): time 1.794e-05/1.125, allocations: 3.984 kB / 0.5924 GB, free: 2.695 MB / 0.4948 GB Notification: Performance of matching and sorting (n=429): time 0.07511/1.2, allocations: 17.4 MB / 0.6094 GB, free: 204 kB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4025/1.603, allocations: 0.602 MB / 0.61 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005053/1.608, allocations: 1.291 MB / 0.6113 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001378/1.609, allocations: 124.4 kB / 0.6114 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001466/1.611, allocations: 0.9023 MB / 0.6123 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003269/1.614, allocations: 1.436 MB / 0.6137 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/1.615, allocations: 85.28 kB / 0.6138 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004875/1.616, allocations: 472.9 kB / 0.6142 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005293/1.621, allocations: 1.345 MB / 0.6155 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005825/1.627, allocations: 2.049 MB / 0.6175 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004885/1.632, allocations: 1.356 MB / 0.6189 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-05/1.632, allocations: 6.469 kB / 0.6189 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01757/1.65, allocations: 4.574 MB / 0.6233 GB, free: 135 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.42e-05/1.65, allocations: 13.94 kB / 0.6233 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-05/1.65, allocations: 25.17 kB / 0.6234 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00711/1.657, allocations: 1.728 MB / 0.6251 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/1.664, allocations: 0.8092 MB / 0.6258 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02775/1.691, allocations: 16.23 MB / 0.6417 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/1.697, allocations: 382.9 kB / 0.6421 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/1.699, allocations: 183.8 kB / 0.6422 GB, free: 123.7 MB / 0.5105 GB 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.001525/1.7, allocations: 361.3 kB / 0.6426 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.702, allocations: 287.4 kB / 0.6429 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006241/1.708, allocations: 1.548 MB / 0.6444 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.08e-05/1.708, allocations: 46.12 kB / 0.6444 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.409e-05/1.708, allocations: 5.5 kB / 0.6444 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001338/1.708, allocations: 24.94 kB / 0.6444 GB, free: 122.6 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.03079/1.739, allocations: 10.05 MB / 0.6543 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.359e-05/1.739, allocations: 11.38 kB / 0.6543 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006701/1.746, allocations: 0.7325 MB / 0.655 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006106/1.752, allocations: 1.595 MB / 0.6565 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001058/1.753, allocations: 138.4 kB / 0.6567 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02381/1.777, allocations: 15.72 MB / 0.672 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/1.777, allocations: 13.66 kB / 0.672 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01964/1.797, allocations: 7.85 MB / 0.6797 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002803/1.8, allocations: 0.702 MB / 0.6804 GB, free: 99.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001526/1.801, allocations: 116.3 kB / 0.6805 GB, free: 99.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006089/1.807, allocations: 349 kB / 0.6808 GB, free: 99.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002369/1.81, allocations: 0.6192 MB / 0.6814 GB, free: 99.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007958/1.811, allocations: 165.5 kB / 0.6816 GB, free: 99.04 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002156/1.813, allocations: 0.985 MB / 0.6826 GB, free: 98.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.72e-07/1.813, allocations: 3.531 kB / 0.6826 GB, free: 98.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007168/1.82, allocations: 0.9812 MB / 0.6835 GB, free: 98.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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.02097/1.841, allocations: 11.32 MB / 0.6946 GB, free: 90.44 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01249/1.854, allocations: 4.535 MB / 0.699 GB, free: 88.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/1.854, allocations: 0 / 0.699 GB, free: 88.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01128/1.865, allocations: 3.652 MB / 0.7026 GB, free: 84.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004876/1.87, allocations: 382.8 kB / 0.7029 GB, free: 84.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02306/1.893, allocations: 7.57 MB / 0.7103 GB, free: 77.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001825/1.895, allocations: 1.9 MB / 0.7122 GB, free: 76.26 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003058/1.898, allocations: 446.3 kB / 0.7126 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003028/1.901, allocations: 1.144 MB / 0.7137 GB, free: 74.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.713e-06/1.901, allocations: 0 / 0.7137 GB, free: 74.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1772/2.078, allocations: 73.98 MB / 0.786 GB, free: 8.738 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/2.079, allocations: 176.4 kB / 0.7861 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.822/8.9, allocations: 4.062 kB / 0.7861 GB, free: 8.516 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat