Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.654e-05/3.671e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4321, allocations: 61.88 MB / 408.9 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.215/0.6471, allocations: 117.3 MB / 0.5139 GB, free: 5.141 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.6475, allocations: 79.95 kB / 0.514 GB, free: 5.062 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9225/1.57, allocations: 144.9 MB / 0.6554 GB, free: 15.96 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.57, allocations: 0 / 0.6554 GB, free: 15.96 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005323/1.571, allocations: 131.9 kB / 0.6556 GB, free: 15.83 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.0294/1.6, allocations: 6.635 MB / 0.662 GB, free: 9.121 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.608e-05/1.6, allocations: 12.03 kB / 0.6621 GB, free: 9.109 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006359/1.606, allocations: 1.276 MB / 0.6633 GB, free: 7.82 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07198/1.678, allocations: 9.336 MB / 0.6724 GB, free: 14.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03588/1.714, allocations: 8.666 MB / 0.6809 GB, free: 5.711 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000795/1.715, allocations: 480.7 kB / 0.6813 GB, free: 5.238 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003766/1.719, allocations: 0.6364 MB / 0.682 GB, free: 4.602 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05564/1.775, allocations: 15.48 MB / 0.6971 GB, free: 3.922 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000487/1.775, allocations: 75.31 kB / 0.6972 GB, free: 3.848 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003148/1.778, allocations: 303.8 kB / 0.6974 GB, free: 3.551 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003818/1.782, allocations: 1.381 MB / 0.6988 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04722/1.83, allocations: 12.49 MB / 0.711 GB, free: 5.652 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5163/2.346, allocations: 64.39 MB / 0.7739 GB, free: 59.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02955/2.375, allocations: 6.211 MB / 0.7799 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006418/2.382, allocations: 3.119 MB / 0.783 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02758/2.41, allocations: 11.14 MB / 0.7939 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.253e-05/2.41, allocations: 63.86 kB / 0.7939 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.294e-06/2.41, allocations: 0 / 0.7939 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.1925/2.602, allocations: 29.48 MB / 0.8227 GB, free: 47.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001712/2.602, allocations: 242.3 kB / 0.823 GB, free: 47.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01834/2.621, allocations: 4.915 MB / 0.8278 GB, free: 45.64 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001171/2.622, allocations: 75.45 kB / 0.8278 GB, free: 45.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005879/2.628, allocations: 4.278 MB / 0.832 GB, free: 42.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002909/2.631, allocations: 1.231 MB / 0.8332 GB, free: 41.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00215/2.633, allocations: 163.5 kB / 0.8334 GB, free: 41.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001267/2.634, allocations: 0.6572 MB / 0.834 GB, free: 40.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0128/2.647, allocations: 3.533 MB / 0.8375 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01767/2.665, allocations: 8.022 MB / 0.8453 GB, free: 31.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01671/2.682, allocations: 5.29 MB / 0.8505 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/2.682, allocations: 44 kB / 0.8505 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.04852/2.731, allocations: 13.95 MB / 0.8641 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/2.731, allocations: 72 kB / 0.8642 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002546/2.731, allocations: 160 kB / 0.8643 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02141/2.753, allocations: 3.557 MB / 0.8678 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01162/2.764, allocations: 1.808 MB / 0.8696 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05034/2.815, allocations: 18.12 MB / 0.8873 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01073/2.825, allocations: 485 kB / 0.8877 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002311/2.828, allocations: 475.6 kB / 0.8882 GB, free: 11.44 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (972): * Single equations (assignments): 968 * Array equations: 3 * 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: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003581/2.831, allocations: 0.7127 MB / 0.8889 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/2.833, allocations: 0.5322 MB / 0.8894 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03796/2.871, allocations: 8.811 MB / 0.898 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.419e-05/2.871, allocations: 35.52 kB / 0.898 GB, free: 3.234 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.574e-05/2.871, allocations: 16 kB / 0.8981 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.18e-05/2.872, allocations: 18.34 kB / 0.8981 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07285/2.944, allocations: 18.58 MB / 0.9162 GB, free: 0.8125 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.976e-05/2.945, allocations: 7.984 kB / 0.9162 GB, free: 0.8047 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004926/2.949, allocations: 487.3 kB / 0.9167 GB, free: 336 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4149/3.364, allocations: 3.099 MB / 0.9197 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00096/3.365, allocations: 63.69 kB / 0.9198 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03958/3.405, allocations: 15.59 MB / 0.935 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/3.405, allocations: 14.7 kB / 0.935 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04202/3.447, allocations: 14.03 MB / 0.9487 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/3.449, allocations: 0.5552 MB / 0.9493 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002391/3.452, allocations: 58.55 kB / 0.9493 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006147/3.458, allocations: 203.1 kB / 0.9495 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001415/3.459, allocations: 220.1 kB / 0.9497 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005867/3.46, allocations: 89.62 kB / 0.9498 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009366/3.469, allocations: 3.463 MB / 0.9532 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.72e-07/3.469, allocations: 3.844 kB / 0.9532 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01139/3.481, allocations: 1.683 MB / 0.9548 GB, free: 117.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * 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: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04318/3.524, allocations: 15.96 MB / 0.9704 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02004/3.544, allocations: 8.531 MB / 0.9788 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/3.544, allocations: 3.188 kB / 0.9788 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008285/3.552, allocations: 3.383 MB / 0.9821 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006467/3.559, allocations: 0.6841 MB / 0.9827 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05131/3.61, allocations: 15.79 MB / 0.9981 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01145/3.622, allocations: 4.962 MB / 1.003 GB, free: 99.44 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007461/3.629, allocations: 3.111 MB / 1.006 GB, free: 96.93 MB / 0.5417 GB Notification: Performance of SimCode: time 1.814e-06/3.629, allocations: 0 / 1.006 GB, free: 96.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.872/9.501, allocations: 155.4 MB / 1.158 GB, free: 132.3 MB / 0.5573 GB