Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.692/2.692, allocations: 270 MB / 282.6 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.828e-05/3.832e-05, allocations: 4 kB / 347.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4157, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2063/0.6221, allocations: 108.4 MB / 0.5052 GB, free: 14.15 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6224, allocations: 75.97 kB / 0.5053 GB, free: 14.07 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8064/1.429, allocations: 96.44 MB / 0.5994 GB, free: 40.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.429, allocations: 0 / 0.5994 GB, free: 40.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003191/1.429, allocations: 88 kB / 0.5995 GB, free: 40.91 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01804/1.447, allocations: 4.608 MB / 0.604 GB, free: 36.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.447, allocations: 8.031 kB / 0.604 GB, free: 36.22 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003884/1.451, allocations: 0.9083 MB / 0.6049 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0492/1.5, allocations: 6.733 MB / 0.6115 GB, free: 28.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.022/1.523, allocations: 6 MB / 0.6173 GB, free: 22.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003923/1.523, allocations: 324.6 kB / 0.6177 GB, free: 22.17 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002398/1.525, allocations: 447.6 kB / 0.6181 GB, free: 21.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03241/1.558, allocations: 10.93 MB / 0.6288 GB, free: 9.773 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003097/1.558, allocations: 71.39 kB / 0.6288 GB, free: 9.703 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/1.56, allocations: 207.9 kB / 0.629 GB, free: 9.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002169/1.562, allocations: 1.022 MB / 0.63 GB, free: 8.477 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0284/1.591, allocations: 8.989 MB / 0.6388 GB, free: 15.48 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09186/1.682, allocations: 47.63 MB / 0.6853 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02555/1.708, allocations: 4.087 MB / 0.6893 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004751/1.713, allocations: 1.805 MB / 0.6911 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02023/1.733, allocations: 7.475 MB / 0.6984 GB, free: 424 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/1.733, allocations: 55.56 kB / 0.6984 GB, free: 356 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 5.951e-06/1.733, allocations: 0 / 0.6984 GB, free: 356 kB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.5413/2.275, allocations: 25.57 MB / 0.7234 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/2.275, allocations: 204.7 kB / 0.7236 GB, free: 128 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009891/2.285, allocations: 3.754 MB / 0.7273 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007911/2.285, allocations: 55.89 kB / 0.7273 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003205/2.289, allocations: 3.119 MB / 0.7304 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00164/2.29, allocations: 0.8836 MB / 0.7312 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009899/2.291, allocations: 122.5 kB / 0.7313 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004275/2.292, allocations: 0.5775 MB / 0.7319 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007498/2.299, allocations: 3.364 MB / 0.7352 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/2.31, allocations: 6.953 MB / 0.742 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/2.32, allocations: 4.748 MB / 0.7466 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001365/2.32, allocations: 35.62 kB / 0.7467 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.063/2.383, allocations: 14.84 MB / 0.7611 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/2.384, allocations: 62.48 kB / 0.7612 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002093/2.384, allocations: 129.5 kB / 0.7613 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04169/2.426, allocations: 5.926 MB / 0.7671 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009775/2.435, allocations: 1.437 MB / 0.7685 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05251/2.488, allocations: 24.97 MB / 0.7929 GB, free: 99.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009285/2.497, allocations: 393.5 kB / 0.7933 GB, free: 99.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/2.499, allocations: 378.1 kB / 0.7936 GB, free: 99.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (746): * Single equations (assignments): 741 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002176/2.501, allocations: 0.5838 MB / 0.7942 GB, free: 98.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001416/2.503, allocations: 398.5 kB / 0.7946 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04969/2.552, allocations: 10.75 MB / 0.8051 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.936e-05/2.553, allocations: 33.12 kB / 0.8051 GB, free: 90.48 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/2.553, allocations: 12 kB / 0.8051 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.056e-05/2.553, allocations: 9.797 kB / 0.8051 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08355/2.636, allocations: 20.13 MB / 0.8248 GB, free: 70.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.153e-05/2.636, allocations: 4 kB / 0.8248 GB, free: 70.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005122/2.641, allocations: 383.4 kB / 0.8252 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05227/2.694, allocations: 4.997 MB / 0.8301 GB, free: 65.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007212/2.695, allocations: 41.17 kB / 0.8301 GB, free: 65.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04264/2.737, allocations: 20.13 MB / 0.8498 GB, free: 44.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.219e-05/2.737, allocations: 15.89 kB / 0.8498 GB, free: 44.94 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05256/2.79, allocations: 14.5 MB / 0.8639 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/2.791, allocations: 447.8 kB / 0.8644 GB, free: 29.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/2.793, allocations: 45.16 kB / 0.8644 GB, free: 29.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005353/2.799, allocations: 167.8 kB / 0.8646 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001143/2.8, allocations: 157 kB / 0.8647 GB, free: 29.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003533/2.8, allocations: 65.39 kB / 0.8648 GB, free: 29.29 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006825/2.807, allocations: 2.631 MB / 0.8673 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.52e-07/2.807, allocations: 0 / 0.8673 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008806/2.816, allocations: 1.33 MB / 0.8686 GB, free: 25.32 MB / 0.5105 GB 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05427/2.87, allocations: 16.31 MB / 0.8846 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01752/2.888, allocations: 7.659 MB / 0.892 GB, free: 1.195 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/2.888, allocations: 0 / 0.892 GB, free: 1.195 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007696/2.896, allocations: 3.055 MB / 0.895 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004796/2.901, allocations: 487.8 kB / 0.8955 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04209/2.943, allocations: 11.89 MB / 0.9071 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4267/3.369, allocations: 3.602 MB / 0.9106 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005661/3.375, allocations: 2.111 MB / 0.9127 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of SimCode: time 2.474e-06/3.375, allocations: 3.781 kB / 0.9127 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.785/8.16, allocations: 131.2 MB / 1.041 GB, free: 67.87 MB / 0.5417 GB