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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.862/1.862, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.832e-05/2.849e-05, allocations: 2 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.08384, allocations: 44.51 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4701/0.554, allocations: 94.14 MB / 394 MB, free: 19.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.5543, allocations: 83.38 kB / 394.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7129/1.267, allocations: 126.2 MB / 0.508 GB, free: 61.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.267, allocations: 0 / 0.508 GB, free: 61.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004301/1.268, allocations: 111 kB / 0.5081 GB, free: 61.48 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02256/1.29, allocations: 6.316 MB / 0.5143 GB, free: 60.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/1.29, allocations: 11.58 kB / 0.5143 GB, free: 60.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04463/1.335, allocations: 8.314 MB / 0.5224 GB, free: 60.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02265/1.358, allocations: 7.257 MB / 0.5295 GB, free: 59.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006412/1.358, allocations: 451.9 kB / 0.53 GB, free: 59.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003109/1.362, allocations: 0.591 MB / 0.5305 GB, free: 59.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03953/1.401, allocations: 15.57 MB / 0.5457 GB, free: 56.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000376/1.402, allocations: 75.94 kB / 0.5458 GB, free: 56.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002746/1.404, allocations: 286.6 kB / 0.5461 GB, free: 56.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002919/1.407, allocations: 1.611 MB / 0.5477 GB, free: 56.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03292/1.44, allocations: 13.75 MB / 0.5611 GB, free: 56.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08983/1.53, allocations: 63.97 MB / 0.6236 GB, free: 26.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01707/1.547, allocations: 6.401 MB / 0.6298 GB, free: 20.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005597/1.553, allocations: 3.459 MB / 0.6332 GB, free: 17.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03004/1.583, allocations: 14.33 MB / 0.6472 GB, free: 4.355 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.572e-05/1.583, allocations: 64.5 kB / 0.6472 GB, free: 4.281 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 8.185e-06/1.583, allocations: 0 / 0.6472 GB, free: 4.281 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.3752/1.958, allocations: 29.99 MB / 0.6765 GB, free: 87.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/1.958, allocations: 220 kB / 0.6767 GB, free: 86.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/1.97, allocations: 4.762 MB / 0.6814 GB, free: 86.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007334/1.971, allocations: 68.7 kB / 0.6815 GB, free: 86.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003222/1.974, allocations: 4.292 MB / 0.6856 GB, free: 84.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001723/1.976, allocations: 1.242 MB / 0.6869 GB, free: 84.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001159/1.977, allocations: 174.6 kB / 0.687 GB, free: 84.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000878/1.978, allocations: 0.6838 MB / 0.6877 GB, free: 83.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008829/1.987, allocations: 4.455 MB / 0.692 GB, free: 83.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/1.998, allocations: 9.407 MB / 0.7012 GB, free: 77.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/2.01, allocations: 6.382 MB / 0.7075 GB, free: 77.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001616/2.011, allocations: 50.34 kB / 0.7075 GB, free: 77.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05193/2.062, allocations: 18.33 MB / 0.7254 GB, free: 75.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/2.063, allocations: 76.56 kB / 0.7255 GB, free: 75.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002049/2.063, allocations: 177.3 kB / 0.7256 GB, free: 75.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02657/2.089, allocations: 5.632 MB / 0.7311 GB, free: 74.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009498/2.099, allocations: 2.038 MB / 0.7331 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03954/2.139, allocations: 23.62 MB / 0.7562 GB, free: 63.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/2.149, allocations: 0.543 MB / 0.7567 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001938/2.151, allocations: 0.5019 MB / 0.7572 GB, free: 63.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * 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.002467/2.153, allocations: 0.7502 MB / 0.758 GB, free: 62.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/2.154, allocations: 0.4947 MB / 0.7584 GB, free: 62.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03748/2.192, allocations: 12.26 MB / 0.7704 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/2.192, allocations: 58.69 kB / 0.7705 GB, free: 58.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-05/2.192, allocations: 8 kB / 0.7705 GB, free: 58.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.004e-05/2.192, allocations: 16.84 kB / 0.7705 GB, free: 58.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05953/2.252, allocations: 23.85 MB / 0.7938 GB, free: 38.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.394e-05/2.252, allocations: 4.75 kB / 0.7938 GB, free: 38.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003665/2.256, allocations: 0.5682 MB / 0.7943 GB, free: 38.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02201/2.278, allocations: 4.646 MB / 0.7989 GB, free: 33.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007187/2.278, allocations: 57.41 kB / 0.7989 GB, free: 33.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02958/2.308, allocations: 18.92 MB / 0.8174 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.687e-06/2.308, allocations: 4 kB / 0.8174 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2982/2.606, allocations: 17.25 MB / 0.8343 GB, free: 77.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003823/2.61, allocations: 1.204 MB / 0.8354 GB, free: 77.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001773/2.612, allocations: 57.92 kB / 0.8355 GB, free: 77.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004791/2.617, allocations: 248.3 kB / 0.8357 GB, free: 77.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001154/2.618, allocations: 195.8 kB / 0.8359 GB, free: 77.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004413/2.618, allocations: 84.14 kB / 0.836 GB, free: 77.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007935/2.626, allocations: 3.301 MB / 0.8392 GB, free: 76.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.016e-06/2.626, allocations: 0 / 0.8392 GB, free: 76.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01056/2.637, allocations: 1.705 MB / 0.8409 GB, free: 76.91 MB / 426.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.001062/2.638, allocations: 209.4 kB / 0.8411 GB, free: 76.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01927/2.657, allocations: 10.32 MB / 0.8512 GB, free: 76.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/2.657, allocations: 4.344 kB / 0.8512 GB, free: 76.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007506/2.665, allocations: 3.896 MB / 0.855 GB, free: 76.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004529/2.669, allocations: 0.585 MB / 0.8555 GB, free: 76.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03285/2.702, allocations: 14.13 MB / 0.8693 GB, free: 73.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01026/2.713, allocations: 4.753 MB / 0.874 GB, free: 72.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002475/2.715, allocations: 414.6 kB / 0.8744 GB, free: 72.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.977e-06/2.715, allocations: 0 / 0.8744 GB, free: 72.32 MB / 426.7 MB Notification: Performance of Templates: time 0.4585/3.174, allocations: 142 MB / 1.013 GB, free: 92.09 MB / 442.7 MB