Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.351/2.351, allocations: 235 MB / 247.2 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.301e-05/4.307e-05, allocations: 4 kB / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4049, allocations: 54.86 MB / 359.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.6097, allocations: 110.8 MB / 470.7 MB, free: 1.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.6101, allocations: 81.17 kB / 470.8 MB, free: 1.875 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.009/1.619, allocations: 171.9 MB / 0.6276 GB, free: 61.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.619, allocations: 0 / 0.6276 GB, free: 61.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000478/1.62, allocations: 151.9 kB / 0.6277 GB, free: 61.56 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.03167/1.651, allocations: 7.701 MB / 0.6352 GB, free: 53.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.651, allocations: 8.031 kB / 0.6352 GB, free: 53.77 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007807/1.659, allocations: 1.622 MB / 0.6368 GB, free: 52.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05303/1.712, allocations: 6.948 MB / 0.6436 GB, free: 45.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03564/1.748, allocations: 9.843 MB / 0.6532 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007985/1.749, allocations: 0.5696 MB / 0.6538 GB, free: 34.67 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005009/1.754, allocations: 0.7613 MB / 0.6545 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06604/1.82, allocations: 20.46 MB / 0.6745 GB, free: 12.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005786/1.821, allocations: 83.22 kB / 0.6746 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004513/1.825, allocations: 367.8 kB / 0.6749 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004596/1.83, allocations: 1.962 MB / 0.6768 GB, free: 9.617 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0707/1.901, allocations: 17.63 MB / 0.6941 GB, free: 7.969 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8977/2.798, allocations: 82.18 MB / 0.7743 GB, free: 31.59 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02874/2.827, allocations: 7.289 MB / 0.7814 GB, free: 30.34 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008945/2.836, allocations: 3.923 MB / 0.7853 GB, free: 29.96 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04873/2.885, allocations: 18.21 MB / 0.803 GB, free: 20.73 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/2.885, allocations: 67.84 kB / 0.8031 GB, free: 20.67 MB / 474.8 MB Notification: Performance of pre-optimization done (n=332): time 6.813e-06/2.885, allocations: 2.531 kB / 0.8031 GB, free: 20.67 MB / 474.8 MB Notification: Performance of matching and sorting (n=413): time 0.1406/3.026, allocations: 26.08 MB / 0.8286 GB, free: 12.57 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/3.026, allocations: 193.5 kB / 0.8288 GB, free: 12.38 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/3.04, allocations: 5.68 MB / 0.8343 GB, free: 10.42 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/3.041, allocations: 85.45 kB / 0.8344 GB, free: 10.34 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005564/3.047, allocations: 5.433 MB / 0.8397 GB, free: 6.211 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00265/3.05, allocations: 1.517 MB / 0.8412 GB, free: 5.016 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001544/3.051, allocations: 208.5 kB / 0.8414 GB, free: 4.816 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008271/3.052, allocations: 0.7502 MB / 0.8421 GB, free: 4.188 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01003/3.062, allocations: 4.023 MB / 0.846 GB, free: 0.5273 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03836/3.1, allocations: 11.05 MB / 0.8568 GB, free: 7.816 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01622/3.117, allocations: 6.241 MB / 0.8629 GB, free: 2.695 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002318/3.117, allocations: 56 kB / 0.863 GB, free: 2.641 MB / 490.8 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05492/3.172, allocations: 15.09 MB / 0.8777 GB, free: 6.062 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000192/3.172, allocations: 92 kB / 0.8778 GB, free: 5.973 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000389/3.173, allocations: 204 kB / 0.878 GB, free: 5.773 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01449/3.187, allocations: 2.334 MB / 0.8803 GB, free: 4.078 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01675/3.204, allocations: 2.445 MB / 0.8827 GB, free: 1.965 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03211/3.236, allocations: 11.52 MB / 0.8939 GB, free: 7.219 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01337/3.25, allocations: 0.6867 MB / 0.8946 GB, free: 6.531 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002671/3.252, allocations: 0.5897 MB / 0.8952 GB, free: 5.945 MB / 0.5105 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.00342/3.256, allocations: 0.858 MB / 0.896 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/3.258, allocations: 0.5986 MB / 0.8966 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3972/3.655, allocations: 8.084 MB / 0.9045 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001484/3.655, allocations: 67.44 kB / 0.9046 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-05/3.655, allocations: 13.92 kB / 0.9046 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001035/3.655, allocations: 18.05 kB / 0.9046 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06852/3.724, allocations: 18.71 MB / 0.9229 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.849e-05/3.724, allocations: 14.88 kB / 0.9229 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006045/3.73, allocations: 0.6462 MB / 0.9235 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01245/3.742, allocations: 1.881 MB / 0.9253 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/3.744, allocations: 81.12 kB / 0.9254 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02508/3.769, allocations: 9.872 MB / 0.9351 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.554e-05/3.769, allocations: 18.41 kB / 0.9351 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03543/3.804, allocations: 14.16 MB / 0.9489 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004852/3.809, allocations: 1.161 MB / 0.95 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002078/3.811, allocations: 76.75 kB / 0.9501 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006497/3.818, allocations: 265 kB / 0.9504 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/3.819, allocations: 256.2 kB / 0.9506 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006163/3.82, allocations: 112.3 kB / 0.9507 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01057/3.83, allocations: 3.934 MB / 0.9546 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.462e-06/3.831, allocations: 0 / 0.9546 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01389/3.844, allocations: 1.938 MB / 0.9564 GB, free: 110.6 MB / 0.5105 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.03777/3.882, allocations: 17.11 MB / 0.9732 GB, free: 101 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02309/3.905, allocations: 9.304 MB / 0.9822 GB, free: 98.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/3.905, allocations: 0 / 0.9822 GB, free: 98.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00875/3.914, allocations: 3.227 MB / 0.9854 GB, free: 96.86 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008602/3.923, allocations: 0.7303 MB / 0.9861 GB, free: 96.55 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07325/3.996, allocations: 17.18 MB / 1.003 GB, free: 84.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01411/4.01, allocations: 5.755 MB / 1.009 GB, free: 79.89 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01629/4.027, allocations: 3.331 MB / 1.012 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009819/4.037, allocations: 3.675 MB / 1.015 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of SimCode: time 1.683e-06/4.037, allocations: 4 kB / 1.015 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6982/4.735, allocations: 141.7 MB / 1.154 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000277/4.735, allocations: 172.9 kB / 1.154 GB, free: 104 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/12.94, allocations: 0 / 1.154 GB, free: 104 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat