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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 171.1 MB / 186.3 MB, free: 1.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.409e-05/3.431e-05, allocations: 6.188 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.08487, allocations: 38.77 MB / 266.9 MB, free: 1.113 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.3364/0.4213, allocations: 42.24 MB / 309.1 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03106/0.4524, allocations: 9.789 MB / 318.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01492/0.4674, allocations: 220.8 kB / 319.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00914/0.4766, allocations: 2.226 MB / 321.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02757/0.5042, allocations: 6.185 MB / 327.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006194/0.5105, allocations: 0.8333 MB / 328.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0681/0.5786, allocations: 17.38 MB / 345.8 MB, free: 1.281 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01261/0.5913, allocations: 4.452 MB / 350.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004103/0.5955, allocations: 1.242 MB / 351.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006254/0.6018, allocations: 2.127 MB / 353.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005154/0.607, allocations: 1.118 MB / 354.7 MB, free: 8.508 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002031/0.6091, allocations: 212 kB / 354.9 MB, free: 8.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005649/0.6147, allocations: 2.321 MB / 357.2 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002873/0.6177, allocations: 376 kB / 357.6 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01457/0.6323, allocations: 8.133 MB / 365.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.6324, allocations: 0 / 365.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6324, allocations: 0 / 365.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003393/0.6327, allocations: 0 / 365.7 MB, free: 13.73 MB / 298.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.02214/0.6549, allocations: 6.142 MB / 371.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.655, allocations: 16.03 kB / 371.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1366/0.7915, allocations: 13.44 MB / 385.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01594/0.8075, allocations: 4.631 MB / 390 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004685/0.8081, allocations: 316 kB / 390.3 MB, free: 5.031 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/0.8106, allocations: 435.6 kB / 390.7 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04585/0.8565, allocations: 15.74 MB / 406.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/0.8569, allocations: 59.42 kB / 406.5 MB, free: 3.879 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/0.859, allocations: 203.8 kB / 406.7 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009039/0.8681, allocations: 3.153 MB / 409.9 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04626/0.9144, allocations: 14.04 MB / 423.9 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3679/1.282, allocations: 57.43 MB / 481.3 MB, free: 84.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/1.305, allocations: 6.57 MB / 487.9 MB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03486/1.34, allocations: 14.45 MB / 0.4906 GB, free: 72.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/1.34, allocations: 63.75 kB / 0.4906 GB, free: 72.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.424e-06/1.34, allocations: 0 / 0.4906 GB, free: 72.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2691/1.609, allocations: 42.81 MB / 0.5324 GB, free: 33.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/1.61, allocations: 214 kB / 0.5326 GB, free: 33.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01105/1.621, allocations: 5.109 MB / 0.5376 GB, free: 28.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001015/1.622, allocations: 70.41 kB / 0.5377 GB, free: 28.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00371/1.625, allocations: 4.273 MB / 0.5419 GB, free: 23.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002296/1.628, allocations: 1.236 MB / 0.5431 GB, free: 22.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00175/1.63, allocations: 180 kB / 0.5432 GB, free: 22.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0009537/1.631, allocations: 0.6849 MB / 0.5439 GB, free: 21.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/1.642, allocations: 4.581 MB / 0.5484 GB, free: 17.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0144/1.657, allocations: 9.502 MB / 0.5577 GB, free: 5.305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2638/1.921, allocations: 6.453 MB / 0.564 GB, free: 110.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001786/1.921, allocations: 53.16 kB / 0.564 GB, free: 110.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.07655/1.997, allocations: 18.71 MB / 0.5823 GB, free: 105.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/1.998, allocations: 78.72 kB / 0.5824 GB, free: 105.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003367/1.998, allocations: 174.5 kB / 0.5825 GB, free: 105.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04133/2.039, allocations: 5.84 MB / 0.5882 GB, free: 103.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01334/2.053, allocations: 2.047 MB / 0.5902 GB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05268/2.105, allocations: 24.91 MB / 0.6146 GB, free: 79.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/2.116, allocations: 0.564 MB / 0.6151 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001986/2.118, allocations: 0.5011 MB / 0.6156 GB, free: 78.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 788 * 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 (1054): * Single equations (assignments): 1046 * 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.008067/2.126, allocations: 3.032 MB / 0.6186 GB, free: 75.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/2.128, allocations: 0.4992 MB / 0.6191 GB, free: 75.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.055/2.183, allocations: 12.61 MB / 0.6314 GB, free: 62.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001189/2.183, allocations: 57.47 kB / 0.6314 GB, free: 62.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.269e-05/2.183, allocations: 8.938 kB / 0.6314 GB, free: 62.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.471e-05/2.183, allocations: 13.59 kB / 0.6314 GB, free: 62.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08383/2.267, allocations: 24.33 MB / 0.6552 GB, free: 37.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.315e-05/2.267, allocations: 4 kB / 0.6552 GB, free: 37.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005798/2.273, allocations: 0.5778 MB / 0.6558 GB, free: 37.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03606/2.309, allocations: 4.843 MB / 0.6605 GB, free: 32.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009262/2.31, allocations: 61.14 kB / 0.6606 GB, free: 32.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04364/2.354, allocations: 20.21 MB / 0.6803 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/2.354, allocations: 14.27 kB / 0.6803 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3175/2.671, allocations: 17.69 MB / 0.6976 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004961/2.676, allocations: 1.243 MB / 0.6988 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002352/2.679, allocations: 56.48 kB / 0.6989 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006825/2.686, allocations: 256.2 kB / 0.6991 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001499/2.687, allocations: 194.2 kB / 0.6993 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005106/2.688, allocations: 82.31 kB / 0.6994 GB, free: 118.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01067/2.698, allocations: 3.59 MB / 0.7029 GB, free: 118.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.698, allocations: 0 / 0.7029 GB, free: 118.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01173/2.71, allocations: 1.726 MB / 0.7046 GB, free: 118.3 MB / 378.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.001512/2.712, allocations: 222.5 kB / 0.7048 GB, free: 118.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02537/2.737, allocations: 10.53 MB / 0.7151 GB, free: 114.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/2.737, allocations: 5.625 kB / 0.7151 GB, free: 114.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009688/2.747, allocations: 4.003 MB / 0.719 GB, free: 112.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005122/2.752, allocations: 0.5717 MB / 0.7195 GB, free: 112.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03994/2.792, allocations: 19.02 MB / 0.7381 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009766/2.802, allocations: 4.746 MB / 0.7427 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003285/2.805, allocations: 421.8 kB / 0.7431 GB, free: 96.89 MB / 378.7 MB Notification: Performance of SimCode: time 1.432e-06/2.805, allocations: 4 kB / 0.7431 GB, free: 96.89 MB / 378.7 MB Notification: Performance of Templates: time 0.555/3.36, allocations: 142.9 MB / 0.8827 GB, free: 83.23 MB / 378.7 MB