Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.658e-05/4.702e-05, allocations: 8 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 47.58 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.5323, allocations: 99.68 MB / 416.6 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.5326, allocations: 85.62 kB / 416.7 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7665/1.299, allocations: 126.9 MB / 0.5308 GB, free: 86.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.213e-06/1.299, allocations: 0 / 0.5308 GB, free: 86.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003416/1.299, allocations: 118.4 kB / 0.531 GB, free: 86.66 MB / 426.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.0205/1.32, allocations: 6.333 MB / 0.5371 GB, free: 84.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/1.32, allocations: 7.938 kB / 0.5371 GB, free: 84.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04487/1.365, allocations: 8.321 MB / 0.5453 GB, free: 83.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02195/1.387, allocations: 7.271 MB / 0.5524 GB, free: 83.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005794/1.388, allocations: 452.6 kB / 0.5528 GB, free: 83.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002992/1.391, allocations: 0.5983 MB / 0.5534 GB, free: 83.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03834/1.429, allocations: 15.52 MB / 0.5685 GB, free: 79.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003127/1.429, allocations: 73.22 kB / 0.5686 GB, free: 79.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00218/1.431, allocations: 282.7 kB / 0.5689 GB, free: 79.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002941/1.434, allocations: 1.622 MB / 0.5705 GB, free: 79.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/1.468, allocations: 13.54 MB / 0.5837 GB, free: 76.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08331/1.551, allocations: 64.08 MB / 0.6463 GB, free: 19.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01653/1.568, allocations: 6.358 MB / 0.6525 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0056/1.573, allocations: 3.465 MB / 0.6559 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2764/1.85, allocations: 14.32 MB / 0.6698 GB, free: 78.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.85, allocations: 56.33 kB / 0.6699 GB, free: 78.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 8.117e-06/1.85, allocations: 3.938 kB / 0.6699 GB, free: 78.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1165/1.966, allocations: 29.66 MB / 0.6989 GB, free: 75.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/1.967, allocations: 215.8 kB / 0.6991 GB, free: 75.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01118/1.978, allocations: 4.803 MB / 0.7038 GB, free: 75.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007107/1.978, allocations: 71.58 kB / 0.7038 GB, free: 75.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003475/1.982, allocations: 4.441 MB / 0.7082 GB, free: 72.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001705/1.984, allocations: 1.24 MB / 0.7094 GB, free: 72.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/1.985, allocations: 170.4 kB / 0.7095 GB, free: 72.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007333/1.986, allocations: 0.6865 MB / 0.7102 GB, free: 71.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008891/1.994, allocations: 4.457 MB / 0.7146 GB, free: 71.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/2.006, allocations: 9.375 MB / 0.7237 GB, free: 63.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/2.018, allocations: 6.4 MB / 0.73 GB, free: 61.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000154/2.018, allocations: 51 kB / 0.73 GB, free: 61.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.05213/2.07, allocations: 18.03 MB / 0.7476 GB, free: 56.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/2.071, allocations: 78.22 kB / 0.7477 GB, free: 56.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/2.071, allocations: 177.1 kB / 0.7479 GB, free: 56.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02793/2.099, allocations: 5.632 MB / 0.7534 GB, free: 55.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009335/2.108, allocations: 2.045 MB / 0.7554 GB, free: 55.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03665/2.145, allocations: 23.65 MB / 0.7785 GB, free: 35.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00962/2.155, allocations: 0.5399 MB / 0.779 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001967/2.157, allocations: 0.507 MB / 0.7795 GB, free: 34.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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 (1060): * Single equations (assignments): 1052 * 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.002944/2.16, allocations: 0.7497 MB / 0.7802 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/2.161, allocations: 0.4975 MB / 0.7807 GB, free: 32.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03639/2.197, allocations: 12.28 MB / 0.7927 GB, free: 22.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.99e-05/2.197, allocations: 55.98 kB / 0.7928 GB, free: 22.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/2.197, allocations: 8 kB / 0.7928 GB, free: 22.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.636e-05/2.198, allocations: 11.95 kB / 0.7928 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06142/2.259, allocations: 23.85 MB / 0.8161 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.477e-05/2.259, allocations: 8.125 kB / 0.8161 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003884/2.263, allocations: 0.5655 MB / 0.8166 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0241/2.287, allocations: 4.638 MB / 0.8212 GB, free: 8.656 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007424/2.288, allocations: 57.17 kB / 0.8212 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2948/2.583, allocations: 18.92 MB / 0.8397 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/2.583, allocations: 8.688 kB / 0.8397 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04199/2.625, allocations: 17.27 MB / 0.8566 GB, free: 82.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003699/2.629, allocations: 1.224 MB / 0.8577 GB, free: 82.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001555/2.63, allocations: 59.8 kB / 0.8578 GB, free: 82.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004737/2.635, allocations: 248.4 kB / 0.858 GB, free: 82.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/2.636, allocations: 193.8 kB / 0.8582 GB, free: 82.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005105/2.637, allocations: 85.25 kB / 0.8583 GB, free: 82.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008224/2.645, allocations: 3.325 MB / 0.8616 GB, free: 81.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.071e-06/2.645, allocations: 0 / 0.8616 GB, free: 81.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0106/2.655, allocations: 1.706 MB / 0.8632 GB, free: 81.03 MB / 442.7 MB 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 (251): * Single equations (assignments): 243 * 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.001055/2.657, allocations: 218.7 kB / 0.8634 GB, free: 80.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01908/2.676, allocations: 10.04 MB / 0.8732 GB, free: 77.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/2.676, allocations: 9.719 kB / 0.8732 GB, free: 77.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007764/2.684, allocations: 3.865 MB / 0.877 GB, free: 75.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004363/2.688, allocations: 0.5817 MB / 0.8776 GB, free: 75.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03096/2.719, allocations: 13.45 MB / 0.8907 GB, free: 70.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.73, allocations: 4.762 MB / 0.8954 GB, free: 69.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01103/2.741, allocations: 2.991 MB / 0.8983 GB, free: 69.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002311/2.743, allocations: 353.6 kB / 0.8986 GB, free: 69.11 MB / 442.7 MB Notification: Performance of SimCode: time 1.967e-06/2.743, allocations: 0 / 0.8986 GB, free: 69.11 MB / 442.7 MB Notification: Performance of Templates: time 0.1646/2.908, allocations: 72.51 MB / 0.9694 GB, free: 11.02 MB / 442.7 MB