Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.498/2.498, allocations: 270 MB / 283.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.5e-05/4.511e-05, allocations: 4 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1553, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.59/0.7454, allocations: 114.4 MB / 0.5125 GB, free: 5.523 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.7458, allocations: 71.97 kB / 0.5125 GB, free: 5.453 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.065/1.81, allocations: 137.9 MB / 0.6472 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.803e-06/1.81, allocations: 0 / 0.6472 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005052/1.811, allocations: 131.2 kB / 0.6473 GB, free: 110.9 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.03137/1.842, allocations: 7.029 MB / 0.6542 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/1.842, allocations: 13.34 kB / 0.6542 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005844/1.848, allocations: 1.146 MB / 0.6553 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05791/1.906, allocations: 7.564 MB / 0.6627 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03503/1.941, allocations: 9.199 MB / 0.6717 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005949/1.942, allocations: 493.5 kB / 0.6722 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003688/1.946, allocations: 0.6552 MB / 0.6728 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05249/1.998, allocations: 16.48 MB / 0.6889 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005082/1.999, allocations: 101.4 kB / 0.689 GB, free: 99.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003158/2.002, allocations: 315.1 kB / 0.6893 GB, free: 99.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003783/2.006, allocations: 1.586 MB / 0.6909 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05468/2.06, allocations: 13.23 MB / 0.7038 GB, free: 92.36 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1526/2.213, allocations: 74.25 MB / 0.7763 GB, free: 19.08 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04006/2.253, allocations: 7.628 MB / 0.7837 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008323/2.262, allocations: 3.907 MB / 0.7876 GB, free: 7.371 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05071/2.312, allocations: 18.55 MB / 0.8057 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.256e-05/2.313, allocations: 68.5 kB / 0.8057 GB, free: 4.223 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 7.314e-06/2.313, allocations: 0 / 0.8057 GB, free: 4.223 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.6829/2.996, allocations: 38.59 MB / 0.8434 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/2.996, allocations: 271.3 kB / 0.8437 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01555/3.011, allocations: 5.265 MB / 0.8488 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001266/3.013, allocations: 80.39 kB / 0.8489 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00515/3.018, allocations: 4.766 MB / 0.8536 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002682/3.021, allocations: 1.338 MB / 0.8549 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002014/3.023, allocations: 186.3 kB / 0.855 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001131/3.024, allocations: 0.6965 MB / 0.8557 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01071/3.035, allocations: 3.634 MB / 0.8593 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01452/3.049, allocations: 8.788 MB / 0.8679 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/3.063, allocations: 5.558 MB / 0.8733 GB, free: 99.76 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002554/3.064, allocations: 53.53 kB / 0.8733 GB, free: 99.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.05863/3.122, allocations: 15.35 MB / 0.8883 GB, free: 95.19 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/3.122, allocations: 84.31 kB / 0.8884 GB, free: 95.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003353/3.123, allocations: 181.5 kB / 0.8886 GB, free: 95.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02974/3.152, allocations: 4.024 MB / 0.8925 GB, free: 94.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0201/3.173, allocations: 2.036 MB / 0.8945 GB, free: 94.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06653/3.239, allocations: 20.83 MB / 0.9148 GB, free: 79.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0128/3.252, allocations: 0.547 MB / 0.9154 GB, free: 79.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002932/3.255, allocations: 0.5208 MB / 0.9159 GB, free: 78.88 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.005172/3.26, allocations: 0.8026 MB / 0.9167 GB, free: 78.08 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002751/3.263, allocations: 0.5747 MB / 0.9172 GB, free: 77.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04133/3.305, allocations: 9.435 MB / 0.9264 GB, free: 70.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-05/3.305, allocations: 39.19 kB / 0.9265 GB, free: 70.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.686e-05/3.305, allocations: 16 kB / 0.9265 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/3.305, allocations: 18.95 kB / 0.9265 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08587/3.391, allocations: 18.87 MB / 0.9449 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.155e-05/3.391, allocations: 0.625 kB / 0.9449 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005501/3.396, allocations: 0.4924 MB / 0.9454 GB, free: 54.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02328/3.42, allocations: 3.626 MB / 0.949 GB, free: 52.14 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001193/3.421, allocations: 64.8 kB / 0.949 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05053/3.472, allocations: 18.73 MB / 0.9673 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/3.472, allocations: 8.047 kB / 0.9673 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04954/3.521, allocations: 13.89 MB / 0.9809 GB, free: 19.08 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/3.524, allocations: 0.5835 MB / 0.9814 GB, free: 18.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002782/3.526, allocations: 56 kB / 0.9815 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007142/3.534, allocations: 228.3 kB / 0.9817 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001712/3.535, allocations: 226.1 kB / 0.9819 GB, free: 17.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001133/3.537, allocations: 92.69 kB / 0.982 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01083/3.547, allocations: 3.677 MB / 0.9856 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.272e-06/3.548, allocations: 0 / 0.9856 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01415/3.562, allocations: 1.841 MB / 0.9874 GB, free: 12.38 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.05205/3.614, allocations: 14.75 MB / 1.002 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.4254/4.039, allocations: 9.087 MB / 1.011 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/4.039, allocations: 1.656 kB / 1.011 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01121/4.051, allocations: 3.629 MB / 1.014 GB, free: 124 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007528/4.058, allocations: 0.7146 MB / 1.015 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0645/4.123, allocations: 15.24 MB / 1.03 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01417/4.137, allocations: 4.997 MB / 1.035 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01529/4.152, allocations: 2.789 MB / 1.037 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009187/4.162, allocations: 3.241 MB / 1.041 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.954e-06/4.162, allocations: 0 / 1.041 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3616/4.523, allocations: 139.8 MB / 1.177 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002393/4.524, allocations: 177.8 kB / 1.177 GB, free: 28.87 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.855/13.38, allocations: 0.7656 kB / 1.177 GB, free: 28.87 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat