Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.628e-05, allocations: 4 kB / 292.2 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08709, allocations: 50.4 MB / 342.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3903/0.4774, allocations: 105.3 MB / 447.9 MB, free: 5.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.4777, allocations: 91.88 kB / 448 MB, free: 5.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6529/1.131, allocations: 112.7 MB / 0.5475 GB, free: 99.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.584e-06/1.131, allocations: 0 / 0.5475 GB, free: 99.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003236/1.131, allocations: 103.1 kB / 0.5476 GB, free: 99.57 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.0148/1.146, allocations: 4.912 MB / 0.5524 GB, free: 97.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/1.146, allocations: 8.969 kB / 0.5524 GB, free: 97.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03709/1.183, allocations: 6.901 MB / 0.5592 GB, free: 97.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01906/1.202, allocations: 6.465 MB / 0.5655 GB, free: 96.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/1.202, allocations: 393.8 kB / 0.5659 GB, free: 96.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001873/1.204, allocations: 0.5175 MB / 0.5664 GB, free: 96.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03075/1.235, allocations: 12.5 MB / 0.5786 GB, free: 93.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003093/1.236, allocations: 63.84 kB / 0.5786 GB, free: 93.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002029/1.238, allocations: 243.8 kB / 0.5789 GB, free: 92.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001929/1.24, allocations: 1.049 MB / 0.5799 GB, free: 92.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/1.267, allocations: 10.2 MB / 0.5898 GB, free: 89.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06288/1.33, allocations: 50.15 MB / 0.6388 GB, free: 46.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/1.346, allocations: 4.772 MB / 0.6435 GB, free: 42.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003016/1.349, allocations: 1.874 MB / 0.6453 GB, free: 40.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01284/1.362, allocations: 7.006 MB / 0.6521 GB, free: 33.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/1.362, allocations: 55.5 kB / 0.6522 GB, free: 33.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 5.757e-06/1.362, allocations: 0 / 0.6522 GB, free: 33.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.07235/1.434, allocations: 17.01 MB / 0.6688 GB, free: 16.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/1.434, allocations: 209.9 kB / 0.669 GB, free: 15.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007664/1.442, allocations: 3.884 MB / 0.6728 GB, free: 12.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000376/1.443, allocations: 57.7 kB / 0.6729 GB, free: 12.03 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.445, allocations: 3.567 MB / 0.6763 GB, free: 8.457 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009656/1.446, allocations: 0.8441 MB / 0.6772 GB, free: 7.621 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005252/1.447, allocations: 124 kB / 0.6773 GB, free: 7.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003708/1.447, allocations: 0.5747 MB / 0.6778 GB, free: 6.918 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004168/1.451, allocations: 2.113 MB / 0.6799 GB, free: 4.801 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.27/1.721, allocations: 5.816 MB / 0.6856 GB, free: 86.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007757/1.729, allocations: 3.519 MB / 0.689 GB, free: 86.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002209/1.729, allocations: 38.66 kB / 0.6891 GB, free: 86.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02324/1.753, allocations: 8.314 MB / 0.6972 GB, free: 86.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000162/1.753, allocations: 69.53 kB / 0.6972 GB, free: 86.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002541/1.753, allocations: 132.3 kB / 0.6974 GB, free: 86.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004471/1.758, allocations: 1.031 MB / 0.6984 GB, free: 86.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00652/1.764, allocations: 1.419 MB / 0.6998 GB, free: 85.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.777, allocations: 6.885 MB / 0.7065 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006586/1.784, allocations: 334.8 kB / 0.7068 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/1.785, allocations: 387.4 kB / 0.7072 GB, free: 84.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00135/1.786, allocations: 0.5865 MB / 0.7078 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008697/1.787, allocations: 408.9 kB / 0.7081 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009493/1.797, allocations: 3.612 MB / 0.7117 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.738e-05/1.797, allocations: 29.52 kB / 0.7117 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.797, allocations: 5.719 kB / 0.7117 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.37e-05/1.797, allocations: 15.7 kB / 0.7117 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/1.821, allocations: 9.803 MB / 0.7213 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.194e-05/1.822, allocations: 3.188 kB / 0.7213 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002423/1.824, allocations: 362 kB / 0.7216 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003941/1.828, allocations: 0.7882 MB / 0.7224 GB, free: 81.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000368/1.828, allocations: 46.67 kB / 0.7225 GB, free: 81.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/1.839, allocations: 5.6 MB / 0.7279 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.675e-06/1.839, allocations: 11.5 kB / 0.7279 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.852, allocations: 6.941 MB / 0.7347 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/1.853, allocations: 461.4 kB / 0.7352 GB, free: 74.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007852/1.854, allocations: 42.05 kB / 0.7352 GB, free: 74.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/1.856, allocations: 95.61 kB / 0.7353 GB, free: 74.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004084/1.856, allocations: 149.9 kB / 0.7354 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.857, allocations: 60.92 kB / 0.7355 GB, free: 74.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005486/1.862, allocations: 2.726 MB / 0.7381 GB, free: 73.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.433e-06/1.862, allocations: 0 / 0.7381 GB, free: 73.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007199/1.869, allocations: 1.18 MB / 0.7393 GB, free: 72.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006857/1.87, allocations: 228.1 kB / 0.7395 GB, free: 72.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00972/1.88, allocations: 5.118 MB / 0.7445 GB, free: 70.94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.88, allocations: 7.25 kB / 0.7445 GB, free: 70.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003249/1.883, allocations: 1.731 MB / 0.7462 GB, free: 70.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003329/1.887, allocations: 0.5222 MB / 0.7467 GB, free: 69.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/1.906, allocations: 8.966 MB / 0.7555 GB, free: 66.56 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006841/1.913, allocations: 3.981 MB / 0.7594 GB, free: 65.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007059/1.92, allocations: 1.945 MB / 0.7613 GB, free: 64.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/1.922, allocations: 276 kB / 0.7615 GB, free: 64.71 MB / 442.7 MB Notification: Performance of SimCode: time 2.252e-06/1.922, allocations: 0 / 0.7615 GB, free: 64.71 MB / 442.7 MB Notification: Performance of Templates: time 0.1076/2.029, allocations: 40.87 MB / 0.8014 GB, free: 33.16 MB / 442.7 MB