Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.874/1.874, allocations: 209.4 MB / 216.5 MB, free: 6.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.439e-05/2.489e-05, allocations: 4 kB / 267.6 MB, free: 4.957 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 48.7 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4636/0.5675, allocations: 98.48 MB / 414.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5678, allocations: 74.52 kB / 414.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8386/1.406, allocations: 133 MB / 0.535 GB, free: 84.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.407, allocations: 4 kB / 0.535 GB, free: 84.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004867/1.407, allocations: 132.1 kB / 0.5351 GB, free: 84.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03008/1.437, allocations: 7.033 MB / 0.542 GB, free: 81.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/1.437, allocations: 10.66 kB / 0.542 GB, free: 81.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05559/1.493, allocations: 7.558 MB / 0.5494 GB, free: 78.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0339/1.527, allocations: 9.789 MB / 0.5589 GB, free: 71.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/1.527, allocations: 209.7 kB / 0.5591 GB, free: 70.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003603/1.531, allocations: 395.7 kB / 0.5595 GB, free: 70.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02368/1.554, allocations: 9.679 MB / 0.569 GB, free: 60.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03587/1.59, allocations: 14.23 MB / 0.5829 GB, free: 45.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000617/1.591, allocations: 103.1 kB / 0.583 GB, free: 45.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002903/1.594, allocations: 44 kB / 0.583 GB, free: 45.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003513/1.598, allocations: 1.58 MB / 0.5846 GB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.461/2.059, allocations: 73.67 MB / 0.6565 GB, free: 51.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01133/2.07, allocations: 5.231 MB / 0.6616 GB, free: 50.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008384/2.078, allocations: 3.768 MB / 0.6653 GB, free: 50.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003772/2.082, allocations: 2.256 MB / 0.6675 GB, free: 48.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.255e-05/2.082, allocations: 68.94 kB / 0.6675 GB, free: 48.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=301): time 7.744e-06/2.082, allocations: 0 / 0.6675 GB, free: 48.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=381): time 0.1678/2.25, allocations: 40.66 MB / 0.7073 GB, free: 38.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/2.25, allocations: 276.2 kB / 0.7075 GB, free: 38.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/2.26, allocations: 4.638 MB / 0.712 GB, free: 37.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/2.262, allocations: 29.05 kB / 0.7121 GB, free: 37.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004209/2.266, allocations: 4.769 MB / 0.7167 GB, free: 33.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002223/2.268, allocations: 1.354 MB / 0.7181 GB, free: 32.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/2.269, allocations: 0 / 0.7181 GB, free: 32.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005973/2.27, allocations: 0.7117 MB / 0.7187 GB, free: 31.94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008285/2.278, allocations: 3.644 MB / 0.7223 GB, free: 30.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01176/2.29, allocations: 8.921 MB / 0.731 GB, free: 21.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/2.302, allocations: 5.588 MB / 0.7365 GB, free: 16.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001904/2.302, allocations: 52 kB / 0.7365 GB, free: 16.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.05198/2.354, allocations: 15.53 MB / 0.7517 GB, free: 4.121 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/2.354, allocations: 87.95 kB / 0.7518 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002731/2.355, allocations: 188 kB / 0.752 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02167/2.376, allocations: 4.083 MB / 0.7559 GB, free: 1.012 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01398/2.39, allocations: 2.108 MB / 0.758 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05559/2.446, allocations: 21.05 MB / 0.7786 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0119/2.458, allocations: 389.7 kB / 0.7789 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002676/2.461, allocations: 0.5468 MB / 0.7795 GB, free: 12.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (1121): * Single equations (assignments): 1116 * 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 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002471/2.463, allocations: 0.5797 MB / 0.78 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04041/2.504, allocations: 9.852 MB / 0.7896 GB, free: 2.199 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002525/2.506, allocations: 0.5399 MB / 0.7902 GB, free: 1.652 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03863/2.545, allocations: 9.566 MB / 0.7995 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/2.545, allocations: 41.17 kB / 0.7996 GB, free: 7.988 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-05/2.545, allocations: 19.95 kB / 0.7996 GB, free: 7.969 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001016/2.545, allocations: 19.88 kB / 0.7996 GB, free: 7.949 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07387/2.619, allocations: 18.14 MB / 0.8173 GB, free: 5.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.215e-05/2.619, allocations: 6.938 kB / 0.8173 GB, free: 5.676 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005717/2.625, allocations: 0.5304 MB / 0.8178 GB, free: 5.145 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02208/2.647, allocations: 3.514 MB / 0.8213 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001092/2.648, allocations: 15.98 kB / 0.8213 GB, free: 1.605 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4003/3.049, allocations: 17.65 MB / 0.8385 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/3.049, allocations: 3.844 kB / 0.8385 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04637/3.095, allocations: 14.3 MB / 0.8525 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004499/3.1, allocations: 1.084 MB / 0.8535 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002206/3.102, allocations: 7.562 kB / 0.8535 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006391/3.108, allocations: 172.4 kB / 0.8537 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001808/3.11, allocations: 246.1 kB / 0.8539 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006276/3.111, allocations: 99.88 kB / 0.854 GB, free: 138.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008452/3.119, allocations: 3.121 MB / 0.8571 GB, free: 137.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.119, allocations: 0 / 0.8571 GB, free: 137.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01329/3.133, allocations: 1.61 MB / 0.8587 GB, free: 137.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (284): * Single equations (assignments): 279 * 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 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04452/3.177, allocations: 15.52 MB / 0.8738 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02225/3.2, allocations: 9.221 MB / 0.8828 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/3.2, allocations: 2.281 kB / 0.8828 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00941/3.209, allocations: 3.67 MB / 0.8864 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00641/3.216, allocations: 0.5835 MB / 0.887 GB, free: 126.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07047/3.286, allocations: 15.01 MB / 0.9016 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01619/3.302, allocations: 5.011 MB / 0.9065 GB, free: 115.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01498/3.317, allocations: 2.879 MB / 0.9093 GB, free: 114 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008278/3.326, allocations: 3.257 MB / 0.9125 GB, free: 111 MB / 490.7 MB Notification: Performance of SimCode: time 2.906e-06/3.326, allocations: 0 / 0.9125 GB, free: 111 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6708/3.997, allocations: 133.8 MB / 1.043 GB, free: 123.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002454/3.997, allocations: 144.7 kB / 1.043 GB, free: 122.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/11.6, allocations: 4 kB / 1.043 GB, free: 122.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat