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 2.227/2.227, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.175e-05/4.185e-05, allocations: 3.984 kB / 273.2 MB, free: 140 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1274, allocations: 48.7 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5021/0.6295, allocations: 80 MB / 401.9 MB, free: 9.578 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.6299, allocations: 63.97 kB / 401.9 MB, free: 9.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05833/0.6882, allocations: 11.48 MB / 413.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6883, allocations: 0 / 413.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.586e-05/0.6883, allocations: 16 kB / 413.4 MB, free: 14 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.003382/0.6917, allocations: 0.9506 MB / 414.4 MB, free: 13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.6918, allocations: 8.031 kB / 414.4 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003057/0.6921, allocations: 102.5 kB / 414.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.6924, allocations: 83.02 kB / 414.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00089/0.6933, allocations: 412.6 kB / 415 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.35e-05/0.6934, allocations: 45.31 kB / 415 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.6936, allocations: 67.91 kB / 415.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/0.6957, allocations: 0.7647 MB / 415.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.6958, allocations: 4 kB / 415.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.6959, allocations: 24 kB / 415.9 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.559e-05/0.696, allocations: 19.95 kB / 415.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.698, allocations: 0.6683 MB / 416.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007331/0.7053, allocations: 2.602 MB / 419.2 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.7073, allocations: 0.5848 MB / 419.8 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009414/0.7083, allocations: 340.1 kB / 420.1 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.323e-05/0.7084, allocations: 20.23 kB / 420.1 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.7084, allocations: 38.94 kB / 420.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.527e-06/0.7084, allocations: 0 / 420.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.007123/0.7156, allocations: 2.556 MB / 422.7 MB, free: 4.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.065e-05/0.7157, allocations: 144.5 kB / 422.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.7165, allocations: 363.1 kB / 423.2 MB, free: 3.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002067/0.7167, allocations: 53.69 kB / 423.2 MB, free: 3.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.717, allocations: 288.2 kB / 423.5 MB, free: 3.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.7173, allocations: 260.5 kB / 423.8 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.328e-05/0.7174, allocations: 19.98 kB / 423.8 MB, free: 3.082 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.7176, allocations: 366.8 kB / 424.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.7186, allocations: 353.9 kB / 424.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.7198, allocations: 496.5 kB / 425 MB, free: 1.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.7207, allocations: 301.5 kB / 425.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.7207, allocations: 4 kB / 425.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003966/0.7247, allocations: 1.26 MB / 426.6 MB, free: 260 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.7248, allocations: 8 kB / 426.6 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.7248, allocations: 4 kB / 426.6 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002374/0.7272, allocations: 0.7841 MB / 427.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.7285, allocations: 159.7 kB / 427.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003455/0.7319, allocations: 2.67 MB / 430.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/0.7341, allocations: 195.9 kB / 430.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003114/0.7345, allocations: 47.97 kB / 430.4 MB, free: 12.28 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.0003801/0.7348, allocations: 163.9 kB / 430.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.7352, allocations: 63.2 kB / 430.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/0.7355, allocations: 87.75 kB / 430.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.7355, allocations: 15.94 kB / 430.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/0.7356, allocations: 3.984 kB / 430.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.7356, allocations: 7.984 kB / 430.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00722/0.7428, allocations: 2.231 MB / 433 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.7429, allocations: 4 kB / 433 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.7441, allocations: 111.9 kB / 433.1 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/0.7465, allocations: 0.7527 MB / 433.8 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/0.7467, allocations: 35.95 kB / 433.9 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003461/0.7501, allocations: 2.615 MB / 436.5 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.7502, allocations: 256 / 436.5 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/0.7552, allocations: 1.806 MB / 438.3 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.7559, allocations: 216.2 kB / 438.5 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.7561, allocations: 31.94 kB / 438.5 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001711/0.7579, allocations: 180 kB / 438.7 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/0.7584, allocations: 175.6 kB / 438.9 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.7586, allocations: 39.95 kB / 438.9 MB, free: 3.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005031/0.7591, allocations: 277.2 kB / 439.2 MB, free: 3.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7591, allocations: 0 / 439.2 MB, free: 3.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001228/0.7604, allocations: 199.9 kB / 439.4 MB, free: 3.039 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.005341/0.7657, allocations: 2.609 MB / 442 MB, free: 384 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.7685, allocations: 0.8357 MB / 442.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.7686, allocations: 0 / 442.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.7702, allocations: 452.7 kB / 443.3 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.7714, allocations: 94.14 kB / 443.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008967/0.7804, allocations: 2.158 MB / 445.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006347/0.7811, allocations: 0.926 MB / 446.5 MB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.7817, allocations: 60.83 kB / 446.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004634/0.7821, allocations: 215.3 kB / 446.7 MB, free: 11.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7821, allocations: 0 / 446.7 MB, free: 11.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06416/0.8463, allocations: 17.78 MB / 464.5 MB, free: 9.879 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/0.8467, allocations: 171 kB / 464.7 MB, free: 9.652 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.264/4.111, allocations: 0 / 464.7 MB, free: 9.652 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