Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.686e-05/3.698e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 50.42 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4831/0.5966, allocations: 82.56 MB / 425.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.597, allocations: 65.22 kB / 425.2 MB, free: 11.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05017/0.6472, allocations: 11.94 MB / 437.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.6472, allocations: 0 / 437.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.751e-05/0.6473, allocations: 23.98 kB / 437.2 MB, free: 1.391 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002308/0.6496, allocations: 0.8345 MB / 438 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.6497, allocations: 8.031 kB / 438.1 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003533/0.6501, allocations: 144 kB / 438.2 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.6503, allocations: 86.97 kB / 438.3 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.6514, allocations: 0.4973 MB / 438.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.6515, allocations: 66.56 kB / 438.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.6517, allocations: 93.08 kB / 438.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.6538, allocations: 0.7581 MB / 439.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/0.6539, allocations: 11.19 kB / 439.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.654, allocations: 35.06 kB / 439.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.654, allocations: 20 kB / 439.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.6556, allocations: 455.9 kB / 440.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.6611, allocations: 2.884 MB / 443.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.6619, allocations: 208 kB / 443.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.6622, allocations: 101.8 kB / 443.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002995/0.6625, allocations: 247.8 kB / 443.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.6626, allocations: 41.5 kB / 443.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 3.938e-06/0.6626, allocations: 0 / 443.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.003255/0.6659, allocations: 1.152 MB / 444.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.666, allocations: 59.34 kB / 444.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004648/0.6665, allocations: 268.9 kB / 445.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.6665, allocations: 33.58 kB / 445.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003411/0.6669, allocations: 445.9 kB / 445.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.667, allocations: 134.6 kB / 445.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/0.6671, allocations: 10.81 kB / 445.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.6672, allocations: 329 kB / 446.1 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.6675, allocations: 98.86 kB / 446.2 MB, free: 9.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.668, allocations: 238.5 kB / 446.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.6684, allocations: 143.4 kB / 446.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.6684, allocations: 0 / 446.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001018/0.6694, allocations: 424.7 kB / 447 MB, free: 8.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.6694, allocations: 4 kB / 447 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.6695, allocations: 8 kB / 447 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.6698, allocations: 36.72 kB / 447 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007274/0.6705, allocations: 115.5 kB / 447.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005436/0.6711, allocations: 0.5493 MB / 447.7 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/0.6715, allocations: 20.19 kB / 447.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.6716, allocations: 23.25 kB / 447.7 MB, free: 8.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.6717, allocations: 130.1 kB / 447.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.36e-05/0.6719, allocations: 39.53 kB / 447.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009321/0.6728, allocations: 309.1 kB / 448.2 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.6728, allocations: 4 kB / 448.2 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.6728, allocations: 0 / 448.2 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.6729, allocations: 7.984 kB / 448.2 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.6752, allocations: 0.9991 MB / 449.2 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.6753, allocations: 0 / 449.2 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/0.6761, allocations: 82.86 kB / 449.3 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.6763, allocations: 28.72 kB / 449.3 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.6764, allocations: 15.17 kB / 449.3 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004844/0.6769, allocations: 0.5468 MB / 449.9 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6769, allocations: 4.062 kB / 449.9 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.6781, allocations: 0.5906 MB / 450.5 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.6782, allocations: 108.7 kB / 450.6 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.216e-05/0.6783, allocations: 10 kB / 450.6 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.6786, allocations: 19.23 kB / 450.6 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/0.6787, allocations: 19.97 kB / 450.6 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.6788, allocations: 15.94 kB / 450.6 MB, free: 5.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003448/0.6791, allocations: 210.8 kB / 450.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6791, allocations: 0 / 450.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007787/0.6799, allocations: 128.5 kB / 451 MB, free: 5.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001753/0.6817, allocations: 1.498 MB / 452.4 MB, free: 3.859 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009054/0.6826, allocations: 268.8 kB / 452.7 MB, free: 3.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6827, allocations: 1.188 kB / 452.7 MB, free: 3.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.6831, allocations: 135.2 kB / 452.8 MB, free: 3.566 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.6837, allocations: 54.69 kB / 452.9 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004178/0.6879, allocations: 1.53 MB / 454.4 MB, free: 2.039 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007147/0.6887, allocations: 0.9385 MB / 455.4 MB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.6891, allocations: 244.7 kB / 455.6 MB, free: 1.031 MB / 362.7 MB Notification: Performance of SimCode: time 1.283e-06/0.6891, allocations: 0 / 455.6 MB, free: 1.031 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.611, allocations: 12.39 MB / 468 MB, free: 4.73 MB / 378.7 MB