Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.835/2.835, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.553e-05/2.573e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.4108, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2462/0.657, allocations: 110.1 MB / 464.5 MB, free: 0.8906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/0.6574, allocations: 71.97 kB / 464.6 MB, free: 0.8203 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.277/1.935, allocations: 169.2 MB / 0.619 GB, free: 8.035 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.935, allocations: 0 / 0.619 GB, free: 8.035 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006538/1.935, allocations: 148 kB / 0.6191 GB, free: 7.891 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.0412/1.976, allocations: 7.702 MB / 0.6267 GB, free: 112 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/1.977, allocations: 12.03 kB / 0.6267 GB, free: 100 kB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4331/2.41, allocations: 1.301 MB / 0.6279 GB, free: 68.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07332/2.483, allocations: 6.954 MB / 0.6347 GB, free: 67.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04351/2.527, allocations: 9.824 MB / 0.6443 GB, free: 67.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000718/2.527, allocations: 324.6 kB / 0.6446 GB, free: 67.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005236/2.533, allocations: 466.1 kB / 0.6451 GB, free: 67.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03951/2.572, allocations: 13.15 MB / 0.6579 GB, free: 67.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05576/2.628, allocations: 17.62 MB / 0.6751 GB, free: 63.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005433/2.629, allocations: 97.14 kB / 0.6752 GB, free: 63.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00411/2.633, allocations: 46.45 kB / 0.6753 GB, free: 63.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005592/2.638, allocations: 1.955 MB / 0.6772 GB, free: 63.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/2.808, allocations: 78.92 MB / 0.7542 GB, free: 8.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/2.821, allocations: 5.986 MB / 0.7601 GB, free: 3.238 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009989/2.831, allocations: 3.874 MB / 0.7639 GB, free: 15.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06509/2.896, allocations: 17.96 MB / 0.7814 GB, free: 0 / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/2.897, allocations: 67.95 kB / 0.7815 GB, free: 15.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=334): time 8.476e-06/2.897, allocations: 0 / 0.7815 GB, free: 15.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=426): time 0.1551/3.052, allocations: 26.46 MB / 0.8073 GB, free: 9.137 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001689/3.052, allocations: 200.6 kB / 0.8075 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01485/3.067, allocations: 5.056 MB / 0.8124 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001136/3.068, allocations: 29.7 kB / 0.8125 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.423/3.491, allocations: 5.515 MB / 0.8178 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003276/3.494, allocations: 1.519 MB / 0.8193 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001896/3.496, allocations: 0.5625 kB / 0.8193 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001448/3.498, allocations: 0.7683 MB / 0.8201 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01313/3.511, allocations: 3.967 MB / 0.824 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01746/3.528, allocations: 10.02 MB / 0.8337 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0203/3.549, allocations: 6.4 MB / 0.84 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002971/3.549, allocations: 58.31 kB / 0.84 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.0633/3.612, allocations: 14.83 MB / 0.8545 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002147/3.613, allocations: 98.66 kB / 0.8546 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003893/3.613, allocations: 213.5 kB / 0.8548 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01797/3.631, allocations: 2.304 MB / 0.8571 GB, free: 99.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02179/3.653, allocations: 2.545 MB / 0.8596 GB, free: 99.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03505/3.688, allocations: 11.13 MB / 0.8704 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01593/3.704, allocations: 0.4905 MB / 0.8709 GB, free: 97.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00307/3.707, allocations: 0.6101 MB / 0.8715 GB, free: 97.81 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 46 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1330): * Single equations (assignments): 1323 * 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.00417/3.711, allocations: 0.6367 MB / 0.8721 GB, free: 97.48 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/3.713, allocations: 0.5638 MB / 0.8727 GB, free: 97.17 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03568/3.749, allocations: 7.947 MB / 0.8804 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001653/3.749, allocations: 64.47 kB / 0.8805 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.951e-05/3.749, allocations: 11.66 kB / 0.8805 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001172/3.749, allocations: 15.33 kB / 0.8805 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06818/3.818, allocations: 17.16 MB / 0.8973 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.305e-05/3.818, allocations: 10.91 kB / 0.8973 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007474/3.825, allocations: 0.6497 MB / 0.8979 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01505/3.84, allocations: 1.806 MB / 0.8997 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009632/3.841, allocations: 23.83 kB / 0.8997 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02982/3.871, allocations: 9.401 MB / 0.9089 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.031e-05/3.871, allocations: 15.75 kB / 0.9089 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04163/3.913, allocations: 14.01 MB / 0.9226 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004855/3.918, allocations: 1.137 MB / 0.9237 GB, free: 72.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001979/3.92, allocations: 19.28 kB / 0.9237 GB, free: 72.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007278/3.927, allocations: 193.2 kB / 0.9239 GB, free: 72.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001546/3.929, allocations: 266 kB / 0.9242 GB, free: 72.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008197/3.93, allocations: 111.9 kB / 0.9243 GB, free: 72.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01005/3.94, allocations: 3.368 MB / 0.9276 GB, free: 69.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.11e-07/3.94, allocations: 4 kB / 0.9276 GB, free: 69.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01509/3.955, allocations: 1.68 MB / 0.9292 GB, free: 67.7 MB / 0.4948 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 (337): * Single equations (assignments): 330 * 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.04408/3.999, allocations: 17 MB / 0.9458 GB, free: 51.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02534/4.024, allocations: 9.371 MB / 0.955 GB, free: 43.35 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-05/4.024, allocations: 4 kB / 0.955 GB, free: 43.35 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009371/4.034, allocations: 3.258 MB / 0.9581 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006673/4.04, allocations: 0.5687 MB / 0.9587 GB, free: 39.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0646/4.105, allocations: 16.99 MB / 0.9753 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01652/4.122, allocations: 5.76 MB / 0.9809 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.02044/4.142, allocations: 3.482 MB / 0.9843 GB, free: 18.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01121/4.153, allocations: 3.673 MB / 0.9879 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of SimCode: time 2.374e-06/4.154, allocations: 0 / 0.9879 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8777/5.031, allocations: 137.6 MB / 1.122 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000323/5.032, allocations: 155.1 kB / 1.122 GB, free: 37.47 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.884/14.92, allocations: 4 kB / 1.122 GB, free: 37.46 MB / 0.4948 GB