Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.158e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3967/0.5296, allocations: 44.01 MB / 454.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03214/0.5618, allocations: 10.12 MB / 465.1 MB, free: 13.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01291/0.5748, allocations: 232.8 kB / 465.3 MB, free: 13.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009303/0.5841, allocations: 2.28 MB / 467.6 MB, free: 12.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02682/0.611, allocations: 6.397 MB / 474 MB, free: 7.387 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.6157, allocations: 0.816 MB / 474.8 MB, free: 6.867 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1236/0.7394, allocations: 47.54 MB / 0.5101 GB, free: 8.086 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009453/0.7489, allocations: 4.537 MB / 0.5145 GB, free: 3.508 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003054/0.752, allocations: 1.239 MB / 0.5157 GB, free: 2.266 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004719/0.7567, allocations: 2.143 MB / 0.5178 GB, free: 120 kB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003961/0.7608, allocations: 1.069 MB / 0.5189 GB, free: 15.05 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.7625, allocations: 212 kB / 0.5191 GB, free: 14.84 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004028/0.7665, allocations: 2.314 MB / 0.5213 GB, free: 12.52 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.7685, allocations: 380 kB / 0.5217 GB, free: 12.15 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.013/0.7815, allocations: 8.111 MB / 0.5296 GB, free: 4.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.7816, allocations: 0 / 0.5296 GB, free: 4.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.7816, allocations: 0 / 0.5296 GB, free: 4.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003324/0.782, allocations: 0 / 0.5296 GB, free: 4.02 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.021/0.803, allocations: 6.145 MB / 0.5356 GB, free: 13.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.803, allocations: 8.031 kB / 0.5356 GB, free: 13.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1303/0.9333, allocations: 13.38 MB / 0.5487 GB, free: 384 kB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/0.9487, allocations: 4.373 MB / 0.553 GB, free: 11.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004822/0.9492, allocations: 316 kB / 0.5533 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00248/0.9517, allocations: 431.7 kB / 0.5537 GB, free: 11.21 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04522/0.9969, allocations: 15.76 MB / 0.5691 GB, free: 10.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002743/0.9973, allocations: 67.38 kB / 0.5691 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002153/0.9994, allocations: 199.8 kB / 0.5693 GB, free: 10.26 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009657/1.009, allocations: 3.223 MB / 0.5725 GB, free: 7.027 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0459/1.055, allocations: 14.08 MB / 0.5862 GB, free: 8.926 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4779/1.533, allocations: 57.53 MB / 0.6424 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02422/1.557, allocations: 6.587 MB / 0.6488 GB, free: 129.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03801/1.595, allocations: 14.56 MB / 0.663 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/1.595, allocations: 67.5 kB / 0.6631 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 7.384e-06/1.596, allocations: 0 / 0.6631 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.2599/1.855, allocations: 42.84 MB / 0.7049 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.856, allocations: 214 kB / 0.7051 GB, free: 89.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0093/1.865, allocations: 5.117 MB / 0.7101 GB, free: 84.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009496/1.866, allocations: 70.95 kB / 0.7102 GB, free: 84.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003127/1.869, allocations: 4.276 MB / 0.7144 GB, free: 80.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002018/1.871, allocations: 1.249 MB / 0.7156 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009126/1.872, allocations: 173.5 kB / 0.7158 GB, free: 78.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004789/1.873, allocations: 0.6866 MB / 0.7164 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01013/1.883, allocations: 4.616 MB / 0.721 GB, free: 73.33 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01327/1.896, allocations: 9.543 MB / 0.7303 GB, free: 61.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/1.91, allocations: 6.498 MB / 0.7366 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/1.91, allocations: 52 kB / 0.7367 GB, free: 54.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.06845/1.979, allocations: 18.78 MB / 0.755 GB, free: 35.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.979, allocations: 76 kB / 0.7551 GB, free: 35.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/1.979, allocations: 179.9 kB / 0.7553 GB, free: 35.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0399/2.019, allocations: 5.839 MB / 0.761 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01263/2.032, allocations: 2.063 MB / 0.763 GB, free: 27.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05026/2.082, allocations: 24.96 MB / 0.7873 GB, free: 2.555 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01041/2.092, allocations: 0.5616 MB / 0.7879 GB, free: 1.992 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001658/2.094, allocations: 0.503 MB / 0.7884 GB, free: 1.492 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.007767/2.102, allocations: 3.046 MB / 0.7914 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001584/2.103, allocations: 0.4936 MB / 0.7918 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05701/2.16, allocations: 12.68 MB / 0.8042 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001457/2.161, allocations: 57.23 kB / 0.8043 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/2.161, allocations: 8 kB / 0.8043 GB, free: 1.121 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.336e-05/2.161, allocations: 11.95 kB / 0.8043 GB, free: 1.109 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4416/2.602, allocations: 24.42 MB / 0.8282 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.762e-05/2.603, allocations: 9.75 kB / 0.8282 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005932/2.608, allocations: 0.5741 MB / 0.8287 GB, free: 160.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03576/2.644, allocations: 4.843 MB / 0.8334 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008958/2.645, allocations: 61.03 kB / 0.8335 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04209/2.687, allocations: 20.21 MB / 0.8532 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/2.687, allocations: 7.531 kB / 0.8533 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05973/2.747, allocations: 17.83 MB / 0.8707 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/2.749, allocations: 0.5561 MB / 0.8712 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/2.751, allocations: 54.34 kB / 0.8713 GB, free: 131.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005723/2.757, allocations: 259.6 kB / 0.8715 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/2.758, allocations: 199.3 kB / 0.8717 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004417/2.758, allocations: 77.17 kB / 0.8718 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007617/2.766, allocations: 3.588 MB / 0.8753 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.71e-07/2.766, allocations: 0 / 0.8753 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009904/2.776, allocations: 1.736 MB / 0.877 GB, free: 125.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001454/2.778, allocations: 226.5 kB / 0.8772 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02314/2.801, allocations: 10.62 MB / 0.8876 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.801, allocations: 0 / 0.8876 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00925/2.81, allocations: 4.052 MB / 0.8915 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004728/2.815, allocations: 0.571 MB / 0.8921 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03865/2.853, allocations: 19.08 MB / 0.9107 GB, free: 91.52 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008515/2.862, allocations: 4.755 MB / 0.9153 GB, free: 86.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003244/2.865, allocations: 423.4 kB / 0.9158 GB, free: 86.31 MB / 0.5261 GB Notification: Performance of SimCode: time 1.643e-06/2.865, allocations: 0 / 0.9158 GB, free: 86.31 MB / 0.5261 GB Notification: Performance of Templates: time 0.6149/3.48, allocations: 143.5 MB / 1.056 GB, free: 148.9 MB / 0.5417 GB