Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.028e-05, allocations: 4 kB / 305 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4016, allocations: 54.85 MB / 359.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.6136, allocations: 98.54 MB / 458.4 MB, free: 14.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.6139, allocations: 75.95 kB / 458.5 MB, free: 14.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7974/1.411, allocations: 109.4 MB / 0.5546 GB, free: 99.58 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.883e-06/1.411, allocations: 0 / 0.5546 GB, free: 99.58 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005589/1.412, allocations: 110.7 kB / 0.5547 GB, free: 99.57 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1493 * Number of variables: 1493 Notification: Performance of Generate backend data structure: time 0.02796/1.44, allocations: 6.109 MB / 0.5606 GB, free: 97.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.44, allocations: 6.656 kB / 0.5606 GB, free: 97.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004067/1.444, allocations: 0.766 MB / 0.5614 GB, free: 97.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07571/1.52, allocations: 10.13 MB / 0.5713 GB, free: 96.98 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05216/1.572, allocations: 9.834 MB / 0.5809 GB, free: 94.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007139/1.573, allocations: 360.5 kB / 0.5812 GB, free: 94.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003348/1.576, allocations: 473 kB / 0.5817 GB, free: 94.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04655/1.623, allocations: 10.6 MB / 0.592 GB, free: 89.85 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004769/1.623, allocations: 59.22 kB / 0.5921 GB, free: 89.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002406/1.626, allocations: 200.9 kB / 0.5923 GB, free: 89.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/1.628, allocations: 0.9888 MB / 0.5932 GB, free: 89.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03449/1.663, allocations: 8.815 MB / 0.6018 GB, free: 84.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1046/1.767, allocations: 43.98 MB / 0.6448 GB, free: 39.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03942/1.807, allocations: 7.861 MB / 0.6525 GB, free: 31.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009019/1.816, allocations: 4.936 MB / 0.6573 GB, free: 26.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001915/1.818, allocations: 1.113 MB / 0.6584 GB, free: 25.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.147e-05/1.818, allocations: 60.81 kB / 0.6584 GB, free: 25.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 5.721e-06/1.818, allocations: 0 / 0.6584 GB, free: 25.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=415): time 0.729/2.547, allocations: 64.98 MB / 0.7219 GB, free: 103.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03335/2.58, allocations: 10.9 MB / 0.7325 GB, free: 99.37 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009862/2.59, allocations: 3.68 MB / 0.7361 GB, free: 98.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001353/2.592, allocations: 92.81 kB / 0.7362 GB, free: 98.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003508/2.595, allocations: 3.002 MB / 0.7392 GB, free: 96.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002719/2.598, allocations: 1.433 MB / 0.7406 GB, free: 95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/2.599, allocations: 109.8 kB / 0.7407 GB, free: 94.91 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004571/2.6, allocations: 0.5393 MB / 0.7412 GB, free: 94.51 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01071/2.611, allocations: 4.413 MB / 0.7455 GB, free: 92.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01272/2.623, allocations: 6.413 MB / 0.7518 GB, free: 88.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/2.637, allocations: 5.402 MB / 0.757 GB, free: 86.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.981e-05/2.637, allocations: 16.94 kB / 0.7571 GB, free: 86.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.0685/2.705, allocations: 18.26 MB / 0.7749 GB, free: 81.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.115e-05/2.706, allocations: 35.97 kB / 0.7749 GB, free: 81.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/2.706, allocations: 68.22 kB / 0.775 GB, free: 81.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04288/2.749, allocations: 8.607 MB / 0.7834 GB, free: 78.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007807/2.756, allocations: 1.028 MB / 0.7844 GB, free: 78.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1081/2.865, allocations: 48.46 MB / 0.8317 GB, free: 34.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00967/2.874, allocations: 495 kB / 0.8322 GB, free: 33.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/2.876, allocations: 280.9 kB / 0.8325 GB, free: 33.64 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 54 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (528): * Single equations (assignments): 523 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,51.4%) 103,(3,88.9%) 23} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.001756/2.878, allocations: 495.1 kB / 0.8329 GB, free: 33.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/2.879, allocations: 488.8 kB / 0.8334 GB, free: 32.67 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05724/2.937, allocations: 17.5 MB / 0.8505 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05681/2.993, allocations: 16.01 MB / 0.8661 GB, free: 15.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.89e-05/2.994, allocations: 24 kB / 0.8661 GB, free: 15.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001144/2.994, allocations: 23.92 kB / 0.8662 GB, free: 15.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4651/3.459, allocations: 34.57 MB / 0.8999 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.09e-05/3.459, allocations: 5.797 kB / 0.8999 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004656/3.464, allocations: 450.1 kB / 0.9004 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04223/3.506, allocations: 8.038 MB / 0.9082 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001355/3.507, allocations: 80.22 kB / 0.9083 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.107/3.614, allocations: 47.53 MB / 0.9547 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02264/3.637, allocations: 9.673 MB / 0.9641 GB, free: 83.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07012/3.707, allocations: 23.79 MB / 0.9874 GB, free: 63.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005887/3.713, allocations: 1.418 MB / 0.9888 GB, free: 62.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00256/3.716, allocations: 72.75 kB / 0.9888 GB, free: 62.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007654/3.723, allocations: 360 kB / 0.9892 GB, free: 62.35 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00236/3.726, allocations: 336.9 kB / 0.9895 GB, free: 62.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008768/3.727, allocations: 107.4 kB / 0.9896 GB, free: 62.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007493/3.734, allocations: 2.729 MB / 0.9923 GB, free: 59.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.61e-07/3.734, allocations: 0 / 0.9923 GB, free: 59.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01227/3.746, allocations: 1.976 MB / 0.9942 GB, free: 57.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.09807/3.845, allocations: 25.69 MB / 1.019 GB, free: 34.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04173/3.886, allocations: 11.96 MB / 1.031 GB, free: 22.14 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/3.887, allocations: 4 kB / 1.031 GB, free: 22.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02507/3.912, allocations: 6.9 MB / 1.038 GB, free: 15.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006295/3.918, allocations: 0.7581 MB / 1.038 GB, free: 14.49 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0433/3.961, allocations: 15.37 MB / 1.053 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008487/3.97, allocations: 4.296 MB / 1.058 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008164/3.978, allocations: 1.674 MB / 1.059 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006611/3.985, allocations: 2.6 MB / 1.062 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of SimCode: time 1.643e-06/3.985, allocations: 0 / 1.062 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.72/4.705, allocations: 160.9 MB / 1.219 GB, free: 19.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/4.705, allocations: 193.9 kB / 1.219 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/12.37, allocations: 0 / 1.219 GB, free: 19.36 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat