Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 270 MB / 283.6 MB, free: 3.102 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.221e-05/4.237e-05, allocations: 4 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 61.89 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5562/0.6987, allocations: 114.4 MB / 0.5125 GB, free: 5.555 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.699, allocations: 71.97 kB / 0.5126 GB, free: 5.484 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.01/1.709, allocations: 137.9 MB / 0.6472 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.465e-06/1.709, allocations: 0 / 0.6472 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004874/1.709, allocations: 136.2 kB / 0.6474 GB, free: 111.1 MB / 0.5105 GB 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.02864/1.738, allocations: 7.021 MB / 0.6542 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/1.738, allocations: 11.78 kB / 0.6542 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004545/1.742, allocations: 1.15 MB / 0.6554 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0766/1.819, allocations: 7.557 MB / 0.6627 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05288/1.872, allocations: 9.197 MB / 0.6717 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007514/1.873, allocations: 492.1 kB / 0.6722 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004163/1.877, allocations: 0.6583 MB / 0.6728 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05125/1.928, allocations: 16.49 MB / 0.6889 GB, free: 99.24 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005486/1.929, allocations: 97.34 kB / 0.689 GB, free: 99.18 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002888/1.932, allocations: 315.4 kB / 0.6893 GB, free: 99.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003566/1.935, allocations: 1.587 MB / 0.6909 GB, free: 98.72 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04329/1.979, allocations: 13.22 MB / 0.7038 GB, free: 92.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1292/2.108, allocations: 74.25 MB / 0.7763 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0387/2.147, allocations: 7.639 MB / 0.7838 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008372/2.155, allocations: 3.911 MB / 0.7876 GB, free: 7.449 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04919/2.205, allocations: 18.55 MB / 0.8057 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.396e-05/2.205, allocations: 68.5 kB / 0.8058 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 7.805e-06/2.205, allocations: 4 kB / 0.8058 GB, free: 4.293 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.6155/2.82, allocations: 38.58 MB / 0.8434 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/2.82, allocations: 269.8 kB / 0.8437 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01248/2.833, allocations: 5.268 MB / 0.8488 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00112/2.834, allocations: 81.62 kB / 0.8489 GB, free: 114 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004585/2.839, allocations: 4.761 MB / 0.8536 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002389/2.841, allocations: 1.338 MB / 0.8549 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001285/2.842, allocations: 186 kB / 0.8551 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006316/2.843, allocations: 0.6896 MB / 0.8557 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009146/2.852, allocations: 3.648 MB / 0.8593 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/2.865, allocations: 8.778 MB / 0.8679 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01267/2.878, allocations: 5.565 MB / 0.8733 GB, free: 99.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000215/2.878, allocations: 51.72 kB / 0.8733 GB, free: 99.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.05464/2.933, allocations: 15.35 MB / 0.8883 GB, free: 95.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000148/2.933, allocations: 85.44 kB / 0.8884 GB, free: 95.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002882/2.933, allocations: 184.8 kB / 0.8886 GB, free: 95.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02354/2.957, allocations: 4.021 MB / 0.8925 GB, free: 94.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01362/2.971, allocations: 2.034 MB / 0.8945 GB, free: 94.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04863/3.019, allocations: 20.83 MB / 0.9148 GB, free: 80 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01195/3.031, allocations: 0.5422 MB / 0.9154 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/3.034, allocations: 0.5266 MB / 0.9159 GB, free: 79.02 MB / 0.5261 GB 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 (1081): * Single equations (assignments): 1076 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003142/3.037, allocations: 0.8043 MB / 0.9167 GB, free: 78.22 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/3.039, allocations: 0.5747 MB / 0.9172 GB, free: 77.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03718/3.076, allocations: 9.433 MB / 0.9264 GB, free: 70.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.179e-05/3.076, allocations: 39.19 kB / 0.9265 GB, free: 70.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.972e-05/3.076, allocations: 16 kB / 0.9265 GB, free: 70.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000102/3.076, allocations: 25.53 kB / 0.9265 GB, free: 70.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06654/3.143, allocations: 18.86 MB / 0.9449 GB, free: 55.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.25e-05/3.143, allocations: 0 / 0.9449 GB, free: 55.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005244/3.148, allocations: 0.496 MB / 0.9454 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02262/3.171, allocations: 3.623 MB / 0.949 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001087/3.172, allocations: 60.88 kB / 0.949 GB, free: 52.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04412/3.216, allocations: 18.74 MB / 0.9673 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/3.216, allocations: 3.438 kB / 0.9673 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04366/3.26, allocations: 13.89 MB / 0.9809 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002082/3.262, allocations: 0.5873 MB / 0.9815 GB, free: 18.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00179/3.264, allocations: 56 kB / 0.9815 GB, free: 18.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00576/3.27, allocations: 231.7 kB / 0.9817 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001237/3.271, allocations: 226.9 kB / 0.9819 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004211/3.271, allocations: 88 kB / 0.982 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009111/3.28, allocations: 3.677 MB / 0.9856 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.062e-06/3.28, allocations: 4 kB / 0.9856 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01361/3.294, allocations: 1.844 MB / 0.9874 GB, free: 12.47 MB / 0.5261 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 (263): * Single equations (assignments): 258 * 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.0494/3.344, allocations: 14.74 MB / 1.002 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.4116/3.755, allocations: 9.091 MB / 1.011 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/3.755, allocations: 1.281 kB / 1.011 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01012/3.765, allocations: 3.621 MB / 1.014 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006606/3.772, allocations: 0.7238 MB / 1.015 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05624/3.828, allocations: 15.24 MB / 1.03 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/3.841, allocations: 4.987 MB / 1.035 GB, free: 120.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01392/3.855, allocations: 2.797 MB / 1.037 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007892/3.863, allocations: 3.24 MB / 1.041 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.834e-06/3.863, allocations: 1.094 kB / 1.041 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2984/4.161, allocations: 139.8 MB / 1.177 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/4.161, allocations: 177.7 kB / 1.177 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.614/12.78, allocations: 0 / 1.177 GB, free: 29.2 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat