Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.504/2.504, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.924e-05/3.938e-05, allocations: 6.656 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4575/0.4576, allocations: 58.84 MB / 382.3 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.6684, allocations: 115.3 MB / 497.6 MB, free: 9.117 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.6688, allocations: 75.97 kB / 497.7 MB, free: 9.043 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.9078/1.577, allocations: 143.1 MB / 0.6258 GB, free: 49.54 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.244e-06/1.577, allocations: 0 / 0.6258 GB, free: 49.54 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0005275/1.577, allocations: 128 kB / 0.6259 GB, free: 49.42 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02879/1.606, allocations: 6.643 MB / 0.6324 GB, free: 42.7 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/1.606, allocations: 8.031 kB / 0.6324 GB, free: 42.69 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00609/1.612, allocations: 1.28 MB / 0.6336 GB, free: 41.4 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06786/1.68, allocations: 9.336 MB / 0.6428 GB, free: 32.04 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03217/1.712, allocations: 9.138 MB / 0.6517 GB, free: 22.82 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006211/1.713, allocations: 484.7 kB / 0.6521 GB, free: 22.34 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0035/1.717, allocations: 0.6402 MB / 0.6528 GB, free: 21.7 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04883/1.765, allocations: 15.47 MB / 0.6679 GB, free: 5.035 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005028/1.766, allocations: 79.25 kB / 0.6679 GB, free: 4.957 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003036/1.769, allocations: 299.9 kB / 0.6682 GB, free: 4.664 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003081/1.772, allocations: 1.393 MB / 0.6696 GB, free: 3.27 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04472/1.817, allocations: 12.49 MB / 0.6818 GB, free: 6.762 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5168/2.334, allocations: 64.48 MB / 0.7448 GB, free: 69.97 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02974/2.363, allocations: 6.205 MB / 0.7508 GB, free: 69.29 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006446/2.37, allocations: 3.112 MB / 0.7539 GB, free: 69.25 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/2.398, allocations: 11.18 MB / 0.7648 GB, free: 66.32 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/2.398, allocations: 60.23 kB / 0.7648 GB, free: 66.28 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=245): time 8.426e-06/2.398, allocations: 2.438 kB / 0.7648 GB, free: 66.28 MB / 0.4949 GB Notification: Performance of matching and sorting (n=337): time 0.1794/2.577, allocations: 29.65 MB / 0.7938 GB, free: 62.41 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/2.577, allocations: 239.6 kB / 0.794 GB, free: 62.16 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01301/2.59, allocations: 4.948 MB / 0.7989 GB, free: 61.17 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008964/2.591, allocations: 76.05 kB / 0.7989 GB, free: 61.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004269/2.596, allocations: 4.484 MB / 0.8033 GB, free: 57.68 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002029/2.598, allocations: 1.242 MB / 0.8045 GB, free: 56.77 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/2.599, allocations: 167.1 kB / 0.8047 GB, free: 56.64 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0007256/2.6, allocations: 0.6476 MB / 0.8053 GB, free: 56.19 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009336/2.609, allocations: 3.528 MB / 0.8088 GB, free: 54.86 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01245/2.622, allocations: 8.027 MB / 0.8166 GB, free: 47.48 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/2.634, allocations: 5.294 MB / 0.8218 GB, free: 45.55 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001931/2.634, allocations: 47.95 kB / 0.8218 GB, free: 45.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.05474/2.689, allocations: 14.15 MB / 0.8356 GB, free: 34.25 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/2.689, allocations: 72 kB / 0.8357 GB, free: 34.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/2.689, allocations: 160 kB / 0.8359 GB, free: 34.02 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02102/2.71, allocations: 3.557 MB / 0.8393 GB, free: 31.56 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/2.722, allocations: 1.803 MB / 0.8411 GB, free: 29.98 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04197/2.764, allocations: 17.92 MB / 0.8586 GB, free: 14.58 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/2.774, allocations: 485.3 kB / 0.8591 GB, free: 14.18 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002166/2.777, allocations: 471.3 kB / 0.8595 GB, free: 13.73 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.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],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (972): * Single equations (assignments): 968 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003518/2.78, allocations: 0.7079 MB / 0.8602 GB, free: 13.02 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001613/2.782, allocations: 0.5322 MB / 0.8607 GB, free: 12.48 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03325/2.815, allocations: 8.817 MB / 0.8693 GB, free: 5.562 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.479e-05/2.815, allocations: 36 kB / 0.8694 GB, free: 5.527 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/2.815, allocations: 12 kB / 0.8694 GB, free: 5.516 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.42e-05/2.815, allocations: 18.53 kB / 0.8694 GB, free: 5.512 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06887/2.884, allocations: 18.59 MB / 0.8875 GB, free: 3.289 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.718e-05/2.884, allocations: 8.031 kB / 0.8875 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004929/2.889, allocations: 491.2 kB / 0.888 GB, free: 2.801 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02214/2.912, allocations: 3.095 MB / 0.891 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009124/2.913, allocations: 66.64 kB / 0.8911 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04321/2.956, allocations: 15.59 MB / 0.9063 GB, free: 15.91 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.697e-05/2.956, allocations: 15.88 kB / 0.9063 GB, free: 15.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04583/3.002, allocations: 14.03 MB / 0.9201 GB, free: 1.508 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004641/3.006, allocations: 1.095 MB / 0.9211 GB, free: 396 kB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002205/3.009, allocations: 64.05 kB / 0.9212 GB, free: 332 kB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006094/3.015, allocations: 209.9 kB / 0.9214 GB, free: 124 kB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3924/3.407, allocations: 209.2 kB / 0.9216 GB, free: 145.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009219/3.408, allocations: 89.69 kB / 0.9217 GB, free: 145.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01168/3.42, allocations: 3.497 MB / 0.9251 GB, free: 145.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 9.51e-07/3.42, allocations: 0 / 0.9251 GB, free: 145.7 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01149/3.431, allocations: 1.684 MB / 0.9267 GB, free: 145.7 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (253): * Single equations (assignments): 249 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04249/3.474, allocations: 15.96 MB / 0.9423 GB, free: 142.3 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0197/3.494, allocations: 8.53 MB / 0.9506 GB, free: 142 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/3.494, allocations: 3.844 kB / 0.9506 GB, free: 142 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.008181/3.502, allocations: 3.384 MB / 0.954 GB, free: 141.9 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006515/3.509, allocations: 0.6843 MB / 0.9546 GB, free: 141.9 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05992/3.569, allocations: 15.06 MB / 0.9693 GB, free: 138.4 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01189/3.58, allocations: 4.966 MB / 0.9742 GB, free: 136.7 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01306/3.594, allocations: 2.605 MB / 0.9767 GB, free: 136.6 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008476/3.602, allocations: 3.064 MB / 0.9797 GB, free: 134.1 MB / 0.5418 GB Notification: Performance of SimCode: time 2.575e-06/3.602, allocations: 0 / 0.9797 GB, free: 134.1 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3416/3.944, allocations: 131.8 MB / 1.108 GB, free: 26.35 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/3.944, allocations: 179.2 kB / 1.109 GB, free: 26.12 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/11.97, allocations: 0 / 1.109 GB, free: 26.12 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat