Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.467/2.467, allocations: 270 MB / 282.7 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.723e-05/3.74e-05, allocations: 0 / 347 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4412/0.4413, allocations: 61.88 MB / 408.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1715/0.6129, allocations: 92.64 MB / 0.4898 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.6132, allocations: 63.95 kB / 0.4899 GB, free: 13.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05961/0.6728, allocations: 12.08 MB / 0.5017 GB, free: 1.652 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.6729, allocations: 0 / 0.5017 GB, free: 1.652 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.108e-05/0.673, allocations: 15.98 kB / 0.5017 GB, free: 1.637 MB / 426.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.003522/0.6765, allocations: 0.935 MB / 0.5026 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.6766, allocations: 12.03 kB / 0.5026 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003091/0.6769, allocations: 98.5 kB / 0.5027 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.6772, allocations: 79.06 kB / 0.5028 GB, free: 468 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008953/0.6781, allocations: 404.8 kB / 0.5032 GB, free: 24 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-05/0.6782, allocations: 45.36 kB / 0.5032 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.6784, allocations: 67.84 kB / 0.5033 GB, free: 15.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.6805, allocations: 0.73 MB / 0.504 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-05/0.6806, allocations: 15.91 kB / 0.504 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.6808, allocations: 23.94 kB / 0.504 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.6808, allocations: 19.94 kB / 0.504 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001946/0.6828, allocations: 0.6017 MB / 0.5046 GB, free: 14.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007898/0.6907, allocations: 2.579 MB / 0.5072 GB, free: 11.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.6927, allocations: 0.5705 MB / 0.5077 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.6938, allocations: 327.4 kB / 0.508 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.6939, allocations: 19.91 kB / 0.508 GB, free: 10.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.694, allocations: 46.56 kB / 0.5081 GB, free: 10.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 4.167e-06/0.694, allocations: 0 / 0.5081 GB, free: 10.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.007211/0.7012, allocations: 2.393 MB / 0.5104 GB, free: 8.199 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.7014, allocations: 140.5 kB / 0.5106 GB, free: 8.031 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006092/0.702, allocations: 327 kB / 0.5109 GB, free: 7.703 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002583/0.7023, allocations: 53.64 kB / 0.5109 GB, free: 7.645 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.7025, allocations: 307.1 kB / 0.5112 GB, free: 7.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004689/0.703, allocations: 288.1 kB / 0.5115 GB, free: 7.055 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.7031, allocations: 16 kB / 0.5115 GB, free: 7.039 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.7033, allocations: 346.8 kB / 0.5118 GB, free: 6.691 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.7044, allocations: 313.9 kB / 0.5121 GB, free: 6.383 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.7056, allocations: 476.6 kB / 0.5126 GB, free: 5.867 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008709/0.7065, allocations: 269.7 kB / 0.5128 GB, free: 5.613 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.7065, allocations: 4 kB / 0.5128 GB, free: 5.609 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004064/0.7106, allocations: 1.077 MB / 0.5139 GB, free: 4.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.7106, allocations: 8 kB / 0.5139 GB, free: 4.512 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.884e-05/0.7107, allocations: 8 kB / 0.5139 GB, free: 4.504 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/0.7128, allocations: 0.585 MB / 0.5145 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.714, allocations: 147.8 kB / 0.5146 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/0.7175, allocations: 2.573 MB / 0.5171 GB, free: 1.086 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/0.7206, allocations: 199.9 kB / 0.5173 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004892/0.7211, allocations: 39.98 kB / 0.5174 GB, free: 0.8516 MB / 442.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.0006877/0.7218, allocations: 167.9 kB / 0.5175 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005787/0.7224, allocations: 59.25 kB / 0.5176 GB, free: 0.625 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006752/0.7292, allocations: 1.03 MB / 0.5186 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.74e-05/0.7293, allocations: 12 kB / 0.5186 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.7293, allocations: 0 / 0.5186 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-05/0.7294, allocations: 3.984 kB / 0.5186 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006871/0.7363, allocations: 2.031 MB / 0.5206 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/0.7363, allocations: 0 / 0.5206 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.7376, allocations: 123.9 kB / 0.5207 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/0.7396, allocations: 0.5459 MB / 0.5212 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.7399, allocations: 43.95 kB / 0.5213 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/0.7429, allocations: 2.514 MB / 0.5237 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.743, allocations: 3.938 kB / 0.5237 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.7477, allocations: 1.633 MB / 0.5253 GB, free: 8.395 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005884/0.7483, allocations: 212.2 kB / 0.5255 GB, free: 8.168 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.7485, allocations: 28 kB / 0.5256 GB, free: 8.141 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.7503, allocations: 171.8 kB / 0.5257 GB, free: 7.973 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000616/0.7509, allocations: 179.6 kB / 0.5259 GB, free: 7.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/0.7511, allocations: 39.95 kB / 0.5259 GB, free: 7.758 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000494/0.7516, allocations: 261.2 kB / 0.5262 GB, free: 7.504 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7516, allocations: 0 / 0.5262 GB, free: 7.504 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001302/0.7529, allocations: 199.9 kB / 0.5264 GB, free: 7.309 MB / 458.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.00527/0.7582, allocations: 2.573 MB / 0.5289 GB, free: 4.668 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002941/0.7612, allocations: 0.9025 MB / 0.5298 GB, free: 3.738 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.7612, allocations: 0 / 0.5298 GB, free: 3.738 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.763, allocations: 462.5 kB / 0.5302 GB, free: 3.289 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.7644, allocations: 104.4 kB / 0.5303 GB, free: 3.188 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009355/0.7738, allocations: 2.197 MB / 0.5325 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3244/1.098, allocations: 0.9182 MB / 0.5334 GB, free: 121.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007572/1.099, allocations: 209.7 kB / 0.5336 GB, free: 121.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/1.099, allocations: 0 / 0.5336 GB, free: 121.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.198/4.297, allocations: 18.87 MB / 0.552 GB, free: 115.2 MB / 458.7 MB