Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.463/2.463, allocations: 235.1 MB / 242.2 MB, free: 15.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.116e-05, allocations: 0 / 299.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3924, allocations: 54.86 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.591, allocations: 108.1 MB / 462.4 MB, free: 6.094 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.5914, allocations: 75.95 kB / 462.5 MB, free: 6.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9262/1.518, allocations: 139.4 MB / 0.5878 GB, free: 39.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.518, allocations: 0 / 0.5878 GB, free: 39.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000682/1.518, allocations: 128 kB / 0.5879 GB, free: 39.72 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02869/1.547, allocations: 6.639 MB / 0.5944 GB, free: 33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/1.547, allocations: 12.03 kB / 0.5944 GB, free: 32.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07675/1.624, allocations: 9.336 MB / 0.6035 GB, free: 23.63 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05007/1.674, allocations: 9.108 MB / 0.6124 GB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006192/1.675, allocations: 204 kB / 0.6126 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004307/1.679, allocations: 383.8 kB / 0.613 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02372/1.703, allocations: 9.342 MB / 0.6221 GB, free: 4.516 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03773/1.741, allocations: 13.27 MB / 0.635 GB, free: 6.066 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005142/1.741, allocations: 87.23 kB / 0.6351 GB, free: 5.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002869/1.744, allocations: 36 kB / 0.6352 GB, free: 5.945 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003663/1.748, allocations: 1.373 MB / 0.6365 GB, free: 4.562 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4751/2.223, allocations: 62.21 MB / 0.6973 GB, free: 69.17 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008137/2.231, allocations: 4.35 MB / 0.7015 GB, free: 68.51 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005627/2.237, allocations: 3.027 MB / 0.7045 GB, free: 68.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003248/2.24, allocations: 2.38 MB / 0.7068 GB, free: 66.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.615e-05/2.24, allocations: 67 kB / 0.7069 GB, free: 66.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=251): time 6.693e-06/2.24, allocations: 0 / 0.7069 GB, free: 66.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=343): time 0.124/2.364, allocations: 27.55 MB / 0.7338 GB, free: 62.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/2.364, allocations: 245.2 kB / 0.734 GB, free: 62.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/2.376, allocations: 4.373 MB / 0.7383 GB, free: 62.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/2.377, allocations: 32.5 kB / 0.7383 GB, free: 62.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004452/2.381, allocations: 4.503 MB / 0.7427 GB, free: 58.74 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002305/2.383, allocations: 1.215 MB / 0.7439 GB, free: 57.82 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/2.385, allocations: 0 / 0.7439 GB, free: 57.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00096/2.386, allocations: 0.657 MB / 0.7445 GB, free: 57.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008696/2.395, allocations: 3.433 MB / 0.7479 GB, free: 56.01 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01166/2.407, allocations: 8.067 MB / 0.7558 GB, free: 48.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/2.418, allocations: 5.208 MB / 0.7608 GB, free: 46.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002059/2.419, allocations: 51.84 kB / 0.7609 GB, free: 46.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.04751/2.466, allocations: 13.68 MB / 0.7742 GB, free: 39.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/2.466, allocations: 76 kB / 0.7743 GB, free: 38.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002728/2.467, allocations: 165.2 kB / 0.7745 GB, free: 38.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02089/2.487, allocations: 3.501 MB / 0.7779 GB, free: 36.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01155/2.499, allocations: 1.848 MB / 0.7797 GB, free: 34.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03983/2.539, allocations: 16.83 MB / 0.7961 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01019/2.549, allocations: 331 kB / 0.7965 GB, free: 20.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002192/2.551, allocations: 483.2 kB / 0.7969 GB, free: 19.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 748 * Number of states: 0 () * Number of discrete variables: 43 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 997 * 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.003217/2.555, allocations: 0.5194 MB / 0.7974 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03184/2.587, allocations: 8.54 MB / 0.8058 GB, free: 12.22 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001975/2.589, allocations: 0.5052 MB / 0.8063 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03252/2.621, allocations: 8.519 MB / 0.8146 GB, free: 5.082 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.684e-05/2.621, allocations: 39.95 kB / 0.8146 GB, free: 5.043 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.938e-05/2.621, allocations: 15.56 kB / 0.8146 GB, free: 5.031 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.434e-05/2.621, allocations: 21.2 kB / 0.8146 GB, free: 5.027 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06348/2.685, allocations: 17.3 MB / 0.8315 GB, free: 6.285 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.767e-05/2.685, allocations: 4 kB / 0.8315 GB, free: 6.281 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004814/2.69, allocations: 0.4992 MB / 0.832 GB, free: 5.781 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02084/2.711, allocations: 3.041 MB / 0.835 GB, free: 2.73 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008937/2.712, allocations: 15.98 kB / 0.835 GB, free: 2.715 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04215/2.754, allocations: 14.49 MB / 0.8492 GB, free: 4.109 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-05/2.754, allocations: 11.94 kB / 0.8492 GB, free: 4.098 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04523/2.799, allocations: 13.82 MB / 0.8627 GB, free: 5.977 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00482/2.804, allocations: 1.057 MB / 0.8637 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002249/2.806, allocations: 11.98 kB / 0.8637 GB, free: 4.883 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005801/2.812, allocations: 163.7 kB / 0.8639 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001571/2.814, allocations: 222.2 kB / 0.8641 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007181/2.815, allocations: 88 kB / 0.8642 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009026/2.824, allocations: 2.982 MB / 0.8671 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.012e-06/2.824, allocations: 0 / 0.8671 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0123/2.836, allocations: 1.461 MB / 0.8685 GB, free: 8 kB / 0.5105 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 (259): * Single equations (assignments): 255 * 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.4004/3.236, allocations: 15.73 MB / 0.8839 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.019/3.256, allocations: 8.449 MB / 0.8921 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/3.256, allocations: 0 / 0.8921 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007852/3.263, allocations: 3.359 MB / 0.8954 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005728/3.269, allocations: 0.5778 MB / 0.896 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05274/3.322, allocations: 14.72 MB / 0.9103 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/3.335, allocations: 4.951 MB / 0.9152 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01393/3.349, allocations: 2.701 MB / 0.9178 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008174/3.357, allocations: 3.045 MB / 0.9208 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of SimCode: time 2.084e-06/3.357, allocations: 0 / 0.9208 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2965/3.654, allocations: 125.1 MB / 1.043 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002898/3.654, allocations: 150.3 kB / 1.043 GB, free: 30.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/11.4, allocations: 0 / 1.043 GB, free: 30.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat