Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.859e-05/3.874e-05, allocations: 4.938 kB / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4437/0.4438, allocations: 54.85 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.6124, allocations: 86.42 MB / 446.3 MB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.6127, allocations: 59.98 kB / 446.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06304/0.6757, allocations: 11.69 MB / 458 MB, free: 14.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.093e-06/0.6758, allocations: 0 / 458 MB, free: 14.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.875e-05/0.6758, allocations: 16 kB / 458.1 MB, free: 14.73 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.003378/0.6792, allocations: 0.9389 MB / 459 MB, free: 13.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.6793, allocations: 12.88 kB / 459 MB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002786/0.6796, allocations: 102.5 kB / 459.1 MB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.6799, allocations: 79.06 kB / 459.2 MB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008734/0.6808, allocations: 396.8 kB / 459.6 MB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-05/0.6808, allocations: 53.23 kB / 459.6 MB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002292/0.6811, allocations: 67.86 kB / 459.7 MB, free: 13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.6832, allocations: 0.7301 MB / 460.4 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.517e-05/0.6833, allocations: 15.84 kB / 460.4 MB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.6834, allocations: 20 kB / 460.5 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/0.6835, allocations: 20.55 kB / 460.5 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.6855, allocations: 0.6056 MB / 461.1 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00773/0.6932, allocations: 2.57 MB / 463.7 MB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/0.6951, allocations: 0.5664 MB / 464.2 MB, free: 8.281 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009066/0.696, allocations: 332.2 kB / 464.5 MB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.6962, allocations: 19.88 kB / 464.6 MB, free: 7.926 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.6962, allocations: 50.36 kB / 464.6 MB, free: 7.867 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 6.282e-06/0.6962, allocations: 3.984 kB / 464.6 MB, free: 7.863 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.006891/0.7031, allocations: 2.39 MB / 467 MB, free: 5.277 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.7033, allocations: 144.5 kB / 467.2 MB, free: 5.105 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006012/0.7039, allocations: 315.1 kB / 467.5 MB, free: 4.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001935/0.7041, allocations: 59.19 kB / 467.5 MB, free: 4.727 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.7044, allocations: 264.6 kB / 467.8 MB, free: 4.461 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/0.7048, allocations: 284.1 kB / 468.1 MB, free: 4.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.022e-05/0.7049, allocations: 12 kB / 468.1 MB, free: 4.168 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.7051, allocations: 374.8 kB / 468.4 MB, free: 3.793 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000942/0.7061, allocations: 310 kB / 468.7 MB, free: 3.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.7072, allocations: 464.6 kB / 469.2 MB, free: 2.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008028/0.708, allocations: 267.6 kB / 469.4 MB, free: 2.727 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.708, allocations: 4 kB / 469.5 MB, free: 2.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003922/0.712, allocations: 1.099 MB / 470.5 MB, free: 1.609 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.7121, allocations: 15.94 kB / 470.6 MB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.26e-05/0.7121, allocations: 8 kB / 470.6 MB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/0.7141, allocations: 0.5854 MB / 471.2 MB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.7154, allocations: 159.7 kB / 471.3 MB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.7188, allocations: 2.562 MB / 473.9 MB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.7209, allocations: 191.8 kB / 474.1 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003043/0.7212, allocations: 47.97 kB / 474.1 MB, free: 13.93 MB / 410.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.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.0003808/0.7216, allocations: 167.9 kB / 474.3 MB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/0.7221, allocations: 67.19 kB / 474.3 MB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005416/0.7276, allocations: 1.029 MB / 475.4 MB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.7276, allocations: 12 kB / 475.4 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.7277, allocations: 0 / 475.4 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.7277, allocations: 3.984 kB / 475.4 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006217/0.7339, allocations: 2.023 MB / 477.4 MB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.734, allocations: 0.8438 kB / 477.4 MB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.7353, allocations: 127.8 kB / 477.5 MB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/0.7373, allocations: 0.5463 MB / 478.1 MB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.7375, allocations: 39.91 kB / 478.1 MB, free: 9.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00314/0.7406, allocations: 2.522 MB / 480.6 MB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.7407, allocations: 256 / 480.6 MB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004833/0.7455, allocations: 1.629 MB / 482.3 MB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/0.7462, allocations: 221.5 kB / 482.5 MB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002272/0.7465, allocations: 28 kB / 482.5 MB, free: 5.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001748/0.7482, allocations: 175.8 kB / 482.7 MB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006012/0.7489, allocations: 175.6 kB / 482.9 MB, free: 4.863 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.749, allocations: 43.95 kB / 482.9 MB, free: 4.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005074/0.7495, allocations: 261.2 kB / 483.2 MB, free: 4.566 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7496, allocations: 0 / 483.2 MB, free: 4.566 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001325/0.7509, allocations: 200 kB / 483.3 MB, free: 4.371 MB / 410.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.005422/0.7563, allocations: 2.569 MB / 485.9 MB, free: 1.738 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.7593, allocations: 0.9039 MB / 486.8 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.7594, allocations: 4.812 kB / 486.8 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.7613, allocations: 467.7 kB / 487.3 MB, free: 360 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.7628, allocations: 90.66 kB / 487.4 MB, free: 276 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009506/0.7723, allocations: 2.155 MB / 489.5 MB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007249/0.7731, allocations: 0.9338 MB / 490.5 MB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005124/0.7737, allocations: 52.83 kB / 490.5 MB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.7742, allocations: 211.3 kB / 490.7 MB, free: 12.83 MB / 426.7 MB Notification: Performance of SimCode: time 1.663e-06/0.7742, allocations: 0 / 490.7 MB, free: 12.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07185/0.8461, allocations: 18.28 MB / 0.4971 GB, free: 10.61 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003117/0.8465, allocations: 175 kB / 0.4972 GB, free: 10.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.351/4.197, allocations: 0 / 0.4972 GB, free: 10.38 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat