Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestFriction",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.779/2.779, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.393e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3957, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.173/0.5688, allocations: 85.74 MB / 440.2 MB, free: 9.426 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5691, allocations: 63.97 kB / 440.2 MB, free: 9.363 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06576/0.6349, allocations: 11.61 MB / 451.8 MB, free: 13.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.635, allocations: 0 / 451.8 MB, free: 13.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.436e-05/0.635, allocations: 12 kB / 451.9 MB, free: 13.7 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003814/0.6389, allocations: 0.9434 MB / 452.8 MB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.6389, allocations: 8.031 kB / 452.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.6393, allocations: 83.06 kB / 452.9 MB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.6404, allocations: 395 kB / 453.3 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.397e-05/0.6405, allocations: 31.98 kB / 453.3 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.6407, allocations: 35.91 kB / 453.3 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002085/0.6428, allocations: 0.5804 MB / 453.9 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.6448, allocations: 0.6598 MB / 454.6 MB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.171e-05/0.6449, allocations: 11.91 kB / 454.6 MB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.645, allocations: 4 kB / 454.6 MB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.6451, allocations: 12 kB / 454.6 MB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008195/0.6533, allocations: 2.476 MB / 457.1 MB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.6552, allocations: 0.5393 MB / 457.6 MB, free: 7.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009493/0.6562, allocations: 320 kB / 457.9 MB, free: 7.336 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001708/0.6564, allocations: 11.98 kB / 457.9 MB, free: 7.324 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.842e-05/0.6565, allocations: 55.03 kB / 458 MB, free: 7.262 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.699e-06/0.6565, allocations: 3.938 kB / 458 MB, free: 7.258 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.008344/0.6648, allocations: 2.305 MB / 460.3 MB, free: 4.754 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/0.665, allocations: 148.5 kB / 460.5 MB, free: 4.578 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.6656, allocations: 305.2 kB / 460.7 MB, free: 4.277 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.6658, allocations: 33.7 kB / 460.8 MB, free: 4.238 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.6662, allocations: 272.5 kB / 461 MB, free: 3.965 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004203/0.6666, allocations: 276.2 kB / 461.3 MB, free: 3.691 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.6667, allocations: 0 / 461.3 MB, free: 3.691 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.6669, allocations: 366.8 kB / 461.7 MB, free: 3.324 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009945/0.6679, allocations: 294.6 kB / 462 MB, free: 3.035 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.6691, allocations: 455.2 kB / 462.4 MB, free: 2.535 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.6704, allocations: 267.7 kB / 462.7 MB, free: 2.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.6704, allocations: 0 / 462.7 MB, free: 2.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004742/0.6752, allocations: 1.058 MB / 463.7 MB, free: 1.207 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.6752, allocations: 8.344 kB / 463.7 MB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.991e-05/0.6753, allocations: 8 kB / 463.7 MB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.6775, allocations: 0.585 MB / 464.3 MB, free: 0.5938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.6789, allocations: 159.7 kB / 464.5 MB, free: 448 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3851/1.064, allocations: 2.632 MB / 467.1 MB, free: 94.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002271/1.066, allocations: 182.4 kB / 467.3 MB, free: 94.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002183/1.067, allocations: 41.72 kB / 467.3 MB, free: 94.31 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($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,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004514/1.067, allocations: 145.5 kB / 467.5 MB, free: 94.2 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004491/1.072, allocations: 0.8657 MB / 468.3 MB, free: 94.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/1.072, allocations: 64.75 kB / 468.4 MB, free: 94.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/1.076, allocations: 0.9717 MB / 469.4 MB, free: 94.03 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/1.076, allocations: 14.59 kB / 469.4 MB, free: 94.03 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/1.076, allocations: 2.125 kB / 469.4 MB, free: 94.03 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/1.076, allocations: 5 kB / 469.4 MB, free: 94.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006332/1.083, allocations: 1.909 MB / 471.3 MB, free: 93.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/1.083, allocations: 1.281 kB / 471.3 MB, free: 93.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.084, allocations: 120.2 kB / 471.4 MB, free: 93.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/1.086, allocations: 0.5531 MB / 472 MB, free: 93.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/1.086, allocations: 25.47 kB / 472 MB, free: 93.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/1.089, allocations: 2.585 MB / 474.6 MB, free: 91.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/1.089, allocations: 3.953 kB / 474.6 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/1.094, allocations: 1.585 MB / 476.2 MB, free: 90.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005343/1.094, allocations: 212.6 kB / 476.4 MB, free: 90.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002745/1.095, allocations: 16.06 kB / 476.4 MB, free: 90.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/1.096, allocations: 165.7 kB / 476.6 MB, free: 90.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006162/1.097, allocations: 180.5 kB / 476.7 MB, free: 90.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/1.097, allocations: 40.23 kB / 476.8 MB, free: 90.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000369/1.098, allocations: 246.3 kB / 477 MB, free: 90.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.098, allocations: 0 / 477 MB, free: 90.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001288/1.099, allocations: 164.9 kB / 477.2 MB, free: 90.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005545/1.105, allocations: 2.52 MB / 479.7 MB, free: 88.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003551/1.108, allocations: 0.8729 MB / 480.6 MB, free: 88.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.108, allocations: 0 / 480.6 MB, free: 88.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002318/1.11, allocations: 461.5 kB / 481 MB, free: 88.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/1.112, allocations: 81.95 kB / 481.1 MB, free: 88.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/1.125, allocations: 2.091 MB / 483.2 MB, free: 87.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006758/1.125, allocations: 0.9194 MB / 484.1 MB, free: 86.34 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007037/1.126, allocations: 56.52 kB / 484.2 MB, free: 86.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006502/1.127, allocations: 203 kB / 484.4 MB, free: 86.17 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/1.127, allocations: 0 / 484.4 MB, free: 86.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/1.236, allocations: 17.49 MB / 0.4901 GB, free: 72.08 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002444/1.237, allocations: 137.6 kB / 0.4902 GB, free: 71.88 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.58/4.817, allocations: 0 / 0.4902 GB, free: 71.88 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat