Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.956/1.956, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.186e-05/4.205e-05, allocations: 0 / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1294, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4373/0.5667, allocations: 80 MB / 401.8 MB, free: 9.945 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5671, allocations: 67.97 kB / 401.9 MB, free: 9.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05777/0.6249, allocations: 11.47 MB / 413.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6249, allocations: 0 / 413.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.843e-05/0.625, allocations: 16 kB / 413.4 MB, free: 14.36 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.003479/0.6285, allocations: 0.9467 MB / 414.3 MB, free: 13.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.6286, allocations: 16.02 kB / 414.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/0.6289, allocations: 98.52 kB / 414.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.6291, allocations: 83.02 kB / 414.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000977/0.6301, allocations: 416.6 kB / 414.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.526e-05/0.6302, allocations: 45.31 kB / 415 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.6305, allocations: 67.91 kB / 415 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/0.6326, allocations: 0.7712 MB / 415.8 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.874e-05/0.6327, allocations: 7.984 kB / 415.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.6328, allocations: 24 kB / 415.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.6329, allocations: 19.95 kB / 415.9 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.635, allocations: 0.6803 MB / 416.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007478/0.6425, allocations: 2.603 MB / 419.1 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.6445, allocations: 0.589 MB / 419.7 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.6455, allocations: 340.1 kB / 420.1 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.6457, allocations: 16.36 kB / 420.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.6457, allocations: 42.88 kB / 420.1 MB, free: 7.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.757e-06/0.6457, allocations: 0 / 420.1 MB, free: 7.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.007477/0.6532, allocations: 2.561 MB / 422.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.6534, allocations: 148.4 kB / 422.8 MB, free: 4.391 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.6541, allocations: 367.1 kB / 423.2 MB, free: 4.027 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002608/0.6544, allocations: 45.7 kB / 423.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.6547, allocations: 334.7 kB / 423.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/0.6551, allocations: 260.5 kB / 423.8 MB, free: 3.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.556e-05/0.6553, allocations: 20 kB / 423.8 MB, free: 3.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.6554, allocations: 346.8 kB / 424.2 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.6565, allocations: 342 kB / 424.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.6578, allocations: 0.4946 MB / 425 MB, free: 2.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009546/0.6588, allocations: 296.6 kB / 425.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6588, allocations: 3.938 kB / 425.3 MB, free: 1.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004171/0.663, allocations: 1.26 MB / 426.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.6631, allocations: 8 kB / 426.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.6631, allocations: 4 kB / 426.6 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002448/0.6656, allocations: 0.7841 MB / 427.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.6669, allocations: 163.7 kB / 427.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.6705, allocations: 2.662 MB / 430.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.6725, allocations: 199.9 kB / 430.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002531/0.6728, allocations: 39.98 kB / 430.4 MB, free: 12.6 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.0003529/0.6731, allocations: 171.8 kB / 430.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.6735, allocations: 67.2 kB / 430.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.6738, allocations: 87.7 kB / 430.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.6738, allocations: 8 kB / 430.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.6738, allocations: 0 / 430.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.6738, allocations: 11.98 kB / 430.7 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008753/0.6826, allocations: 2.239 MB / 433 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.087e-05/0.6827, allocations: 0 / 433 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/0.6847, allocations: 123.8 kB / 433.1 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003878/0.6886, allocations: 0.7527 MB / 433.8 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003098/0.689, allocations: 27.97 kB / 433.9 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.6936, allocations: 2.627 MB / 436.5 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6937, allocations: 0 / 436.5 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005264/0.699, allocations: 1.807 MB / 438.3 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006863/0.6997, allocations: 220.2 kB / 438.5 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/0.7, allocations: 28 kB / 438.6 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/0.7018, allocations: 171.8 kB / 438.7 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006825/0.7026, allocations: 171.6 kB / 438.9 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/0.7027, allocations: 39.95 kB / 438.9 MB, free: 3.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005462/0.7033, allocations: 281.2 kB / 439.2 MB, free: 3.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7033, allocations: 0 / 439.2 MB, free: 3.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0013/0.7046, allocations: 203.9 kB / 439.4 MB, free: 3.34 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.005808/0.7105, allocations: 2.606 MB / 442 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003017/0.7135, allocations: 0.8445 MB / 442.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.7136, allocations: 0 / 442.8 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/0.7154, allocations: 460.1 kB / 443.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/0.7167, allocations: 94.31 kB / 443.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009232/0.726, allocations: 2.205 MB / 445.6 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006787/0.7267, allocations: 0.926 MB / 446.5 MB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005858/0.7273, allocations: 215.3 kB / 446.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7273, allocations: 0 / 446.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.32/4.047, allocations: 18.29 MB / 465 MB, free: 9.57 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat