Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.716/2.716, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.089e-05/4.083e-05, allocations: 4 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1506, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6104/0.761, allocations: 106.8 MB / 0.5051 GB, free: 13.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.7614, allocations: 82.52 kB / 0.5051 GB, free: 13.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9853/1.747, allocations: 128.6 MB / 0.6307 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.346e-06/1.747, allocations: 1 kB / 0.6307 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004855/1.747, allocations: 115.9 kB / 0.6308 GB, free: 114.2 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02885/1.776, allocations: 6.163 MB / 0.6368 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.776, allocations: 13.3 kB / 0.6368 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005675/1.782, allocations: 1.074 MB / 0.6379 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04959/1.831, allocations: 6.436 MB / 0.6442 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0277/1.859, allocations: 7.944 MB / 0.6519 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005737/1.86, allocations: 437.3 kB / 0.6523 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00422/1.864, allocations: 0.5657 MB / 0.6529 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0516/1.916, allocations: 15.06 MB / 0.6676 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000476/1.916, allocations: 56.84 kB / 0.6676 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003791/1.92, allocations: 255.4 kB / 0.6679 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00409/1.924, allocations: 1.66 MB / 0.6695 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04408/1.968, allocations: 14.39 MB / 0.6836 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1175/2.086, allocations: 55.44 MB / 0.7377 GB, free: 60.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03035/2.116, allocations: 7.933 MB / 0.7455 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009286/2.126, allocations: 4.692 MB / 0.75 GB, free: 47.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002579/2.128, allocations: 2.203 MB / 0.7522 GB, free: 45.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/2.128, allocations: 69.06 kB / 0.7523 GB, free: 45.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.055e-06/2.128, allocations: 4 kB / 0.7523 GB, free: 45.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.1505/2.279, allocations: 33.18 MB / 0.7847 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/2.279, allocations: 120 kB / 0.7848 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009194/2.288, allocations: 3.757 MB / 0.7884 GB, free: 8.219 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001143/2.289, allocations: 85.7 kB / 0.7885 GB, free: 8.129 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003363/2.293, allocations: 3.834 MB / 0.7923 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002596/2.295, allocations: 1.483 MB / 0.7937 GB, free: 2.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/2.297, allocations: 152 kB / 0.7939 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008651/2.298, allocations: 0.6365 MB / 0.7945 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01044/2.308, allocations: 3.818 MB / 0.7982 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01491/2.323, allocations: 7.52 MB / 0.8055 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.406/2.729, allocations: 5.39 MB / 0.8108 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001584/2.73, allocations: 37.69 kB / 0.8108 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.04959/2.779, allocations: 13.54 MB / 0.8241 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/2.779, allocations: 59.81 kB / 0.8241 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002741/2.78, allocations: 130.4 kB / 0.8242 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01489/2.795, allocations: 2.622 MB / 0.8268 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01497/2.81, allocations: 1.928 MB / 0.8287 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03029/2.84, allocations: 13.61 MB / 0.842 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009699/2.85, allocations: 482.2 kB / 0.8424 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002375/2.852, allocations: 424.4 kB / 0.8428 GB, free: 111.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (914): * Single equations (assignments): 906 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003511/2.856, allocations: 0.657 MB / 0.8435 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/2.857, allocations: 466.7 kB / 0.8439 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03202/2.889, allocations: 10.35 MB / 0.854 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/2.889, allocations: 65.03 kB / 0.8541 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.043e-05/2.889, allocations: 9.797 kB / 0.8541 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001055/2.89, allocations: 21.67 kB / 0.8541 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06351/2.953, allocations: 20.87 MB / 0.8745 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-05/2.953, allocations: 11.06 kB / 0.8745 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007595/2.961, allocations: 0.784 MB / 0.8753 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01542/2.976, allocations: 2.409 MB / 0.8776 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001343/2.978, allocations: 74.58 kB / 0.8777 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03894/3.017, allocations: 12.37 MB / 0.8898 GB, free: 96.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.981e-05/3.017, allocations: 23.28 kB / 0.8898 GB, free: 96.54 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06342/3.08, allocations: 16.11 MB / 0.9056 GB, free: 87.96 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/3.083, allocations: 499.1 kB / 0.906 GB, free: 87.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0031/3.086, allocations: 84.25 kB / 0.9061 GB, free: 87.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009553/3.095, allocations: 289.7 kB / 0.9064 GB, free: 87.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002298/3.098, allocations: 264.6 kB / 0.9066 GB, free: 87.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001373/3.099, allocations: 115.9 kB / 0.9067 GB, free: 86.94 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01038/3.11, allocations: 2.617 MB / 0.9093 GB, free: 84.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.493e-06/3.11, allocations: 0 / 0.9093 GB, free: 84.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01618/3.126, allocations: 1.64 MB / 0.9109 GB, free: 83 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04355/3.17, allocations: 19.35 MB / 0.9298 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02243/3.192, allocations: 9.348 MB / 0.9389 GB, free: 57.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/3.192, allocations: 2.219 kB / 0.9389 GB, free: 57.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01028/3.202, allocations: 4.144 MB / 0.943 GB, free: 53.47 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006027/3.209, allocations: 0.6498 MB / 0.9436 GB, free: 52.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04666/3.255, allocations: 15.13 MB / 0.9584 GB, free: 39.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/3.266, allocations: 4.675 MB / 0.963 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01231/3.278, allocations: 2.729 MB / 0.9656 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007661/3.286, allocations: 2.854 MB / 0.9684 GB, free: 29.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.533e-06/3.286, allocations: 0 / 0.9684 GB, free: 29.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.672/3.958, allocations: 121.1 MB / 1.087 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/3.958, allocations: 163.8 kB / 1.087 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/11.12, allocations: 3.188 kB / 1.087 GB, free: 107.9 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat