Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.25/2.25, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.829e-05/4.833e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4529/0.5704, allocations: 92.39 MB / 414.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.5707, allocations: 79.11 kB / 414.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8652/1.436, allocations: 128.5 MB / 0.5301 GB, free: 94.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.436, allocations: 0 / 0.5301 GB, free: 94.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004058/1.436, allocations: 112.4 kB / 0.5302 GB, free: 94.94 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: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02759/1.464, allocations: 6.242 MB / 0.5363 GB, free: 92.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.464, allocations: 13.45 kB / 0.5364 GB, free: 92.51 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005821/1.47, allocations: 1.091 MB / 0.5374 GB, free: 92.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04927/1.519, allocations: 6.457 MB / 0.5437 GB, free: 91.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02967/1.549, allocations: 8.562 MB / 0.5521 GB, free: 91.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006571/1.55, allocations: 436.1 kB / 0.5525 GB, free: 91.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004297/1.554, allocations: 0.5814 MB / 0.5531 GB, free: 91.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05188/1.606, allocations: 15.24 MB / 0.5679 GB, free: 85.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000439/1.606, allocations: 69.39 kB / 0.568 GB, free: 85.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00373/1.61, allocations: 261.9 kB / 0.5683 GB, free: 84.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004373/1.615, allocations: 1.683 MB / 0.5699 GB, free: 84.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04552/1.66, allocations: 14.46 MB / 0.584 GB, free: 71.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1205/1.781, allocations: 56.25 MB / 0.639 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0295/1.81, allocations: 7.939 MB / 0.6467 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009818/1.82, allocations: 4.688 MB / 0.6513 GB, free: 1.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3109/2.131, allocations: 2.207 MB / 0.6535 GB, free: 85.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.298e-05/2.131, allocations: 65.86 kB / 0.6535 GB, free: 85.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 9.447e-06/2.131, allocations: 0 / 0.6535 GB, free: 85.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1631/2.294, allocations: 33.38 MB / 0.6861 GB, free: 84.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/2.294, allocations: 116.2 kB / 0.6862 GB, free: 84.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009733/2.304, allocations: 3.817 MB / 0.69 GB, free: 83.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001291/2.306, allocations: 86.78 kB / 0.69 GB, free: 83.83 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003753/2.309, allocations: 3.784 MB / 0.6937 GB, free: 81.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003114/2.313, allocations: 1.487 MB / 0.6952 GB, free: 80.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/2.314, allocations: 150.8 kB / 0.6953 GB, free: 80 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006846/2.314, allocations: 0.6391 MB / 0.696 GB, free: 79.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009907/2.324, allocations: 3.824 MB / 0.6997 GB, free: 78.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01322/2.338, allocations: 7.566 MB / 0.7071 GB, free: 72.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/2.351, allocations: 5.406 MB / 0.7124 GB, free: 70.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001467/2.351, allocations: 38.81 kB / 0.7124 GB, free: 70.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04367/2.395, allocations: 13.41 MB / 0.7255 GB, free: 66.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/2.395, allocations: 62.81 kB / 0.7256 GB, free: 66.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/2.395, allocations: 130.8 kB / 0.7257 GB, free: 66.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01337/2.408, allocations: 2.626 MB / 0.7282 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01402/2.422, allocations: 1.945 MB / 0.7301 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02928/2.452, allocations: 13.61 MB / 0.7434 GB, free: 53.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009905/2.462, allocations: 477.1 kB / 0.7439 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/2.464, allocations: 429.1 kB / 0.7443 GB, free: 52.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (920): * Single equations (assignments): 912 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002322/2.466, allocations: 0.6683 MB / 0.7449 GB, free: 52.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001398/2.468, allocations: 468.6 kB / 0.7454 GB, free: 51.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03276/2.5, allocations: 10.36 MB / 0.7555 GB, free: 43.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001276/2.501, allocations: 63.7 kB / 0.7556 GB, free: 43.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/2.501, allocations: 8 kB / 0.7556 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001111/2.501, allocations: 19.83 kB / 0.7556 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06052/2.561, allocations: 20.96 MB / 0.7761 GB, free: 25.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.429e-05/2.561, allocations: 12 kB / 0.7761 GB, free: 25.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007373/2.569, allocations: 0.7839 MB / 0.7768 GB, free: 24.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01294/2.582, allocations: 2.408 MB / 0.7792 GB, free: 21.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001275/2.583, allocations: 77.25 kB / 0.7793 GB, free: 21.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02716/2.61, allocations: 12.37 MB / 0.7914 GB, free: 9.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.564e-05/2.61, allocations: 19.12 kB / 0.7914 GB, free: 9.164 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04385/2.654, allocations: 16.13 MB / 0.8071 GB, free: 8.344 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005327/2.66, allocations: 1.159 MB / 0.8083 GB, free: 7.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002235/2.662, allocations: 72 kB / 0.8083 GB, free: 7.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006507/2.668, allocations: 299.6 kB / 0.8086 GB, free: 6.797 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001787/2.67, allocations: 261.9 kB / 0.8089 GB, free: 6.539 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006972/2.671, allocations: 116.9 kB / 0.809 GB, free: 6.426 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008032/2.679, allocations: 2.671 MB / 0.8116 GB, free: 3.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/2.679, allocations: 0 / 0.8116 GB, free: 3.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.3316/3.011, allocations: 1.642 MB / 0.8132 GB, free: 92.26 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05042/3.061, allocations: 19.35 MB / 0.8321 GB, free: 86.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02289/3.084, allocations: 9.366 MB / 0.8412 GB, free: 86.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/3.084, allocations: 5.844 kB / 0.8412 GB, free: 86.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01096/3.095, allocations: 4.134 MB / 0.8453 GB, free: 86.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006339/3.102, allocations: 0.6335 MB / 0.8459 GB, free: 86.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05105/3.153, allocations: 16 MB / 0.8615 GB, free: 80.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01134/3.164, allocations: 4.754 MB / 0.8662 GB, free: 78.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008575/3.173, allocations: 2.964 MB / 0.869 GB, free: 76.54 MB / 442.7 MB Notification: Performance of SimCode: time 2.535e-06/3.173, allocations: 0 / 0.869 GB, free: 76.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.386/8.559, allocations: 172.1 MB / 1.037 GB, free: 96.68 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat