Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.969/1.969, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.675e-05, allocations: 0 / 273.2 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1413, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.588, allocations: 98.81 MB / 420.7 MB, free: 6.773 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5884, allocations: 75.06 kB / 420.7 MB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9774/1.566, allocations: 135.6 MB / 0.5434 GB, free: 91.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.566, allocations: 0 / 0.5434 GB, free: 91.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004913/1.566, allocations: 132.2 kB / 0.5435 GB, free: 91.19 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.02858/1.595, allocations: 7.036 MB / 0.5504 GB, free: 88.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/1.595, allocations: 7.875 kB / 0.5504 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005119/1.6, allocations: 1.142 MB / 0.5515 GB, free: 88.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07296/1.673, allocations: 7.561 MB / 0.5589 GB, free: 87.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03908/1.712, allocations: 9.785 MB / 0.5684 GB, free: 84.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005838/1.713, allocations: 499.7 kB / 0.5689 GB, free: 84.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003704/1.717, allocations: 0.6501 MB / 0.5695 GB, free: 83.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05047/1.767, allocations: 16.54 MB / 0.5857 GB, free: 68.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004929/1.768, allocations: 103.1 kB / 0.5858 GB, free: 68.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00246/1.77, allocations: 317.2 kB / 0.5861 GB, free: 68.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003389/1.774, allocations: 1.574 MB / 0.5876 GB, free: 66.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05464/1.828, allocations: 13.48 MB / 0.6008 GB, free: 53.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4895/2.318, allocations: 74.21 MB / 0.6732 GB, free: 36.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05631/2.374, allocations: 7.664 MB / 0.6807 GB, free: 35.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01175/2.386, allocations: 3.912 MB / 0.6846 GB, free: 35.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04706/2.433, allocations: 18.61 MB / 0.7027 GB, free: 30.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/2.433, allocations: 60.88 kB / 0.7028 GB, free: 30.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.862e-06/2.433, allocations: 3.172 kB / 0.7028 GB, free: 30.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.2734/2.707, allocations: 40.42 MB / 0.7423 GB, free: 20.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/2.707, allocations: 270.1 kB / 0.7425 GB, free: 19.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01957/2.727, allocations: 5.296 MB / 0.7477 GB, free: 18.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00139/2.728, allocations: 83.77 kB / 0.7478 GB, free: 18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006886/2.735, allocations: 4.76 MB / 0.7524 GB, free: 13.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003239/2.738, allocations: 1.333 MB / 0.7537 GB, free: 12.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002164/2.74, allocations: 187.9 kB / 0.7539 GB, free: 12.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009932/2.741, allocations: 0.6884 MB / 0.7546 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01314/2.755, allocations: 3.662 MB / 0.7582 GB, free: 8.629 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01906/2.774, allocations: 8.838 MB / 0.7668 GB, free: 13.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02105/2.795, allocations: 5.573 MB / 0.7722 GB, free: 9.305 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002945/2.795, allocations: 53.78 kB / 0.7723 GB, free: 9.254 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06967/2.865, allocations: 16.39 MB / 0.7883 GB, free: 12.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001803/2.865, allocations: 84 kB / 0.7884 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003316/2.866, allocations: 180 kB / 0.7885 GB, free: 11.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02525/2.891, allocations: 4.109 MB / 0.7926 GB, free: 8.527 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01466/2.906, allocations: 2.031 MB / 0.7945 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06199/2.968, allocations: 21.74 MB / 0.8158 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01261/2.98, allocations: 0.5424 MB / 0.8163 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002627/2.983, allocations: 0.535 MB / 0.8168 GB, free: 15.42 MB / 490.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 (1077): * Single equations (assignments): 1072 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004008/2.987, allocations: 0.7978 MB / 0.8176 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002309/2.989, allocations: 0.5786 MB / 0.8182 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0433/3.033, allocations: 9.658 MB / 0.8276 GB, free: 4.316 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.046e-05/3.033, allocations: 40 kB / 0.8276 GB, free: 4.277 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.248e-05/3.033, allocations: 16 kB / 0.8276 GB, free: 4.262 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/3.033, allocations: 23.12 kB / 0.8277 GB, free: 4.242 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4055/3.439, allocations: 19.02 MB / 0.8462 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.347e-05/3.439, allocations: 3.219 kB / 0.8462 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005545/3.444, allocations: 0.4903 MB / 0.8467 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02348/3.468, allocations: 3.614 MB / 0.8503 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/3.469, allocations: 60.34 kB / 0.8503 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04757/3.517, allocations: 18.71 MB / 0.8686 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/3.517, allocations: 2.844 kB / 0.8686 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04725/3.564, allocations: 14.05 MB / 0.8823 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005133/3.569, allocations: 1.112 MB / 0.8834 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/3.572, allocations: 59.34 kB / 0.8835 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006971/3.579, allocations: 239 kB / 0.8837 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/3.58, allocations: 221.5 kB / 0.8839 GB, free: 123.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007339/3.581, allocations: 91.55 kB / 0.884 GB, free: 123.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01063/3.592, allocations: 3.708 MB / 0.8876 GB, free: 122.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.533e-06/3.592, allocations: 0 / 0.8876 GB, free: 122.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01259/3.604, allocations: 1.837 MB / 0.8894 GB, free: 122.2 MB / 490.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 (264): * Single equations (assignments): 259 * 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.04853/3.653, allocations: 14.91 MB / 0.904 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02294/3.676, allocations: 9.431 MB / 0.9132 GB, free: 113 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/3.676, allocations: 4 kB / 0.9132 GB, free: 113 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009351/3.685, allocations: 3.677 MB / 0.9168 GB, free: 109.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006678/3.692, allocations: 0.7167 MB / 0.9175 GB, free: 109 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05134/3.744, allocations: 15.27 MB / 0.9324 GB, free: 95.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.012/3.756, allocations: 5.002 MB / 0.9373 GB, free: 92.31 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01367/3.769, allocations: 2.79 MB / 0.94 GB, free: 90.68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008214/3.778, allocations: 3.258 MB / 0.9432 GB, free: 87.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.833e-06/3.778, allocations: 3.938 kB / 0.9432 GB, free: 87.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6915/4.469, allocations: 141.6 MB / 1.081 GB, free: 103.6 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/4.469, allocations: 183 kB / 1.082 GB, free: 103.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/12.53, allocations: 0 / 1.082 GB, free: 103.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat