Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.24e-05/4.249e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.272, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2035/0.4755, allocations: 91.01 MB / 354.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.4759, allocations: 83.95 kB / 354.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7783/1.254, allocations: 135.6 MB / 490.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.639e-06/1.254, allocations: 0 / 490.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006911/1.255, allocations: 131.9 kB / 490.7 MB, free: 14.82 MB / 346.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.0349/1.29, allocations: 7.043 MB / 497.7 MB, free: 7.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/1.29, allocations: 8.031 kB / 497.7 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005667/1.296, allocations: 1.142 MB / 498.9 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3064/1.602, allocations: 7.559 MB / 0.4946 GB, free: 44.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03357/1.636, allocations: 9.686 MB / 0.504 GB, free: 44.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007362/1.637, allocations: 489.8 kB / 0.5045 GB, free: 44.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004077/1.641, allocations: 0.6526 MB / 0.5051 GB, free: 44.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05018/1.691, allocations: 16.48 MB / 0.5212 GB, free: 40.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000483/1.691, allocations: 103 kB / 0.5213 GB, free: 40.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002891/1.694, allocations: 311.5 kB / 0.5216 GB, free: 40.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0037/1.698, allocations: 1.577 MB / 0.5232 GB, free: 40.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04325/1.741, allocations: 13.24 MB / 0.5361 GB, free: 40.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1192/1.861, allocations: 74.31 MB / 0.6087 GB, free: 440 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04005/1.901, allocations: 7.683 MB / 0.6162 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009402/1.91, allocations: 3.981 MB / 0.6201 GB, free: 6.461 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3004/2.211, allocations: 18.69 MB / 0.6383 GB, free: 72.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.38e-05/2.211, allocations: 69.64 kB / 0.6384 GB, free: 72.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 7.795e-06/2.211, allocations: 0 / 0.6384 GB, free: 72.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.2228/2.433, allocations: 40.3 MB / 0.6777 GB, free: 68.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/2.434, allocations: 273.1 kB / 0.678 GB, free: 68.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01123/2.445, allocations: 5.3 MB / 0.6832 GB, free: 67.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009329/2.446, allocations: 78.3 kB / 0.6832 GB, free: 67.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003965/2.45, allocations: 4.549 MB / 0.6877 GB, free: 64.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002196/2.452, allocations: 1.348 MB / 0.689 GB, free: 63.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/2.453, allocations: 191.3 kB / 0.6892 GB, free: 63.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006608/2.454, allocations: 0.695 MB / 0.6899 GB, free: 63.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009103/2.463, allocations: 3.687 MB / 0.6935 GB, free: 61.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01281/2.476, allocations: 8.82 MB / 0.7021 GB, free: 53.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/2.488, allocations: 5.598 MB / 0.7075 GB, free: 49.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001938/2.488, allocations: 52 kB / 0.7076 GB, free: 49.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05344/2.542, allocations: 15.68 MB / 0.7229 GB, free: 37.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/2.542, allocations: 84 kB / 0.723 GB, free: 37.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002675/2.542, allocations: 183.9 kB / 0.7232 GB, free: 37.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/2.565, allocations: 4.079 MB / 0.7271 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01307/2.578, allocations: 2.042 MB / 0.7291 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05195/2.63, allocations: 21.73 MB / 0.7504 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/2.641, allocations: 0.5544 MB / 0.7509 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002234/2.644, allocations: 0.5249 MB / 0.7514 GB, free: 12.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * 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 (1083): * Single equations (assignments): 1078 * 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.002719/2.646, allocations: 0.8055 MB / 0.7522 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/2.648, allocations: 0.5785 MB / 0.7528 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3018/2.95, allocations: 9.698 MB / 0.7622 GB, free: 60.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000111/2.95, allocations: 37.88 kB / 0.7623 GB, free: 60.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.443e-05/2.95, allocations: 19.34 kB / 0.7623 GB, free: 60.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-05/2.95, allocations: 18.52 kB / 0.7623 GB, free: 60.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0642/3.015, allocations: 19.11 MB / 0.781 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.409e-05/3.015, allocations: 0 / 0.781 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005242/3.02, allocations: 0.5066 MB / 0.7815 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02116/3.041, allocations: 3.552 MB / 0.7849 GB, free: 59.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009746/3.042, allocations: 63.28 kB / 0.785 GB, free: 59.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04461/3.087, allocations: 18.73 MB / 0.8033 GB, free: 56.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/3.087, allocations: 0 / 0.8033 GB, free: 56.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04425/3.131, allocations: 14.12 MB / 0.8171 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004426/3.136, allocations: 1.114 MB / 0.8182 GB, free: 52.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002028/3.138, allocations: 64.44 kB / 0.8182 GB, free: 52.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006368/3.144, allocations: 225.6 kB / 0.8184 GB, free: 52.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/3.145, allocations: 229.2 kB / 0.8186 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004911/3.146, allocations: 92.69 kB / 0.8187 GB, free: 52.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009648/3.156, allocations: 3.704 MB / 0.8224 GB, free: 50.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.493e-06/3.156, allocations: 4.656 kB / 0.8224 GB, free: 50.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01237/3.168, allocations: 1.847 MB / 0.8242 GB, free: 50.76 MB / 378.7 MB 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04565/3.214, allocations: 15 MB / 0.8388 GB, free: 45.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02202/3.236, allocations: 9.223 MB / 0.8478 GB, free: 38.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/3.236, allocations: 2.938 kB / 0.8478 GB, free: 38.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008983/3.245, allocations: 3.66 MB / 0.8514 GB, free: 35.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006365/3.251, allocations: 0.7104 MB / 0.8521 GB, free: 35.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05049/3.302, allocations: 16.02 MB / 0.8677 GB, free: 21.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01139/3.313, allocations: 5.009 MB / 0.8726 GB, free: 17.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008211/3.322, allocations: 3.329 MB / 0.8759 GB, free: 14.65 MB / 378.7 MB Notification: Performance of SimCode: time 1.874e-06/3.322, allocations: 0 / 0.8759 GB, free: 14.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.991/9.313, allocations: 185.6 MB / 1.057 GB, free: 70.3 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat