Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.566/2.566, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.422e-05, allocations: 0 / 323.5 MB, free: 4.23 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4116, allocations: 58.83 MB / 382.3 MB, free: 10.23 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2033/0.615, allocations: 105.4 MB / 487.7 MB, free: 3.035 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003535/0.6154, allocations: 75.95 kB / 487.7 MB, free: 2.961 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.873/1.488, allocations: 129 MB / 0.6023 GB, free: 73.26 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.335e-06/1.489, allocations: 0 / 0.6023 GB, free: 73.26 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0003158/1.489, allocations: 116 kB / 0.6024 GB, free: 73.15 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.0255/1.514, allocations: 6.258 MB / 0.6085 GB, free: 66.82 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/1.514, allocations: 12.03 kB / 0.6085 GB, free: 66.8 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004463/1.519, allocations: 1.096 MB / 0.6096 GB, free: 65.7 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04757/1.567, allocations: 6.458 MB / 0.6159 GB, free: 59.22 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02742/1.594, allocations: 8.573 MB / 0.6243 GB, free: 50.59 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005489/1.595, allocations: 439.4 kB / 0.6247 GB, free: 50.16 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003996/1.599, allocations: 0.5777 MB / 0.6253 GB, free: 49.58 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04778/1.646, allocations: 15.25 MB / 0.6402 GB, free: 33.61 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004379/1.647, allocations: 55.5 kB / 0.6402 GB, free: 33.55 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003511/1.65, allocations: 267.8 kB / 0.6405 GB, free: 33.29 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/1.655, allocations: 1.699 MB / 0.6421 GB, free: 31.59 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04415/1.699, allocations: 14.46 MB / 0.6562 GB, free: 17.12 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1294/1.828, allocations: 56.37 MB / 0.7113 GB, free: 7.508 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4273/2.256, allocations: 7.932 MB / 0.719 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01185/2.268, allocations: 4.693 MB / 0.7236 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002964/2.271, allocations: 2.217 MB / 0.7258 GB, free: 117.1 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.624e-05/2.271, allocations: 63.23 kB / 0.7258 GB, free: 117.1 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=367): time 7.524e-06/2.271, allocations: 0 / 0.7258 GB, free: 117.1 MB / 0.4949 GB Notification: Performance of matching and sorting (n=419): time 0.1529/2.424, allocations: 33.38 MB / 0.7584 GB, free: 115.4 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/2.424, allocations: 118 kB / 0.7586 GB, free: 115.3 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008992/2.433, allocations: 3.843 MB / 0.7623 GB, free: 114 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001193/2.434, allocations: 85.64 kB / 0.7624 GB, free: 113.9 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003473/2.438, allocations: 3.916 MB / 0.7662 GB, free: 111.1 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002682/2.44, allocations: 1.496 MB / 0.7677 GB, free: 110 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/2.442, allocations: 151.5 kB / 0.7678 GB, free: 109.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006242/2.442, allocations: 0.6386 MB / 0.7684 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009429/2.452, allocations: 3.825 MB / 0.7722 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01257/2.464, allocations: 7.58 MB / 0.7796 GB, free: 102 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01268/2.477, allocations: 5.43 MB / 0.7849 GB, free: 100.4 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001353/2.477, allocations: 38.62 kB / 0.7849 GB, free: 100.4 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.04202/2.519, allocations: 13.6 MB / 0.7982 GB, free: 91.91 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/2.519, allocations: 64 kB / 0.7983 GB, free: 91.84 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/2.52, allocations: 128 kB / 0.7984 GB, free: 91.72 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/2.533, allocations: 2.63 MB / 0.8009 GB, free: 89.95 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01388/2.547, allocations: 1.95 MB / 0.8029 GB, free: 88.36 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02891/2.576, allocations: 13.62 MB / 0.8161 GB, free: 76.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009622/2.585, allocations: 487.8 kB / 0.8166 GB, free: 76.23 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/2.587, allocations: 430.5 kB / 0.817 GB, free: 75.83 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * Number of states: 0 () * Number of discrete variables: 48 (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.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 (923): * Single equations (assignments): 915 * 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.002046/2.589, allocations: 0.66 MB / 0.8177 GB, free: 75.17 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001319/2.591, allocations: 466 kB / 0.8181 GB, free: 74.71 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03056/2.621, allocations: 10.36 MB / 0.8282 GB, free: 66.53 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001239/2.621, allocations: 63.94 kB / 0.8283 GB, free: 66.47 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/2.621, allocations: 8.625 kB / 0.8283 GB, free: 66.46 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001046/2.622, allocations: 17.81 kB / 0.8283 GB, free: 66.46 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06136/2.683, allocations: 20.97 MB / 0.8488 GB, free: 48.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.554e-05/2.683, allocations: 12 kB / 0.8488 GB, free: 48.11 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007289/2.69, allocations: 0.7878 MB / 0.8496 GB, free: 47.32 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01261/2.703, allocations: 2.415 MB / 0.8519 GB, free: 44.9 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/2.704, allocations: 79.94 kB / 0.852 GB, free: 44.82 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02619/2.73, allocations: 12.37 MB / 0.8641 GB, free: 32.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/2.73, allocations: 15.94 kB / 0.8641 GB, free: 32.16 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04002/2.77, allocations: 16.14 MB / 0.8799 GB, free: 15.34 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00491/2.775, allocations: 1.155 MB / 0.881 GB, free: 14.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001921/2.777, allocations: 83.83 kB / 0.8811 GB, free: 14.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005894/2.783, allocations: 291.6 kB / 0.8814 GB, free: 13.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/2.785, allocations: 272.8 kB / 0.8816 GB, free: 13.54 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005165/2.785, allocations: 112 kB / 0.8817 GB, free: 13.43 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006651/2.792, allocations: 2.688 MB / 0.8843 GB, free: 10.73 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.142e-06/2.792, allocations: 0 / 0.8843 GB, free: 10.73 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01072/2.803, allocations: 1.652 MB / 0.886 GB, free: 9.09 MB / 0.4949 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.04638/2.849, allocations: 19.36 MB / 0.9049 GB, free: 5.285 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3811/3.23, allocations: 9.366 MB / 0.914 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/3.23, allocations: 3.688 kB / 0.914 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01044/3.241, allocations: 4.141 MB / 0.9181 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006017/3.247, allocations: 0.6337 MB / 0.9187 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04831/3.295, allocations: 15.36 MB / 0.9337 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01016/3.306, allocations: 4.75 MB / 0.9383 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01228/3.318, allocations: 2.738 MB / 0.941 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00714/3.325, allocations: 2.916 MB / 0.9438 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.502e-06/3.325, allocations: 0 / 0.9438 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2937/3.619, allocations: 122.2 MB / 1.063 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/3.619, allocations: 174.8 kB / 1.063 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.535/10.15, allocations: 0 / 1.063 GB, free: 34.02 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat