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.915/1.915, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.041e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.4974, allocations: 76.37 MB / 392.7 MB, free: 180 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.4977, allocations: 72.45 kB / 392.7 MB, free: 140 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01905/0.5168, allocations: 4.292 MB / 397 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5169, allocations: 4 kB / 397 MB, free: 12.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.5169, allocations: 4 kB / 397 MB, free: 12.48 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.001145/0.518, allocations: 0.5105 MB / 397.5 MB, free: 11.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.5181, allocations: 8.031 kB / 397.6 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.085e-05/0.5182, allocations: 31.7 kB / 397.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.5186, allocations: 236.5 kB / 397.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.5186, allocations: 11.94 kB / 397.8 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.818e-05/0.5187, allocations: 15.94 kB / 397.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000591/0.5193, allocations: 217 kB / 398.1 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.5199, allocations: 219.1 kB / 398.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.5199, allocations: 3.906 kB / 398.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.52, allocations: 4 kB / 398.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.52, allocations: 8 kB / 398.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.5218, allocations: 0.6747 MB / 399 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/0.5225, allocations: 228.4 kB / 399.2 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.5228, allocations: 122.3 kB / 399.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.5229, allocations: 0 / 399.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.5229, allocations: 38.5 kB / 399.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.523, allocations: 0 / 399.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003261/0.5262, allocations: 1.157 MB / 400.5 MB, free: 9.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.5263, allocations: 55.41 kB / 400.6 MB, free: 9.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.5265, allocations: 148.8 kB / 400.7 MB, free: 9.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.5266, allocations: 33.52 kB / 400.7 MB, free: 9.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.5267, allocations: 206.2 kB / 400.9 MB, free: 8.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.5268, allocations: 109.1 kB / 401 MB, free: 8.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.5269, allocations: 0 / 401 MB, free: 8.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.527, allocations: 329.7 kB / 401.4 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.5273, allocations: 105.7 kB / 401.5 MB, free: 8.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/0.5276, allocations: 149.2 kB / 401.6 MB, free: 8.324 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.528, allocations: 99 kB / 401.7 MB, free: 8.258 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.528, allocations: 11.89 kB / 401.7 MB, free: 8.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001313/0.5293, allocations: 446.5 kB / 402.2 MB, free: 7.898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.5294, allocations: 7.953 kB / 402.2 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.5294, allocations: 4 kB / 402.2 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007323/0.5301, allocations: 240.2 kB / 402.4 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.5305, allocations: 54.97 kB / 402.5 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.5316, allocations: 0.771 MB / 403.2 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/0.5321, allocations: 44.02 kB / 403.3 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-05/0.5322, allocations: 15.81 kB / 403.3 MB, free: 6.883 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0001978/0.5324, allocations: 117.5 kB / 403.4 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001238/0.5336, allocations: 408.5 kB / 403.8 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.403e-05/0.5337, allocations: 19.72 kB / 403.8 MB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.5338, allocations: 36.08 kB / 403.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.5339, allocations: 8 kB / 403.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5339, allocations: 0 / 403.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.5339, allocations: 3.953 kB / 403.9 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.5361, allocations: 0.92 MB / 404.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5362, allocations: 0 / 404.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.5366, allocations: 47.91 kB / 404.8 MB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006401/0.5373, allocations: 228 kB / 405.1 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/0.5373, allocations: 7.953 kB / 405.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009366/0.5383, allocations: 0.7216 MB / 405.8 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5383, allocations: 4.031 kB / 405.8 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.5399, allocations: 0.6516 MB / 406.4 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.5401, allocations: 124.4 kB / 406.6 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.65e-05/0.5402, allocations: 7.75 kB / 406.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004563/0.5407, allocations: 39.95 kB / 406.6 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.5409, allocations: 66.31 kB / 406.7 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.541, allocations: 15.98 kB / 406.7 MB, free: 3.879 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.5411, allocations: 123 kB / 406.8 MB, free: 3.773 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.065e-06/0.5411, allocations: 0 / 406.8 MB, free: 3.773 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005451/0.5417, allocations: 71.88 kB / 406.9 MB, free: 3.703 MB / 330.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.002069/0.5438, allocations: 1.29 MB / 408.2 MB, free: 2.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00083/0.5446, allocations: 284.4 kB / 408.4 MB, free: 2.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5446, allocations: 4.188 kB / 408.4 MB, free: 2.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003833/0.545, allocations: 135.2 kB / 408.6 MB, free: 2.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.5455, allocations: 17.05 kB / 408.6 MB, free: 2.215 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.5485, allocations: 0.7479 MB / 409.3 MB, free: 1.473 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.5489, allocations: 0.7566 MB / 410.1 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.5491, allocations: 66.09 kB / 410.2 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of SimCode: time 9.51e-07/0.5491, allocations: 0 / 410.2 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.68/3.229, allocations: 4.658 MB / 414.8 MB, free: 12.05 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