Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.569/2.569, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.131e-05/4.138e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4531/0.4532, allocations: 54.86 MB / 359.9 MB, free: 2.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.6617, allocations: 110.8 MB / 470.7 MB, free: 2.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.6621, allocations: 79.95 kB / 470.7 MB, free: 2.059 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.029/1.691, allocations: 171.9 MB / 0.6275 GB, free: 62.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.691, allocations: 0 / 0.6275 GB, free: 62.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004712/1.691, allocations: 155.9 kB / 0.6277 GB, free: 61.93 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03295/1.724, allocations: 7.697 MB / 0.6352 GB, free: 54.15 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/1.724, allocations: 8.031 kB / 0.6352 GB, free: 54.14 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008185/1.733, allocations: 1.626 MB / 0.6368 GB, free: 52.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05338/1.786, allocations: 6.944 MB / 0.6436 GB, free: 45.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03488/1.821, allocations: 9.842 MB / 0.6532 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008197/1.822, allocations: 0.5696 MB / 0.6538 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005381/1.827, allocations: 0.7729 MB / 0.6545 GB, free: 34.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06696/1.894, allocations: 20.45 MB / 0.6745 GB, free: 12.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005772/1.895, allocations: 87.27 kB / 0.6746 GB, free: 12.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004646/1.9, allocations: 367.7 kB / 0.6749 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004644/1.904, allocations: 1.954 MB / 0.6768 GB, free: 9.992 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06066/1.965, allocations: 17.64 MB / 0.694 GB, free: 8.336 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.521/2.486, allocations: 82.18 MB / 0.7743 GB, free: 33.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02914/2.515, allocations: 7.288 MB / 0.7814 GB, free: 31.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008847/2.524, allocations: 3.925 MB / 0.7853 GB, free: 31.44 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04936/2.574, allocations: 18.21 MB / 0.803 GB, free: 22.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.238e-05/2.574, allocations: 70.19 kB / 0.8031 GB, free: 22.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=332): time 7.454e-06/2.574, allocations: 0 / 0.8031 GB, free: 22.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=413): time 0.1457/2.719, allocations: 26.07 MB / 0.8286 GB, free: 14.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/2.72, allocations: 205 kB / 0.8288 GB, free: 13.86 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01381/2.733, allocations: 5.675 MB / 0.8343 GB, free: 11.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001019/2.735, allocations: 80.48 kB / 0.8344 GB, free: 11.83 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004593/2.739, allocations: 5.251 MB / 0.8395 GB, free: 7.758 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002466/2.742, allocations: 1.522 MB / 0.841 GB, free: 6.637 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/2.743, allocations: 204.6 kB / 0.8412 GB, free: 6.477 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007808/2.744, allocations: 0.7609 MB / 0.8419 GB, free: 5.977 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009973/2.754, allocations: 4.021 MB / 0.8459 GB, free: 2.711 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02334/2.777, allocations: 10.17 MB / 0.8558 GB, free: 7.816 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01654/2.794, allocations: 6.239 MB / 0.8619 GB, free: 2.695 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002633/2.794, allocations: 56 kB / 0.8619 GB, free: 2.641 MB / 490.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05535/2.85, allocations: 14.88 MB / 0.8765 GB, free: 6.289 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000184/2.85, allocations: 92 kB / 0.8766 GB, free: 6.199 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003907/2.85, allocations: 204 kB / 0.8767 GB, free: 6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0146/2.865, allocations: 2.337 MB / 0.879 GB, free: 4.305 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01731/2.882, allocations: 2.445 MB / 0.8814 GB, free: 2.191 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4512/3.333, allocations: 11.85 MB / 0.893 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01384/3.347, allocations: 0.6846 MB / 0.8937 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002847/3.35, allocations: 0.5883 MB / 0.8942 GB, free: 104.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1269): * Single equations (assignments): 1262 * 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.004282/3.355, allocations: 0.8701 MB / 0.8951 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001922/3.357, allocations: 0.5999 MB / 0.8957 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03411/3.391, allocations: 8.082 MB / 0.9036 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001578/3.391, allocations: 62.48 kB / 0.9036 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-05/3.391, allocations: 15.86 kB / 0.9036 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-05/3.391, allocations: 19.34 kB / 0.9037 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06664/3.458, allocations: 18.71 MB / 0.9219 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.301e-05/3.458, allocations: 14.2 kB / 0.9219 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005997/3.464, allocations: 0.6408 MB / 0.9226 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01251/3.476, allocations: 1.878 MB / 0.9244 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001252/3.478, allocations: 83.36 kB / 0.9245 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02636/3.504, allocations: 9.868 MB / 0.9341 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.72e-05/3.504, allocations: 20.59 kB / 0.9341 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03732/3.542, allocations: 14.17 MB / 0.948 GB, free: 91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004673/3.546, allocations: 1.161 MB / 0.9491 GB, free: 90.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002143/3.549, allocations: 72.34 kB / 0.9492 GB, free: 90.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006774/3.555, allocations: 261.6 kB / 0.9494 GB, free: 90.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001458/3.557, allocations: 254.2 kB / 0.9497 GB, free: 90.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004425/3.557, allocations: 112.2 kB / 0.9498 GB, free: 90.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01065/3.568, allocations: 3.934 MB / 0.9536 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.423e-06/3.568, allocations: 0 / 0.9536 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01408/3.582, allocations: 1.939 MB / 0.9555 GB, free: 88.63 MB / 0.4948 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.03884/3.621, allocations: 17.11 MB / 0.9722 GB, free: 78.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02295/3.644, allocations: 9.305 MB / 0.9813 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.075e-05/3.644, allocations: 0 / 0.9813 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008682/3.653, allocations: 3.231 MB / 0.9845 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006617/3.659, allocations: 0.73 MB / 0.9852 GB, free: 71.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06065/3.72, allocations: 18.06 MB / 1.003 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01446/3.735, allocations: 5.76 MB / 1.008 GB, free: 51.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0093/3.744, allocations: 3.751 MB / 1.012 GB, free: 48.15 MB / 0.4948 GB Notification: Performance of SimCode: time 2.234e-06/3.744, allocations: 0 / 1.012 GB, free: 48.15 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.812/9.556, allocations: 181.5 MB / 1.189 GB, free: 60.67 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat