Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.598/2.598, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.631e-05, allocations: 0 / 347 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4206, allocations: 61.87 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.6601, allocations: 119.5 MB / 0.516 GB, free: 2.969 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.6604, allocations: 75.97 kB / 0.5161 GB, free: 2.895 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.084/1.744, allocations: 174.1 MB / 0.6861 GB, free: 384 kB / 490.7 MB Notification: Performance of FrontEnd: time 5.24e-06/1.744, allocations: 0 / 0.6861 GB, free: 384 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005623/1.745, allocations: 151.9 kB / 0.6863 GB, free: 232 kB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03552/1.78, allocations: 7.69 MB / 0.6938 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/1.78, allocations: 8.031 kB / 0.6938 GB, free: 8.449 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008427/1.789, allocations: 1.63 MB / 0.6954 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05758/1.846, allocations: 6.947 MB / 0.7022 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03726/1.884, allocations: 9.257 MB / 0.7112 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001032/1.885, allocations: 0.5695 MB / 0.7118 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005179/1.89, allocations: 0.7613 MB / 0.7125 GB, free: 5.164 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4772/2.367, allocations: 20.46 MB / 0.7325 GB, free: 80.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007026/2.368, allocations: 91.88 kB / 0.7326 GB, free: 80.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004665/2.373, allocations: 363.2 kB / 0.7329 GB, free: 80.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004902/2.378, allocations: 1.963 MB / 0.7348 GB, free: 80.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05789/2.436, allocations: 17.63 MB / 0.7521 GB, free: 80.39 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/2.577, allocations: 82.21 MB / 0.8323 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02843/2.605, allocations: 7.257 MB / 0.8394 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008162/2.613, allocations: 3.938 MB / 0.8433 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04534/2.659, allocations: 18.18 MB / 0.861 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/2.659, allocations: 74.08 kB / 0.8611 GB, free: 13.74 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 8.335e-06/2.659, allocations: 0 / 0.8611 GB, free: 13.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.1566/2.816, allocations: 25.88 MB / 0.8864 GB, free: 8.824 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/2.816, allocations: 196.8 kB / 0.8866 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/2.833, allocations: 5.651 MB / 0.8921 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001102/2.834, allocations: 87.67 kB / 0.8922 GB, free: 3.625 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006544/2.841, allocations: 5.251 MB / 0.8973 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00301/2.844, allocations: 1.521 MB / 0.8988 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001786/2.846, allocations: 204 kB / 0.899 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001194/2.847, allocations: 0.7582 MB / 0.8997 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01205/2.859, allocations: 4.024 MB / 0.9036 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01915/2.878, allocations: 9.801 MB / 0.9132 GB, free: 13.08 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01689/2.895, allocations: 6.249 MB / 0.9193 GB, free: 7.82 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002628/2.895, allocations: 60 kB / 0.9194 GB, free: 7.762 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.4994/3.395, allocations: 15.45 MB / 0.9344 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001712/3.395, allocations: 92.28 kB / 0.9345 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003646/3.395, allocations: 207.5 kB / 0.9347 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/3.41, allocations: 2.335 MB / 0.937 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01657/3.426, allocations: 2.449 MB / 0.9394 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03007/3.456, allocations: 11.53 MB / 0.9507 GB, free: 114.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0134/3.47, allocations: 0.6845 MB / 0.9513 GB, free: 114.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00253/3.472, allocations: 0.588 MB / 0.9519 GB, free: 114.8 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1272): * Single equations (assignments): 1265 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.00393/3.476, allocations: 0.8732 MB / 0.9528 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001682/3.478, allocations: 0.5935 MB / 0.9533 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03112/3.509, allocations: 8.084 MB / 0.9612 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/3.509, allocations: 60.98 kB / 0.9613 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.407e-05/3.509, allocations: 11.56 kB / 0.9613 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.275e-05/3.509, allocations: 20.92 kB / 0.9613 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06326/3.573, allocations: 18.7 MB / 0.9796 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.699e-05/3.573, allocations: 10.12 kB / 0.9796 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006075/3.579, allocations: 0.6535 MB / 0.9802 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/3.592, allocations: 1.874 MB / 0.9821 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009856/3.593, allocations: 75.58 kB / 0.9821 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02703/3.62, allocations: 9.881 MB / 0.9918 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.661e-05/3.62, allocations: 17.61 kB / 0.9918 GB, free: 109.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03708/3.657, allocations: 14.16 MB / 1.006 GB, free: 102.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/3.66, allocations: 0.6344 MB / 1.006 GB, free: 102.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002779/3.662, allocations: 77.52 kB / 1.006 GB, free: 102.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006691/3.669, allocations: 265.2 kB / 1.007 GB, free: 102.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001368/3.671, allocations: 248.9 kB / 1.007 GB, free: 102.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005524/3.671, allocations: 116.3 kB / 1.007 GB, free: 102.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01074/3.682, allocations: 3.912 MB / 1.011 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.184e-06/3.682, allocations: 3.781 kB / 1.011 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0143/3.696, allocations: 1.936 MB / 1.013 GB, free: 100.5 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04039/3.737, allocations: 17.11 MB / 1.029 GB, free: 90.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03074/3.767, allocations: 9.317 MB / 1.038 GB, free: 86.51 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.296e-05/3.768, allocations: 4 kB / 1.038 GB, free: 86.51 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01098/3.779, allocations: 3.224 MB / 1.042 GB, free: 83.62 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008381/3.787, allocations: 0.7227 MB / 1.042 GB, free: 83.02 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06643/3.853, allocations: 18.03 MB / 1.06 GB, free: 67.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01411/3.868, allocations: 5.75 MB / 1.066 GB, free: 63.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009486/3.877, allocations: 3.751 MB / 1.069 GB, free: 59.61 MB / 0.5573 GB Notification: Performance of SimCode: time 1.834e-06/3.877, allocations: 0 / 1.069 GB, free: 59.61 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.109/9.986, allocations: 181.4 MB / 1.246 GB, free: 73 MB / 0.5573 GB