Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadModel(ModelicaTest): time 2.351/2.351, allocations: 234.9 MB / 250.1 MB, free: 10.91 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.645e-05, allocations: 8 kB / 308 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3673, allocations: 54.87 MB / 362.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.08401/0.4514, allocations: 54.05 MB / 416.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03706/0.4885, allocations: 12.43 MB / 429.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01338/0.502, allocations: 295.2 kB / 429.6 MB, free: 8.926 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01056/0.5126, allocations: 2.839 MB / 432.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03046/0.5431, allocations: 7.717 MB / 440.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006359/0.5495, allocations: 1.104 MB / 441.3 MB, free: 13.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07617/0.6257, allocations: 25.03 MB / 466.3 MB, free: 4.18 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01668/0.6425, allocations: 7.389 MB / 473.7 MB, free: 12.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003981/0.6465, allocations: 1.403 MB / 475.1 MB, free: 11.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005171/0.6518, allocations: 2.194 MB / 477.3 MB, free: 9.125 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.656, allocations: 1.205 MB / 478.5 MB, free: 7.918 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001574/0.6576, allocations: 212 kB / 478.7 MB, free: 7.711 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004594/0.6622, allocations: 2.544 MB / 481.3 MB, free: 5.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.6645, allocations: 444 kB / 481.7 MB, free: 4.727 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4641/1.129, allocations: 9.588 MB / 491.3 MB, free: 31.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/1.129, allocations: 1.906 kB / 491.3 MB, free: 31.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.915e-06/1.129, allocations: 0 / 491.3 MB, free: 31.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005154/1.129, allocations: 0 / 491.3 MB, free: 31.82 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02521/1.155, allocations: 6.438 MB / 497.7 MB, free: 29.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/1.155, allocations: 7.906 kB / 497.7 MB, free: 29.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1667/1.321, allocations: 16.63 MB / 0.5023 GB, free: 25.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/1.341, allocations: 5.869 MB / 0.508 GB, free: 23.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005138/1.342, allocations: 386.7 kB / 0.5084 GB, free: 23.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003563/1.345, allocations: 0.5072 MB / 0.5089 GB, free: 23.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0509/1.396, allocations: 15.63 MB / 0.5242 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000462/1.397, allocations: 63.75 kB / 0.5242 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003416/1.4, allocations: 236.5 kB / 0.5244 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00688/1.407, allocations: 2.481 MB / 0.5269 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04301/1.45, allocations: 13.12 MB / 0.5397 GB, free: 3.352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1369/1.587, allocations: 57.28 MB / 0.5956 GB, free: 3.422 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03243/1.62, allocations: 6.44 MB / 0.6019 GB, free: 12.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03298/1.653, allocations: 11.44 MB / 0.6131 GB, free: 1.043 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.435e-05/1.653, allocations: 64.56 kB / 0.6131 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 6.853e-06/1.653, allocations: 0 / 0.6131 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.2686/1.921, allocations: 40.84 MB / 0.653 GB, free: 8.105 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/1.922, allocations: 242 kB / 0.6532 GB, free: 7.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01515/1.937, allocations: 5.479 MB / 0.6586 GB, free: 2.371 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001086/1.938, allocations: 77.7 kB / 0.6587 GB, free: 2.289 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005117/1.943, allocations: 4.241 MB / 0.6628 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002465/1.946, allocations: 1.23 MB / 0.664 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/1.947, allocations: 167.6 kB / 0.6642 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006811/1.947, allocations: 0.6537 MB / 0.6648 GB, free: 12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01097/1.958, allocations: 3.741 MB / 0.6685 GB, free: 8.254 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3444/2.303, allocations: 8.205 MB / 0.6765 GB, free: 210.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/2.317, allocations: 5.426 MB / 0.6818 GB, free: 209 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002306/2.317, allocations: 47.53 kB / 0.6818 GB, free: 209 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1064) (initialization): time 0.0553/2.372, allocations: 15.15 MB / 0.6966 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/2.372, allocations: 82.14 kB / 0.6967 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000244/2.373, allocations: 157.7 kB / 0.6968 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02369/2.396, allocations: 4.138 MB / 0.7009 GB, free: 203.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.408, allocations: 1.794 MB / 0.7026 GB, free: 203 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04838/2.457, allocations: 20.28 MB / 0.7224 GB, free: 185.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/2.468, allocations: 0.4968 MB / 0.7229 GB, free: 184.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/2.47, allocations: 465 kB / 0.7234 GB, free: 184.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 714 * Number of states: 0 () * Number of discrete variables: 43 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (963): * Single equations (assignments): 959 * 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.009183/2.479, allocations: 3.072 MB / 0.7264 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/2.481, allocations: 0.5237 MB / 0.7269 GB, free: 181.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0367/2.517, allocations: 9.598 MB / 0.7363 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-05/2.518, allocations: 33.41 kB / 0.7363 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.858e-05/2.518, allocations: 16 kB / 0.7363 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.787e-05/2.518, allocations: 11.95 kB / 0.7363 GB, free: 171.4 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.06692/2.585, allocations: 19.79 MB / 0.7556 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.892e-05/2.585, allocations: 8 kB / 0.7556 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004506/2.589, allocations: 0.4922 MB / 0.7561 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02221/2.612, allocations: 3.653 MB / 0.7597 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001119/2.613, allocations: 62.28 kB / 0.7598 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04888/2.662, allocations: 17.83 MB / 0.7772 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.361e-05/2.662, allocations: 11.94 kB / 0.7772 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05304/2.715, allocations: 15.15 MB / 0.792 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004571/2.719, allocations: 1.154 MB / 0.7931 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002338/2.722, allocations: 63.98 kB / 0.7932 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006392/2.728, allocations: 233.2 kB / 0.7934 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001367/2.73, allocations: 218.2 kB / 0.7936 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004272/2.73, allocations: 91.98 kB / 0.7937 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009624/2.74, allocations: 3.927 MB / 0.7975 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/2.74, allocations: 0 / 0.7975 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01158/2.751, allocations: 1.724 MB / 0.7992 GB, free: 106.7 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.001606/2.753, allocations: 246.8 kB / 0.7994 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02167/2.775, allocations: 9.174 MB / 0.8084 GB, free: 97.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/2.775, allocations: 4 kB / 0.8084 GB, free: 97.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008918/2.784, allocations: 3.62 MB / 0.8119 GB, free: 93.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006257/2.79, allocations: 0.6948 MB / 0.8126 GB, free: 92.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04443/2.834, allocations: 18.81 MB / 0.831 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/2.846, allocations: 4.966 MB / 0.8358 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002789/2.848, allocations: 411.4 kB / 0.8362 GB, free: 68.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.753e-06/2.848, allocations: 4 kB / 0.8362 GB, free: 68.55 MB / 0.5261 GB Notification: Performance of Templates: time 0.5648/3.413, allocations: 117.9 MB / 0.9514 GB, free: 146.8 MB / 0.5261 GB