Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.783e-05/6.772e-05, allocations: 1.406 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4789/0.5867, allocations: 105.4 MB / 448 MB, free: 5.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.5871, allocations: 93.38 kB / 448.1 MB, free: 5.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.822/1.409, allocations: 112.7 MB / 0.5476 GB, free: 99.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.409, allocations: 0 / 0.5476 GB, free: 99.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003802/1.41, allocations: 107.4 kB / 0.5477 GB, free: 99.59 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.02008/1.43, allocations: 4.929 MB / 0.5526 GB, free: 97.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/1.43, allocations: 7.719 kB / 0.5526 GB, free: 97.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004764/1.434, allocations: 1.04 MB / 0.5536 GB, free: 97.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05109/1.486, allocations: 6.894 MB / 0.5603 GB, free: 97.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02452/1.51, allocations: 6.466 MB / 0.5666 GB, free: 96.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004844/1.511, allocations: 390.3 kB / 0.567 GB, free: 96.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002946/1.514, allocations: 0.5152 MB / 0.5675 GB, free: 96.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04012/1.554, allocations: 12.51 MB / 0.5797 GB, free: 92.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003407/1.554, allocations: 57.53 kB / 0.5798 GB, free: 92.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002144/1.556, allocations: 239.6 kB / 0.58 GB, free: 92.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/1.559, allocations: 1.057 MB / 0.581 GB, free: 92.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03376/1.592, allocations: 10.2 MB / 0.591 GB, free: 89.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07764/1.67, allocations: 50.17 MB / 0.64 GB, free: 45.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02176/1.692, allocations: 4.762 MB / 0.6447 GB, free: 41.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003915/1.696, allocations: 1.874 MB / 0.6465 GB, free: 39.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02292/1.719, allocations: 7.034 MB / 0.6534 GB, free: 32.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/1.719, allocations: 51.5 kB / 0.6534 GB, free: 32.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 6.562e-06/1.719, allocations: 0 / 0.6534 GB, free: 32.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.1074/1.826, allocations: 17.01 MB / 0.67 GB, free: 15.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/1.827, allocations: 205.9 kB / 0.6702 GB, free: 15 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009749/1.836, allocations: 3.88 MB / 0.674 GB, free: 11.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000557/1.837, allocations: 61.64 kB / 0.6741 GB, free: 11.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003258/1.84, allocations: 3.449 MB / 0.6774 GB, free: 7.598 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001352/1.842, allocations: 0.8475 MB / 0.6783 GB, free: 6.758 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008471/1.842, allocations: 124 kB / 0.6784 GB, free: 6.637 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004624/1.843, allocations: 0.5717 MB / 0.6789 GB, free: 6.055 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005468/1.848, allocations: 2.117 MB / 0.681 GB, free: 3.938 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3436/2.192, allocations: 5.821 MB / 0.6867 GB, free: 86.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/2.202, allocations: 3.516 MB / 0.6901 GB, free: 86.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002957/2.203, allocations: 37.31 kB / 0.6902 GB, free: 86.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02904/2.232, allocations: 8.166 MB / 0.6981 GB, free: 86.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002037/2.232, allocations: 61.62 kB / 0.6982 GB, free: 86.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002909/2.232, allocations: 131.7 kB / 0.6983 GB, free: 86.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006123/2.239, allocations: 1.031 MB / 0.6993 GB, free: 86.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009269/2.248, allocations: 1.422 MB / 0.7007 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/2.263, allocations: 6.881 MB / 0.7074 GB, free: 84.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007391/2.27, allocations: 339.2 kB / 0.7077 GB, free: 84.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001518/2.272, allocations: 385.5 kB / 0.7081 GB, free: 84.52 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.001591/2.273, allocations: 0.5906 MB / 0.7087 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009749/2.274, allocations: 406.5 kB / 0.7091 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/2.286, allocations: 3.614 MB / 0.7126 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.661e-05/2.287, allocations: 25.95 kB / 0.7126 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.025e-05/2.287, allocations: 8.75 kB / 0.7126 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.412e-05/2.287, allocations: 6.469 kB / 0.7126 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03077/2.317, allocations: 9.803 MB / 0.7222 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.372e-05/2.318, allocations: 13.23 kB / 0.7222 GB, free: 81.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003375/2.321, allocations: 356.5 kB / 0.7226 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004959/2.326, allocations: 0.7926 MB / 0.7233 GB, free: 81.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004632/2.326, allocations: 42.73 kB / 0.7234 GB, free: 81.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/2.339, allocations: 5.598 MB / 0.7289 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/2.339, allocations: 12.77 kB / 0.7289 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01701/2.356, allocations: 6.941 MB / 0.7356 GB, free: 74.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/2.358, allocations: 454.9 kB / 0.7361 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/2.359, allocations: 46.69 kB / 0.7361 GB, free: 74.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003902/2.363, allocations: 101.4 kB / 0.7362 GB, free: 74.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007907/2.364, allocations: 140.4 kB / 0.7364 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003141/2.365, allocations: 66.94 kB / 0.7364 GB, free: 74.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007307/2.372, allocations: 2.722 MB / 0.7391 GB, free: 73.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.372, allocations: 2.25 kB / 0.7391 GB, free: 73.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008815/2.381, allocations: 1.18 MB / 0.7402 GB, free: 73.05 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.01806/2.399, allocations: 8.904 MB / 0.7489 GB, free: 67.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01275/2.412, allocations: 5.119 MB / 0.7539 GB, free: 65.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/2.412, allocations: 3.656 kB / 0.7539 GB, free: 65.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004268/2.416, allocations: 1.742 MB / 0.7556 GB, free: 65.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004593/2.421, allocations: 0.513 MB / 0.7561 GB, free: 64.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0371/2.458, allocations: 11.28 MB / 0.7671 GB, free: 59.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008879/2.467, allocations: 3.975 MB / 0.771 GB, free: 56.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005734/2.473, allocations: 2.356 MB / 0.7733 GB, free: 54.44 MB / 442.7 MB Notification: Performance of SimCode: time 1.653e-06/2.473, allocations: 0 / 0.7733 GB, free: 54.44 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.028/7.501, allocations: 116.9 MB / 0.8875 GB, free: 94.71 MB / 458.7 MB