Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 270 MB / 282.6 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.686e-05, allocations: 4 kB / 347 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3901, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2011/0.5913, allocations: 114.4 MB / 0.5111 GB, free: 8.059 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5916, allocations: 79.95 kB / 0.5111 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.901/1.493, allocations: 137.9 MB / 0.6458 GB, free: 9.555 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.493, allocations: 0 / 0.6458 GB, free: 9.555 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005471/1.493, allocations: 135.9 kB / 0.646 GB, free: 9.422 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.0323/1.526, allocations: 7.028 MB / 0.6528 GB, free: 2.316 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/1.526, allocations: 12.03 kB / 0.6528 GB, free: 2.305 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005712/1.531, allocations: 1.146 MB / 0.654 GB, free: 1.148 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05965/1.591, allocations: 7.553 MB / 0.6613 GB, free: 9.574 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03755/1.629, allocations: 9.196 MB / 0.6703 GB, free: 300 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008142/1.629, allocations: 489 kB / 0.6708 GB, free: 15.81 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003973/1.633, allocations: 0.6558 MB / 0.6714 GB, free: 15.15 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05831/1.692, allocations: 16.5 MB / 0.6875 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005363/1.692, allocations: 95.12 kB / 0.6876 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003204/1.696, allocations: 315.8 kB / 0.6879 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004373/1.7, allocations: 1.576 MB / 0.6895 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0504/1.75, allocations: 13.23 MB / 0.7024 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5245/2.275, allocations: 74.25 MB / 0.7749 GB, free: 48.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03914/2.314, allocations: 7.616 MB / 0.7823 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008441/2.323, allocations: 3.918 MB / 0.7862 GB, free: 47.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0456/2.368, allocations: 18.56 MB / 0.8043 GB, free: 41.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.967e-05/2.369, allocations: 67.38 kB / 0.8043 GB, free: 41.78 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.923e-06/2.369, allocations: 0 / 0.8043 GB, free: 41.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.222/2.591, allocations: 38.59 MB / 0.842 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/2.591, allocations: 270.8 kB / 0.8423 GB, free: 31 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0132/2.604, allocations: 5.273 MB / 0.8474 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001032/2.605, allocations: 81.7 kB / 0.8475 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004134/2.609, allocations: 4.558 MB / 0.852 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002213/2.611, allocations: 1.335 MB / 0.8533 GB, free: 21.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/2.613, allocations: 186.9 kB / 0.8535 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007786/2.614, allocations: 0.6964 MB / 0.8541 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009453/2.623, allocations: 3.644 MB / 0.8577 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01838/2.642, allocations: 8.78 MB / 0.8663 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01991/2.662, allocations: 5.571 MB / 0.8717 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003067/2.662, allocations: 52 kB / 0.8718 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.07577/2.738, allocations: 16.11 MB / 0.8875 GB, free: 9.074 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002056/2.738, allocations: 84 kB / 0.8876 GB, free: 8.992 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003808/2.738, allocations: 180 kB / 0.8877 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02622/2.765, allocations: 4.029 MB / 0.8917 GB, free: 6.051 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01435/2.779, allocations: 2.039 MB / 0.8937 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06155/2.841, allocations: 20.98 MB / 0.9141 GB, free: 360 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01255/2.853, allocations: 0.5423 MB / 0.9147 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002893/2.856, allocations: 0.5195 MB / 0.9152 GB, free: 15.29 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 (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.004979/2.861, allocations: 0.8085 MB / 0.916 GB, free: 14.48 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002653/2.864, allocations: 0.5708 MB / 0.9165 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05948/2.924, allocations: 9.437 MB / 0.9257 GB, free: 4.398 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001197/2.924, allocations: 36 kB / 0.9258 GB, free: 4.363 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.047e-05/2.924, allocations: 20 kB / 0.9258 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/2.924, allocations: 15.94 kB / 0.9258 GB, free: 4.328 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5274/3.451, allocations: 18.86 MB / 0.9442 GB, free: 132 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.017e-05/3.451, allocations: 0 / 0.9442 GB, free: 132 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005232/3.457, allocations: 0.4924 MB / 0.9447 GB, free: 132 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02263/3.479, allocations: 3.621 MB / 0.9482 GB, free: 131.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00101/3.48, allocations: 62.28 kB / 0.9483 GB, free: 131.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04637/3.527, allocations: 18.72 MB / 0.9666 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/3.527, allocations: 6.891 kB / 0.9666 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04583/3.573, allocations: 13.89 MB / 0.9802 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/3.575, allocations: 0.5893 MB / 0.9807 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002454/3.577, allocations: 55.95 kB / 0.9808 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006775/3.584, allocations: 231.4 kB / 0.981 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001516/3.586, allocations: 217.1 kB / 0.9812 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008899/3.587, allocations: 91.92 kB / 0.9813 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009975/3.597, allocations: 3.678 MB / 0.9849 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.21e-07/3.597, allocations: 3.656 kB / 0.9849 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01259/3.609, allocations: 1.842 MB / 0.9867 GB, free: 126 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 (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.04772/3.657, allocations: 14.75 MB / 1.001 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02243/3.68, allocations: 9.089 MB / 1.01 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/3.68, allocations: 2.438 kB / 1.01 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009379/3.689, allocations: 3.631 MB / 1.014 GB, free: 116 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00664/3.696, allocations: 0.7153 MB / 1.014 GB, free: 115.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05867/3.755, allocations: 15.96 MB / 1.03 GB, free: 103.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01189/3.767, allocations: 5 MB / 1.035 GB, free: 99.51 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009972/3.777, allocations: 3.309 MB / 1.038 GB, free: 96.44 MB / 0.5573 GB Notification: Performance of SimCode: time 1.903e-06/3.777, allocations: 0 / 1.038 GB, free: 96.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.991/9.768, allocations: 184.7 MB / 1.218 GB, free: 109.4 MB / 0.5573 GB