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 2.158/2.158, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.776e-05/2.787e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4999/0.6008, allocations: 92.5 MB / 408.8 MB, free: 384 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6011, allocations: 81.03 kB / 408.9 MB, free: 340 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8044/1.406, allocations: 114.4 MB / 0.511 GB, free: 90.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.406, allocations: 0 / 0.511 GB, free: 90.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002257/1.406, allocations: 83.84 kB / 0.5111 GB, free: 90.41 MB / 410.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.01736/1.423, allocations: 4.443 MB / 0.5154 GB, free: 88.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/1.423, allocations: 10.42 kB / 0.5155 GB, free: 88.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02825/1.452, allocations: 3.659 MB / 0.519 GB, free: 88.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01776/1.469, allocations: 4.799 MB / 0.5237 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/1.47, allocations: 158.7 kB / 0.5239 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003261/1.473, allocations: 291.5 kB / 0.5241 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02073/1.494, allocations: 8.447 MB / 0.5324 GB, free: 86.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03359/1.528, allocations: 11.21 MB / 0.5433 GB, free: 81.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002885/1.528, allocations: 27.53 kB / 0.5434 GB, free: 81.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00298/1.531, allocations: 22.61 kB / 0.5434 GB, free: 81.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003483/1.534, allocations: 1.392 MB / 0.5447 GB, free: 81.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08467/1.619, allocations: 39.72 MB / 0.5835 GB, free: 46.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007439/1.627, allocations: 4.37 MB / 0.5878 GB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00469/1.631, allocations: 2.368 MB / 0.5901 GB, free: 39.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/1.633, allocations: 1.318 MB / 0.5914 GB, free: 37.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/1.633, allocations: 52.56 kB / 0.5915 GB, free: 37.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=252): time 7.585e-06/1.633, allocations: 96 / 0.5915 GB, free: 37.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=271): time 0.07091/1.704, allocations: 18.88 MB / 0.6099 GB, free: 18.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/1.704, allocations: 103 kB / 0.61 GB, free: 18.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006111/1.71, allocations: 2.647 MB / 0.6126 GB, free: 15.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006649/1.711, allocations: 25.7 kB / 0.6126 GB, free: 15.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002722/1.714, allocations: 3.362 MB / 0.6159 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001542/1.715, allocations: 0.9633 MB / 0.6168 GB, free: 11.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008078/1.716, allocations: 4 kB / 0.6168 GB, free: 11.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005331/1.717, allocations: 0.5916 MB / 0.6174 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005583/1.722, allocations: 2.395 MB / 0.6197 GB, free: 8.301 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008089/1.73, allocations: 6.02 MB / 0.6256 GB, free: 476 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.741, allocations: 3.822 MB / 0.6294 GB, free: 12.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/1.741, allocations: 36 kB / 0.6294 GB, free: 12.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02959/1.77, allocations: 8.514 MB / 0.6377 GB, free: 4.086 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/1.771, allocations: 60 kB / 0.6378 GB, free: 4.027 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002427/1.771, allocations: 128 kB / 0.6379 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006013/1.777, allocations: 1.076 MB / 0.6389 GB, free: 2.824 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01007/1.787, allocations: 1.482 MB / 0.6404 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3489/2.136, allocations: 4.869 MB / 0.6451 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009727/2.146, allocations: 213.9 kB / 0.6453 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002275/2.148, allocations: 379.4 kB / 0.6457 GB, free: 89.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * 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 (797): * Single equations (assignments): 790 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003044/2.151, allocations: 437.6 kB / 0.6461 GB, free: 89.05 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02167/2.173, allocations: 4.657 MB / 0.6507 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001527/2.174, allocations: 308.6 kB / 0.651 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/2.193, allocations: 5.19 MB / 0.656 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000159/2.193, allocations: 50.05 kB / 0.6561 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/2.193, allocations: 3.062 kB / 0.6561 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.851e-05/2.193, allocations: 17.53 kB / 0.6561 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03571/2.229, allocations: 12.02 MB / 0.6678 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-05/2.229, allocations: 14.91 kB / 0.6678 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003919/2.233, allocations: 431.2 kB / 0.6683 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004997/2.238, allocations: 0.8802 MB / 0.6691 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006451/2.239, allocations: 19.5 kB / 0.6691 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009025/2.248, allocations: 4.221 MB / 0.6733 GB, free: 86.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.92e-05/2.248, allocations: 18.72 kB / 0.6733 GB, free: 86.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01991/2.268, allocations: 8.97 MB / 0.682 GB, free: 82.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002748/2.271, allocations: 0.7218 MB / 0.6827 GB, free: 81.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/2.272, allocations: 17.09 kB / 0.6828 GB, free: 81.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003366/2.275, allocations: 110.6 kB / 0.6829 GB, free: 81.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/2.276, allocations: 173.7 kB / 0.683 GB, free: 81.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002722/2.277, allocations: 82.97 kB / 0.6831 GB, free: 81.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004266/2.281, allocations: 1.728 MB / 0.6848 GB, free: 81.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.31e-07/2.281, allocations: 0 / 0.6848 GB, free: 81.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008465/2.29, allocations: 0.9736 MB / 0.6857 GB, free: 81.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (212): * Single equations (assignments): 205 * 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.02024/2.31, allocations: 12.6 MB / 0.6981 GB, free: 73.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0128/2.323, allocations: 5.812 MB / 0.7037 GB, free: 71.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/2.323, allocations: 0 / 0.7037 GB, free: 71.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005022/2.328, allocations: 2.181 MB / 0.7059 GB, free: 70.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/2.331, allocations: 282.1 kB / 0.7061 GB, free: 70.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03845/2.369, allocations: 11.74 MB / 0.7176 GB, free: 66.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009744/2.379, allocations: 3.94 MB / 0.7214 GB, free: 64.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006111/2.385, allocations: 2.251 MB / 0.7236 GB, free: 61.93 MB / 426.7 MB Notification: Performance of SimCode: time 2.164e-06/2.385, allocations: 0 / 0.7236 GB, free: 61.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.543/6.929, allocations: 110.6 MB / 0.8317 GB, free: 101.1 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