Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 2.578/2.578, allocations: 269 MB / 284.1 MB, free: 3.547 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.233e-05/4.23e-05, allocations: 7.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1889, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.4199/0.6089, allocations: 51.34 MB / 462.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03793/0.6469, allocations: 11.69 MB / 474 MB, free: 6.852 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01485/0.6618, allocations: 283 kB / 474.2 MB, free: 6.805 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.6723, allocations: 2.66 MB / 476.9 MB, free: 5.066 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03137/0.7037, allocations: 7.381 MB / 484.3 MB, free: 14.15 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005537/0.7093, allocations: 0.8503 MB / 485.1 MB, free: 13.3 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1222/0.8315, allocations: 47.49 MB / 0.5201 GB, free: 13.77 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01046/0.8421, allocations: 5.006 MB / 0.525 GB, free: 8.723 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002383/0.8445, allocations: 1.075 MB / 0.5261 GB, free: 7.645 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003362/0.8479, allocations: 1.66 MB / 0.5277 GB, free: 5.98 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.8509, allocations: 1.018 MB / 0.5287 GB, free: 4.961 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009916/0.8519, allocations: 160 kB / 0.5288 GB, free: 4.805 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002653/0.8546, allocations: 1.929 MB / 0.5307 GB, free: 2.871 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.856, allocations: 344 kB / 0.5311 GB, free: 2.535 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.8666, allocations: 6.907 MB / 0.5378 GB, free: 11.61 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.8667, allocations: 0 / 0.5378 GB, free: 11.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.8667, allocations: 0 / 0.5378 GB, free: 11.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002396/0.867, allocations: 4 kB / 0.5378 GB, free: 11.61 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01774/0.8847, allocations: 5.136 MB / 0.5428 GB, free: 6.406 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.8848, allocations: 12.03 kB / 0.5428 GB, free: 6.395 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1172/1.002, allocations: 11.62 MB / 0.5542 GB, free: 10.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01357/1.016, allocations: 4.185 MB / 0.5583 GB, free: 6.512 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003569/1.016, allocations: 287.3 kB / 0.5585 GB, free: 6.23 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001776/1.018, allocations: 391.6 kB / 0.5589 GB, free: 5.848 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03392/1.052, allocations: 12.03 MB / 0.5707 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/1.052, allocations: 67.36 kB / 0.5707 GB, free: 8.965 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00114/1.053, allocations: 183.8 kB / 0.5709 GB, free: 8.785 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005928/1.059, allocations: 2.136 MB / 0.573 GB, free: 6.648 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03378/1.093, allocations: 10.3 MB / 0.583 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4373/1.53, allocations: 47.44 MB / 0.6294 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02626/1.557, allocations: 5.871 MB / 0.6351 GB, free: 141.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02267/1.579, allocations: 8.869 MB / 0.6438 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/1.58, allocations: 52.72 kB / 0.6438 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=206): time 6.181e-06/1.58, allocations: 0 / 0.6438 GB, free: 137.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=262): time 0.2117/1.791, allocations: 35.48 MB / 0.6785 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/1.791, allocations: 209.4 kB / 0.6787 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008566/1.8, allocations: 4.602 MB / 0.6832 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006928/1.801, allocations: 61.7 kB / 0.6832 GB, free: 110.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002724/1.803, allocations: 3.444 MB / 0.6866 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.805, allocations: 0.9693 MB / 0.6875 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008224/1.806, allocations: 133.1 kB / 0.6877 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004094/1.806, allocations: 0.5918 MB / 0.6882 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007059/1.813, allocations: 3.004 MB / 0.6912 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009429/1.823, allocations: 6.778 MB / 0.6978 GB, free: 94.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00977/1.833, allocations: 4.435 MB / 0.7021 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/1.833, allocations: 43.19 kB / 0.7022 GB, free: 89.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.04133/1.874, allocations: 12.97 MB / 0.7148 GB, free: 76.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.962e-05/1.874, allocations: 67.95 kB / 0.7149 GB, free: 76.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/1.874, allocations: 132 kB / 0.715 GB, free: 76.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02093/1.895, allocations: 4.254 MB / 0.7192 GB, free: 72.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008631/1.904, allocations: 1.411 MB / 0.7205 GB, free: 70.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05849/1.963, allocations: 27.41 MB / 0.7473 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008114/1.971, allocations: 400.2 kB / 0.7477 GB, free: 42.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001385/1.972, allocations: 401.1 kB / 0.7481 GB, free: 42.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],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 (756): * Single equations (assignments): 750 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.005966/1.978, allocations: 2.423 MB / 0.7504 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/1.979, allocations: 446.3 kB / 0.7509 GB, free: 39.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02836/2.008, allocations: 8.231 MB / 0.7589 GB, free: 31.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.527e-05/2.008, allocations: 24.94 kB / 0.7589 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.793e-05/2.008, allocations: 16 kB / 0.7589 GB, free: 31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.955e-05/2.008, allocations: 11.95 kB / 0.759 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05012/2.058, allocations: 16.89 MB / 0.7754 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.65e-05/2.058, allocations: 4.594 kB / 0.7755 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002753/2.061, allocations: 303.6 kB / 0.7757 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01942/2.081, allocations: 3.934 MB / 0.7796 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006448/2.081, allocations: 55.98 kB / 0.7796 GB, free: 9.688 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06005/2.141, allocations: 26.2 MB / 0.8052 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/2.141, allocations: 8 kB / 0.8052 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03821/2.18, allocations: 12.76 MB / 0.8177 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/2.181, allocations: 0.5031 MB / 0.8182 GB, free: 1.504 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/2.183, allocations: 48 kB / 0.8182 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003859/2.186, allocations: 180.7 kB / 0.8184 GB, free: 1.281 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008959/2.187, allocations: 190 kB / 0.8186 GB, free: 1.094 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003408/2.188, allocations: 70.5 kB / 0.8187 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.3704/2.558, allocations: 3.297 MB / 0.8219 GB, free: 184 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.122e-06/2.558, allocations: 0 / 0.8219 GB, free: 184 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009197/2.567, allocations: 1.446 MB / 0.8233 GB, free: 184 MB / 0.5417 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 (158): * Single equations (assignments): 152 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001159/2.569, allocations: 201 kB / 0.8235 GB, free: 183.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02266/2.591, allocations: 8.114 MB / 0.8314 GB, free: 182.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/2.591, allocations: 5.922 kB / 0.8314 GB, free: 182.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01065/2.602, allocations: 3.513 MB / 0.8348 GB, free: 181.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004841/2.607, allocations: 0.5503 MB / 0.8354 GB, free: 181.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/2.64, allocations: 14.86 MB / 0.8499 GB, free: 173.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007236/2.648, allocations: 4.026 MB / 0.8538 GB, free: 172.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001811/2.649, allocations: 329.6 kB / 0.8541 GB, free: 172.2 MB / 0.5417 GB Notification: Performance of SimCode: time 1.392e-06/2.649, allocations: 3.875 kB / 0.8541 GB, free: 172.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.2126/2.862, allocations: 135.5 MB / 0.9865 GB, free: 46.41 MB / 0.5417 GB