Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 269 MB / 284.1 MB, free: 3.555 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.447e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1316, allocations: 61.9 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.4419/0.5735, allocations: 56.38 MB / 467.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04077/0.6144, allocations: 12.83 MB / 480.1 MB, free: 2.188 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01618/0.6306, allocations: 311.1 kB / 480.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01155/0.6422, allocations: 2.904 MB / 483.3 MB, free: 14.96 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03417/0.6764, allocations: 8.01 MB / 491.4 MB, free: 6.934 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006474/0.6829, allocations: 1.108 MB / 492.5 MB, free: 5.824 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1774/0.8604, allocations: 70.4 MB / 0.5497 GB, free: 15.37 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01955/0.88, allocations: 7.395 MB / 0.5569 GB, free: 7.914 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/0.8845, allocations: 1.407 MB / 0.5583 GB, free: 6.504 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004968/0.8895, allocations: 2.19 MB / 0.5604 GB, free: 4.309 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004088/0.8936, allocations: 1.155 MB / 0.5615 GB, free: 3.152 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.8955, allocations: 204 kB / 0.5617 GB, free: 2.953 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004356/0.8999, allocations: 2.54 MB / 0.5642 GB, free: 416 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002208/0.9021, allocations: 436 kB / 0.5646 GB, free: 15.98 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01479/0.917, allocations: 9.551 MB / 0.574 GB, free: 6.406 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.917, allocations: 4 kB / 0.574 GB, free: 6.402 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.917, allocations: 0 / 0.574 GB, free: 6.402 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003906/0.9174, allocations: 0 / 0.574 GB, free: 6.402 MB / 490.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.02172/0.9392, allocations: 6.39 MB / 0.5802 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.9392, allocations: 8.031 kB / 0.5802 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1711/1.11, allocations: 16.62 MB / 0.5964 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/1.129, allocations: 5.391 MB / 0.6017 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005517/1.13, allocations: 389.8 kB / 0.6021 GB, free: 9.422 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/1.132, allocations: 0.5035 MB / 0.6026 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3987/1.531, allocations: 15.61 MB / 0.6178 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003588/1.532, allocations: 65.48 kB / 0.6179 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002008/1.534, allocations: 235.8 kB / 0.6181 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00731/1.541, allocations: 2.549 MB / 0.6206 GB, free: 166.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04601/1.587, allocations: 13.12 MB / 0.6334 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09898/1.686, allocations: 57.33 MB / 0.6894 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02921/1.715, allocations: 6.444 MB / 0.6957 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02457/1.74, allocations: 11.42 MB / 0.7068 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/1.74, allocations: 56.56 kB / 0.7069 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.814e-06/1.74, allocations: 4 kB / 0.7069 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=338): time 0.2478/1.988, allocations: 40.67 MB / 0.7466 GB, free: 52.13 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/1.988, allocations: 239.8 kB / 0.7468 GB, free: 51.84 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01215/2, allocations: 5.464 MB / 0.7522 GB, free: 46.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009522/2.001, allocations: 82.56 kB / 0.7522 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003578/2.005, allocations: 4.247 MB / 0.7564 GB, free: 42.08 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002037/2.007, allocations: 1.233 MB / 0.7576 GB, free: 40.86 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001405/2.008, allocations: 164 kB / 0.7578 GB, free: 40.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006559/2.009, allocations: 0.6539 MB / 0.7584 GB, free: 40.03 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009362/2.018, allocations: 3.741 MB / 0.762 GB, free: 36.28 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01207/2.031, allocations: 8.23 MB / 0.7701 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/2.043, allocations: 5.441 MB / 0.7754 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001326/2.043, allocations: 44 kB / 0.7754 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.04901/2.092, allocations: 15.17 MB / 0.7903 GB, free: 5.094 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/2.092, allocations: 72.97 kB / 0.7903 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002072/2.092, allocations: 156 kB / 0.7905 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02352/2.116, allocations: 4.143 MB / 0.7945 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/2.128, allocations: 1.801 MB / 0.7963 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4421/2.57, allocations: 20.26 MB / 0.8161 GB, free: 158 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009868/2.58, allocations: 0.5103 MB / 0.8166 GB, free: 158 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001811/2.581, allocations: 470.3 kB / 0.817 GB, free: 158 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * 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 (966): * Single equations (assignments): 962 * 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.008322/2.59, allocations: 3.067 MB / 0.82 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001546/2.591, allocations: 0.523 MB / 0.8205 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03825/2.63, allocations: 9.601 MB / 0.8299 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.194e-05/2.63, allocations: 34.89 kB / 0.8299 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-05/2.63, allocations: 15.28 kB / 0.8299 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.411e-05/2.63, allocations: 24.23 kB / 0.83 GB, free: 154.1 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06233/2.692, allocations: 19.77 MB / 0.8493 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.638e-05/2.692, allocations: 7.844 kB / 0.8493 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004404/2.697, allocations: 0.4919 MB / 0.8498 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02202/2.719, allocations: 3.65 MB / 0.8533 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000833/2.72, allocations: 63.2 kB / 0.8534 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04679/2.767, allocations: 17.82 MB / 0.8708 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.807e-05/2.767, allocations: 15.92 kB / 0.8708 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06564/2.832, allocations: 15.15 MB / 0.8856 GB, free: 120.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002495/2.835, allocations: 0.5916 MB / 0.8862 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003068/2.838, allocations: 68.55 kB / 0.8862 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008263/2.846, allocations: 231.7 kB / 0.8865 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001242/2.848, allocations: 216.2 kB / 0.8867 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004131/2.848, allocations: 89.17 kB / 0.8867 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008337/2.856, allocations: 3.905 MB / 0.8906 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.313e-06/2.856, allocations: 3.906 kB / 0.8906 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009756/2.866, allocations: 1.726 MB / 0.8923 GB, free: 114 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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.001381/2.868, allocations: 255 kB / 0.8925 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02008/2.888, allocations: 9.194 MB / 0.9015 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/2.888, allocations: 0 / 0.9015 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008321/2.896, allocations: 3.622 MB / 0.905 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005707/2.902, allocations: 0.6879 MB / 0.9057 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04056/2.942, allocations: 18.81 MB / 0.924 GB, free: 81.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009854/2.952, allocations: 4.954 MB / 0.9289 GB, free: 76.47 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00265/2.955, allocations: 411.4 kB / 0.9293 GB, free: 76.07 MB / 0.5261 GB Notification: Performance of SimCode: time 1.673e-06/2.955, allocations: 4 kB / 0.9293 GB, free: 76.06 MB / 0.5261 GB Notification: Performance of Templates: time 0.5927/3.548, allocations: 117.8 MB / 1.044 GB, free: 160.9 MB / 0.5417 GB