Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.564/2.564, allocations: 270 MB / 282.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.492e-05/3.497e-05, allocations: 4 kB / 347.1 MB, free: 3.094 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4075, allocations: 61.87 MB / 408.9 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2161/0.6236, allocations: 114.6 MB / 0.5113 GB, free: 7.863 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.6239, allocations: 87.92 kB / 0.5113 GB, free: 7.777 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8941/1.518, allocations: 137.9 MB / 0.646 GB, free: 9.359 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.709e-06/1.518, allocations: 4 kB / 0.646 GB, free: 9.355 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005461/1.519, allocations: 135.9 kB / 0.6461 GB, free: 9.223 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.03212/1.551, allocations: 7.032 MB / 0.653 GB, free: 2.113 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/1.551, allocations: 8.031 kB / 0.653 GB, free: 2.105 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005657/1.557, allocations: 1.146 MB / 0.6541 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06035/1.617, allocations: 7.565 MB / 0.6615 GB, free: 9.363 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03647/1.653, allocations: 9.208 MB / 0.6705 GB, free: 72 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008059/1.654, allocations: 488.9 kB / 0.671 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003849/1.658, allocations: 0.6442 MB / 0.6716 GB, free: 14.94 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05825/1.716, allocations: 16.51 MB / 0.6877 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000616/1.717, allocations: 103.1 kB / 0.6878 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00358/1.721, allocations: 315.8 kB / 0.6881 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004307/1.725, allocations: 1.58 MB / 0.6897 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04953/1.775, allocations: 13.25 MB / 0.7026 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.511/2.286, allocations: 74.3 MB / 0.7752 GB, free: 48.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03824/2.324, allocations: 7.665 MB / 0.7827 GB, free: 47.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008401/2.332, allocations: 3.98 MB / 0.7866 GB, free: 47.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04445/2.377, allocations: 18.64 MB / 0.8048 GB, free: 41.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/2.377, allocations: 66.53 kB / 0.8048 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=287): time 6.592e-06/2.377, allocations: 3.375 kB / 0.8048 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=370): time 0.2172/2.594, allocations: 38.73 MB / 0.8427 GB, free: 30.72 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/2.594, allocations: 268.3 kB / 0.8429 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01417/2.609, allocations: 5.268 MB / 0.8481 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001087/2.61, allocations: 85.27 kB / 0.8481 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004038/2.614, allocations: 4.556 MB / 0.8526 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002235/2.616, allocations: 1.356 MB / 0.8539 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/2.618, allocations: 187.8 kB / 0.8541 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008436/2.618, allocations: 0.7029 MB / 0.8548 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009652/2.628, allocations: 3.667 MB / 0.8584 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/2.641, allocations: 8.817 MB / 0.867 GB, free: 6.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01285/2.654, allocations: 5.593 MB / 0.8724 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001889/2.655, allocations: 52 kB / 0.8725 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05852/2.713, allocations: 15.29 MB / 0.8874 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001661/2.713, allocations: 86.03 kB / 0.8875 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003523/2.714, allocations: 180 kB / 0.8877 GB, free: 6.227 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02615/2.74, allocations: 4.011 MB / 0.8916 GB, free: 3.445 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01936/2.759, allocations: 2.046 MB / 0.8936 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07308/2.832, allocations: 20.95 MB / 0.914 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01244/2.845, allocations: 0.5453 MB / 0.9146 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002637/2.848, allocations: 0.5234 MB / 0.9151 GB, free: 14.82 MB / 0.5573 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 (1088): * Single equations (assignments): 1083 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003876/2.852, allocations: 0.8152 MB / 0.9159 GB, free: 14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001844/2.853, allocations: 0.5708 MB / 0.9164 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03988/2.893, allocations: 9.447 MB / 0.9257 GB, free: 3.918 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.948e-05/2.893, allocations: 36 kB / 0.9257 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.304e-05/2.893, allocations: 20 kB / 0.9257 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-05/2.894, allocations: 15.94 kB / 0.9257 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4664/3.36, allocations: 18.92 MB / 0.9442 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.185e-05/3.36, allocations: 3.609 kB / 0.9442 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005339/3.365, allocations: 0.5039 MB / 0.9447 GB, free: 132.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02172/3.387, allocations: 3.563 MB / 0.9482 GB, free: 132.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009966/3.388, allocations: 69.45 kB / 0.9483 GB, free: 132.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0459/3.434, allocations: 18.72 MB / 0.9665 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/3.434, allocations: 0 / 0.9665 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04475/3.479, allocations: 13.95 MB / 0.9802 GB, free: 128.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/3.481, allocations: 0.5902 MB / 0.9807 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002452/3.483, allocations: 64.47 kB / 0.9808 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006647/3.49, allocations: 214.9 kB / 0.981 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001519/3.492, allocations: 225.6 kB / 0.9812 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005635/3.492, allocations: 87.42 kB / 0.9813 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009477/3.502, allocations: 3.678 MB / 0.9849 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.384e-06/3.502, allocations: 0 / 0.9849 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01276/3.515, allocations: 1.852 MB / 0.9867 GB, free: 126.3 MB / 0.5573 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 (270): * Single equations (assignments): 265 * 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.04645/3.561, allocations: 14.81 MB / 1.001 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02239/3.584, allocations: 9.188 MB / 1.01 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/3.584, allocations: 3.062 kB / 1.01 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009335/3.593, allocations: 3.679 MB / 1.014 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006579/3.6, allocations: 0.7139 MB / 1.014 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05415/3.654, allocations: 16.03 MB / 1.03 GB, free: 103 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01175/3.666, allocations: 5.019 MB / 1.035 GB, free: 99.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007946/3.674, allocations: 3.319 MB / 1.038 GB, free: 96.29 MB / 0.5573 GB Notification: Performance of SimCode: time 1.723e-06/3.674, allocations: 0 / 1.038 GB, free: 96.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.084/9.757, allocations: 185.2 MB / 1.219 GB, free: 107.6 MB / 0.5573 GB