Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.317/2.317, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.13e-05/4.133e-05, allocations: 7.984 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4041, allocations: 54.85 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.6056, allocations: 108.8 MB / 468.6 MB, free: 4.188 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.6059, allocations: 71.97 kB / 468.7 MB, free: 4.117 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9156/1.522, allocations: 142.3 MB / 0.5967 GB, free: 92.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.522, allocations: 0 / 0.5967 GB, free: 92.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00049/1.522, allocations: 138.1 kB / 0.5968 GB, free: 92.59 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02779/1.55, allocations: 6.631 MB / 0.6033 GB, free: 86.85 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/1.55, allocations: 12.03 kB / 0.6033 GB, free: 86.84 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006124/1.556, allocations: 1.286 MB / 0.6045 GB, free: 85.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06584/1.622, allocations: 9.33 MB / 0.6136 GB, free: 76.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03339/1.655, allocations: 9.131 MB / 0.6226 GB, free: 67.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006389/1.656, allocations: 484.7 kB / 0.623 GB, free: 66.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00371/1.66, allocations: 0.6363 MB / 0.6236 GB, free: 65.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05086/1.711, allocations: 15.46 MB / 0.6387 GB, free: 49.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004485/1.711, allocations: 83.25 kB / 0.6388 GB, free: 49.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003088/1.714, allocations: 291.9 kB / 0.6391 GB, free: 48.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/1.718, allocations: 1.381 MB / 0.6404 GB, free: 47.53 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04153/1.759, allocations: 12.49 MB / 0.6526 GB, free: 35.02 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5108/2.27, allocations: 64.37 MB / 0.7155 GB, free: 60.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03153/2.302, allocations: 6.204 MB / 0.7216 GB, free: 59.85 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006833/2.309, allocations: 3.117 MB / 0.7246 GB, free: 59.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0274/2.336, allocations: 11.17 MB / 0.7355 GB, free: 57.06 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.303e-05/2.336, allocations: 62.75 kB / 0.7356 GB, free: 57.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 7.795e-06/2.336, allocations: 2.109 kB / 0.7356 GB, free: 57.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.1662/2.502, allocations: 29.63 MB / 0.7645 GB, free: 53.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/2.503, allocations: 249.4 kB / 0.7647 GB, free: 52.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/2.514, allocations: 4.923 MB / 0.7696 GB, free: 52.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009203/2.515, allocations: 76.92 kB / 0.7696 GB, free: 52.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003736/2.518, allocations: 4.272 MB / 0.7738 GB, free: 48.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001977/2.52, allocations: 1.24 MB / 0.775 GB, free: 47.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/2.521, allocations: 165.6 kB / 0.7752 GB, free: 47.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004762/2.522, allocations: 0.6545 MB / 0.7758 GB, free: 47.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008149/2.53, allocations: 3.531 MB / 0.7793 GB, free: 45.93 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01127/2.541, allocations: 8.005 MB / 0.7871 GB, free: 38.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/2.553, allocations: 5.281 MB / 0.7922 GB, free: 36.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000155/2.553, allocations: 44.88 kB / 0.7923 GB, free: 36.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04855/2.602, allocations: 13.91 MB / 0.8059 GB, free: 29.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/2.602, allocations: 76.94 kB / 0.8059 GB, free: 29.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002701/2.602, allocations: 159.6 kB / 0.8061 GB, free: 28.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02139/2.623, allocations: 3.558 MB / 0.8096 GB, free: 26.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01206/2.636, allocations: 1.793 MB / 0.8113 GB, free: 24.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0447/2.68, allocations: 17.92 MB / 0.8288 GB, free: 9.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01094/2.691, allocations: 486.2 kB / 0.8293 GB, free: 9.078 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002273/2.694, allocations: 475.2 kB / 0.8297 GB, free: 8.621 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (969): * Single equations (assignments): 965 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003598/2.697, allocations: 0.7004 MB / 0.8304 GB, free: 7.914 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/2.699, allocations: 0.5284 MB / 0.8309 GB, free: 7.379 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03459/2.734, allocations: 8.812 MB / 0.8395 GB, free: 480 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.872e-05/2.734, allocations: 37.92 kB / 0.8396 GB, free: 448 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.21e-05/2.734, allocations: 19.94 kB / 0.8396 GB, free: 428 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.98e-05/2.734, allocations: 15.52 kB / 0.8396 GB, free: 428 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07258/2.806, allocations: 18.59 MB / 0.8578 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.055e-05/2.807, allocations: 4 kB / 0.8578 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00482/2.811, allocations: 491.3 kB / 0.8582 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02156/2.833, allocations: 3.1 MB / 0.8613 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009661/2.834, allocations: 69.3 kB / 0.8613 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04402/2.878, allocations: 15.58 MB / 0.8765 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.33e-05/2.878, allocations: 9.688 kB / 0.8765 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04559/2.924, allocations: 14.04 MB / 0.8903 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004517/2.928, allocations: 1.091 MB / 0.8913 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/2.93, allocations: 59.28 kB / 0.8914 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006029/2.936, allocations: 203.7 kB / 0.8916 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00139/2.938, allocations: 218.3 kB / 0.8918 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004551/2.938, allocations: 95.94 kB / 0.8919 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009927/2.948, allocations: 3.477 MB / 0.8953 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.835e-06/2.948, allocations: 0 / 0.8953 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01188/2.96, allocations: 1.682 MB / 0.8969 GB, free: 5.277 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4112/3.371, allocations: 15.95 MB / 0.9125 GB, free: 150.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02258/3.394, allocations: 8.515 MB / 0.9208 GB, free: 150.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/3.394, allocations: 1.594 kB / 0.9208 GB, free: 150.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008739/3.403, allocations: 3.391 MB / 0.9241 GB, free: 150 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006399/3.409, allocations: 0.6806 MB / 0.9248 GB, free: 150 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05182/3.461, allocations: 15.8 MB / 0.9402 GB, free: 147 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01182/3.473, allocations: 4.964 MB / 0.9451 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007772/3.481, allocations: 3.112 MB / 0.9481 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of SimCode: time 2.425e-06/3.481, allocations: 0 / 0.9481 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.447/8.928, allocations: 155.4 MB / 1.1 GB, free: 135.5 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat