Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.336/2.336, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.214e-05/3.214e-05, allocations: 4 kB / 249.8 MB, free: 14.76 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3503, allocations: 44.49 MB / 294.3 MB, free: 14.47 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1983/0.5486, allocations: 96.09 MB / 390.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003553/0.549, allocations: 83.95 kB / 390.5 MB, free: 1.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9771/1.526, allocations: 133 MB / 0.5112 GB, free: 26.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.526, allocations: 0 / 0.5112 GB, free: 26.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005241/1.527, allocations: 132 kB / 0.5113 GB, free: 26.33 MB / 362.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.03176/1.559, allocations: 7.047 MB / 0.5182 GB, free: 19.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/1.559, allocations: 8.031 kB / 0.5182 GB, free: 19.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06341/1.622, allocations: 7.561 MB / 0.5256 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03776/1.66, allocations: 9.671 MB / 0.5351 GB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004567/1.66, allocations: 208 kB / 0.5353 GB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00363/1.664, allocations: 407.7 kB / 0.5357 GB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03087/1.695, allocations: 9.683 MB / 0.5451 GB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4567/2.152, allocations: 14.23 MB / 0.559 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006815/2.152, allocations: 101.8 kB / 0.5591 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003367/2.156, allocations: 43.41 kB / 0.5591 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004882/2.161, allocations: 1.581 MB / 0.5607 GB, free: 48.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1335/2.294, allocations: 73.68 MB / 0.6326 GB, free: 20.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/2.306, allocations: 5.23 MB / 0.6378 GB, free: 17.85 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008443/2.314, allocations: 3.763 MB / 0.6414 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004084/2.319, allocations: 2.27 MB / 0.6436 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.858e-05/2.319, allocations: 71.02 kB / 0.6437 GB, free: 14.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=301): time 8.596e-06/2.319, allocations: 0 / 0.6437 GB, free: 14.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=381): time 0.248/2.567, allocations: 40.66 MB / 0.6834 GB, free: 11.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/2.567, allocations: 265.9 kB / 0.6837 GB, free: 10.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0143/2.581, allocations: 4.644 MB / 0.6882 GB, free: 7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001114/2.582, allocations: 26.89 kB / 0.6882 GB, free: 6.969 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006373/2.589, allocations: 4.78 MB / 0.6929 GB, free: 2.621 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002981/2.592, allocations: 1.355 MB / 0.6942 GB, free: 1.402 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001503/2.593, allocations: 0 / 0.6942 GB, free: 1.402 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001055/2.595, allocations: 0.7059 MB / 0.6949 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03188/2.626, allocations: 4.626 MB / 0.6994 GB, free: 0 / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01796/2.644, allocations: 8.927 MB / 0.7082 GB, free: 4.988 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01741/2.662, allocations: 5.578 MB / 0.7136 GB, free: 228 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00035/2.662, allocations: 56 kB / 0.7137 GB, free: 172 kB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.4143/3.077, allocations: 15.54 MB / 0.7288 GB, free: 93.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/3.077, allocations: 83.97 kB / 0.7289 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003093/3.077, allocations: 186.7 kB / 0.7291 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03235/3.11, allocations: 4.088 MB / 0.7331 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01692/3.127, allocations: 2.105 MB / 0.7351 GB, free: 92.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06563/3.192, allocations: 21.01 MB / 0.7556 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01393/3.206, allocations: 382.6 kB / 0.756 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002714/3.209, allocations: 0.5495 MB / 0.7565 GB, free: 90.14 MB / 426.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.003717/3.213, allocations: 0.5859 MB / 0.7571 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04597/3.259, allocations: 9.848 MB / 0.7667 GB, free: 87.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002525/3.261, allocations: 0.5434 MB / 0.7673 GB, free: 87.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04656/3.308, allocations: 9.566 MB / 0.7766 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001097/3.308, allocations: 40.12 kB / 0.7766 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.335e-05/3.308, allocations: 15.12 kB / 0.7767 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001068/3.308, allocations: 25.91 kB / 0.7767 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08239/3.391, allocations: 18.14 MB / 0.7944 GB, free: 72.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.803e-05/3.391, allocations: 0 / 0.7944 GB, free: 72.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006377/3.397, allocations: 0.534 MB / 0.7949 GB, free: 72.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02467/3.422, allocations: 3.517 MB / 0.7984 GB, free: 70.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001013/3.423, allocations: 11.66 kB / 0.7984 GB, free: 70.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05247/3.475, allocations: 17.67 MB / 0.8156 GB, free: 54.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/3.476, allocations: 3.938 kB / 0.8156 GB, free: 54.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0548/3.53, allocations: 14.31 MB / 0.8296 GB, free: 41.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007013/3.537, allocations: 1.083 MB / 0.8307 GB, free: 39.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003898/3.541, allocations: 7.438 kB / 0.8307 GB, free: 39.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01072/3.552, allocations: 174.5 kB / 0.8308 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001994/3.554, allocations: 236.6 kB / 0.8311 GB, free: 39.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009923/3.555, allocations: 100.8 kB / 0.8312 GB, free: 39.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01005/3.565, allocations: 3.116 MB / 0.8342 GB, free: 36.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.904e-06/3.565, allocations: 3.938 kB / 0.8342 GB, free: 36.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01708/3.583, allocations: 1.611 MB / 0.8358 GB, free: 34.8 MB / 426.7 MB 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.05733/3.64, allocations: 15.51 MB / 0.8509 GB, free: 19.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02652/3.666, allocations: 9.231 MB / 0.8599 GB, free: 9.988 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/3.667, allocations: 4 kB / 0.8599 GB, free: 9.984 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.011/3.678, allocations: 3.67 MB / 0.8635 GB, free: 6.285 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006863/3.684, allocations: 0.5859 MB / 0.8641 GB, free: 5.707 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4266/4.111, allocations: 15.01 MB / 0.8788 GB, free: 89.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01471/4.126, allocations: 5.018 MB / 0.8837 GB, free: 89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01782/4.144, allocations: 2.876 MB / 0.8865 GB, free: 88.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009831/4.154, allocations: 3.256 MB / 0.8896 GB, free: 88.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.884e-06/4.154, allocations: 0 / 0.8896 GB, free: 88.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4328/4.587, allocations: 133.8 MB / 1.02 GB, free: 12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000491/4.587, allocations: 172.5 kB / 1.02 GB, free: 11.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.67/15.26, allocations: 0 / 1.02 GB, free: 11.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat