Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 2.254/2.254, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.923e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.07393/0.1944, allocations: 44 MB / 389 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02968/0.2241, allocations: 10.11 MB / 399.1 MB, free: 2.672 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01005/0.2343, allocations: 231.4 kB / 399.3 MB, free: 2.445 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007998/0.2423, allocations: 2.282 MB / 401.6 MB, free: 156 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3299/0.5723, allocations: 6.4 MB / 408 MB, free: 4 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0046/0.5769, allocations: 0.8145 MB / 408.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1152/0.6922, allocations: 47.53 MB / 456.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01057/0.7029, allocations: 4.448 MB / 460.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003981/0.7069, allocations: 1.235 MB / 462 MB, free: 10.05 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005237/0.7122, allocations: 2.137 MB / 464.2 MB, free: 8.461 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.7167, allocations: 1.072 MB / 465.2 MB, free: 7.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002332/0.7191, allocations: 208 kB / 465.4 MB, free: 7.387 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004614/0.7238, allocations: 2.31 MB / 467.8 MB, free: 5.719 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002388/0.7262, allocations: 376 kB / 468.1 MB, free: 5.352 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01391/0.7402, allocations: 8.104 MB / 476.2 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7402, allocations: 2.25 kB / 476.2 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.7402, allocations: 0 / 476.2 MB, free: 14.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000369/0.7406, allocations: 4 kB / 476.2 MB, free: 14.28 MB / 378.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.02189/0.7625, allocations: 6.097 MB / 482.3 MB, free: 8.594 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.7626, allocations: 8.031 kB / 482.3 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1318/0.8944, allocations: 13.43 MB / 495.8 MB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.9098, allocations: 4.317 MB / 0.4884 GB, free: 7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004731/0.9103, allocations: 325.2 kB / 0.4887 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002811/0.9132, allocations: 431.7 kB / 0.4891 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04598/0.9592, allocations: 15.74 MB / 0.5045 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002903/0.9595, allocations: 61.12 kB / 0.5045 GB, free: 5.957 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002163/0.9617, allocations: 203 kB / 0.5047 GB, free: 5.816 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009694/0.9715, allocations: 3.218 MB / 0.5079 GB, free: 2.645 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04686/1.018, allocations: 14.04 MB / 0.5216 GB, free: 4.816 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4691/1.487, allocations: 57.51 MB / 0.5777 GB, free: 125.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02367/1.511, allocations: 6.567 MB / 0.5841 GB, free: 124.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03627/1.548, allocations: 14.44 MB / 0.5983 GB, free: 117.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.768e-05/1.548, allocations: 62 kB / 0.5983 GB, free: 117.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 7.855e-06/1.548, allocations: 3.781 kB / 0.5983 GB, free: 117.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=336): time 0.2685/1.816, allocations: 42.71 MB / 0.64 GB, free: 83.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/1.816, allocations: 214 kB / 0.6402 GB, free: 83.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0111/1.827, allocations: 5.121 MB / 0.6452 GB, free: 78.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009517/1.828, allocations: 73.7 kB / 0.6453 GB, free: 78.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003472/1.832, allocations: 4.28 MB / 0.6495 GB, free: 73.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002056/1.834, allocations: 1.249 MB / 0.6507 GB, free: 72.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/1.835, allocations: 169.6 kB / 0.6509 GB, free: 72.36 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006588/1.836, allocations: 0.6866 MB / 0.6515 GB, free: 71.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01082/1.847, allocations: 4.585 MB / 0.656 GB, free: 67.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01402/1.861, allocations: 9.527 MB / 0.6653 GB, free: 55.17 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.876, allocations: 6.461 MB / 0.6716 GB, free: 48.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/1.876, allocations: 48 kB / 0.6717 GB, free: 48.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.08472/1.96, allocations: 18.73 MB / 0.69 GB, free: 30.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001928/1.961, allocations: 80 kB / 0.69 GB, free: 30.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003525/1.961, allocations: 172 kB / 0.6902 GB, free: 29.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05584/2.017, allocations: 5.835 MB / 0.6959 GB, free: 24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01685/2.034, allocations: 2.055 MB / 0.6979 GB, free: 21.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07825/2.112, allocations: 24.96 MB / 0.7223 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01635/2.129, allocations: 0.5631 MB / 0.7228 GB, free: 12.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003044/2.132, allocations: 0.501 MB / 0.7233 GB, free: 11.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (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.01343/2.145, allocations: 3.053 MB / 0.7263 GB, free: 8.594 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002589/2.148, allocations: 0.4897 MB / 0.7268 GB, free: 8.098 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3717/2.52, allocations: 12.6 MB / 0.7391 GB, free: 159.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001442/2.52, allocations: 57.33 kB / 0.7391 GB, free: 159.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.343e-05/2.52, allocations: 8.625 kB / 0.7391 GB, free: 159.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.64e-05/2.52, allocations: 23.41 kB / 0.7392 GB, free: 159.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08616/2.606, allocations: 24.32 MB / 0.7629 GB, free: 151.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.371e-05/2.606, allocations: 3.938 kB / 0.7629 GB, free: 151.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00562/2.612, allocations: 0.5769 MB / 0.7635 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03574/2.648, allocations: 4.836 MB / 0.7682 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000908/2.649, allocations: 63.89 kB / 0.7683 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04244/2.691, allocations: 20.21 MB / 0.788 GB, free: 132.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/2.691, allocations: 12.81 kB / 0.788 GB, free: 132.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05985/2.751, allocations: 17.72 MB / 0.8053 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/2.753, allocations: 0.5455 MB / 0.8058 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002368/2.755, allocations: 54.19 kB / 0.8059 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00616/2.761, allocations: 259.6 kB / 0.8061 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001352/2.763, allocations: 193.6 kB / 0.8063 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004659/2.763, allocations: 77.88 kB / 0.8064 GB, free: 114.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008433/2.772, allocations: 3.588 MB / 0.8099 GB, free: 110.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.772, allocations: 0 / 0.8099 GB, free: 110.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01012/2.782, allocations: 1.734 MB / 0.8116 GB, free: 108.9 MB / 474.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.001505/2.783, allocations: 237.7 kB / 0.8118 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02368/2.807, allocations: 10.54 MB / 0.8221 GB, free: 98.19 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/2.807, allocations: 0 / 0.8221 GB, free: 98.19 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009371/2.817, allocations: 4.016 MB / 0.826 GB, free: 94.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005113/2.822, allocations: 0.5772 MB / 0.8266 GB, free: 93.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04028/2.862, allocations: 19.02 MB / 0.8452 GB, free: 74.61 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009322/2.872, allocations: 4.758 MB / 0.8498 GB, free: 69.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003145/2.875, allocations: 415.4 kB / 0.8502 GB, free: 69.41 MB / 474.7 MB Notification: Performance of SimCode: time 1.633e-06/2.875, allocations: 0 / 0.8502 GB, free: 69.41 MB / 474.7 MB Notification: Performance of Templates: time 0.5703/3.445, allocations: 143.2 MB / 0.99 GB, free: 78.65 MB / 474.7 MB