Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.481/2.481, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.656e-05, allocations: 4 kB / 347.1 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3959, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2036/0.5995, allocations: 110.3 MB / 0.507 GB, free: 12.24 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5999, allocations: 71.97 kB / 0.5071 GB, free: 12.17 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7969/1.397, allocations: 118.3 MB / 0.6226 GB, free: 17.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.397, allocations: 4 kB / 0.6226 GB, free: 17.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004138/1.397, allocations: 123.9 kB / 0.6227 GB, free: 17.14 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.0244/1.422, allocations: 5.843 MB / 0.6284 GB, free: 11.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/1.422, allocations: 16.02 kB / 0.6284 GB, free: 11.21 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004557/1.426, allocations: 0.9892 MB / 0.6294 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0514/1.478, allocations: 6.977 MB / 0.6362 GB, free: 3.211 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02769/1.506, allocations: 7.435 MB / 0.6435 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006678/1.506, allocations: 427.3 kB / 0.6439 GB, free: 11.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003268/1.51, allocations: 0.5816 MB / 0.6445 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04405/1.554, allocations: 13.51 MB / 0.6577 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005508/1.554, allocations: 87.19 kB / 0.6577 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002866/1.557, allocations: 271.9 kB / 0.658 GB, free: 11.66 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/1.56, allocations: 1.279 MB / 0.6592 GB, free: 10.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03699/1.597, allocations: 11.05 MB / 0.67 GB, free: 15.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5089/2.106, allocations: 61.27 MB / 0.7299 GB, free: 73.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02313/2.129, allocations: 5.574 MB / 0.7353 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005959/2.135, allocations: 3.237 MB / 0.7385 GB, free: 72.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001005/2.137, allocations: 0.6859 MB / 0.7391 GB, free: 72.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.773e-05/2.137, allocations: 65.2 kB / 0.7392 GB, free: 72.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.975e-06/2.137, allocations: 0 / 0.7392 GB, free: 72.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.1366/2.273, allocations: 28.73 MB / 0.7673 GB, free: 68.49 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.273, allocations: 270.9 kB / 0.7675 GB, free: 68.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/2.284, allocations: 4.555 MB / 0.772 GB, free: 67.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008483/2.285, allocations: 70.55 kB / 0.772 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003403/2.289, allocations: 3.807 MB / 0.7757 GB, free: 65.89 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001844/2.291, allocations: 1.154 MB / 0.7769 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/2.292, allocations: 157.6 kB / 0.777 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000522/2.292, allocations: 0.6251 MB / 0.7776 GB, free: 64.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007723/2.3, allocations: 3.201 MB / 0.7808 GB, free: 64.31 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01126/2.311, allocations: 7.331 MB / 0.7879 GB, free: 57.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/2.322, allocations: 4.826 MB / 0.7926 GB, free: 56.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/2.322, allocations: 44 kB / 0.7927 GB, free: 56.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03426/2.357, allocations: 11.69 MB / 0.8041 GB, free: 52.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/2.357, allocations: 68.38 kB / 0.8042 GB, free: 52.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002338/2.357, allocations: 145.9 kB / 0.8043 GB, free: 52.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00925/2.366, allocations: 2.134 MB / 0.8064 GB, free: 51.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01141/2.378, allocations: 1.713 MB / 0.808 GB, free: 50.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02745/2.405, allocations: 14.33 MB / 0.822 GB, free: 37.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009591/2.415, allocations: 446.5 kB / 0.8225 GB, free: 37.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001907/2.417, allocations: 453.7 kB / 0.8229 GB, free: 36.82 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (909): * Single equations (assignments): 904 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002912/2.42, allocations: 0.6596 MB / 0.8235 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/2.421, allocations: 494.2 kB / 0.824 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02036/2.442, allocations: 6.913 MB / 0.8308 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.83e-05/2.442, allocations: 36.38 kB / 0.8308 GB, free: 30 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/2.442, allocations: 11.95 kB / 0.8308 GB, free: 29.99 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.523e-05/2.442, allocations: 13.69 kB / 0.8308 GB, free: 29.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04586/2.488, allocations: 15.75 MB / 0.8462 GB, free: 17.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/2.488, allocations: 11.75 kB / 0.8462 GB, free: 17.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004906/2.493, allocations: 497.2 kB / 0.8467 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008514/2.501, allocations: 1.87 MB / 0.8485 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008619/2.502, allocations: 63.61 kB / 0.8486 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02719/2.529, allocations: 12.82 MB / 0.8611 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/2.53, allocations: 11.94 kB / 0.8611 GB, free: 4.027 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02979/2.559, allocations: 11.9 MB / 0.8727 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/2.561, allocations: 0.5241 MB / 0.8732 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002129/2.564, allocations: 62.67 kB / 0.8733 GB, free: 8.703 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005664/2.569, allocations: 213.1 kB / 0.8735 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/2.571, allocations: 205 kB / 0.8737 GB, free: 8.438 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004159/2.571, allocations: 87.52 kB / 0.8738 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009453/2.581, allocations: 3.209 MB / 0.8769 GB, free: 5.531 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.72e-07/2.581, allocations: 0 / 0.8769 GB, free: 5.531 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01102/2.592, allocations: 1.471 MB / 0.8784 GB, free: 4.066 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 244 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03352/2.625, allocations: 13.9 MB / 0.8919 GB, free: 5.984 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02093/2.646, allocations: 7.799 MB / 0.8995 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/2.646, allocations: 4 kB / 0.8995 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01374/2.66, allocations: 3.773 MB / 0.9032 GB, free: 10.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006165/2.666, allocations: 0.6253 MB / 0.9038 GB, free: 9.789 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05158/2.718, allocations: 14.54 MB / 0.918 GB, free: 11.15 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01134/2.729, allocations: 4.45 MB / 0.9224 GB, free: 6.688 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007812/2.737, allocations: 2.78 MB / 0.9251 GB, free: 3.906 MB / 0.573 GB Notification: Performance of SimCode: time 1.463e-06/2.737, allocations: 0 / 0.9251 GB, free: 3.906 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.512/8.249, allocations: 163.1 MB / 1.084 GB, free: 63 MB / 0.573 GB