Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 270 MB / 282.6 MB, free: 1.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.949e-05/3.928e-05, allocations: 4 kB / 347.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4066, allocations: 61.86 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2084/0.6151, allocations: 116.6 MB / 0.5132 GB, free: 5.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.6154, allocations: 75.95 kB / 0.5133 GB, free: 5.855 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8037/1.419, allocations: 125.1 MB / 0.6355 GB, free: 4.523 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.773e-06/1.419, allocations: 0 / 0.6355 GB, free: 4.523 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003083/1.419, allocations: 104 kB / 0.6356 GB, free: 4.422 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02269/1.442, allocations: 5.649 MB / 0.6411 GB, free: 14.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/1.442, allocations: 8.031 kB / 0.6411 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004379/1.447, allocations: 0.9723 MB / 0.642 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03685/1.484, allocations: 4.723 MB / 0.6467 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02508/1.509, allocations: 6.341 MB / 0.6528 GB, free: 2.566 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006947/1.509, allocations: 452.6 kB / 0.6533 GB, free: 2.117 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003066/1.512, allocations: 0.5349 MB / 0.6538 GB, free: 1.582 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04561/1.558, allocations: 14 MB / 0.6675 GB, free: 2.449 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003118/1.558, allocations: 67.41 kB / 0.6675 GB, free: 2.383 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/1.56, allocations: 267.8 kB / 0.6678 GB, free: 2.121 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003176/1.564, allocations: 1.294 MB / 0.6691 GB, free: 0.8242 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04032/1.604, allocations: 11.45 MB / 0.6802 GB, free: 5.363 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4886/2.093, allocations: 59.29 MB / 0.7381 GB, free: 74.69 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/2.113, allocations: 4.608 MB / 0.7426 GB, free: 74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005265/2.118, allocations: 2.713 MB / 0.7453 GB, free: 73.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/2.146, allocations: 12.58 MB / 0.7576 GB, free: 70.17 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/2.146, allocations: 60.36 kB / 0.7576 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=191): time 6.371e-06/2.146, allocations: 0 / 0.7576 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=242): time 0.175/2.321, allocations: 32.74 MB / 0.7896 GB, free: 65.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/2.321, allocations: 236.1 kB / 0.7898 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/2.332, allocations: 4.172 MB / 0.7939 GB, free: 63.74 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007671/2.333, allocations: 63.23 kB / 0.794 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003385/2.336, allocations: 3.784 MB / 0.7977 GB, free: 60.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001539/2.338, allocations: 0.9188 MB / 0.7986 GB, free: 60.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/2.339, allocations: 145.6 kB / 0.7987 GB, free: 60.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007458/2.34, allocations: 0.6162 MB / 0.7993 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008113/2.348, allocations: 3.158 MB / 0.8024 GB, free: 58.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01065/2.359, allocations: 7.383 MB / 0.8096 GB, free: 51.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/2.37, allocations: 4.752 MB / 0.8142 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/2.37, allocations: 44 kB / 0.8143 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.0451/2.415, allocations: 13.09 MB / 0.8271 GB, free: 41.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/2.415, allocations: 74.03 kB / 0.8271 GB, free: 41.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/2.415, allocations: 151.9 kB / 0.8273 GB, free: 41.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02059/2.436, allocations: 3.815 MB / 0.831 GB, free: 38.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/2.446, allocations: 1.607 MB / 0.8326 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03984/2.486, allocations: 18.02 MB / 0.8502 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009494/2.496, allocations: 485.3 kB / 0.8506 GB, free: 21.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001555/2.497, allocations: 435.1 kB / 0.851 GB, free: 21.42 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],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],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 (859): * Single equations (assignments): 855 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001546/2.499, allocations: 0.6498 MB / 0.8517 GB, free: 20.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/2.5, allocations: 434.4 kB / 0.8521 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/2.53, allocations: 8.072 MB / 0.86 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.581e-05/2.53, allocations: 32 kB / 0.86 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/2.53, allocations: 12 kB / 0.86 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.007e-05/2.53, allocations: 16.52 kB / 0.86 GB, free: 14.13 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05468/2.584, allocations: 17.37 MB / 0.877 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-05/2.585, allocations: 0 / 0.877 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004142/2.589, allocations: 387.4 kB / 0.8774 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02334/2.612, allocations: 3.847 MB / 0.8811 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000679/2.613, allocations: 43.86 kB / 0.8812 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04653/2.659, allocations: 16.45 MB / 0.8972 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/2.659, allocations: 8.047 kB / 0.8972 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04392/2.703, allocations: 12.54 MB / 0.9095 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/2.705, allocations: 475.3 kB / 0.9099 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001431/2.707, allocations: 40 kB / 0.91 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004897/2.711, allocations: 211.7 kB / 0.9102 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009657/2.712, allocations: 150.1 kB / 0.9103 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/2.713, allocations: 60 kB / 0.9104 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008269/2.721, allocations: 2.905 MB / 0.9132 GB, free: 8.844 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.22e-07/2.721, allocations: 0 / 0.9132 GB, free: 8.844 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01016/2.731, allocations: 1.463 MB / 0.9146 GB, free: 7.395 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (167): * Single equations (assignments): 163 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4469/3.178, allocations: 13.44 MB / 0.9278 GB, free: 147.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01758/3.196, allocations: 7.5 MB / 0.9351 GB, free: 147.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/3.196, allocations: 2.75 kB / 0.9351 GB, free: 147.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006744/3.203, allocations: 2.883 MB / 0.9379 GB, free: 147.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004415/3.207, allocations: 488.6 kB / 0.9384 GB, free: 147.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04751/3.255, allocations: 13.04 MB / 0.9511 GB, free: 145.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/3.268, allocations: 4.214 MB / 0.9552 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008468/3.276, allocations: 2.525 MB / 0.9577 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of SimCode: time 2.104e-06/3.276, allocations: 1.969 kB / 0.9577 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.796/8.072, allocations: 128.5 MB / 1.083 GB, free: 57.5 MB / 0.5573 GB