Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.926/1.926, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.639e-05/3.643e-05, allocations: 5.547 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.5015, allocations: 76.8 MB / 398.6 MB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.5018, allocations: 71.97 kB / 398.7 MB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02049/0.5223, allocations: 4.322 MB / 403 MB, free: 8.641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5224, allocations: 4 kB / 403 MB, free: 8.637 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.5224, allocations: 4 kB / 403 MB, free: 8.633 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001194/0.5236, allocations: 0.5177 MB / 403.6 MB, free: 8.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.5237, allocations: 12.03 kB / 403.6 MB, free: 8.059 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.055e-05/0.5238, allocations: 54.55 kB / 403.6 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.779e-05/0.5239, allocations: 27.67 kB / 403.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.5243, allocations: 235.4 kB / 403.9 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/0.5243, allocations: 20.44 kB / 403.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/0.5244, allocations: 23.94 kB / 403.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.5251, allocations: 254.4 kB / 404.2 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.5252, allocations: 3.906 kB / 404.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.5252, allocations: 12 kB / 404.2 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.5252, allocations: 4 kB / 404.2 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006515/0.5259, allocations: 220.8 kB / 404.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.528, allocations: 0.7285 MB / 405.1 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008276/0.5288, allocations: 238.5 kB / 405.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003469/0.5292, allocations: 128.8 kB / 405.5 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.5292, allocations: 7.953 kB / 405.5 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.5293, allocations: 38.5 kB / 405.5 MB, free: 5.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/0.5293, allocations: 4 kB / 405.6 MB, free: 5.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003421/0.5327, allocations: 1.215 MB / 406.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.5328, allocations: 55.41 kB / 406.8 MB, free: 4.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.5331, allocations: 173.9 kB / 407 MB, free: 4.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.5332, allocations: 33.7 kB / 407 MB, free: 4.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.5334, allocations: 198.9 kB / 407.2 MB, free: 4.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.5335, allocations: 114.5 kB / 407.3 MB, free: 4.047 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.5336, allocations: 4 kB / 407.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.5337, allocations: 330.8 kB / 407.7 MB, free: 3.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.5341, allocations: 115.9 kB / 407.8 MB, free: 3.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003862/0.5345, allocations: 159.2 kB / 407.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.5348, allocations: 103.9 kB / 408 MB, free: 3.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5349, allocations: 4 kB / 408 MB, free: 3.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001461/0.5363, allocations: 477.9 kB / 408.5 MB, free: 2.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.5364, allocations: 4 kB / 408.5 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.5364, allocations: 0 / 408.5 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000817/0.5372, allocations: 244.7 kB / 408.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.5377, allocations: 55.91 kB / 408.8 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.5388, allocations: 0.7436 MB / 409.5 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.5393, allocations: 48.02 kB / 409.6 MB, free: 1.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.845e-05/0.5393, allocations: 16 kB / 409.6 MB, free: 1.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.5395, allocations: 128.8 kB / 409.7 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.5396, allocations: 27.78 kB / 409.8 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.5397, allocations: 42.75 kB / 409.8 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.5398, allocations: 4 kB / 409.8 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.5398, allocations: 3.938 kB / 409.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5398, allocations: 0 / 409.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.5423, allocations: 0.9851 MB / 410.8 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.5424, allocations: 4.031 kB / 410.8 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.5428, allocations: 43.92 kB / 410.8 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006959/0.5435, allocations: 224.7 kB / 411.1 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/0.5436, allocations: 15.94 kB / 411.1 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009421/0.5445, allocations: 0.7006 MB / 411.8 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5445, allocations: 64 / 411.8 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.5463, allocations: 0.6898 MB / 412.5 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.5465, allocations: 124.8 kB / 412.6 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.5466, allocations: 11.95 kB / 412.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004985/0.5471, allocations: 52.02 kB / 412.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.5473, allocations: 59.83 kB / 412.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.5474, allocations: 15.98 kB / 412.7 MB, free: 14.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001791/0.5475, allocations: 136.3 kB / 412.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5476, allocations: 0 / 412.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000541/0.5481, allocations: 79.98 kB / 412.9 MB, free: 14.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002225/0.5504, allocations: 1.311 MB / 414.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009535/0.5513, allocations: 291.9 kB / 414.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5514, allocations: 3.938 kB / 414.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004396/0.5518, allocations: 140.2 kB / 414.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/0.5523, allocations: 35.72 kB / 414.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.5556, allocations: 0.7749 MB / 415.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.556, allocations: 0.7568 MB / 416.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.5562, allocations: 67.41 kB / 416.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of SimCode: time 8.22e-07/0.5562, allocations: 7.969 kB / 416.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.287, allocations: 4.74 MB / 421 MB, free: 6.004 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat