Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_AllComponents",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.71/2.71, allocations: 235.1 MB / 242.3 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.254e-05, allocations: 0 / 299.6 MB, free: 224 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.426, allocations: 54.87 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2011/0.6271, allocations: 98.85 MB / 453.3 MB, free: 12.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.6274, allocations: 67.97 kB / 453.4 MB, free: 12.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5913/1.219, allocations: 47.54 MB / 0.4891 GB, free: 76.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.219, allocations: 0 / 0.4891 GB, free: 76.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001549/1.219, allocations: 47.98 kB / 0.4892 GB, free: 76.61 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01085/1.23, allocations: 2.345 MB / 0.4915 GB, free: 74.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/1.23, allocations: 20.02 kB / 0.4915 GB, free: 74.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001883/1.232, allocations: 296.8 kB / 0.4918 GB, free: 73.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/1.235, allocations: 0.9707 MB / 0.4927 GB, free: 72.87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00124/1.236, allocations: 396.1 kB / 0.4931 GB, free: 72.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000685/1.237, allocations: 147.7 kB / 0.4933 GB, free: 72.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006223/1.243, allocations: 2.074 MB / 0.4953 GB, free: 70.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005894/1.249, allocations: 2.04 MB / 0.4973 GB, free: 68.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001549/1.249, allocations: 35.7 kB / 0.4973 GB, free: 68.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000329/1.25, allocations: 3.953 kB / 0.4973 GB, free: 68.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.682e-05/1.25, allocations: 55.98 kB / 0.4974 GB, free: 68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01948/1.269, allocations: 6.244 MB / 0.5035 GB, free: 61.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005069/1.274, allocations: 2.085 MB / 0.5055 GB, free: 59.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/1.278, allocations: 1.12 MB / 0.5066 GB, free: 58.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/1.278, allocations: 123.4 kB / 0.5067 GB, free: 58.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.279e-05/1.278, allocations: 72.7 kB / 0.5068 GB, free: 58.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 7.343e-06/1.278, allocations: 0 / 0.5068 GB, free: 58.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.03151/1.31, allocations: 10.05 MB / 0.5166 GB, free: 47.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/1.31, allocations: 278 kB / 0.5169 GB, free: 47.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/1.311, allocations: 0.7352 MB / 0.5176 GB, free: 46.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000684/1.312, allocations: 41.7 kB / 0.5176 GB, free: 46.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006383/1.313, allocations: 0.6939 MB / 0.5183 GB, free: 45.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/1.314, allocations: 1.093 MB / 0.5194 GB, free: 44.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/1.314, allocations: 3.984 kB / 0.5194 GB, free: 44.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/1.314, allocations: 424.7 kB / 0.5198 GB, free: 44.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002821/1.317, allocations: 0.9475 MB / 0.5207 GB, free: 43.28 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003374/1.321, allocations: 1.347 MB / 0.522 GB, free: 41.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00351/1.324, allocations: 0.9773 MB / 0.523 GB, free: 40.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.388e-05/1.324, allocations: 0 / 0.523 GB, free: 40.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01088/1.335, allocations: 3.03 MB / 0.5259 GB, free: 37.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/1.335, allocations: 15.98 kB / 0.5259 GB, free: 37.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-05/1.335, allocations: 8 kB / 0.5259 GB, free: 37.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003848/1.339, allocations: 1.003 MB / 0.5269 GB, free: 36.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006562/1.346, allocations: 0.753 MB / 0.5277 GB, free: 36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/1.359, allocations: 7.301 MB / 0.5348 GB, free: 28.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004542/1.364, allocations: 227.8 kB / 0.535 GB, free: 28.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006651/1.365, allocations: 124 kB / 0.5351 GB, free: 28.05 MB / 394.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.0009659/1.366, allocations: 194.1 kB / 0.5353 GB, free: 27.85 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01035/1.376, allocations: 2.756 MB / 0.538 GB, free: 25.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.377, allocations: 205.5 kB / 0.5382 GB, free: 24.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/1.385, allocations: 2.145 MB / 0.5403 GB, free: 22.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.807e-05/1.385, allocations: 32 kB / 0.5403 GB, free: 22.65 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/1.385, allocations: 4 kB / 0.5403 GB, free: 22.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.075e-05/1.385, allocations: 19.89 kB / 0.5403 GB, free: 22.63 MB / 394.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.02294/1.408, allocations: 6.873 MB / 0.5471 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/1.408, allocations: 12.08 kB / 0.5471 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007119/1.415, allocations: 0.7412 MB / 0.5478 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004046/1.419, allocations: 0.9897 MB / 0.5488 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005939/1.42, allocations: 63.91 kB / 0.5488 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/1.434, allocations: 9.81 MB / 0.5584 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.516e-05/1.434, allocations: 15.92 kB / 0.5584 GB, free: 3.375 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01504/1.449, allocations: 5.257 MB / 0.5635 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/1.451, allocations: 0.5256 MB / 0.5641 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007692/1.452, allocations: 28 kB / 0.5641 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004726/1.457, allocations: 247.8 kB / 0.5643 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002015/1.459, allocations: 449.1 kB / 0.5648 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005339/1.46, allocations: 128.1 kB / 0.5649 GB, free: 12.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001452/1.461, allocations: 0.5507 MB / 0.5654 GB, free: 11.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.461, allocations: 3.938 kB / 0.5654 GB, free: 11.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004962/1.466, allocations: 0.6054 MB / 0.566 GB, free: 11.18 MB / 410.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.01945/1.486, allocations: 8.244 MB / 0.5741 GB, free: 2.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009621/1.495, allocations: 2.889 MB / 0.5769 GB, free: 15.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.495, allocations: 4.25 kB / 0.5769 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009624/1.505, allocations: 2.508 MB / 0.5793 GB, free: 13.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003886/1.509, allocations: 249.2 kB / 0.5796 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02355/1.533, allocations: 5.866 MB / 0.5853 GB, free: 6.824 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00215/1.535, allocations: 1.592 MB / 0.5869 GB, free: 5.195 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002859/1.538, allocations: 296.7 kB / 0.5871 GB, free: 4.902 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002864/1.54, allocations: 0.8585 MB / 0.588 GB, free: 4.043 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/1.541, allocations: 0 / 0.588 GB, free: 4.043 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5666/2.107, allocations: 50.48 MB / 0.6373 GB, free: 127.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002865/2.107, allocations: 128 kB / 0.6374 GB, free: 127.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.666/7.774, allocations: 4 kB / 0.6374 GB, free: 127.1 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat