Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.562e-05/4.579e-05, allocations: 4 kB / 273.1 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1321, allocations: 48.7 MB / 321.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4198/0.552, allocations: 79.99 MB / 401.8 MB, free: 9.645 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5523, allocations: 63.95 kB / 401.9 MB, free: 9.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05616/0.6085, allocations: 11.47 MB / 413.4 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6086, allocations: 7.938 kB / 413.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.621e-05/0.6086, allocations: 16 kB / 413.4 MB, free: 14.05 MB / 346.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.003318/0.6119, allocations: 0.9505 MB / 414.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.612, allocations: 8.031 kB / 414.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002248/0.6123, allocations: 102.5 kB / 414.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002436/0.6125, allocations: 87 kB / 414.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008946/0.6134, allocations: 408.7 kB / 414.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.152e-05/0.6135, allocations: 45.31 kB / 415 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.6137, allocations: 67.89 kB / 415.1 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/0.6158, allocations: 0.7751 MB / 415.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/0.6159, allocations: 4 kB / 415.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.616, allocations: 24 kB / 415.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.844e-05/0.616, allocations: 19.95 kB / 415.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.6181, allocations: 0.6764 MB / 416.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007318/0.6254, allocations: 2.607 MB / 419.2 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.628, allocations: 0.5929 MB / 419.8 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.6293, allocations: 340.1 kB / 420.1 MB, free: 7.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.6295, allocations: 8.375 kB / 420.1 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.6295, allocations: 46.88 kB / 420.1 MB, free: 7.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 5.14e-06/0.6296, allocations: 0 / 420.1 MB, free: 7.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.009318/0.6389, allocations: 2.559 MB / 422.7 MB, free: 4.266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.6391, allocations: 144.4 kB / 422.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009344/0.64, allocations: 367.1 kB / 423.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.6402, allocations: 53.69 kB / 423.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003868/0.6406, allocations: 292.2 kB / 423.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004869/0.6411, allocations: 260.5 kB / 423.8 MB, free: 3.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.6413, allocations: 16 kB / 423.8 MB, free: 3.105 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002851/0.6416, allocations: 366.8 kB / 424.2 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00157/0.6432, allocations: 342 kB / 424.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/0.645, allocations: 0.4985 MB / 425 MB, free: 1.848 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.6463, allocations: 297.5 kB / 425.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.6463, allocations: 0 / 425.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005457/0.6518, allocations: 1.281 MB / 426.6 MB, free: 272 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.6518, allocations: 8 kB / 426.6 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.6519, allocations: 4 kB / 426.6 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/0.6551, allocations: 0.788 MB / 427.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.6567, allocations: 163.7 kB / 427.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004573/0.6613, allocations: 2.662 MB / 430.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002387/0.6637, allocations: 199.9 kB / 430.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001978/0.6639, allocations: 43.98 kB / 430.4 MB, free: 12.29 MB / 362.7 MB 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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004095/0.6643, allocations: 171.8 kB / 430.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003622/0.6647, allocations: 67.2 kB / 430.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003315/0.665, allocations: 87.7 kB / 430.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.6651, allocations: 12 kB / 430.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/0.6651, allocations: 3.984 kB / 430.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.6651, allocations: 0 / 430.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008852/0.674, allocations: 2.243 MB / 433 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.674, allocations: 0 / 433 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.6756, allocations: 123.8 kB / 433.1 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003019/0.6787, allocations: 0.7567 MB / 433.9 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.6788, allocations: 27.97 kB / 433.9 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004249/0.6831, allocations: 2.624 MB / 436.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.6831, allocations: 8.234 kB / 436.5 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006582/0.6897, allocations: 1.798 MB / 438.3 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000716/0.6905, allocations: 220.2 kB / 438.6 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.6908, allocations: 28 kB / 438.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002327/0.6931, allocations: 171.8 kB / 438.7 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007895/0.6939, allocations: 171.6 kB / 438.9 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/0.6941, allocations: 39.95 kB / 439 MB, free: 3.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006794/0.6948, allocations: 277.2 kB / 439.2 MB, free: 3.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6948, allocations: 0 / 439.2 MB, free: 3.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001633/0.6965, allocations: 203.9 kB / 439.4 MB, free: 3.035 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.007197/0.7037, allocations: 2.612 MB / 442 MB, free: 372 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.7076, allocations: 0.8403 MB / 442.9 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.7077, allocations: 0 / 442.9 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002255/0.7099, allocations: 470.8 kB / 443.3 MB, free: 15.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.7112, allocations: 98.09 kB / 443.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008767/0.72, allocations: 2.157 MB / 445.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006685/0.7207, allocations: 0.926 MB / 446.5 MB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004568/0.7212, allocations: 64.83 kB / 446.6 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/0.7217, allocations: 207.3 kB / 446.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7217, allocations: 0 / 446.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07111/0.7928, allocations: 17.81 MB / 464.6 MB, free: 9.816 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003211/0.7932, allocations: 168.4 kB / 464.8 MB, free: 9.594 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.095/3.888, allocations: 4 kB / 464.8 MB, free: 9.59 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat