Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.622e-05, allocations: 0 / 299.5 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4511/0.4512, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2087/0.6599, allocations: 99.09 MB / 453.4 MB, free: 15.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.6603, allocations: 75.91 kB / 453.5 MB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8222/1.483, allocations: 114.5 MB / 0.5547 GB, free: 73.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.483, allocations: 0 / 0.5547 GB, free: 73.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002273/1.483, allocations: 96 kB / 0.5548 GB, free: 73.61 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: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01851/1.501, allocations: 4.441 MB / 0.5591 GB, free: 69.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/1.501, allocations: 12.03 kB / 0.5591 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03727/1.539, allocations: 3.655 MB / 0.5627 GB, free: 65.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02284/1.562, allocations: 4.799 MB / 0.5674 GB, free: 60.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004032/1.562, allocations: 160.7 kB / 0.5675 GB, free: 60.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003421/1.566, allocations: 288 kB / 0.5678 GB, free: 60.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02264/1.588, allocations: 8.454 MB / 0.5761 GB, free: 51.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03511/1.623, allocations: 11.21 MB / 0.587 GB, free: 39.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002283/1.624, allocations: 31.75 kB / 0.587 GB, free: 39.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002148/1.626, allocations: 19.94 kB / 0.5871 GB, free: 39.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003108/1.629, allocations: 1.393 MB / 0.5884 GB, free: 38.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08045/1.709, allocations: 39.74 MB / 0.6272 GB, free: 13.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008658/1.718, allocations: 4.367 MB / 0.6315 GB, free: 9.367 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00526/1.723, allocations: 2.374 MB / 0.6338 GB, free: 6.988 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001905/1.725, allocations: 1.315 MB / 0.6351 GB, free: 5.453 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.812e-05/1.726, allocations: 56.55 kB / 0.6351 GB, free: 5.387 MB / 442.7 MB Notification: Performance of pre-optimization done (n=252): time 6.853e-06/1.726, allocations: 0 / 0.6351 GB, free: 5.387 MB / 442.7 MB Notification: Performance of matching and sorting (n=271): time 0.06345/1.789, allocations: 18.88 MB / 0.6536 GB, free: 2.379 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/1.789, allocations: 103.1 kB / 0.6537 GB, free: 2.262 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006257/1.795, allocations: 2.647 MB / 0.6563 GB, free: 15.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006044/1.796, allocations: 29.7 kB / 0.6563 GB, free: 15.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003774/1.8, allocations: 3.363 MB / 0.6596 GB, free: 12.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001872/1.802, allocations: 0.9633 MB / 0.6605 GB, free: 11.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000722/1.802, allocations: 0 / 0.6605 GB, free: 11.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006104/1.803, allocations: 0.583 MB / 0.6611 GB, free: 10.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006247/1.809, allocations: 2.395 MB / 0.6634 GB, free: 8.191 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/1.82, allocations: 6.016 MB / 0.6693 GB, free: 372 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3436/2.163, allocations: 3.828 MB / 0.673 GB, free: 116.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/2.163, allocations: 35.84 kB / 0.6731 GB, free: 116.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02642/2.19, allocations: 8.574 MB / 0.6814 GB, free: 116.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/2.19, allocations: 61.47 kB / 0.6815 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001858/2.19, allocations: 128.2 kB / 0.6816 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005393/2.196, allocations: 1.075 MB / 0.6827 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009335/2.205, allocations: 1.482 MB / 0.6841 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/2.215, allocations: 4.878 MB / 0.6889 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0065/2.222, allocations: 214.5 kB / 0.6891 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/2.223, allocations: 381.6 kB / 0.6895 GB, free: 114.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (797): * Single equations (assignments): 790 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001403/2.225, allocations: 437.5 kB / 0.6899 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01298/2.238, allocations: 4.657 MB / 0.6944 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/2.239, allocations: 311.4 kB / 0.6947 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01534/2.254, allocations: 5.192 MB / 0.6998 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001538/2.255, allocations: 51.27 kB / 0.6998 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/2.255, allocations: 4.406 kB / 0.6998 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.678e-05/2.255, allocations: 12.05 kB / 0.6999 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03282/2.287, allocations: 12 MB / 0.7116 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-05/2.288, allocations: 12.72 kB / 0.7116 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003736/2.291, allocations: 434.6 kB / 0.712 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004892/2.296, allocations: 0.8769 MB / 0.7129 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005926/2.297, allocations: 26.12 kB / 0.7129 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008841/2.306, allocations: 4.237 MB / 0.717 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.949e-05/2.306, allocations: 21.88 kB / 0.717 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/2.324, allocations: 8.963 MB / 0.7258 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002786/2.327, allocations: 0.7176 MB / 0.7265 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/2.329, allocations: 22.98 kB / 0.7265 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/2.331, allocations: 113.2 kB / 0.7266 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005929/2.332, allocations: 166.5 kB / 0.7268 GB, free: 103.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002628/2.332, allocations: 81.89 kB / 0.7269 GB, free: 103.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003522/2.336, allocations: 1.727 MB / 0.7286 GB, free: 102.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.336, allocations: 2.344 kB / 0.7286 GB, free: 102.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007211/2.343, allocations: 0.974 MB / 0.7295 GB, free: 101.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 205 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01995/2.363, allocations: 12.6 MB / 0.7418 GB, free: 89.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01268/2.376, allocations: 5.822 MB / 0.7475 GB, free: 84.44 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/2.376, allocations: 0 / 0.7475 GB, free: 84.44 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00468/2.381, allocations: 2.188 MB / 0.7496 GB, free: 82.46 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/2.383, allocations: 272.2 kB / 0.7499 GB, free: 82.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/2.417, allocations: 11.19 MB / 0.7608 GB, free: 72.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008332/2.425, allocations: 3.92 MB / 0.7646 GB, free: 69.45 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009243/2.435, allocations: 2.302 MB / 0.7669 GB, free: 67.98 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004948/2.44, allocations: 2.202 MB / 0.769 GB, free: 65.94 MB / 474.7 MB Notification: Performance of SimCode: time 1.423e-06/2.44, allocations: 0 / 0.769 GB, free: 65.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2322/2.672, allocations: 74.45 MB / 0.8417 GB, free: 10.38 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000316/2.672, allocations: 125.2 kB / 0.8419 GB, free: 10.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.041/7.713, allocations: 0 / 0.8419 GB, free: 10.19 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat