Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.498/2.498, allocations: 270 MB / 282.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.086e-05/4.095e-05, allocations: 4 kB / 347.1 MB, free: 3.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.391, allocations: 61.86 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1928/0.5839, allocations: 109 MB / 0.5057 GB, free: 13.53 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.5842, allocations: 75.95 kB / 0.5058 GB, free: 13.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.883/1.467, allocations: 141.4 MB / 0.6439 GB, free: 11.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.467, allocations: 0 / 0.6439 GB, free: 11.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005573/1.468, allocations: 144 kB / 0.644 GB, free: 11.13 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: 2429 * Number of variables: 2429 Notification: Performance of Generate backend data structure: time 0.03069/1.499, allocations: 6.882 MB / 0.6507 GB, free: 4.172 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/1.499, allocations: 8.031 kB / 0.6508 GB, free: 4.164 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005877/1.505, allocations: 1.227 MB / 0.652 GB, free: 2.926 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08603/1.591, allocations: 9.503 MB / 0.6612 GB, free: 9.398 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03323/1.624, allocations: 8.363 MB / 0.6694 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007899/1.625, allocations: 0.5216 MB / 0.6699 GB, free: 440 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003955/1.629, allocations: 0.7028 MB / 0.6706 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0558/1.685, allocations: 16.43 MB / 0.6866 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006029/1.685, allocations: 106.9 kB / 0.6867 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003444/1.689, allocations: 347.8 kB / 0.6871 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00384/1.693, allocations: 1.495 MB / 0.6885 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0448/1.737, allocations: 12.72 MB / 0.701 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9243/2.662, allocations: 75.41 MB / 0.7746 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03753/2.699, allocations: 6.255 MB / 0.7807 GB, free: 42.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009414/2.709, allocations: 3.447 MB / 0.7841 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003456/2.709, allocations: 58.92 kB / 0.7841 GB, free: 42.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.197e-05/2.709, allocations: 64.38 kB / 0.7842 GB, free: 42.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=229): time 1.046e-05/2.709, allocations: 0 / 0.7842 GB, free: 42.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=262): time 0.1156/2.825, allocations: 24.12 MB / 0.8077 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/2.825, allocations: 283.6 kB / 0.808 GB, free: 35.94 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01515/2.84, allocations: 6.24 MB / 0.8141 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006894/2.841, allocations: 59.36 kB / 0.8142 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004257/2.845, allocations: 4.73 MB / 0.8188 GB, free: 33 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001602/2.847, allocations: 1.019 MB / 0.8198 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/2.848, allocations: 169.8 kB / 0.8199 GB, free: 32.13 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006789/2.849, allocations: 0.6784 MB / 0.8206 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007687/2.857, allocations: 3.016 MB / 0.8235 GB, free: 30.65 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01116/2.868, allocations: 8.215 MB / 0.8316 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/2.879, allocations: 4.946 MB / 0.8364 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/2.879, allocations: 54.44 kB / 0.8364 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1118) (initialization): time 0.03116/2.91, allocations: 11.36 MB / 0.8475 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00014/2.91, allocations: 83.88 kB / 0.8476 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/2.911, allocations: 185.2 kB / 0.8478 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005723/2.916, allocations: 1.358 MB / 0.8491 GB, free: 17.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/2.929, allocations: 1.98 MB / 0.8511 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02027/2.949, allocations: 11.22 MB / 0.862 GB, free: 5.719 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/2.96, allocations: 477.3 kB / 0.8625 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002165/2.962, allocations: 0.526 MB / 0.863 GB, free: 4.793 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1043): * Single equations (assignments): 1037 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003235/2.965, allocations: 0.7735 MB / 0.8637 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001689/2.967, allocations: 0.5994 MB / 0.8643 GB, free: 3.414 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01853/2.985, allocations: 5.366 MB / 0.8696 GB, free: 15.52 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.123e-05/2.986, allocations: 34.91 kB / 0.8696 GB, free: 15.49 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.584e-05/2.986, allocations: 8 kB / 0.8696 GB, free: 15.48 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-05/2.986, allocations: 10.92 kB / 0.8696 GB, free: 15.48 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04679/3.033, allocations: 12.9 MB / 0.8822 GB, free: 5.051 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.272e-05/3.033, allocations: 7.062 kB / 0.8822 GB, free: 5.047 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006249/3.039, allocations: 418 kB / 0.8826 GB, free: 4.719 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01973/3.059, allocations: 1.052 MB / 0.8837 GB, free: 3.961 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000859/3.06, allocations: 44 kB / 0.8837 GB, free: 3.918 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06107/3.121, allocations: 10.2 MB / 0.8937 GB, free: 10.41 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/3.121, allocations: 3.516 kB / 0.8937 GB, free: 10.41 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03369/3.154, allocations: 8.969 MB / 0.9024 GB, free: 2.453 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003434/3.158, allocations: 0.6596 MB / 0.9031 GB, free: 1.797 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00298/3.161, allocations: 43.2 kB / 0.9031 GB, free: 1.758 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007109/3.168, allocations: 148 kB / 0.9032 GB, free: 1.664 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001225/3.169, allocations: 155 kB / 0.9034 GB, free: 1.57 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005035/3.17, allocations: 68 kB / 0.9035 GB, free: 1.504 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.03481/3.205, allocations: 5.051 MB / 0.9084 GB, free: 15.11 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.232e-06/3.205, allocations: 0 / 0.9084 GB, free: 15.11 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01728/3.222, allocations: 1.595 MB / 0.9099 GB, free: 13.52 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 198 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03599/3.258, allocations: 9.861 MB / 0.9196 GB, free: 4.711 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.4231/3.681, allocations: 7.571 MB / 0.927 GB, free: 135.7 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/3.681, allocations: 4 kB / 0.927 GB, free: 135.7 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.007212/3.689, allocations: 2.711 MB / 0.9296 GB, free: 135.4 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006896/3.696, allocations: 0.8044 MB / 0.9304 GB, free: 135.4 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0505/3.746, allocations: 15.71 MB / 0.9458 GB, free: 132.7 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01226/3.758, allocations: 5.169 MB / 0.9508 GB, free: 131.9 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008156/3.767, allocations: 3.365 MB / 0.9541 GB, free: 131.9 MB / 0.5574 GB Notification: Performance of SimCode: time 1.653e-06/3.767, allocations: 0 / 0.9541 GB, free: 131.9 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.879/9.646, allocations: 218.2 MB / 1.167 GB, free: 132.6 MB / 0.5574 GB