Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.921/1.921, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.302e-05/4.321e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1198, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4711/0.591, allocations: 92.95 MB / 414.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5913, allocations: 79.02 kB / 414.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7935/1.385, allocations: 116.6 MB / 0.519 GB, free: 97.15 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.385, allocations: 0 / 0.519 GB, free: 97.15 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003731/1.385, allocations: 90.78 kB / 0.5191 GB, free: 97.15 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.02247/1.408, allocations: 4.438 MB / 0.5234 GB, free: 95.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/1.408, allocations: 15.44 kB / 0.5234 GB, free: 95.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005487/1.413, allocations: 0.9563 MB / 0.5244 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03314/1.447, allocations: 3.658 MB / 0.5279 GB, free: 94.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01858/1.465, allocations: 4.812 MB / 0.5326 GB, free: 94.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005232/1.466, allocations: 381.2 kB / 0.533 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003519/1.469, allocations: 497 kB / 0.5335 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/1.507, allocations: 12.08 MB / 0.5453 GB, free: 92.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003594/1.507, allocations: 34.44 kB / 0.5453 GB, free: 92.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003115/1.51, allocations: 228.1 kB / 0.5455 GB, free: 91.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003394/1.514, allocations: 1.391 MB / 0.5469 GB, free: 91.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03209/1.546, allocations: 11.15 MB / 0.5578 GB, free: 88.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08929/1.635, allocations: 42.73 MB / 0.5995 GB, free: 54.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01485/1.65, allocations: 4.697 MB / 0.6041 GB, free: 50.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005125/1.655, allocations: 2.413 MB / 0.6065 GB, free: 48.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001585/1.657, allocations: 1.322 MB / 0.6077 GB, free: 46.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.657, allocations: 56.5 kB / 0.6078 GB, free: 46.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 7.454e-06/1.657, allocations: 0 / 0.6078 GB, free: 46.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.06517/1.722, allocations: 16.36 MB / 0.6238 GB, free: 30 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/1.722, allocations: 99.11 kB / 0.6239 GB, free: 29.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006704/1.729, allocations: 2.853 MB / 0.6267 GB, free: 27.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006001/1.73, allocations: 65.61 kB / 0.6267 GB, free: 26.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002577/1.732, allocations: 3.237 MB / 0.6299 GB, free: 23.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001525/1.734, allocations: 0.9731 MB / 0.6308 GB, free: 22.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000794/1.735, allocations: 120 kB / 0.6309 GB, free: 22.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005572/1.735, allocations: 0.575 MB / 0.6315 GB, free: 22.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006246/1.741, allocations: 2.406 MB / 0.6339 GB, free: 19.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008497/1.75, allocations: 5.765 MB / 0.6395 GB, free: 12.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008481/1.759, allocations: 3.753 MB / 0.6432 GB, free: 8.457 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/1.759, allocations: 32 kB / 0.6432 GB, free: 8.426 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.3836/2.142, allocations: 8.885 MB / 0.6519 GB, free: 81.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/2.142, allocations: 56.22 kB / 0.6519 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002189/2.143, allocations: 118.1 kB / 0.652 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006315/2.149, allocations: 1.064 MB / 0.6531 GB, free: 81.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/2.159, allocations: 1.383 MB / 0.6544 GB, free: 81.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0128/2.172, allocations: 5.074 MB / 0.6594 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006844/2.179, allocations: 328.5 kB / 0.6597 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001666/2.181, allocations: 350.9 kB / 0.66 GB, free: 80.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * Array equations: 6 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002251/2.183, allocations: 0.5554 MB / 0.6606 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008349/2.184, allocations: 318.9 kB / 0.6609 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/2.202, allocations: 5.31 MB / 0.666 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001494/2.202, allocations: 45.33 kB / 0.6661 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.109e-05/2.202, allocations: 7.234 kB / 0.6661 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-05/2.202, allocations: 15.81 kB / 0.6661 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03845/2.241, allocations: 13.28 MB / 0.6791 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-05/2.241, allocations: 11.31 kB / 0.6791 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00388/2.245, allocations: 418 kB / 0.6795 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005157/2.25, allocations: 0.894 MB / 0.6804 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005971/2.251, allocations: 52.8 kB / 0.6804 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009259/2.26, allocations: 4.41 MB / 0.6847 GB, free: 77.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.591e-05/2.26, allocations: 25.8 kB / 0.6847 GB, free: 77.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01934/2.279, allocations: 9.025 MB / 0.6936 GB, free: 74.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002758/2.282, allocations: 0.7305 MB / 0.6943 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009499/2.283, allocations: 53.39 kB / 0.6943 GB, free: 73.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/2.286, allocations: 142.7 kB / 0.6945 GB, free: 73.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008503/2.287, allocations: 178.3 kB / 0.6946 GB, free: 73.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/2.287, allocations: 73.88 kB / 0.6947 GB, free: 73.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004741/2.292, allocations: 1.948 MB / 0.6966 GB, free: 73.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.303e-06/2.292, allocations: 0 / 0.6966 GB, free: 73.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00745/2.3, allocations: 1.118 MB / 0.6977 GB, free: 72.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * Array equations: 6 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02112/2.321, allocations: 12.55 MB / 0.71 GB, free: 65.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01356/2.335, allocations: 5.935 MB / 0.7158 GB, free: 63.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/2.335, allocations: 6.656 kB / 0.7158 GB, free: 63.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005131/2.34, allocations: 2.218 MB / 0.7179 GB, free: 62.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/2.343, allocations: 391 kB / 0.7183 GB, free: 62.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03524/2.378, allocations: 11.94 MB / 0.73 GB, free: 58.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008274/2.387, allocations: 3.933 MB / 0.7338 GB, free: 56.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005498/2.392, allocations: 2.276 MB / 0.736 GB, free: 54.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.783e-06/2.392, allocations: 0 / 0.736 GB, free: 54.35 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.683/7.075, allocations: 111.9 MB / 0.8453 GB, free: 95.52 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat