Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.021e-05, allocations: 2.5 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4944/0.6235, allocations: 101.7 MB / 444.3 MB, free: 8.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.6239, allocations: 81.45 kB / 444.4 MB, free: 8.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.986/1.61, allocations: 128.6 MB / 0.5595 GB, free: 94.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.61, allocations: 0 / 0.5595 GB, free: 94.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000508/1.611, allocations: 119.9 kB / 0.5596 GB, free: 94.39 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0344/1.645, allocations: 6.333 MB / 0.5658 GB, free: 91.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.213e-05/1.645, allocations: 11.09 kB / 0.5658 GB, free: 91.95 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007754/1.653, allocations: 1.314 MB / 0.5671 GB, free: 91.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0718/1.725, allocations: 8.315 MB / 0.5752 GB, free: 91.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02619/1.751, allocations: 6.954 MB / 0.582 GB, free: 90.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000615/1.752, allocations: 454.3 kB / 0.5824 GB, free: 90.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003848/1.755, allocations: 0.5937 MB / 0.583 GB, free: 90.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04646/1.802, allocations: 15.53 MB / 0.5982 GB, free: 84.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003994/1.802, allocations: 83.86 kB / 0.5983 GB, free: 84.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003345/1.806, allocations: 281.3 kB / 0.5985 GB, free: 83.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/1.809, allocations: 1.617 MB / 0.6001 GB, free: 83.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04012/1.85, allocations: 13.54 MB / 0.6133 GB, free: 72.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/1.955, allocations: 64.05 MB / 0.6759 GB, free: 8.668 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02309/1.978, allocations: 6.37 MB / 0.6821 GB, free: 2.059 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3434/2.321, allocations: 3.452 MB / 0.6855 GB, free: 86.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04243/2.364, allocations: 14.28 MB / 0.6994 GB, free: 82.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.278e-05/2.364, allocations: 61.36 kB / 0.6995 GB, free: 82.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.564e-06/2.364, allocations: 3.969 kB / 0.6995 GB, free: 82.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1695/2.533, allocations: 29.57 MB / 0.7284 GB, free: 79.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/2.534, allocations: 209.9 kB / 0.7286 GB, free: 78.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01631/2.55, allocations: 4.778 MB / 0.7332 GB, free: 77.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001158/2.551, allocations: 73.31 kB / 0.7333 GB, free: 77.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005196/2.556, allocations: 4.302 MB / 0.7375 GB, free: 73.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002813/2.559, allocations: 1.243 MB / 0.7387 GB, free: 73.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/2.561, allocations: 172.5 kB / 0.7389 GB, free: 72.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001096/2.562, allocations: 0.6871 MB / 0.7395 GB, free: 72.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01112/2.574, allocations: 4.464 MB / 0.7439 GB, free: 70.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/2.588, allocations: 9.375 MB / 0.7531 GB, free: 62.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/2.603, allocations: 6.398 MB / 0.7593 GB, free: 60.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002144/2.603, allocations: 49.75 kB / 0.7594 GB, free: 60.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.06985/2.673, allocations: 17.87 MB / 0.7768 GB, free: 52.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/2.673, allocations: 83.23 kB / 0.7769 GB, free: 52.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002957/2.673, allocations: 176.8 kB / 0.777 GB, free: 52.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03962/2.713, allocations: 5.63 MB / 0.7825 GB, free: 48.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0138/2.727, allocations: 2.049 MB / 0.7845 GB, free: 47.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04672/2.774, allocations: 23.63 MB / 0.8076 GB, free: 26.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/2.785, allocations: 0.5431 MB / 0.8082 GB, free: 26.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002381/2.788, allocations: 0.5041 MB / 0.8086 GB, free: 25.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (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.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 (1060): * Single equations (assignments): 1052 * 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.003617/2.791, allocations: 0.754 MB / 0.8094 GB, free: 24.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/2.793, allocations: 0.4927 MB / 0.8099 GB, free: 24.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0537/2.846, allocations: 12.27 MB / 0.8218 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/2.847, allocations: 60.92 kB / 0.8219 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/2.847, allocations: 8 kB / 0.8219 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-05/2.847, allocations: 11.95 kB / 0.8219 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0891/2.936, allocations: 23.84 MB / 0.8452 GB, free: 4.668 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-05/2.936, allocations: 4 kB / 0.8452 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006099/2.942, allocations: 0.5718 MB / 0.8458 GB, free: 4.094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4458/3.388, allocations: 4.635 MB / 0.8503 GB, free: 88.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009229/3.389, allocations: 56.42 kB / 0.8503 GB, free: 88.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04256/3.431, allocations: 18.93 MB / 0.8688 GB, free: 86.08 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/3.432, allocations: 8.531 kB / 0.8688 GB, free: 86.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05835/3.49, allocations: 17.26 MB / 0.8857 GB, free: 82.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/3.492, allocations: 0.5325 MB / 0.8862 GB, free: 82.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002412/3.494, allocations: 55.22 kB / 0.8863 GB, free: 82.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006549/3.501, allocations: 248 kB / 0.8865 GB, free: 82.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/3.503, allocations: 192.4 kB / 0.8867 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000646/3.503, allocations: 79.92 kB / 0.8868 GB, free: 82.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008857/3.512, allocations: 3.311 MB / 0.89 GB, free: 81.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.31e-07/3.512, allocations: 2.844 kB / 0.89 GB, free: 81.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01205/3.524, allocations: 1.703 MB / 0.8917 GB, free: 80.97 MB / 458.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.05942/3.584, allocations: 18.98 MB / 0.9102 GB, free: 72.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02298/3.607, allocations: 10.07 MB / 0.92 GB, free: 69.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/3.607, allocations: 0 / 0.92 GB, free: 69.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009163/3.616, allocations: 3.874 MB / 0.9238 GB, free: 67.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005528/3.622, allocations: 0.5771 MB / 0.9244 GB, free: 67.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05134/3.673, allocations: 16.22 MB / 0.9402 GB, free: 58.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/3.684, allocations: 4.759 MB / 0.9449 GB, free: 55.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007991/3.692, allocations: 2.969 MB / 0.9478 GB, free: 52.62 MB / 458.7 MB Notification: Performance of SimCode: time 2.013e-06/3.692, allocations: 0 / 0.9478 GB, free: 52.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.981/9.674, allocations: 179 MB / 1.123 GB, free: 45.84 MB / 474.7 MB