Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.498/2.498, allocations: 235.1 MB / 242.3 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.12e-05/4.115e-05, allocations: 4 kB / 299.6 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4301/0.4302, allocations: 54.86 MB / 354.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.6292, allocations: 105.1 MB / 459.5 MB, free: 9.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.6296, allocations: 79.95 kB / 459.6 MB, free: 9.012 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.953/1.583, allocations: 133.1 MB / 0.5788 GB, free: 48.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.583, allocations: 0 / 0.5788 GB, free: 48.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005275/1.583, allocations: 132 kB / 0.5789 GB, free: 48.59 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: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03225/1.615, allocations: 7.043 MB / 0.5858 GB, free: 41.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/1.616, allocations: 8.031 kB / 0.5858 GB, free: 41.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06452/1.68, allocations: 7.561 MB / 0.5932 GB, free: 33.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03844/1.719, allocations: 9.787 MB / 0.6027 GB, free: 24.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004707/1.719, allocations: 216 kB / 0.6029 GB, free: 23.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003758/1.723, allocations: 399.8 kB / 0.6033 GB, free: 23.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02677/1.75, allocations: 9.683 MB / 0.6128 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03901/1.789, allocations: 14.23 MB / 0.6267 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00051/1.789, allocations: 103 kB / 0.6268 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002233/1.792, allocations: 44 kB / 0.6268 GB, free: 13.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004636/1.796, allocations: 1.588 MB / 0.6283 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5562/2.352, allocations: 73.68 MB / 0.7003 GB, free: 61.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/2.364, allocations: 5.227 MB / 0.7054 GB, free: 61 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008202/2.372, allocations: 3.766 MB / 0.7091 GB, free: 60.95 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003925/2.376, allocations: 2.264 MB / 0.7113 GB, free: 58.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/2.377, allocations: 71.19 kB / 0.7114 GB, free: 58.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=301): time 9.238e-06/2.377, allocations: 3.891 kB / 0.7114 GB, free: 58.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=381): time 0.1912/2.568, allocations: 40.64 MB / 0.7511 GB, free: 50.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/2.568, allocations: 276.7 kB / 0.7513 GB, free: 49.84 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01323/2.581, allocations: 4.641 MB / 0.7558 GB, free: 48.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00114/2.582, allocations: 28.22 kB / 0.7559 GB, free: 48.19 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004892/2.587, allocations: 4.773 MB / 0.7605 GB, free: 44.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002565/2.59, allocations: 1.356 MB / 0.7619 GB, free: 43.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001836/2.592, allocations: 3.562 kB / 0.7619 GB, free: 43.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001067/2.593, allocations: 0.7019 MB / 0.7625 GB, free: 43.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01043/2.603, allocations: 3.641 MB / 0.7661 GB, free: 41.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01443/2.618, allocations: 8.925 MB / 0.7748 GB, free: 31.11 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01449/2.632, allocations: 5.58 MB / 0.7803 GB, free: 26.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002385/2.633, allocations: 56 kB / 0.7803 GB, free: 26.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.06253/2.695, allocations: 15.53 MB / 0.7955 GB, free: 14.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000166/2.696, allocations: 88 kB / 0.7956 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003195/2.696, allocations: 184 kB / 0.7958 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02604/2.722, allocations: 4.089 MB / 0.7997 GB, free: 11.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01548/2.737, allocations: 2.105 MB / 0.8018 GB, free: 9.387 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06525/2.803, allocations: 21.04 MB / 0.8223 GB, free: 7.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01312/2.816, allocations: 390.2 kB / 0.8227 GB, free: 7.102 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00295/2.819, allocations: 0.5448 MB / 0.8232 GB, free: 6.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * 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 (1121): * Single equations (assignments): 1116 * 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.004021/2.823, allocations: 0.5804 MB / 0.8238 GB, free: 5.992 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04786/2.871, allocations: 9.863 MB / 0.8334 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002499/2.873, allocations: 0.5438 MB / 0.834 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04724/2.921, allocations: 9.571 MB / 0.8433 GB, free: 4.797 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001159/2.921, allocations: 43.36 kB / 0.8434 GB, free: 4.758 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.401e-05/2.921, allocations: 16 kB / 0.8434 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001031/2.921, allocations: 15.94 kB / 0.8434 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07973/3.001, allocations: 18.15 MB / 0.8611 GB, free: 2.445 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.343e-05/3.001, allocations: 4 kB / 0.8611 GB, free: 2.441 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006204/3.007, allocations: 0.5344 MB / 0.8616 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4631/3.47, allocations: 3.51 MB / 0.8651 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001068/3.471, allocations: 10.91 kB / 0.8651 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05861/3.53, allocations: 17.66 MB / 0.8823 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/3.53, allocations: 7.312 kB / 0.8823 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04661/3.577, allocations: 14.29 MB / 0.8963 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00425/3.581, allocations: 1.087 MB / 0.8974 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/3.583, allocations: 9.109 kB / 0.8974 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005389/3.588, allocations: 170.8 kB / 0.8975 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001189/3.589, allocations: 245.4 kB / 0.8978 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004464/3.59, allocations: 96.66 kB / 0.8979 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006853/3.597, allocations: 3.118 MB / 0.9009 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.62e-07/3.597, allocations: 3.719 kB / 0.9009 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01247/3.609, allocations: 1.611 MB / 0.9025 GB, free: 132.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (284): * Single equations (assignments): 279 * 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.04802/3.657, allocations: 15.51 MB / 0.9176 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02316/3.68, allocations: 9.229 MB / 0.9266 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/3.681, allocations: 3.125 kB / 0.9266 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009603/3.69, allocations: 3.673 MB / 0.9302 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005597/3.696, allocations: 0.5842 MB / 0.9308 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0477/3.744, allocations: 15.02 MB / 0.9455 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009818/3.753, allocations: 5.009 MB / 0.9503 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01452/3.768, allocations: 2.885 MB / 0.9532 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007708/3.776, allocations: 3.251 MB / 0.9563 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.924e-06/3.776, allocations: 0 / 0.9563 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7931/4.569, allocations: 133.8 MB / 1.087 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0001873/4.569, allocations: 152.9 kB / 1.087 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.38/12.95, allocations: 0 / 1.087 GB, free: 133.2 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat