Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.685/2.685, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.828e-05/3.841e-05, allocations: 0 / 348.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1519, allocations: 61.88 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6136/0.7655, allocations: 110.3 MB / 0.5084 GB, free: 9.812 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.7659, allocations: 87.94 kB / 0.5085 GB, free: 9.727 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8893/1.655, allocations: 118.3 MB / 0.624 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.775e-06/1.655, allocations: 0 / 0.624 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004699/1.656, allocations: 122 kB / 0.6241 GB, free: 109.9 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02676/1.683, allocations: 5.851 MB / 0.6298 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/1.683, allocations: 8.75 kB / 0.6298 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004941/1.688, allocations: 0.9912 MB / 0.6308 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05531/1.743, allocations: 6.98 MB / 0.6376 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03888/1.782, allocations: 7.44 MB / 0.6449 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008564/1.783, allocations: 434 kB / 0.6453 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004295/1.787, allocations: 0.5646 MB / 0.6459 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04658/1.834, allocations: 13.51 MB / 0.659 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005703/1.834, allocations: 84.25 kB / 0.6591 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003111/1.838, allocations: 265.7 kB / 0.6594 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/1.84, allocations: 1.292 MB / 0.6606 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03547/1.876, allocations: 11.05 MB / 0.6714 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/1.976, allocations: 61.27 MB / 0.7313 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02725/2.003, allocations: 5.582 MB / 0.7367 GB, free: 52.47 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007416/2.011, allocations: 3.247 MB / 0.7399 GB, free: 49.47 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009548/2.012, allocations: 0.6886 MB / 0.7406 GB, free: 48.73 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/2.012, allocations: 56.56 kB / 0.7406 GB, free: 48.67 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 6.833e-06/2.012, allocations: 3.938 kB / 0.7406 GB, free: 48.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.1314/2.143, allocations: 28.72 MB / 0.7687 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/2.144, allocations: 265.2 kB / 0.7689 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009579/2.153, allocations: 4.559 MB / 0.7734 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009683/2.154, allocations: 73.7 kB / 0.7734 GB, free: 20.51 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003671/2.158, allocations: 3.976 MB / 0.7773 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001949/2.16, allocations: 1.156 MB / 0.7785 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009955/2.161, allocations: 151.9 kB / 0.7786 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004595/2.161, allocations: 0.6321 MB / 0.7792 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007773/2.169, allocations: 3.201 MB / 0.7823 GB, free: 11.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/2.18, allocations: 7.319 MB / 0.7895 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/2.192, allocations: 4.832 MB / 0.7942 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001637/2.193, allocations: 40 kB / 0.7942 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.0397/2.232, allocations: 11.89 MB / 0.8059 GB, free: 1.199 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/2.232, allocations: 68.22 kB / 0.8059 GB, free: 1.133 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002413/2.233, allocations: 152 kB / 0.8061 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4417/2.674, allocations: 2.123 MB / 0.8081 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0126/2.687, allocations: 1.72 MB / 0.8098 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03254/2.72, allocations: 14.32 MB / 0.8238 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/2.731, allocations: 447.5 kB / 0.8242 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002235/2.733, allocations: 444.1 kB / 0.8246 GB, free: 108.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (909): * Single equations (assignments): 904 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001953/2.735, allocations: 0.6767 MB / 0.8253 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001423/2.736, allocations: 491.5 kB / 0.8258 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02115/2.758, allocations: 6.912 MB / 0.8325 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.939e-05/2.758, allocations: 30.62 kB / 0.8326 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-05/2.758, allocations: 12.03 kB / 0.8326 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.659e-05/2.758, allocations: 11.02 kB / 0.8326 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04611/2.804, allocations: 15.75 MB / 0.848 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-05/2.804, allocations: 9.719 kB / 0.848 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004928/2.809, allocations: 494 kB / 0.8484 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008433/2.817, allocations: 1.881 MB / 0.8503 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008278/2.818, allocations: 55.12 kB / 0.8503 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02721/2.845, allocations: 12.83 MB / 0.8629 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/2.846, allocations: 7.531 kB / 0.8629 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02722/2.873, allocations: 11.9 MB / 0.8745 GB, free: 92.63 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/2.875, allocations: 0.5339 MB / 0.875 GB, free: 92.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001983/2.877, allocations: 61.47 kB / 0.8751 GB, free: 92.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005937/2.883, allocations: 212.2 kB / 0.8753 GB, free: 92.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/2.884, allocations: 200.1 kB / 0.8754 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004529/2.884, allocations: 85.23 kB / 0.8755 GB, free: 92.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008473/2.893, allocations: 3.214 MB / 0.8787 GB, free: 91.05 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.52e-07/2.893, allocations: 0 / 0.8787 GB, free: 91.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01027/2.903, allocations: 1.472 MB / 0.8801 GB, free: 90.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 244 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02973/2.933, allocations: 13.91 MB / 0.8937 GB, free: 83.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01935/2.952, allocations: 7.803 MB / 0.9013 GB, free: 80.67 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/2.952, allocations: 0 / 0.9013 GB, free: 80.67 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01264/2.965, allocations: 3.784 MB / 0.905 GB, free: 78.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006333/2.972, allocations: 0.6313 MB / 0.9056 GB, free: 78.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04535/3.017, allocations: 13.87 MB / 0.9192 GB, free: 66.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/3.027, allocations: 4.438 MB / 0.9235 GB, free: 63.14 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01188/3.039, allocations: 2.457 MB / 0.9259 GB, free: 61.56 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007421/3.046, allocations: 2.731 MB / 0.9286 GB, free: 59.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.523e-06/3.046, allocations: 0 / 0.9286 GB, free: 59.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6765/3.723, allocations: 116.9 MB / 1.043 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002687/3.723, allocations: 161.2 kB / 1.043 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.349/11.07, allocations: 4 kB / 1.043 GB, free: 117.6 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat