Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.183/3.183, allocations: 235.2 MB / 242.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.632e-05/2.65e-05, allocations: 0 / 299.5 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4922/0.4923, allocations: 54.86 MB / 354.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2094/0.7018, allocations: 81.82 MB / 436.2 MB, free: 13.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.7021, allocations: 63.97 kB / 436.3 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02539/0.7275, allocations: 4.094 MB / 440.4 MB, free: 9.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.7276, allocations: 0 / 440.4 MB, free: 9.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.7276, allocations: 4 kB / 440.4 MB, free: 9.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001031/0.7287, allocations: 463 kB / 440.8 MB, free: 8.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.7287, allocations: 8.031 kB / 440.8 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.445e-05/0.7288, allocations: 50.53 kB / 440.9 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.054e-05/0.729, allocations: 35.66 kB / 440.9 MB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.7294, allocations: 227.9 kB / 441.1 MB, free: 8.297 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.7294, allocations: 8.438 kB / 441.2 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.7295, allocations: 16 kB / 441.2 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004291/0.73, allocations: 100.8 kB / 441.3 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005565/0.7306, allocations: 177.8 kB / 441.4 MB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.7306, allocations: 7.984 kB / 441.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.7307, allocations: 3.953 kB / 441.5 MB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.7307, allocations: 12 kB / 441.5 MB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002548/0.7333, allocations: 0.9866 MB / 442.5 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004529/0.7338, allocations: 150.6 kB / 442.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.7339, allocations: 51.42 kB / 442.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.734, allocations: 0 / 442.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.734, allocations: 38.5 kB / 442.7 MB, free: 6.598 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.885e-06/0.734, allocations: 0 / 442.7 MB, free: 6.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005281/0.7346, allocations: 113.5 kB / 442.8 MB, free: 6.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/0.7347, allocations: 132.5 kB / 442.9 MB, free: 6.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.7349, allocations: 149.4 kB / 443.1 MB, free: 6.168 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.735, allocations: 25.7 kB / 443.1 MB, free: 6.137 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.7351, allocations: 163.8 kB / 443.3 MB, free: 5.973 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.947e-05/0.7352, allocations: 55.2 kB / 443.3 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.7353, allocations: 0 / 443.3 MB, free: 5.918 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.7355, allocations: 334.8 kB / 443.6 MB, free: 5.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.7356, allocations: 36.03 kB / 443.7 MB, free: 5.547 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.7359, allocations: 142.5 kB / 443.8 MB, free: 5.355 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.7361, allocations: 63.92 kB / 443.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.7361, allocations: 0 / 443.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009671/0.7371, allocations: 197.1 kB / 444.1 MB, free: 5.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.7372, allocations: 8.438 kB / 444.1 MB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.7372, allocations: 8 kB / 444.1 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.693e-05/0.7373, allocations: 4 kB / 444.1 MB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008548/0.7382, allocations: 63.91 kB / 444.2 MB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.043e-05/0.7382, allocations: 11.94 kB / 444.2 MB, free: 5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.7387, allocations: 12.03 kB / 444.2 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-05/0.7388, allocations: 16 kB / 444.2 MB, free: 4.973 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.7391, allocations: 124.7 kB / 444.3 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.7394, allocations: 15.81 kB / 444.3 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004436/0.7399, allocations: 75.23 kB / 444.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.7399, allocations: 4 kB / 444.4 MB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.74, allocations: 0 / 444.4 MB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.74, allocations: 0 / 444.4 MB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.7413, allocations: 222 kB / 444.6 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.7414, allocations: 0 / 444.6 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008608/0.7423, allocations: 47.88 kB / 444.7 MB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.7423, allocations: 4 kB / 444.7 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-05/0.7424, allocations: 7.984 kB / 444.7 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.444e-05/0.7424, allocations: 4 kB / 444.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.341e-06/0.7425, allocations: 0 / 444.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.7434, allocations: 0.4965 MB / 445.2 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.7436, allocations: 96.84 kB / 445.3 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.7436, allocations: 8 kB / 445.3 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.744, allocations: 0 / 445.3 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.7441, allocations: 19.92 kB / 445.3 MB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.7441, allocations: 7.953 kB / 445.3 MB, free: 3.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001661/0.7443, allocations: 120.8 kB / 445.4 MB, free: 3.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7443, allocations: 0 / 445.4 MB, free: 3.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008106/0.7452, allocations: 51.84 kB / 445.5 MB, free: 3.578 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001196/0.7464, allocations: 1.252 MB / 446.7 MB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004238/0.7468, allocations: 111.8 kB / 446.8 MB, free: 2.176 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7469, allocations: 0 / 446.8 MB, free: 2.176 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.747, allocations: 43.92 kB / 446.9 MB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008878/0.7479, allocations: 34.5 kB / 446.9 MB, free: 2.102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.7508, allocations: 0.783 MB / 447.7 MB, free: 1.273 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.7513, allocations: 0.7522 MB / 448.5 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.7515, allocations: 18.08 kB / 448.5 MB, free: 484 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.7517, allocations: 67.41 kB / 448.5 MB, free: 416 kB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7517, allocations: 0 / 448.5 MB, free: 416 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08792/0.8397, allocations: 3.204 MB / 451.7 MB, free: 13.22 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004062/0.8401, allocations: 136.1 kB / 451.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.202/4.042, allocations: 0 / 451.9 MB, free: 13.02 MB / 394.7 MB "" Variables in the reference:time,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w Variables in the result:_D_cse1,constantTorque.flange.phi,constantTorque.flange.tau,constantTorque.phi,constantTorque.phi_support,constantTorque.tau,constantTorque.tau_constant,constantTorque.useSupport,constantTorque.w,der(constantTorque.phi),der(inertia1.w),der(inertia2.w),der(inertia3.w),der(inertia4.w),der(linearSpeedDependentTorque.phi),der(quadraticSpeedDependentTorque.phi),der(signTorque.phi),inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,inertia4.J,inertia4.a,inertia4.flange_a.phi,inertia4.flange_a.tau,inertia4.flange_b.phi,inertia4.flange_b.tau,inertia4.phi,inertia4.stateSelect,inertia4.w,linearSpeedDependentTorque.TorqueDirection,linearSpeedDependentTorque.flange.phi,linearSpeedDependentTorque.flange.tau,linearSpeedDependentTorque.phi,linearSpeedDependentTorque.phi_support,linearSpeedDependentTorque.tau,linearSpeedDependentTorque.tau_nominal,linearSpeedDependentTorque.useSupport,linearSpeedDependentTorque.w,linearSpeedDependentTorque.w_nominal,quadraticSpeedDependentTorque.TorqueDirection,quadraticSpeedDependentTorque.flange.phi,quadraticSpeedDependentTorque.flange.tau,quadraticSpeedDependentTorque.phi,quadraticSpeedDependentTorque.phi_support,quadraticSpeedDependentTorque.tau,quadraticSpeedDependentTorque.tau_nominal,quadraticSpeedDependentTorque.useSupport,quadraticSpeedDependentTorque.w,quadraticSpeedDependentTorque.w_nominal,signTorque.flange.phi,signTorque.flange.tau,signTorque.phi,signTorque.phi_support,signTorque.reg,signTorque.tau,signTorque.tau_constant,signTorque.useSupport,signTorque.w,signTorque.w0,time