Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 2.313/2.313, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.982e-05, allocations: 4 kB / 349 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 61.9 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.4082/0.5393, allocations: 51.96 MB / 462.9 MB, free: 14.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03883/0.5782, allocations: 11.94 MB / 474.8 MB, free: 6.316 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01546/0.5938, allocations: 278.6 kB / 475.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0109/0.6048, allocations: 2.678 MB / 477.8 MB, free: 4.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03116/0.636, allocations: 7.467 MB / 485.2 MB, free: 13.2 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006531/0.6426, allocations: 1.214 MB / 486.5 MB, free: 11.99 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06741/0.71, allocations: 25.93 MB / 0.5004 GB, free: 2.039 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01487/0.7249, allocations: 7.024 MB / 0.5072 GB, free: 10.96 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004229/0.7292, allocations: 1.605 MB / 0.5088 GB, free: 9.355 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00611/0.7354, allocations: 2.697 MB / 0.5114 GB, free: 6.652 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00471/0.7402, allocations: 1.241 MB / 0.5127 GB, free: 5.41 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002391/0.7426, allocations: 248 kB / 0.5129 GB, free: 5.168 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005272/0.7479, allocations: 2.918 MB / 0.5157 GB, free: 2.242 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002855/0.7508, allocations: 484 kB / 0.5162 GB, free: 1.77 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01705/0.7679, allocations: 10.57 MB / 0.5265 GB, free: 7.172 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.768, allocations: 3.938 kB / 0.5265 GB, free: 7.168 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.768, allocations: 0 / 0.5265 GB, free: 7.168 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004454/0.7685, allocations: 0 / 0.5265 GB, free: 7.168 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02604/0.7945, allocations: 7.474 MB / 0.5338 GB, free: 15.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.7946, allocations: 8.031 kB / 0.5338 GB, free: 15.61 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08334/0.8779, allocations: 9.24 MB / 0.5429 GB, free: 6.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/0.8962, allocations: 5.433 MB / 0.5482 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006425/0.8969, allocations: 438.9 kB / 0.5486 GB, free: 404 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003366/0.9003, allocations: 0.6049 MB / 0.5492 GB, free: 15.79 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0634/0.9637, allocations: 20.84 MB / 0.5695 GB, free: 9.809 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003549/0.9641, allocations: 75.31 kB / 0.5696 GB, free: 9.734 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002734/0.9669, allocations: 279.7 kB / 0.5699 GB, free: 9.461 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01038/0.9773, allocations: 3.706 MB / 0.5735 GB, free: 5.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06575/1.043, allocations: 18.37 MB / 0.5914 GB, free: 3.375 MB / 0.4948 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 preOpt removeSimpleEquations (simulation): time 0.8451/1.888, allocations: 74.48 MB / 0.6641 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02951/1.918, allocations: 7.459 MB / 0.6714 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04654/1.964, allocations: 18.13 MB / 0.6891 GB, free: 97.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.348e-05/1.965, allocations: 68.66 kB / 0.6892 GB, free: 97.74 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 8.486e-06/1.965, allocations: 0 / 0.6892 GB, free: 97.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.205/2.17, allocations: 35.48 MB / 0.7239 GB, free: 63.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/2.17, allocations: 192.9 kB / 0.724 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/2.183, allocations: 6.206 MB / 0.7301 GB, free: 57.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009547/2.184, allocations: 87.34 kB / 0.7302 GB, free: 57.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004177/2.188, allocations: 5.244 MB / 0.7353 GB, free: 51.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002318/2.191, allocations: 1.516 MB / 0.7368 GB, free: 50.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/2.192, allocations: 209.3 kB / 0.737 GB, free: 50.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008389/2.193, allocations: 0.7572 MB / 0.7377 GB, free: 49.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01105/2.204, allocations: 4.128 MB / 0.7418 GB, free: 45.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01484/2.219, allocations: 9.995 MB / 0.7515 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01464/2.234, allocations: 6.29 MB / 0.7577 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/2.234, allocations: 60 kB / 0.7577 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.04842/2.282, allocations: 15.64 MB / 0.773 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001636/2.282, allocations: 96.53 kB / 0.7731 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002842/2.283, allocations: 208 kB / 0.7733 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/2.296, allocations: 2.341 MB / 0.7756 GB, free: 7.754 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01507/2.311, allocations: 2.394 MB / 0.7779 GB, free: 5.355 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03302/2.344, allocations: 12.09 MB / 0.7897 GB, free: 9.141 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/2.356, allocations: 0.5825 MB / 0.7903 GB, free: 8.559 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002311/2.358, allocations: 0.5913 MB / 0.7908 GB, free: 7.969 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * 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 (1276): * Single equations (assignments): 1269 * 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.01056/2.369, allocations: 3.7 MB / 0.7945 GB, free: 4.254 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/2.37, allocations: 0.5977 MB / 0.795 GB, free: 3.648 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03226/2.403, allocations: 8.144 MB / 0.803 GB, free: 11.45 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001499/2.403, allocations: 61.72 kB / 0.8031 GB, free: 11.39 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.681e-05/2.403, allocations: 8 kB / 0.8031 GB, free: 11.38 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.672e-05/2.403, allocations: 23.86 kB / 0.8031 GB, free: 11.36 MB / 0.5418 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.4298/2.833, allocations: 18.74 MB / 0.8214 GB, free: 176 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.534e-05/2.833, allocations: 15.44 kB / 0.8214 GB, free: 176 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005939/2.839, allocations: 0.611 MB / 0.822 GB, free: 176 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0128/2.852, allocations: 1.745 MB / 0.8237 GB, free: 175.7 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008932/2.853, allocations: 77.25 kB / 0.8238 GB, free: 175.7 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02928/2.882, allocations: 10.15 MB / 0.8337 GB, free: 171 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.025e-05/2.882, allocations: 18.12 kB / 0.8337 GB, free: 171 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03695/2.919, allocations: 14.05 MB / 0.8474 GB, free: 163.9 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/2.921, allocations: 0.651 MB / 0.8481 GB, free: 163.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002443/2.923, allocations: 77.81 kB / 0.8481 GB, free: 163.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005775/2.929, allocations: 200.6 kB / 0.8483 GB, free: 163.7 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001328/2.931, allocations: 264.5 kB / 0.8486 GB, free: 163.6 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004255/2.931, allocations: 112.8 kB / 0.8487 GB, free: 163.6 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01053/2.942, allocations: 4.36 MB / 0.8529 GB, free: 162.2 MB / 0.5418 GB Notification: Performance of sort global known variables: time 8.02e-07/2.942, allocations: 0 / 0.8529 GB, free: 162.2 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01119/2.953, allocations: 1.934 MB / 0.8548 GB, free: 162 MB / 0.5418 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 (325): * Single equations (assignments): 318 * 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.001573/2.954, allocations: 286.6 kB / 0.8551 GB, free: 161.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02312/2.978, allocations: 9.77 MB / 0.8646 GB, free: 156.2 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/2.978, allocations: 8 kB / 0.8647 GB, free: 156.2 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.008557/2.986, allocations: 3.287 MB / 0.8679 GB, free: 153.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00621/2.992, allocations: 0.7264 MB / 0.8686 GB, free: 152.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04584/3.038, allocations: 21.5 MB / 0.8896 GB, free: 132.1 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01163/3.05, allocations: 5.748 MB / 0.8952 GB, free: 126.3 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003238/3.053, allocations: 499.4 kB / 0.8957 GB, free: 125.9 MB / 0.5418 GB Notification: Performance of SimCode: time 1.683e-06/3.053, allocations: 0 / 0.8957 GB, free: 125.9 MB / 0.5418 GB Notification: Performance of Templates: time 0.6146/3.668, allocations: 135.9 MB / 1.028 GB, free: 162 MB / 0.5418 GB