Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.182e-05/4.186e-05, allocations: 8 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4005, allocations: 54.85 MB / 359.9 MB, free: 2.301 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.5596, allocations: 86.42 MB / 446.3 MB, free: 10.47 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.5599, allocations: 63.98 kB / 446.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05683/0.6167, allocations: 11.69 MB / 458 MB, free: 14.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6168, allocations: 0 / 458 MB, free: 14.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.826e-05/0.6169, allocations: 16 kB / 458 MB, free: 14.71 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.003394/0.6203, allocations: 0.935 MB / 459 MB, free: 13.72 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.6203, allocations: 8.031 kB / 459 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002804/0.6206, allocations: 102.5 kB / 459.1 MB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.6209, allocations: 79.06 kB / 459.2 MB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008729/0.6218, allocations: 403.4 kB / 459.5 MB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.453e-05/0.6219, allocations: 49.31 kB / 459.6 MB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.6221, allocations: 71.8 kB / 459.7 MB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.6242, allocations: 0.7301 MB / 460.4 MB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.569e-05/0.6243, allocations: 15.84 kB / 460.4 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.6244, allocations: 23.98 kB / 460.4 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.6244, allocations: 16 kB / 460.5 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.6264, allocations: 0.6017 MB / 461.1 MB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00751/0.6339, allocations: 2.59 MB / 463.6 MB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.6358, allocations: 0.5578 MB / 464.2 MB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009759/0.6368, allocations: 332.2 kB / 464.5 MB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.637, allocations: 19.88 kB / 464.5 MB, free: 7.898 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.637, allocations: 50.36 kB / 464.6 MB, free: 7.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 3.968e-06/0.6371, allocations: 0 / 464.6 MB, free: 7.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.00829/0.6454, allocations: 2.391 MB / 467 MB, free: 5.254 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.6455, allocations: 140.5 kB / 467.1 MB, free: 5.086 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007765/0.6463, allocations: 319.1 kB / 467.4 MB, free: 4.766 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.6466, allocations: 57.69 kB / 467.5 MB, free: 4.703 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003191/0.6469, allocations: 307.1 kB / 467.8 MB, free: 4.398 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005011/0.6474, allocations: 280.1 kB / 468.1 MB, free: 4.121 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.6476, allocations: 20 kB / 468.1 MB, free: 4.102 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.6478, allocations: 346.8 kB / 468.4 MB, free: 3.754 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.6492, allocations: 311 kB / 468.7 MB, free: 3.449 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.6507, allocations: 468.6 kB / 469.2 MB, free: 2.938 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.6519, allocations: 270.1 kB / 469.4 MB, free: 2.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.6519, allocations: 0 / 469.4 MB, free: 2.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005659/0.6576, allocations: 1.084 MB / 470.5 MB, free: 1.582 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.6577, allocations: 11.95 kB / 470.5 MB, free: 1.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-05/0.6577, allocations: 8 kB / 470.6 MB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002936/0.6607, allocations: 0.5815 MB / 471.1 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.6622, allocations: 155.7 kB / 471.3 MB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004286/0.6665, allocations: 2.562 MB / 473.8 MB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00235/0.6689, allocations: 199.8 kB / 474 MB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.6692, allocations: 43.98 kB / 474.1 MB, free: 13.91 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.000475/0.6697, allocations: 171.9 kB / 474.3 MB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000408/0.6701, allocations: 63.19 kB / 474.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005317/0.6754, allocations: 1.025 MB / 475.3 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.6755, allocations: 12 kB / 475.3 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.6755, allocations: 5.031 kB / 475.4 MB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.6755, allocations: 3.984 kB / 475.4 MB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00792/0.6835, allocations: 2.023 MB / 477.4 MB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.6835, allocations: 0 / 477.4 MB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.6851, allocations: 123.8 kB / 477.5 MB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002492/0.6876, allocations: 0.5538 MB / 478.1 MB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001915/0.6879, allocations: 43.91 kB / 478.1 MB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004259/0.6921, allocations: 2.51 MB / 480.6 MB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.6922, allocations: 12.23 kB / 480.6 MB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006251/0.6984, allocations: 1.623 MB / 482.2 MB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007316/0.6992, allocations: 220.1 kB / 482.5 MB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.6995, allocations: 28 kB / 482.5 MB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/0.7019, allocations: 175.8 kB / 482.7 MB, free: 5.016 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007545/0.7027, allocations: 175.6 kB / 482.8 MB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001923/0.7029, allocations: 43.95 kB / 482.9 MB, free: 4.801 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006476/0.7036, allocations: 261.2 kB / 483.1 MB, free: 4.547 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.7036, allocations: 0 / 483.1 MB, free: 4.547 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001822/0.7054, allocations: 200 kB / 483.3 MB, free: 4.352 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.006677/0.7121, allocations: 2.568 MB / 485.9 MB, free: 1.723 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.7151, allocations: 0.9019 MB / 486.8 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.7151, allocations: 0.8125 kB / 486.8 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.7168, allocations: 467.6 kB / 487.3 MB, free: 348 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.718, allocations: 93.98 kB / 487.3 MB, free: 260 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009022/0.727, allocations: 2.189 MB / 489.5 MB, free: 14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006878/0.7278, allocations: 0.926 MB / 490.5 MB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.7283, allocations: 211.4 kB / 490.7 MB, free: 12.84 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7283, allocations: 0 / 490.7 MB, free: 12.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.97/3.698, allocations: 18.86 MB / 0.4976 GB, free: 9.969 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat