Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.983/1.983, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.568e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5161/0.621, allocations: 104.1 MB / 425.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003661/0.6214, allocations: 71.97 kB / 426 MB, free: 1.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002/1.624, allocations: 171.9 MB / 0.5838 GB, free: 75.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.624, allocations: 0 / 0.5838 GB, free: 75.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005036/1.624, allocations: 152 kB / 0.584 GB, free: 75.08 MB / 426.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.03366/1.658, allocations: 7.697 MB / 0.5915 GB, free: 67.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.506e-05/1.658, allocations: 12.03 kB / 0.5915 GB, free: 67.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007908/1.666, allocations: 1.622 MB / 0.5931 GB, free: 65.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05388/1.72, allocations: 6.951 MB / 0.5999 GB, free: 58.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03504/1.755, allocations: 9.831 MB / 0.6095 GB, free: 48.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007717/1.756, allocations: 0.5696 MB / 0.61 GB, free: 48.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004836/1.761, allocations: 0.7691 MB / 0.6108 GB, free: 47.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06597/1.827, allocations: 20.54 MB / 0.6309 GB, free: 25.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00059/1.828, allocations: 91.2 kB / 0.6309 GB, free: 25.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004352/1.832, allocations: 367.8 kB / 0.6313 GB, free: 25.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004617/1.837, allocations: 1.95 MB / 0.6332 GB, free: 23.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05695/1.894, allocations: 17.92 MB / 0.6507 GB, free: 5.113 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4614/2.355, allocations: 82.16 MB / 0.7309 GB, free: 22.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0288/2.384, allocations: 7.311 MB / 0.7381 GB, free: 20.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008957/2.393, allocations: 3.924 MB / 0.7419 GB, free: 18.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05089/2.444, allocations: 18.22 MB / 0.7597 GB, free: 9.457 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.907e-05/2.444, allocations: 67.53 kB / 0.7598 GB, free: 9.395 MB / 426.7 MB Notification: Performance of pre-optimization done (n=332): time 8.195e-06/2.444, allocations: 0 / 0.7598 GB, free: 9.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=413): time 0.1438/2.588, allocations: 26.09 MB / 0.7852 GB, free: 1.285 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/2.588, allocations: 196.6 kB / 0.7854 GB, free: 1.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03037/2.618, allocations: 6.557 MB / 0.7918 GB, free: 14.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001007/2.619, allocations: 85.06 kB / 0.7919 GB, free: 14.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006055/2.626, allocations: 5.254 MB / 0.7971 GB, free: 9.457 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002836/2.628, allocations: 1.514 MB / 0.7985 GB, free: 8.117 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001956/2.63, allocations: 211.4 kB / 0.7987 GB, free: 7.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001217/2.632, allocations: 0.7552 MB / 0.7995 GB, free: 7.277 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01217/2.644, allocations: 4.02 MB / 0.8034 GB, free: 3.621 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0188/2.663, allocations: 9.853 MB / 0.813 GB, free: 7.754 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01695/2.68, allocations: 6.239 MB / 0.8191 GB, free: 2.562 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002379/2.68, allocations: 60 kB / 0.8192 GB, free: 2.504 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.3787/3.059, allocations: 15.46 MB / 0.8343 GB, free: 94.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001899/3.059, allocations: 93.55 kB / 0.8344 GB, free: 94.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004547/3.059, allocations: 204.5 kB / 0.8346 GB, free: 94.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/3.074, allocations: 2.333 MB / 0.8368 GB, free: 94.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01684/3.091, allocations: 2.438 MB / 0.8392 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02949/3.121, allocations: 11.53 MB / 0.8505 GB, free: 92.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01307/3.134, allocations: 0.6874 MB / 0.8511 GB, free: 92.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002545/3.136, allocations: 0.5852 MB / 0.8517 GB, free: 92.77 MB / 458.7 MB 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.004121/3.141, allocations: 0.8683 MB / 0.8526 GB, free: 92.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002425/3.143, allocations: 0.5983 MB / 0.8531 GB, free: 92.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03259/3.176, allocations: 8.088 MB / 0.861 GB, free: 92.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/3.176, allocations: 63.09 kB / 0.8611 GB, free: 92.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.477e-05/3.176, allocations: 11.28 kB / 0.8611 GB, free: 92.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.201e-05/3.176, allocations: 22.42 kB / 0.8611 GB, free: 92.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06285/3.239, allocations: 18.75 MB / 0.8794 GB, free: 85.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.627e-05/3.239, allocations: 10.25 kB / 0.8795 GB, free: 85.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005883/3.245, allocations: 0.646 MB / 0.8801 GB, free: 85.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01235/3.257, allocations: 1.878 MB / 0.8819 GB, free: 85.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009631/3.258, allocations: 79.86 kB / 0.882 GB, free: 85.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02569/3.284, allocations: 9.867 MB / 0.8916 GB, free: 80.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.642e-05/3.284, allocations: 17.5 kB / 0.8916 GB, free: 80.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0363/3.32, allocations: 14.18 MB / 0.9055 GB, free: 73.58 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004643/3.325, allocations: 1.155 MB / 0.9066 GB, free: 72.92 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002149/3.327, allocations: 75.66 kB / 0.9067 GB, free: 72.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0064/3.334, allocations: 271.5 kB / 0.9069 GB, free: 72.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001478/3.335, allocations: 259.1 kB / 0.9072 GB, free: 72.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005133/3.336, allocations: 113.7 kB / 0.9073 GB, free: 72.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01022/3.346, allocations: 3.934 MB / 0.9111 GB, free: 69.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.252e-06/3.346, allocations: 0 / 0.9111 GB, free: 69.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01312/3.359, allocations: 1.936 MB / 0.913 GB, free: 67.56 MB / 458.7 MB 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.03779/3.397, allocations: 17.1 MB / 0.9297 GB, free: 51.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02288/3.42, allocations: 9.625 MB / 0.9391 GB, free: 42.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/3.42, allocations: 0 / 0.9391 GB, free: 42.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008314/3.428, allocations: 3.29 MB / 0.9423 GB, free: 39.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00641/3.435, allocations: 0.7196 MB / 0.9431 GB, free: 39.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06014/3.495, allocations: 18.1 MB / 0.9607 GB, free: 23.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01439/3.509, allocations: 5.754 MB / 0.9663 GB, free: 19.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009914/3.519, allocations: 3.755 MB / 0.97 GB, free: 15.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.734e-06/3.519, allocations: 0 / 0.97 GB, free: 15.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.015/9.535, allocations: 183.2 MB / 1.149 GB, free: 3.902 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat