Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.225/2.225, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.741e-05/3.751e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1069, allocations: 50.42 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.5967, allocations: 112 MB / 454.6 MB, free: 14.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5971, allocations: 94.39 kB / 454.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.023/1.62, allocations: 185.4 MB / 0.6251 GB, free: 67.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.62, allocations: 0 / 0.6251 GB, free: 67.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008204/1.621, allocations: 188 kB / 0.6253 GB, free: 66.94 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03838/1.66, allocations: 9.129 MB / 0.6342 GB, free: 57.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/1.66, allocations: 12.03 kB / 0.6342 GB, free: 57.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007009/1.667, allocations: 1.393 MB / 0.6356 GB, free: 56.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1194/1.786, allocations: 16.65 MB / 0.6519 GB, free: 39.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04676/1.833, allocations: 13.65 MB / 0.6652 GB, free: 25.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000776/1.834, allocations: 0.6376 MB / 0.6658 GB, free: 25.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004344/1.838, allocations: 0.8549 MB / 0.6666 GB, free: 24.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06163/1.9, allocations: 19.15 MB / 0.6854 GB, free: 3.895 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007318/1.901, allocations: 115 kB / 0.6855 GB, free: 3.781 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00393/1.905, allocations: 387.9 kB / 0.6858 GB, free: 3.402 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00358/1.908, allocations: 1.611 MB / 0.6874 GB, free: 1.785 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.401/2.309, allocations: 15.08 MB / 0.7021 GB, free: 66.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1611/2.47, allocations: 80.42 MB / 0.7807 GB, free: 19.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03718/2.508, allocations: 7.847 MB / 0.7883 GB, free: 17.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008401/2.516, allocations: 4 MB / 0.7922 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03259/2.549, allocations: 14.05 MB / 0.806 GB, free: 7.914 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/2.549, allocations: 71.52 kB / 0.806 GB, free: 7.848 MB / 442.7 MB Notification: Performance of pre-optimization done (n=310): time 7.614e-06/2.549, allocations: 0 / 0.806 GB, free: 7.848 MB / 442.7 MB Notification: Performance of matching and sorting (n=417): time 0.2579/2.807, allocations: 40.39 MB / 0.8455 GB, free: 13.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002599/2.807, allocations: 409.6 kB / 0.8459 GB, free: 12.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0205/2.828, allocations: 6.49 MB / 0.8522 GB, free: 6.855 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001307/2.829, allocations: 97.3 kB / 0.8523 GB, free: 6.758 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008941/2.838, allocations: 5.443 MB / 0.8576 GB, free: 1.793 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003986/2.842, allocations: 1.519 MB / 0.8591 GB, free: 456 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002177/2.844, allocations: 184 kB / 0.8593 GB, free: 272 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001708/2.846, allocations: 0.7111 MB / 0.86 GB, free: 15.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01679/2.863, allocations: 4.194 MB / 0.8641 GB, free: 11.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02426/2.887, allocations: 9.143 MB / 0.873 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3724/3.26, allocations: 6.197 MB / 0.879 GB, free: 104.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002025/3.26, allocations: 49.47 kB / 0.8791 GB, free: 104.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.06032/3.32, allocations: 16.65 MB / 0.8953 GB, free: 104.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/3.32, allocations: 83.64 kB / 0.8954 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/3.321, allocations: 173.8 kB / 0.8956 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02733/3.348, allocations: 4.895 MB / 0.9004 GB, free: 104.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01264/3.361, allocations: 1.973 MB / 0.9023 GB, free: 104.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06464/3.425, allocations: 26.45 MB / 0.9281 GB, free: 98.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01226/3.438, allocations: 0.5461 MB / 0.9287 GB, free: 97.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002302/3.44, allocations: 0.5094 MB / 0.9292 GB, free: 97.88 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * 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 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003748/3.444, allocations: 0.8125 MB / 0.93 GB, free: 97.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002108/3.446, allocations: 0.7061 MB / 0.9306 GB, free: 97.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04365/3.49, allocations: 11.33 MB / 0.9417 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.139e-05/3.49, allocations: 40.28 kB / 0.9417 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.95e-05/3.49, allocations: 24.56 kB / 0.9418 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.126e-05/3.49, allocations: 18.66 kB / 0.9418 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0831/3.573, allocations: 24.69 MB / 0.9659 GB, free: 83.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.892e-05/3.573, allocations: 8 kB / 0.9659 GB, free: 83.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005495/3.579, allocations: 0.5799 MB / 0.9665 GB, free: 83.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02659/3.605, allocations: 4.471 MB / 0.9708 GB, free: 79.95 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001119/3.606, allocations: 80.09 kB / 0.9709 GB, free: 79.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05859/3.665, allocations: 23.33 MB / 0.9937 GB, free: 60.12 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/3.665, allocations: 12.48 kB / 0.9937 GB, free: 60.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06856/3.734, allocations: 18.38 MB / 1.012 GB, free: 44.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007877/3.742, allocations: 1.398 MB / 1.013 GB, free: 42.74 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003905/3.746, allocations: 72.7 kB / 1.013 GB, free: 42.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01183/3.757, allocations: 260.5 kB / 1.013 GB, free: 42.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002701/3.76, allocations: 292.8 kB / 1.014 GB, free: 42.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001407/3.762, allocations: 118.4 kB / 1.014 GB, free: 42.21 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01918/3.781, allocations: 4.667 MB / 1.018 GB, free: 37.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.613e-06/3.781, allocations: 4 kB / 1.018 GB, free: 37.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02196/3.803, allocations: 2.224 MB / 1.02 GB, free: 35.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (288): * Single equations (assignments): 284 * 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 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07709/3.88, allocations: 20.31 MB / 1.04 GB, free: 15.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.4128/4.293, allocations: 10.44 MB / 1.051 GB, free: 107.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.596e-05/4.293, allocations: 2 kB / 1.051 GB, free: 107.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01628/4.309, allocations: 4.528 MB / 1.055 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01116/4.321, allocations: 1.052 MB / 1.056 GB, free: 107.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09798/4.419, allocations: 21.92 MB / 1.077 GB, free: 103.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01665/4.435, allocations: 6.571 MB / 1.084 GB, free: 102.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01026/4.446, allocations: 4.412 MB / 1.088 GB, free: 102.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.214e-06/4.446, allocations: 0 / 1.088 GB, free: 102.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.42/10.87, allocations: 208.1 MB / 1.291 GB, free: 97.02 MB / 490.7 MB