Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.962/1.962, allocations: 209.4 MB / 216.9 MB, free: 6.73 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.865e-05, allocations: 4 kB / 267.6 MB, free: 5.395 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 48.69 MB / 316.3 MB, free: 4.598 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4525/0.5612, allocations: 102.3 MB / 418.6 MB, free: 6.336 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5615, allocations: 74.09 kB / 418.7 MB, free: 6.301 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.8878/1.449, allocations: 151.2 MB / 0.5565 GB, free: 75.37 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.494e-06/1.449, allocations: 4 kB / 0.5565 GB, free: 75.37 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.000388/1.45, allocations: 132 kB / 0.5566 GB, free: 75.24 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02554/1.475, allocations: 6.544 MB / 0.563 GB, free: 68.63 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/1.475, allocations: 12.03 kB / 0.563 GB, free: 68.62 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05009/1.525, allocations: 6.679 MB / 0.5696 GB, free: 61.92 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0287/1.554, allocations: 8.358 MB / 0.5777 GB, free: 53.57 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004622/1.555, allocations: 228 kB / 0.5779 GB, free: 53.35 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003928/1.559, allocations: 423.8 kB / 0.5783 GB, free: 52.93 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02741/1.586, allocations: 11.66 MB / 0.5897 GB, free: 41.27 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04155/1.628, allocations: 15.88 MB / 0.6052 GB, free: 24.07 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004459/1.628, allocations: 91.12 kB / 0.6053 GB, free: 23.98 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003456/1.632, allocations: 40 kB / 0.6054 GB, free: 23.94 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003788/1.636, allocations: 1.726 MB / 0.607 GB, free: 22.21 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4353/2.071, allocations: 70.76 MB / 0.6761 GB, free: 46.26 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00985/2.081, allocations: 4.669 MB / 0.6807 GB, free: 45.03 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006114/2.087, allocations: 2.673 MB / 0.6833 GB, free: 44.98 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03545/2.122, allocations: 13.7 MB / 0.6967 GB, free: 40.73 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/2.123, allocations: 57.16 kB / 0.6967 GB, free: 40.69 MB / 426.8 MB Notification: Performance of pre-optimization done (n=286): time 8.616e-06/2.123, allocations: 0 / 0.6967 GB, free: 40.69 MB / 426.8 MB Notification: Performance of matching and sorting (n=346): time 0.07742/2.2, allocations: 18.02 MB / 0.7143 GB, free: 36.62 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/2.2, allocations: 184.3 kB / 0.7145 GB, free: 36.43 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/2.211, allocations: 4.598 MB / 0.719 GB, free: 34.79 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000749/2.212, allocations: 25.7 kB / 0.719 GB, free: 34.76 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004248/2.216, allocations: 4.993 MB / 0.7239 GB, free: 30.8 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001872/2.218, allocations: 1.254 MB / 0.7251 GB, free: 29.87 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/2.219, allocations: 2.125 kB / 0.7251 GB, free: 29.87 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006737/2.22, allocations: 0.7285 MB / 0.7258 GB, free: 29.38 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007367/2.227, allocations: 3.047 MB / 0.7288 GB, free: 28.27 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/2.239, allocations: 8.726 MB / 0.7373 GB, free: 19.52 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0136/2.252, allocations: 5.303 MB / 0.7425 GB, free: 17.95 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002318/2.253, allocations: 56.5 kB / 0.7426 GB, free: 17.95 MB / 426.8 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.03758/2.29, allocations: 11.58 MB / 0.7539 GB, free: 13.75 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/2.29, allocations: 93 kB / 0.754 GB, free: 13.66 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000293/2.291, allocations: 206 kB / 0.7542 GB, free: 13.46 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007129/2.298, allocations: 1.309 MB / 0.7554 GB, free: 12.43 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01357/2.311, allocations: 2.263 MB / 0.7576 GB, free: 10.45 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01543/2.327, allocations: 6.835 MB / 0.7643 GB, free: 4.336 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01071/2.338, allocations: 381.1 kB / 0.7647 GB, free: 4.039 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002395/2.34, allocations: 0.5744 MB / 0.7652 GB, free: 3.469 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1203): * Single equations (assignments): 1196 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003154/2.343, allocations: 0.6036 MB / 0.7658 GB, free: 2.863 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02278/2.366, allocations: 5.438 MB / 0.7711 GB, free: 15.07 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001844/2.368, allocations: 0.4974 MB / 0.7716 GB, free: 14.57 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01915/2.387, allocations: 5.039 MB / 0.7766 GB, free: 10.39 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/2.387, allocations: 36 kB / 0.7766 GB, free: 10.35 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/2.387, allocations: 8 kB / 0.7766 GB, free: 10.34 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.046e-05/2.388, allocations: 13.64 kB / 0.7766 GB, free: 10.34 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04391/2.431, allocations: 12.24 MB / 0.7886 GB, free: 164 kB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.848e-05/2.432, allocations: 12 kB / 0.7886 GB, free: 152 kB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004831/2.436, allocations: 0.5244 MB / 0.7891 GB, free: 15.73 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006254/2.443, allocations: 0.8638 MB / 0.7899 GB, free: 15.11 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006739/2.443, allocations: 27.94 kB / 0.79 GB, free: 15.08 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/2.457, allocations: 5.142 MB / 0.795 GB, free: 10.44 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.8e-05/2.457, allocations: 19.89 kB / 0.795 GB, free: 10.42 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02534/2.483, allocations: 9.784 MB / 0.8046 GB, free: 1.078 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003788/2.486, allocations: 0.9004 MB / 0.8054 GB, free: 228 kB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001868/2.488, allocations: 19.75 kB / 0.8054 GB, free: 212 kB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004856/2.493, allocations: 127.2 kB / 0.8056 GB, free: 136 kB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001277/2.495, allocations: 230.8 kB / 0.8058 GB, free: 0 / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001227/2.496, allocations: 147.4 kB / 0.8059 GB, free: 0 / 458.8 MB Notification: Performance of sorting global known variables: time 0.008862/2.505, allocations: 3.048 MB / 0.8089 GB, free: 13.38 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.92e-07/2.505, allocations: 4 kB / 0.8089 GB, free: 13.37 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0125/2.517, allocations: 1.423 MB / 0.8103 GB, free: 11.96 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (269): * Single equations (assignments): 262 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3399/2.857, allocations: 12.94 MB / 0.8229 GB, free: 120.6 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01938/2.877, allocations: 7.283 MB / 0.8301 GB, free: 120.4 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/2.877, allocations: 3.156 kB / 0.8301 GB, free: 120.4 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006432/2.883, allocations: 2.276 MB / 0.8323 GB, free: 120.3 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004984/2.888, allocations: 0.5022 MB / 0.8328 GB, free: 120.3 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05284/2.941, allocations: 15.48 MB / 0.8479 GB, free: 117.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01253/2.954, allocations: 5.316 MB / 0.8531 GB, free: 116.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008047/2.962, allocations: 3.426 MB / 0.8564 GB, free: 116.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.674e-06/2.962, allocations: 0 / 0.8564 GB, free: 116.5 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.722/8.684, allocations: 161.8 MB / 1.014 GB, free: 116.5 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat