Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.282e-05/3.293e-05, allocations: 4 kB / 292.8 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 50.42 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5219/0.6345, allocations: 105.1 MB / 448.3 MB, free: 5.031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.6349, allocations: 88.86 kB / 448.3 MB, free: 4.988 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9171/1.552, allocations: 137.9 MB / 0.5725 GB, free: 95.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.552, allocations: 4 kB / 0.5725 GB, free: 95.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005009/1.553, allocations: 139.3 kB / 0.5726 GB, free: 95.1 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02986/1.582, allocations: 7.038 MB / 0.5795 GB, free: 92.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/1.583, allocations: 8.938 kB / 0.5795 GB, free: 92.47 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005376/1.588, allocations: 1.145 MB / 0.5806 GB, free: 92.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05724/1.645, allocations: 7.562 MB / 0.588 GB, free: 91.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03348/1.679, allocations: 9.088 MB / 0.5969 GB, free: 89.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006175/1.679, allocations: 490 kB / 0.5973 GB, free: 89.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00369/1.683, allocations: 0.6502 MB / 0.598 GB, free: 89.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05197/1.735, allocations: 16.51 MB / 0.6141 GB, free: 74.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000463/1.736, allocations: 107 kB / 0.6142 GB, free: 74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002863/1.739, allocations: 312.4 kB / 0.6145 GB, free: 73.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003527/1.742, allocations: 1.585 MB / 0.616 GB, free: 72.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04364/1.786, allocations: 13.25 MB / 0.629 GB, free: 58.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5531/2.339, allocations: 74.32 MB / 0.7015 GB, free: 40.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03983/2.379, allocations: 7.663 MB / 0.709 GB, free: 40.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008624/2.387, allocations: 3.985 MB / 0.7129 GB, free: 40.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05545/2.443, allocations: 18.65 MB / 0.7311 GB, free: 35.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.151e-05/2.443, allocations: 65.72 kB / 0.7312 GB, free: 35.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 9.358e-06/2.443, allocations: 2.406 kB / 0.7312 GB, free: 35.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.2216/2.665, allocations: 38.73 MB / 0.769 GB, free: 25.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/2.665, allocations: 272.8 kB / 0.7693 GB, free: 25.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01306/2.678, allocations: 5.265 MB / 0.7744 GB, free: 23.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/2.679, allocations: 79.08 kB / 0.7745 GB, free: 23.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004546/2.684, allocations: 4.762 MB / 0.7791 GB, free: 19.66 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002317/2.686, allocations: 1.363 MB / 0.7805 GB, free: 18.65 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001218/2.687, allocations: 186.7 kB / 0.7807 GB, free: 18.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005969/2.688, allocations: 0.6942 MB / 0.7813 GB, free: 18.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009045/2.697, allocations: 3.667 MB / 0.7849 GB, free: 14.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01285/2.71, allocations: 8.809 MB / 0.7935 GB, free: 4.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01407/2.724, allocations: 5.667 MB / 0.799 GB, free: 15.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002457/2.724, allocations: 55.95 kB / 0.7991 GB, free: 15.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05919/2.783, allocations: 15.36 MB / 0.8141 GB, free: 3.672 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/2.784, allocations: 80 kB / 0.8142 GB, free: 3.594 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003429/2.784, allocations: 184 kB / 0.8144 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02397/2.808, allocations: 4.019 MB / 0.8183 GB, free: 0.6211 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01458/2.823, allocations: 2.059 MB / 0.8203 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05703/2.88, allocations: 20.78 MB / 0.8406 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/2.892, allocations: 0.5535 MB / 0.8411 GB, free: 9.793 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002485/2.894, allocations: 0.5312 MB / 0.8416 GB, free: 9.262 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (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.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 (1088): * Single equations (assignments): 1083 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002994/2.897, allocations: 0.8063 MB / 0.8424 GB, free: 8.453 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001882/2.899, allocations: 0.5746 MB / 0.843 GB, free: 7.871 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04167/2.941, allocations: 9.444 MB / 0.8522 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.141e-05/2.941, allocations: 38.5 kB / 0.8522 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-05/2.941, allocations: 20 kB / 0.8523 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.746e-05/2.941, allocations: 19.94 kB / 0.8523 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0751/3.016, allocations: 18.94 MB / 0.8708 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.14e-05/3.017, allocations: 0 / 0.8708 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005626/3.022, allocations: 0.5031 MB / 0.8713 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02328/3.045, allocations: 3.567 MB / 0.8748 GB, free: 7.176 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/3.047, allocations: 63.98 kB / 0.8748 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3912/3.438, allocations: 18.71 MB / 0.8931 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/3.438, allocations: 2.328 kB / 0.8931 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04608/3.484, allocations: 13.95 MB / 0.9067 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/3.486, allocations: 0.5792 MB / 0.9073 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002485/3.489, allocations: 64.02 kB / 0.9073 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006808/3.495, allocations: 218.8 kB / 0.9075 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001535/3.497, allocations: 226 kB / 0.9078 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005662/3.498, allocations: 90.31 kB / 0.9079 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009634/3.507, allocations: 3.679 MB / 0.9114 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.02e-07/3.507, allocations: 0 / 0.9114 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01665/3.524, allocations: 1.852 MB / 0.9133 GB, free: 150.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (270): * Single equations (assignments): 265 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06859/3.593, allocations: 14.82 MB / 0.9277 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02304/3.616, allocations: 9.188 MB / 0.9367 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/3.616, allocations: 5.344 kB / 0.9367 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0099/3.626, allocations: 3.677 MB / 0.9403 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006669/3.632, allocations: 0.7169 MB / 0.941 GB, free: 140.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05145/3.684, allocations: 15.31 MB / 0.9559 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/3.696, allocations: 5.004 MB / 0.9608 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01471/3.711, allocations: 2.808 MB / 0.9636 GB, free: 131 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007333/3.718, allocations: 3.255 MB / 0.9667 GB, free: 128 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/3.718, allocations: 0 / 0.9667 GB, free: 128 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6726/4.391, allocations: 140.1 MB / 1.104 GB, free: 146 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/4.391, allocations: 205.7 kB / 1.104 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/12.72, allocations: 0 / 1.104 GB, free: 145.7 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat