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.588/2.588, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.994e-05/4.014e-05, allocations: 3.984 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4255, allocations: 54.85 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1741/0.5997, allocations: 86.4 MB / 446.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.6, allocations: 69.28 kB / 446.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05819/0.6582, allocations: 11.69 MB / 458 MB, free: 14.76 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6583, allocations: 0 / 458 MB, free: 14.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.876e-05/0.6584, allocations: 20 kB / 458 MB, free: 14.74 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.003399/0.6618, allocations: 0.9428 MB / 459 MB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/0.6619, allocations: 8.031 kB / 459 MB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002832/0.6622, allocations: 98.52 kB / 459.1 MB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002574/0.6624, allocations: 79.06 kB / 459.2 MB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009696/0.6634, allocations: 405.4 kB / 459.5 MB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.316e-05/0.6635, allocations: 45.31 kB / 459.6 MB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/0.6637, allocations: 67.86 kB / 459.7 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.6658, allocations: 0.7444 MB / 460.4 MB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.523e-05/0.6659, allocations: 11.91 kB / 460.4 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.666, allocations: 24 kB / 460.4 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.666, allocations: 12 kB / 460.4 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.6679, allocations: 0.6176 MB / 461.1 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007416/0.6753, allocations: 2.575 MB / 463.6 MB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.6773, allocations: 0.5697 MB / 464.2 MB, free: 8.273 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.6784, allocations: 341.9 kB / 464.5 MB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.6786, allocations: 23.75 kB / 464.6 MB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.6787, allocations: 42.55 kB / 464.6 MB, free: 7.855 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.709e-06/0.6787, allocations: 0 / 464.6 MB, free: 7.855 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.007176/0.6859, allocations: 2.401 MB / 467 MB, free: 5.258 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/0.686, allocations: 140.4 kB / 467.1 MB, free: 5.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000621/0.6866, allocations: 319.2 kB / 467.5 MB, free: 4.766 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/0.6869, allocations: 53.7 kB / 467.5 MB, free: 4.707 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002802/0.6872, allocations: 260.6 kB / 467.8 MB, free: 4.445 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.6877, allocations: 288.1 kB / 468 MB, free: 4.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.512e-05/0.6878, allocations: 17.41 kB / 468.1 MB, free: 4.145 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.688, allocations: 366.8 kB / 468.4 MB, free: 3.777 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.689, allocations: 310 kB / 468.7 MB, free: 3.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.6902, allocations: 478.6 kB / 469.2 MB, free: 2.949 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/0.6911, allocations: 266.7 kB / 469.5 MB, free: 2.695 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.6911, allocations: 0 / 469.5 MB, free: 2.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004103/0.6952, allocations: 1.107 MB / 470.6 MB, free: 1.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.6953, allocations: 11.95 kB / 470.6 MB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-05/0.6953, allocations: 12.33 kB / 470.6 MB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.6973, allocations: 0.5889 MB / 471.2 MB, free: 0.9492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.6986, allocations: 147.8 kB / 471.3 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003312/0.7019, allocations: 2.569 MB / 473.9 MB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.7038, allocations: 199.8 kB / 474.1 MB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.7041, allocations: 49.39 kB / 474.1 MB, free: 13.89 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.000363/0.7044, allocations: 175.7 kB / 474.3 MB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002798/0.7047, allocations: 63.25 kB / 474.4 MB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.7086, allocations: 1.033 MB / 475.4 MB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.7087, allocations: 8 kB / 475.4 MB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.7087, allocations: 7.969 kB / 475.4 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.7087, allocations: 4 kB / 475.4 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006235/0.715, allocations: 2.016 MB / 477.4 MB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/0.715, allocations: 7.984 kB / 477.4 MB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.7163, allocations: 115.9 kB / 477.6 MB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/0.7183, allocations: 0.5499 MB / 478.1 MB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/0.7185, allocations: 39.84 kB / 478.1 MB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/0.7217, allocations: 2.518 MB / 480.7 MB, free: 7.129 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.7218, allocations: 12.42 kB / 480.7 MB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/0.7264, allocations: 1.626 MB / 482.3 MB, free: 5.422 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/0.727, allocations: 220.1 kB / 482.5 MB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.7273, allocations: 31.98 kB / 482.5 MB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.729, allocations: 167.8 kB / 482.7 MB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006079/0.7296, allocations: 183.6 kB / 482.9 MB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.7297, allocations: 39.95 kB / 482.9 MB, free: 4.773 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000456/0.7302, allocations: 257.2 kB / 483.2 MB, free: 4.527 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7302, allocations: 0 / 483.2 MB, free: 4.527 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001178/0.7314, allocations: 204 kB / 483.4 MB, free: 4.328 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.005133/0.7366, allocations: 2.573 MB / 485.9 MB, free: 1.691 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.7396, allocations: 0.9132 MB / 486.9 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.7397, allocations: 4.125 kB / 486.9 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.7415, allocations: 481.1 kB / 487.3 MB, free: 292 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.7428, allocations: 90.72 kB / 487.4 MB, free: 200 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009119/0.752, allocations: 2.157 MB / 489.6 MB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006695/0.7527, allocations: 0.934 MB / 490.5 MB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004996/0.7532, allocations: 52.83 kB / 490.6 MB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005045/0.7538, allocations: 211.3 kB / 490.8 MB, free: 12.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7538, allocations: 0 / 490.8 MB, free: 12.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06116/0.8149, allocations: 18.3 MB / 0.4971 GB, free: 10.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002546/0.8153, allocations: 172.2 kB / 0.4973 GB, free: 10.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.365/4.18, allocations: 0 / 0.4973 GB, free: 10.27 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