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.319/2.319, allocations: 235 MB / 247.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.862e-05/3.879e-05, allocations: 4 kB / 305 MB, free: 5.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3948, allocations: 54.86 MB / 359.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2023/0.5971, allocations: 110.8 MB / 470.7 MB, free: 2.008 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5974, allocations: 75.95 kB / 470.7 MB, free: 1.934 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9966/1.594, allocations: 171.9 MB / 0.6275 GB, free: 61.85 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.128e-06/1.594, allocations: 0 / 0.6275 GB, free: 61.85 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005107/1.595, allocations: 155.9 kB / 0.6277 GB, free: 61.7 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.03238/1.627, allocations: 7.701 MB / 0.6352 GB, free: 53.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/1.627, allocations: 8.031 kB / 0.6352 GB, free: 53.91 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007694/1.635, allocations: 1.622 MB / 0.6368 GB, free: 52.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05278/1.688, allocations: 6.948 MB / 0.6436 GB, free: 45.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0334/1.721, allocations: 9.839 MB / 0.6532 GB, free: 35.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007557/1.722, allocations: 0.5734 MB / 0.6538 GB, free: 34.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004954/1.727, allocations: 0.7652 MB / 0.6545 GB, free: 34.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06566/1.793, allocations: 20.54 MB / 0.6746 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006086/1.793, allocations: 95.12 kB / 0.6747 GB, free: 11.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004415/1.798, allocations: 359.8 kB / 0.675 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004595/1.802, allocations: 1.954 MB / 0.6769 GB, free: 9.664 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05925/1.862, allocations: 17.92 MB / 0.6944 GB, free: 7.719 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5032/2.365, allocations: 82.18 MB / 0.7747 GB, free: 32.35 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02886/2.394, allocations: 7.308 MB / 0.7818 GB, free: 31.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00886/2.403, allocations: 3.928 MB / 0.7856 GB, free: 31.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0499/2.453, allocations: 18.21 MB / 0.8034 GB, free: 22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.565e-05/2.453, allocations: 67.53 kB / 0.8035 GB, free: 21.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=332): time 7.354e-06/2.453, allocations: 0 / 0.8035 GB, free: 21.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=413): time 0.1411/2.594, allocations: 26.08 MB / 0.829 GB, free: 13.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/2.594, allocations: 197 kB / 0.8291 GB, free: 13.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01474/2.609, allocations: 5.672 MB / 0.8347 GB, free: 11.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001035/2.61, allocations: 88.59 kB / 0.8348 GB, free: 11.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005067/2.615, allocations: 5.433 MB / 0.8401 GB, free: 7.492 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002638/2.618, allocations: 1.521 MB / 0.8416 GB, free: 6.195 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001871/2.62, allocations: 207.4 kB / 0.8418 GB, free: 5.996 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009133/2.621, allocations: 0.7502 MB / 0.8425 GB, free: 5.367 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0104/2.631, allocations: 4.024 MB / 0.8464 GB, free: 1.707 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0302/2.661, allocations: 10.65 MB / 0.8568 GB, free: 7.754 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01619/2.678, allocations: 6.239 MB / 0.8629 GB, free: 2.633 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002354/2.678, allocations: 60 kB / 0.863 GB, free: 2.574 MB / 490.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05519/2.733, allocations: 15.64 MB / 0.8782 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002129/2.733, allocations: 92 kB / 0.8783 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004413/2.734, allocations: 208.2 kB / 0.8785 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01469/2.748, allocations: 2.333 MB / 0.8808 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01687/2.765, allocations: 2.439 MB / 0.8832 GB, free: 1.406 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3972/3.163, allocations: 11.7 MB / 0.8946 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01601/3.179, allocations: 0.685 MB / 0.8953 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003925/3.183, allocations: 0.5892 MB / 0.8959 GB, free: 104.1 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.006082/3.189, allocations: 0.8725 MB / 0.8967 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002935/3.192, allocations: 0.5951 MB / 0.8973 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04832/3.24, allocations: 8.086 MB / 0.9052 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000222/3.24, allocations: 63.66 kB / 0.9052 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.069e-05/3.241, allocations: 12.62 kB / 0.9053 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001219/3.241, allocations: 20.41 kB / 0.9053 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07382/3.315, allocations: 18.74 MB / 0.9236 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.834e-05/3.315, allocations: 15.16 kB / 0.9236 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005922/3.321, allocations: 0.645 MB / 0.9242 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01249/3.333, allocations: 1.882 MB / 0.9261 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/3.334, allocations: 77.91 kB / 0.9261 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03237/3.367, allocations: 9.871 MB / 0.9358 GB, free: 97.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.802e-05/3.367, allocations: 22.06 kB / 0.9358 GB, free: 97.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0367/3.403, allocations: 14.16 MB / 0.9496 GB, free: 90.38 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004855/3.408, allocations: 1.166 MB / 0.9508 GB, free: 89.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00222/3.411, allocations: 74 kB / 0.9508 GB, free: 89.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006718/3.417, allocations: 263.2 kB / 0.9511 GB, free: 89.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001554/3.419, allocations: 256.7 kB / 0.9513 GB, free: 89.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004681/3.419, allocations: 109.5 kB / 0.9514 GB, free: 89.63 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.011/3.43, allocations: 3.937 MB / 0.9553 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.52e-07/3.43, allocations: 0 / 0.9553 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01387/3.444, allocations: 1.939 MB / 0.9572 GB, free: 88.06 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.03905/3.483, allocations: 17.11 MB / 0.9739 GB, free: 78.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02253/3.506, allocations: 9.629 MB / 0.9833 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.929e-05/3.506, allocations: 3.344 kB / 0.9833 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008696/3.515, allocations: 3.281 MB / 0.9865 GB, free: 70.49 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006648/3.522, allocations: 0.7309 MB / 0.9872 GB, free: 69.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05834/3.58, allocations: 17.21 MB / 1.004 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01413/3.594, allocations: 5.748 MB / 1.01 GB, free: 50.64 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01549/3.61, allocations: 3.329 MB / 1.013 GB, free: 48.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009644/3.619, allocations: 3.684 MB / 1.016 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of SimCode: time 1.693e-06/3.619, allocations: 0 / 1.016 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7108/4.33, allocations: 142.7 MB / 1.156 GB, free: 96.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/4.33, allocations: 182.1 kB / 1.156 GB, free: 96.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.517/12.85, allocations: 0 / 1.156 GB, free: 96.57 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