Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.729/2.729, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.94e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3904, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.6189, allocations: 107.7 MB / 462.1 MB, free: 3.371 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.6193, allocations: 71.97 kB / 462.2 MB, free: 3.301 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9044/1.524, allocations: 120.7 MB / 0.5693 GB, free: 11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.524, allocations: 0 / 0.5693 GB, free: 11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004132/1.524, allocations: 104 kB / 0.5694 GB, free: 10.89 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: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.02782/1.552, allocations: 5.638 MB / 0.5749 GB, free: 5.188 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/1.552, allocations: 12.03 kB / 0.5749 GB, free: 5.176 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04257/1.595, allocations: 4.723 MB / 0.5795 GB, free: 448 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.037/1.632, allocations: 6.626 MB / 0.586 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00087/1.633, allocations: 260.8 kB / 0.5862 GB, free: 9.488 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00401/1.637, allocations: 323.9 kB / 0.5865 GB, free: 9.172 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04984/1.687, allocations: 8.46 MB / 0.5948 GB, free: 0.707 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04139/1.728, allocations: 12.05 MB / 0.6065 GB, free: 3.531 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004067/1.729, allocations: 63.41 kB / 0.6066 GB, free: 3.469 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002836/1.731, allocations: 36 kB / 0.6066 GB, free: 3.434 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003963/1.735, allocations: 1.294 MB / 0.6079 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4862/2.222, allocations: 57.54 MB / 0.6641 GB, free: 53.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008264/2.23, allocations: 3.915 MB / 0.6679 GB, free: 53.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00566/2.236, allocations: 2.633 MB / 0.6705 GB, free: 53.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02863/2.264, allocations: 11.73 MB / 0.6819 GB, free: 49.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/2.264, allocations: 56.41 kB / 0.682 GB, free: 49.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=191): time 6.973e-06/2.265, allocations: 3.094 kB / 0.682 GB, free: 49.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=242): time 0.1546/2.419, allocations: 33.54 MB / 0.7148 GB, free: 40.79 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/2.419, allocations: 233 kB / 0.715 GB, free: 40.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00859/2.428, allocations: 3.657 MB / 0.7185 GB, free: 39.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008122/2.429, allocations: 25.7 kB / 0.7186 GB, free: 39.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004026/2.433, allocations: 3.958 MB / 0.7224 GB, free: 36.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/2.434, allocations: 0.8838 MB / 0.7233 GB, free: 35.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/2.436, allocations: 0 / 0.7233 GB, free: 35.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005549/2.436, allocations: 0.6168 MB / 0.7239 GB, free: 35.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008036/2.444, allocations: 3.058 MB / 0.7269 GB, free: 34.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/2.455, allocations: 7.434 MB / 0.7341 GB, free: 27.05 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.467, allocations: 4.655 MB / 0.7387 GB, free: 24.13 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001892/2.467, allocations: 48 kB / 0.7387 GB, free: 24.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=965) (initialization): time 0.05035/2.517, allocations: 12.81 MB / 0.7512 GB, free: 13.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/2.517, allocations: 72 kB / 0.7513 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002647/2.518, allocations: 164.2 kB / 0.7515 GB, free: 13.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02461/2.542, allocations: 3.781 MB / 0.7552 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01184/2.554, allocations: 1.659 MB / 0.7568 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04612/2.6, allocations: 16.58 MB / 0.773 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/2.611, allocations: 346.6 kB / 0.7733 GB, free: 11.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001981/2.613, allocations: 450.5 kB / 0.7737 GB, free: 11.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * 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 (882): * Single equations (assignments): 878 * 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.001858/2.615, allocations: 0.4899 MB / 0.7742 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03705/2.652, allocations: 7.918 MB / 0.7819 GB, free: 4.414 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/2.654, allocations: 400.2 kB / 0.7823 GB, free: 4.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04479/2.699, allocations: 8.269 MB / 0.7904 GB, free: 14.33 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.904e-05/2.699, allocations: 28 kB / 0.7904 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.606e-05/2.699, allocations: 8 kB / 0.7904 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.116e-05/2.699, allocations: 15.95 kB / 0.7905 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4501/3.149, allocations: 16.2 MB / 0.8063 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.895e-05/3.149, allocations: 4.422 kB / 0.8063 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004295/3.153, allocations: 384.4 kB / 0.8066 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02363/3.177, allocations: 3.829 MB / 0.8104 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000605/3.178, allocations: 8.906 kB / 0.8104 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03855/3.216, allocations: 15 MB / 0.825 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/3.216, allocations: 3.625 kB / 0.825 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04329/3.26, allocations: 12.35 MB / 0.8371 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003727/3.263, allocations: 0.8936 MB / 0.838 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001668/3.265, allocations: 4.406 kB / 0.838 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005495/3.271, allocations: 178.6 kB / 0.8382 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/3.272, allocations: 148.6 kB / 0.8383 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003777/3.272, allocations: 60.67 kB / 0.8384 GB, free: 106.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006575/3.279, allocations: 2.445 MB / 0.8407 GB, free: 106.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.412e-06/3.279, allocations: 0 / 0.8407 GB, free: 106.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01049/3.289, allocations: 1.268 MB / 0.842 GB, free: 106.7 MB / 490.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.04293/3.332, allocations: 13.23 MB / 0.8549 GB, free: 102.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01748/3.35, allocations: 7.404 MB / 0.8621 GB, free: 100.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/3.35, allocations: 0 / 0.8621 GB, free: 100.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00693/3.357, allocations: 2.85 MB / 0.8649 GB, free: 99.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/3.361, allocations: 396.5 kB / 0.8653 GB, free: 98.95 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03944/3.4, allocations: 12.11 MB / 0.8771 GB, free: 94.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009979/3.41, allocations: 4.206 MB / 0.8812 GB, free: 93.06 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01127/3.422, allocations: 2.208 MB / 0.8834 GB, free: 91.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00623/3.428, allocations: 2.466 MB / 0.8858 GB, free: 89.51 MB / 490.7 MB Notification: Performance of SimCode: time 1.924e-06/3.428, allocations: 0 / 0.8858 GB, free: 89.51 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7303/4.158, allocations: 104.2 MB / 0.9875 GB, free: 97.84 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003088/4.159, allocations: 141.4 kB / 0.9876 GB, free: 97.65 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.65/10.81, allocations: 0 / 0.9876 GB, free: 97.65 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat