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_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.101e-05, allocations: 4 kB / 228.1 MB, free: 7.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08237/0.08242, allocations: 38.77 MB / 266.9 MB, free: 1.113 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2975/0.3799, allocations: 43.77 MB / 310.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03209/0.4121, allocations: 10.33 MB / 321 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01469/0.4268, allocations: 233.4 kB / 321.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.4375, allocations: 2.289 MB / 323.5 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03212/0.4697, allocations: 6.26 MB / 329.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006097/0.4759, allocations: 0.8675 MB / 330.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.05079/0.5267, allocations: 17.03 MB / 347.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01282/0.5396, allocations: 5.979 MB / 353.6 MB, free: 9.852 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003182/0.5428, allocations: 1.06 MB / 354.7 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004303/0.5472, allocations: 1.621 MB / 356.3 MB, free: 7.164 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.5515, allocations: 1.159 MB / 357.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001667/0.5532, allocations: 172 kB / 357.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0036/0.5568, allocations: 1.944 MB / 359.6 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.5588, allocations: 340 kB / 359.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.5712, allocations: 7.579 MB / 367.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5713, allocations: 0 / 367.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5713, allocations: 0 / 367.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002921/0.5716, allocations: 4 kB / 367.5 MB, free: 11.95 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01598/0.5876, allocations: 4.851 MB / 372.4 MB, free: 7.031 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.5876, allocations: 12.03 kB / 372.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1186/0.7063, allocations: 11.62 MB / 384 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/0.7201, allocations: 4.23 MB / 388.2 MB, free: 7.086 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004058/0.7206, allocations: 311.9 kB / 388.5 MB, free: 6.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001983/0.7226, allocations: 435.6 kB / 389 MB, free: 6.352 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03806/0.7607, allocations: 12.47 MB / 401.4 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002266/0.7609, allocations: 43.59 kB / 401.5 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001056/0.762, allocations: 191.9 kB / 401.7 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005321/0.7674, allocations: 1.972 MB / 403.6 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03771/0.8051, allocations: 10.52 MB / 414.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3333/1.139, allocations: 44.19 MB / 458.3 MB, free: 99.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0225/1.161, allocations: 4.837 MB / 463.2 MB, free: 99.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/1.179, allocations: 7.117 MB / 470.3 MB, free: 95.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/1.179, allocations: 61.77 kB / 470.4 MB, free: 95.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 5.831e-06/1.179, allocations: 0 / 470.4 MB, free: 95.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=223): time 0.1147/1.294, allocations: 19.55 MB / 489.9 MB, free: 84.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/1.294, allocations: 212 kB / 490.1 MB, free: 84.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008794/1.303, allocations: 4.212 MB / 494.3 MB, free: 80.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004975/1.304, allocations: 62.48 kB / 494.4 MB, free: 80.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/1.306, allocations: 3.424 MB / 497.8 MB, free: 76.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/1.308, allocations: 0.8386 MB / 498.6 MB, free: 75.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006461/1.308, allocations: 128.5 kB / 498.8 MB, free: 75.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003962/1.309, allocations: 0.5766 MB / 499.4 MB, free: 75.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005473/1.314, allocations: 2.195 MB / 0.4898 GB, free: 72.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00767/1.322, allocations: 5.909 MB / 0.4956 GB, free: 65.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007885/1.33, allocations: 3.545 MB / 0.499 GB, free: 61.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/1.33, allocations: 36 kB / 0.4991 GB, free: 61.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.02514/1.355, allocations: 8.801 MB / 0.5077 GB, free: 52.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.803e-05/1.355, allocations: 60 kB / 0.5077 GB, free: 52.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/1.356, allocations: 132 kB / 0.5078 GB, free: 52.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006476/1.362, allocations: 1.236 MB / 0.509 GB, free: 51.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008263/1.37, allocations: 1.41 MB / 0.5104 GB, free: 50.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/1.388, allocations: 7.737 MB / 0.518 GB, free: 42.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006783/1.394, allocations: 351.4 kB / 0.5183 GB, free: 41.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/1.396, allocations: 379.7 kB / 0.5187 GB, free: 41.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * Number of states: 0 () * Number of discrete variables: 43 (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.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 (763): * Single equations (assignments): 759 * 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.005691/1.401, allocations: 2.437 MB / 0.5211 GB, free: 39.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/1.402, allocations: 410.7 kB / 0.5214 GB, free: 38.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/1.415, allocations: 3.879 MB / 0.5252 GB, free: 34.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.556e-05/1.415, allocations: 24 kB / 0.5253 GB, free: 34.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/1.415, allocations: 8 kB / 0.5253 GB, free: 34.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-05/1.415, allocations: 19.91 kB / 0.5253 GB, free: 34.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03013/1.445, allocations: 10.18 MB / 0.5352 GB, free: 24.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.822e-05/1.445, allocations: 4.594 kB / 0.5352 GB, free: 24.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003174/1.449, allocations: 355.4 kB / 0.5356 GB, free: 24.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00595/1.455, allocations: 0.9801 MB / 0.5365 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004517/1.455, allocations: 43.98 kB / 0.5366 GB, free: 22.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/1.47, allocations: 6.429 MB / 0.5428 GB, free: 16.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.47, allocations: 12 kB / 0.5429 GB, free: 16.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01754/1.487, allocations: 7.214 MB / 0.5499 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.49, allocations: 0.7377 MB / 0.5506 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.491, allocations: 43.94 kB / 0.5507 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003124/1.494, allocations: 116.8 kB / 0.5508 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004752/1.495, allocations: 145 kB / 0.5509 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000218/1.495, allocations: 60.7 kB / 0.551 GB, free: 7.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006359/1.501, allocations: 2.995 MB / 0.5539 GB, free: 4.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.501, allocations: 0 / 0.5539 GB, free: 4.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007267/1.509, allocations: 1.191 MB / 0.5551 GB, free: 3.633 MB / 362.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 (173): * Single equations (assignments): 169 * 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.001051/1.51, allocations: 227.5 kB / 0.5553 GB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01344/1.523, allocations: 5.456 MB / 0.5606 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.523, allocations: 0 / 0.5606 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004836/1.528, allocations: 1.831 MB / 0.5624 GB, free: 12.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/1.532, allocations: 0.513 MB / 0.5629 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2764/1.809, allocations: 13.49 MB / 0.5761 GB, free: 128.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009606/1.819, allocations: 3.984 MB / 0.58 GB, free: 127.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/1.821, allocations: 313.4 kB / 0.5803 GB, free: 127.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/1.821, allocations: 0.7656 kB / 0.5803 GB, free: 127.4 MB / 378.7 MB Notification: Performance of Templates: time 0.1665/1.987, allocations: 87.15 MB / 0.6654 GB, free: 56.41 MB / 378.7 MB