Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.008/2.008, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.215e-05/4.222e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4605/0.5738, allocations: 101.5 MB / 423.4 MB, free: 4.262 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5741, allocations: 74.72 kB / 423.4 MB, free: 4.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8127/1.387, allocations: 123.2 MB / 0.5338 GB, free: 98.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.387, allocations: 0 / 0.5338 GB, free: 98.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003365/1.387, allocations: 110.6 kB / 0.5339 GB, free: 98.85 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: 1928 * Number of variables: 1928 Notification: Performance of Generate backend data structure: time 0.02314/1.41, allocations: 5.641 MB / 0.5394 GB, free: 96.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/1.411, allocations: 7.188 kB / 0.5394 GB, free: 96.67 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004242/1.415, allocations: 0.9727 MB / 0.5404 GB, free: 96.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0352/1.45, allocations: 4.732 MB / 0.545 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02399/1.474, allocations: 6.612 MB / 0.5514 GB, free: 95.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006296/1.475, allocations: 448.7 kB / 0.5519 GB, free: 95.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003136/1.478, allocations: 0.5356 MB / 0.5524 GB, free: 95.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04414/1.522, allocations: 13.99 MB / 0.5661 GB, free: 88.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003315/1.522, allocations: 69.03 kB / 0.5661 GB, free: 88.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002423/1.525, allocations: 262.7 kB / 0.5664 GB, free: 87.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002878/1.528, allocations: 1.294 MB / 0.5676 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03673/1.565, allocations: 11.44 MB / 0.5788 GB, free: 77.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0928/1.657, allocations: 59.23 MB / 0.6366 GB, free: 16.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/1.678, allocations: 4.616 MB / 0.6412 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005458/1.684, allocations: 2.718 MB / 0.6438 GB, free: 9.355 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3385/2.022, allocations: 12.6 MB / 0.6561 GB, free: 89.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.658e-05/2.022, allocations: 61.03 kB / 0.6562 GB, free: 89.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.753e-06/2.022, allocations: 3.844 kB / 0.6562 GB, free: 89.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.1834/2.206, allocations: 32.81 MB / 0.6882 GB, free: 85.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.654e-05/2.206, allocations: 230 kB / 0.6884 GB, free: 85.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009675/2.215, allocations: 4.177 MB / 0.6925 GB, free: 84.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007417/2.216, allocations: 63.39 kB / 0.6926 GB, free: 84.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003347/2.22, allocations: 3.784 MB / 0.6963 GB, free: 81.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001607/2.221, allocations: 0.9161 MB / 0.6972 GB, free: 81.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009756/2.222, allocations: 142.8 kB / 0.6973 GB, free: 81.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004491/2.223, allocations: 0.6111 MB / 0.6979 GB, free: 80.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007465/2.23, allocations: 3.153 MB / 0.701 GB, free: 79.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/2.241, allocations: 7.371 MB / 0.7082 GB, free: 72.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/2.251, allocations: 4.739 MB / 0.7128 GB, free: 71.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001699/2.251, allocations: 42.88 kB / 0.7128 GB, free: 71.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.0447/2.296, allocations: 13.07 MB / 0.7256 GB, free: 67.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/2.296, allocations: 74.48 kB / 0.7257 GB, free: 67.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002093/2.296, allocations: 152 kB / 0.7258 GB, free: 67.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0207/2.317, allocations: 3.802 MB / 0.7295 GB, free: 66.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/2.327, allocations: 1.602 MB / 0.7311 GB, free: 65.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03945/2.367, allocations: 18.02 MB / 0.7487 GB, free: 50.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01/2.377, allocations: 487.7 kB / 0.7492 GB, free: 49.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00167/2.378, allocations: 427.4 kB / 0.7496 GB, free: 49.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (856): * Single equations (assignments): 852 * Array equations: 3 * 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 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001689/2.38, allocations: 0.6508 MB / 0.7502 GB, free: 48.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/2.381, allocations: 437.6 kB / 0.7506 GB, free: 48.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02997/2.411, allocations: 8.072 MB / 0.7585 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.853e-05/2.412, allocations: 25.59 kB / 0.7585 GB, free: 42.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.122e-05/2.412, allocations: 15.38 kB / 0.7585 GB, free: 42.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.834e-05/2.412, allocations: 14.03 kB / 0.7586 GB, free: 42.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05492/2.467, allocations: 17.38 MB / 0.7755 GB, free: 25.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-05/2.467, allocations: 4 kB / 0.7755 GB, free: 25.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003895/2.471, allocations: 383.4 kB / 0.7759 GB, free: 25.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02102/2.492, allocations: 3.852 MB / 0.7797 GB, free: 21.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006708/2.492, allocations: 36 kB / 0.7797 GB, free: 21.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03625/2.529, allocations: 16.46 MB / 0.7958 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/2.529, allocations: 0 / 0.7958 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04091/2.57, allocations: 12.53 MB / 0.808 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003797/2.573, allocations: 0.9443 MB / 0.8089 GB, free: 6.969 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001526/2.575, allocations: 40.5 kB / 0.809 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005394/2.58, allocations: 211.7 kB / 0.8092 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.582, allocations: 142.3 kB / 0.8093 GB, free: 6.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003559/2.582, allocations: 72.02 kB / 0.8094 GB, free: 6.523 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.322/2.904, allocations: 2.903 MB / 0.8122 GB, free: 96.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.904, allocations: 0.9375 kB / 0.8122 GB, free: 96.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01048/2.915, allocations: 1.455 MB / 0.8136 GB, free: 96.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.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): 163 * Array equations: 3 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04378/2.958, allocations: 13.44 MB / 0.8268 GB, free: 95.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01795/2.976, allocations: 7.497 MB / 0.8341 GB, free: 95.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/2.976, allocations: 3.469 kB / 0.8341 GB, free: 95.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006401/2.983, allocations: 2.879 MB / 0.8369 GB, free: 94.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/2.987, allocations: 487.1 kB / 0.8374 GB, free: 94.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05332/3.041, allocations: 13.04 MB / 0.8501 GB, free: 90.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/3.053, allocations: 4.21 MB / 0.8542 GB, free: 89.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00797/3.061, allocations: 2.524 MB / 0.8567 GB, free: 87.24 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/3.061, allocations: 4.625 kB / 0.8567 GB, free: 87.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.09/8.151, allocations: 128.3 MB / 0.982 GB, free: 92.72 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat