Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.889/1.889, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.47e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5412, allocations: 101.5 MB / 417.8 MB, free: 7.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5415, allocations: 78.58 kB / 417.9 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8391/1.381, allocations: 139.4 MB / 0.5442 GB, free: 81.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.381, allocations: 3.938 kB / 0.5442 GB, free: 81.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000504/1.381, allocations: 135.6 kB / 0.5443 GB, free: 81.59 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2162 * Number of variables: 2162 Notification: Performance of Generate backend data structure: time 0.02698/1.408, allocations: 6.631 MB / 0.5508 GB, free: 77.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.408, allocations: 7.125 kB / 0.5508 GB, free: 77.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06587/1.474, allocations: 9.334 MB / 0.5599 GB, free: 70.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03146/1.506, allocations: 9.11 MB / 0.5688 GB, free: 61.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/1.506, allocations: 204 kB / 0.569 GB, free: 61.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0033/1.509, allocations: 391.7 kB / 0.5694 GB, free: 61.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02308/1.533, allocations: 9.334 MB / 0.5785 GB, free: 51.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/1.567, allocations: 13.26 MB / 0.5915 GB, free: 37.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004542/1.568, allocations: 83.2 kB / 0.5915 GB, free: 37.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003024/1.571, allocations: 36 kB / 0.5916 GB, free: 37.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/1.574, allocations: 1.385 MB / 0.5929 GB, free: 35.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4255/2, allocations: 62.22 MB / 0.6537 GB, free: 56.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008566/2.008, allocations: 4.341 MB / 0.6579 GB, free: 55.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006081/2.014, allocations: 3.013 MB / 0.6609 GB, free: 55.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004591/2.019, allocations: 2.388 MB / 0.6632 GB, free: 53.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/2.019, allocations: 59.77 kB / 0.6633 GB, free: 53.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=251): time 1.046e-05/2.019, allocations: 2.078 kB / 0.6633 GB, free: 53.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=343): time 0.1677/2.187, allocations: 27.57 MB / 0.6902 GB, free: 50.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/2.187, allocations: 247.5 kB / 0.6904 GB, free: 49.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/2.198, allocations: 4.377 MB / 0.6947 GB, free: 49.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008898/2.199, allocations: 25.7 kB / 0.6947 GB, free: 49.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003523/2.202, allocations: 4.357 MB / 0.699 GB, free: 46.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001825/2.204, allocations: 1.208 MB / 0.7002 GB, free: 45.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008366/2.205, allocations: 3.344 kB / 0.7002 GB, free: 45.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005201/2.205, allocations: 0.6687 MB / 0.7008 GB, free: 44.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007449/2.213, allocations: 3.432 MB / 0.7042 GB, free: 43.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/2.224, allocations: 8.071 MB / 0.712 GB, free: 35.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/2.235, allocations: 5.2 MB / 0.7171 GB, free: 33.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001888/2.235, allocations: 49.41 kB / 0.7172 GB, free: 33.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.04531/2.281, allocations: 13.49 MB / 0.7303 GB, free: 28.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/2.281, allocations: 78.97 kB / 0.7304 GB, free: 28.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/2.281, allocations: 164 kB / 0.7306 GB, free: 28.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02052/2.302, allocations: 3.497 MB / 0.734 GB, free: 26.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/2.313, allocations: 1.854 MB / 0.7358 GB, free: 24.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03863/2.352, allocations: 16.83 MB / 0.7522 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00998/2.362, allocations: 322.5 kB / 0.7526 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002156/2.364, allocations: 490.3 kB / 0.753 GB, free: 9.203 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 748 * 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 (1001): * Single equations (assignments): 997 * 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.002224/2.366, allocations: 0.509 MB / 0.7535 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03028/2.397, allocations: 8.545 MB / 0.7619 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/2.399, allocations: 0.5047 MB / 0.7624 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04184/2.441, allocations: 9.002 MB / 0.7711 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.984e-05/2.441, allocations: 32 kB / 0.7712 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-05/2.441, allocations: 16 kB / 0.7712 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.632e-05/2.441, allocations: 14.44 kB / 0.7712 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06591/2.507, allocations: 17.3 MB / 0.7881 GB, free: 10.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.013e-05/2.507, allocations: 11 kB / 0.7881 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004838/2.512, allocations: 0.4921 MB / 0.7886 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02072/2.532, allocations: 3.049 MB / 0.7916 GB, free: 7.277 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008684/2.533, allocations: 19.98 kB / 0.7916 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03981/2.573, allocations: 14.49 MB / 0.8057 GB, free: 8.652 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.585e-05/2.573, allocations: 8 kB / 0.8057 GB, free: 8.645 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04447/2.618, allocations: 13.83 MB / 0.8192 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00444/2.622, allocations: 1.057 MB / 0.8203 GB, free: 9.434 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/2.624, allocations: 9.594 kB / 0.8203 GB, free: 9.426 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006012/2.63, allocations: 159.8 kB / 0.8204 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001569/2.632, allocations: 222.2 kB / 0.8207 GB, free: 9.051 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006049/2.633, allocations: 91.98 kB / 0.8207 GB, free: 8.961 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008669/2.641, allocations: 2.986 MB / 0.8237 GB, free: 5.996 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.641, allocations: 0 / 0.8237 GB, free: 5.996 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01206/2.653, allocations: 1.463 MB / 0.8251 GB, free: 4.543 MB / 490.7 MB 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 (259): * Single equations (assignments): 255 * 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.3984/3.052, allocations: 15.72 MB / 0.8404 GB, free: 140 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02012/3.072, allocations: 8.453 MB / 0.8487 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/3.072, allocations: 3.344 kB / 0.8487 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007502/3.08, allocations: 3.356 MB / 0.852 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005574/3.085, allocations: 0.5843 MB / 0.8525 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05061/3.136, allocations: 15.49 MB / 0.8677 GB, free: 135.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01582/3.152, allocations: 4.959 MB / 0.8725 GB, free: 134.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01128/3.163, allocations: 3.102 MB / 0.8755 GB, free: 131.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.725e-06/3.163, allocations: 0 / 0.8755 GB, free: 131.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.716/8.879, allocations: 153.8 MB / 1.026 GB, free: 133.7 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat