Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.66/2.66, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.822e-05, allocations: 3.984 kB / 323.5 MB, free: 4.238 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4333, allocations: 58.84 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2143/0.6477, allocations: 117.5 MB / 499.8 MB, free: 6.902 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.648, allocations: 79.95 kB / 499.8 MB, free: 6.824 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.098/1.746, allocations: 172.3 MB / 0.6564 GB, free: 18.01 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.565e-06/1.746, allocations: 7.938 kB / 0.6564 GB, free: 18 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.000486/1.746, allocations: 155.9 kB / 0.6565 GB, free: 17.85 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03232/1.779, allocations: 7.694 MB / 0.664 GB, free: 10.07 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/1.779, allocations: 8.031 kB / 0.664 GB, free: 10.07 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008226/1.787, allocations: 1.626 MB / 0.6656 GB, free: 8.43 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05419/1.841, allocations: 6.951 MB / 0.6724 GB, free: 1.457 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04063/1.882, allocations: 9.861 MB / 0.682 GB, free: 7.512 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/1.883, allocations: 0.5734 MB / 0.6826 GB, free: 6.938 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005222/1.888, allocations: 0.7651 MB / 0.6833 GB, free: 6.172 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1076/1.996, allocations: 20.47 MB / 0.7033 GB, free: 276 kB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00063/1.996, allocations: 95.11 kB / 0.7034 GB, free: 180 kB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00444/2.001, allocations: 363.8 kB / 0.7038 GB, free: 15.82 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005398/2.006, allocations: 1.954 MB / 0.7057 GB, free: 13.86 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4265/2.433, allocations: 17.63 MB / 0.7229 GB, free: 90.35 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1468/2.58, allocations: 82.29 MB / 0.8033 GB, free: 45.66 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02936/2.609, allocations: 7.28 MB / 0.8104 GB, free: 42.73 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009024/2.618, allocations: 3.922 MB / 0.8142 GB, free: 41.12 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04997/2.668, allocations: 18.23 MB / 0.832 GB, free: 31.88 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.967e-05/2.668, allocations: 63.5 kB / 0.8321 GB, free: 31.82 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=332): time 7.574e-06/2.668, allocations: 2.438 kB / 0.8321 GB, free: 31.82 MB / 0.4949 GB Notification: Performance of matching and sorting (n=413): time 0.1456/2.814, allocations: 26.09 MB / 0.8575 GB, free: 21.61 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/2.814, allocations: 196.8 kB / 0.8577 GB, free: 21.38 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01496/2.829, allocations: 5.702 MB / 0.8633 GB, free: 16.33 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001022/2.83, allocations: 81.7 kB / 0.8634 GB, free: 16.25 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005138/2.835, allocations: 5.443 MB / 0.8687 GB, free: 11.37 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002404/2.838, allocations: 1.518 MB / 0.8702 GB, free: 10.03 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001686/2.84, allocations: 208 kB / 0.8704 GB, free: 9.824 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001208/2.841, allocations: 0.7572 MB / 0.8711 GB, free: 9.195 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01051/2.851, allocations: 4.03 MB / 0.8751 GB, free: 5.531 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01617/2.868, allocations: 9.796 MB / 0.8846 GB, free: 9.664 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01644/2.884, allocations: 6.251 MB / 0.8907 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003018/2.885, allocations: 60 kB / 0.8908 GB, free: 4.535 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.05534/2.94, allocations: 15.07 MB / 0.9055 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002112/2.94, allocations: 92 kB / 0.9056 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004698/2.941, allocations: 204 kB / 0.9058 GB, free: 7.305 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01494/2.956, allocations: 2.332 MB / 0.9081 GB, free: 5.609 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01751/2.973, allocations: 2.448 MB / 0.9104 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4215/3.395, allocations: 11.56 MB / 0.9217 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01367/3.408, allocations: 0.6871 MB / 0.9224 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002825/3.411, allocations: 0.5911 MB / 0.923 GB, free: 113.1 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.004311/3.416, allocations: 0.871 MB / 0.9238 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001988/3.418, allocations: 0.5995 MB / 0.9244 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03307/3.451, allocations: 8.094 MB / 0.9323 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001289/3.451, allocations: 64.53 kB / 0.9324 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.652e-05/3.451, allocations: 11.77 kB / 0.9324 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-05/3.451, allocations: 20.73 kB / 0.9324 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06272/3.514, allocations: 18.71 MB / 0.9507 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.399e-05/3.514, allocations: 11.22 kB / 0.9507 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005949/3.52, allocations: 0.6401 MB / 0.9513 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01255/3.532, allocations: 1.876 MB / 0.9532 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009427/3.533, allocations: 77.31 kB / 0.9532 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02624/3.56, allocations: 9.891 MB / 0.9629 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.618e-05/3.56, allocations: 19.94 kB / 0.9629 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03659/3.596, allocations: 14.17 MB / 0.9767 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004733/3.601, allocations: 1.169 MB / 0.9779 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002545/3.604, allocations: 76.11 kB / 0.978 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006725/3.611, allocations: 270.5 kB / 0.9782 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001357/3.612, allocations: 254.6 kB / 0.9785 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006799/3.613, allocations: 109.1 kB / 0.9786 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01049/3.623, allocations: 3.946 MB / 0.9824 GB, free: 98.79 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.613e-06/3.623, allocations: 0 / 0.9824 GB, free: 98.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01362/3.637, allocations: 1.949 MB / 0.9843 GB, free: 98.57 MB / 0.5261 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.03819/3.675, allocations: 17.11 MB / 1.001 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02251/3.698, allocations: 9.313 MB / 1.01 GB, free: 85.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/3.698, allocations: 0 / 1.01 GB, free: 85.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008372/3.706, allocations: 3.23 MB / 1.013 GB, free: 83.83 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006604/3.713, allocations: 0.7201 MB / 1.014 GB, free: 83.21 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0575/3.77, allocations: 17.2 MB / 1.031 GB, free: 68.18 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01392/3.784, allocations: 5.766 MB / 1.036 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01595/3.8, allocations: 3.342 MB / 1.04 GB, free: 62.03 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009137/3.81, allocations: 3.686 MB / 1.043 GB, free: 58.6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.305e-06/3.81, allocations: 0 / 1.043 GB, free: 58.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6942/4.504, allocations: 142.1 MB / 1.182 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002719/4.504, allocations: 172.9 kB / 1.182 GB, free: 117.3 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.927/13.43, allocations: 0 / 1.182 GB, free: 117.3 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat