Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 270 MB / 283.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.089e-05/5.102e-05, allocations: 0 / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1453, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5615/0.7068, allocations: 119.5 MB / 0.5174 GB, free: 408 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.7072, allocations: 71.97 kB / 0.5175 GB, free: 336 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.204/1.912, allocations: 174.1 MB / 0.6876 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.324e-06/1.912, allocations: 0 / 0.6876 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005065/1.912, allocations: 151.1 kB / 0.6877 GB, free: 109.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03242/1.945, allocations: 7.681 MB / 0.6952 GB, free: 105 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/1.945, allocations: 10.16 kB / 0.6952 GB, free: 105 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008266/1.953, allocations: 1.619 MB / 0.6968 GB, free: 104 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05398/2.007, allocations: 6.95 MB / 0.7036 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03491/2.042, allocations: 9.256 MB / 0.7126 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007954/2.043, allocations: 0.5681 MB / 0.7132 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005154/2.048, allocations: 0.7647 MB / 0.7139 GB, free: 89.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06521/2.113, allocations: 20.47 MB / 0.7339 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006036/2.114, allocations: 95.17 kB / 0.734 GB, free: 68.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004516/2.118, allocations: 361 kB / 0.7343 GB, free: 67.72 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004698/2.123, allocations: 1.958 MB / 0.7362 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07221/2.195, allocations: 17.64 MB / 0.7535 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5813/2.777, allocations: 82.18 MB / 0.8337 GB, free: 65.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0312/2.808, allocations: 7.275 MB / 0.8408 GB, free: 64.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009873/2.818, allocations: 3.93 MB / 0.8447 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0495/2.868, allocations: 18.19 MB / 0.8624 GB, free: 60.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.656e-05/2.868, allocations: 65.81 kB / 0.8625 GB, free: 59.99 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=332): time 7.114e-06/2.868, allocations: 2.781 kB / 0.8625 GB, free: 59.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=413): time 0.1438/3.012, allocations: 25.87 MB / 0.8878 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001576/3.012, allocations: 198.2 kB / 0.888 GB, free: 55.09 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01397/3.026, allocations: 5.658 MB / 0.8935 GB, free: 53.06 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001027/3.027, allocations: 85.44 kB / 0.8936 GB, free: 52.99 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004825/3.032, allocations: 5.435 MB / 0.8989 GB, free: 48.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002411/3.034, allocations: 1.516 MB / 0.9003 GB, free: 47.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/3.036, allocations: 207.2 kB / 0.9005 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007157/3.036, allocations: 0.7548 MB / 0.9013 GB, free: 47.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00969/3.046, allocations: 4.029 MB / 0.9052 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01426/3.06, allocations: 9.801 MB / 0.9148 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/3.074, allocations: 6.243 MB / 0.9209 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002276/3.074, allocations: 58.97 kB / 0.9209 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.04809/3.123, allocations: 15.07 MB / 0.9357 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001582/3.123, allocations: 98.03 kB / 0.9357 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003022/3.123, allocations: 204 kB / 0.9359 GB, free: 29.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0139/3.137, allocations: 2.333 MB / 0.9382 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01612/3.153, allocations: 2.446 MB / 0.9406 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02806/3.181, allocations: 11.53 MB / 0.9519 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01317/3.195, allocations: 0.6894 MB / 0.9525 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002532/3.197, allocations: 0.5888 MB / 0.9531 GB, free: 14.05 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1272): * Single equations (assignments): 1265 * 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: 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 prepare postOptimizeDAE: time 0.002998/3.2, allocations: 0.8727 MB / 0.954 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002011/3.202, allocations: 0.5939 MB / 0.9545 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03042/3.233, allocations: 8.083 MB / 0.9624 GB, free: 6.012 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/3.233, allocations: 64.31 kB / 0.9625 GB, free: 5.953 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/3.233, allocations: 8 kB / 0.9625 GB, free: 5.945 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-05/3.233, allocations: 16.45 kB / 0.9625 GB, free: 5.945 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06733/3.3, allocations: 18.85 MB / 0.9809 GB, free: 6.734 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.807e-05/3.3, allocations: 12 kB / 0.9809 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006356/3.307, allocations: 0.6444 MB / 0.9816 GB, free: 6.199 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01344/3.32, allocations: 1.885 MB / 0.9834 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/3.321, allocations: 72 kB / 0.9835 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02916/3.35, allocations: 9.868 MB / 0.9931 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-05/3.351, allocations: 19.94 kB / 0.9931 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04145/3.392, allocations: 14.16 MB / 1.007 GB, free: 13.69 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00245/3.395, allocations: 0.6338 MB / 1.008 GB, free: 13.03 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002523/3.397, allocations: 79.11 kB / 1.008 GB, free: 12.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006823/3.404, allocations: 263.7 kB / 1.008 GB, free: 12.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001467/3.405, allocations: 265.6 kB / 1.008 GB, free: 12.43 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004619/3.406, allocations: 108 kB / 1.008 GB, free: 12.33 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01155/3.418, allocations: 3.912 MB / 1.012 GB, free: 8.422 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.032e-06/3.418, allocations: 0 / 1.012 GB, free: 8.422 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01445/3.432, allocations: 1.941 MB / 1.014 GB, free: 6.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06153/3.494, allocations: 17.1 MB / 1.031 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.4239/3.918, allocations: 9.311 MB / 1.04 GB, free: 172.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.016e-05/3.918, allocations: 2.578 kB / 1.04 GB, free: 172.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009631/3.927, allocations: 3.228 MB / 1.043 GB, free: 172.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007422/3.935, allocations: 0.7295 MB / 1.044 GB, free: 172.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06888/4.004, allocations: 17.15 MB / 1.06 GB, free: 169.5 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01479/4.019, allocations: 5.74 MB / 1.066 GB, free: 168.6 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01623/4.035, allocations: 3.345 MB / 1.069 GB, free: 168.6 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009545/4.045, allocations: 3.667 MB / 1.073 GB, free: 168.5 MB / 0.5886 GB Notification: Performance of SimCode: time 2.014e-06/4.045, allocations: 3.781 kB / 1.073 GB, free: 168.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3113/4.356, allocations: 141.6 MB / 1.211 GB, free: 70.64 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/4.356, allocations: 175.5 kB / 1.211 GB, free: 70.41 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.125/13.48, allocations: 0 / 1.211 GB, free: 70.41 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat