Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.145e-05, allocations: 0 / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09612/0.09618, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.459/0.5552, allocations: 106.2 MB / 406.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.5556, allocations: 85.33 kB / 406.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8436/1.399, allocations: 136.1 MB / 0.5296 GB, free: 62.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.977e-06/1.399, allocations: 0.5156 kB / 0.5296 GB, free: 62.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005985/1.4, allocations: 150.9 kB / 0.5297 GB, free: 62.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2549 * Number of variables: 2549 Notification: Performance of Generate backend data structure: time 0.03823/1.438, allocations: 7.251 MB / 0.5368 GB, free: 59.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.438, allocations: 7.844 kB / 0.5368 GB, free: 59.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006366/1.445, allocations: 1.292 MB / 0.5381 GB, free: 59.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02313/1.468, allocations: 2.885 MB / 0.5409 GB, free: 59.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02837/1.496, allocations: 7.647 MB / 0.5484 GB, free: 58.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008168/1.497, allocations: 0.564 MB / 0.5489 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004173/1.501, allocations: 0.7548 MB / 0.5497 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0592/1.56, allocations: 18.07 MB / 0.5673 GB, free: 55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006235/1.561, allocations: 81.56 kB / 0.5674 GB, free: 54.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004008/1.565, allocations: 358.6 kB / 0.5677 GB, free: 54.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003897/1.569, allocations: 1.605 MB / 0.5693 GB, free: 54.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04965/1.619, allocations: 14.58 MB / 0.5835 GB, free: 54.95 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1314/1.75, allocations: 75.45 MB / 0.6572 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.039/1.789, allocations: 7.549 MB / 0.6646 GB, free: 8.945 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006928/1.796, allocations: 3.228 MB / 0.6677 GB, free: 5.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.331/2.127, allocations: 14.11 MB / 0.6815 GB, free: 74.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.116e-05/2.127, allocations: 68.48 kB / 0.6816 GB, free: 74.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=251): time 9.538e-06/2.128, allocations: 0 / 0.6816 GB, free: 74.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=297): time 0.1642/2.292, allocations: 29.77 MB / 0.7106 GB, free: 69.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/2.292, allocations: 158.1 kB / 0.7108 GB, free: 69.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01176/2.304, allocations: 5.146 MB / 0.7158 GB, free: 68.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007462/2.304, allocations: 67.91 kB / 0.7159 GB, free: 68.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004014/2.308, allocations: 4.828 MB / 0.7206 GB, free: 66.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001851/2.31, allocations: 1.139 MB / 0.7217 GB, free: 65.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/2.311, allocations: 174.4 kB / 0.7219 GB, free: 65.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006916/2.312, allocations: 0.6894 MB / 0.7226 GB, free: 65.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00804/2.32, allocations: 3.279 MB / 0.7258 GB, free: 65.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01149/2.332, allocations: 8.469 MB / 0.734 GB, free: 58.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/2.343, allocations: 5.221 MB / 0.7391 GB, free: 58.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002016/2.343, allocations: 55.31 kB / 0.7392 GB, free: 58.28 MB / 426.7 MB Warning: The linear system: 1 : bodyOfConstraint.v_0[1] = 0.2148655148851041 * freeMotionScalarInit.v_rel_a_1 + (-0.5318108111446446) * freeMotionScalarInit.v_rel_a_2 + 0.8191520442889918 * freeMotionScalarInit.v_rel_a_3 2 : 0.0 = 0.8191520442889918 * bodyOfConstraint.v_0[1] + (-0.09960050292505122) * bodyOfConstraint.v_0[2] + 0.5648625214636235 * bodyOfConstraint.v_0[3] 3 : bodyOfConstraint.v_0[2] = 0.9663834860128886 * freeMotionScalarInit.v_rel_a_1 + 0.2370288965055821 * freeMotionScalarInit.v_rel_a_2 + (-0.09960050292505122) * freeMotionScalarInit.v_rel_a_3 4 : bodyOfConstraint.v_0[3] = (-0.1411940808771254) * freeMotionScalarInit.v_rel_a_1 + 0.8130157214783864 * freeMotionScalarInit.v_rel_a_2 + 0.5648625214636235 * freeMotionScalarInit.v_rel_a_3 [ 0.0 , -0.2148655148851041 , 0.0 , 1.0 ; -0.5648625214636235 , 0.0 , 0.09960050292505122 , -0.8191520442889918 ; 0.0 , -0.9663834860128886 , 1.0 , 0.0 ; 1.0 , 0.1411940808771254 , 0.0 , 0.0 ] * [ bodyOfConstraint.v_0[3] ; freeMotionScalarInit.v_rel_a_1 ; bodyOfConstraint.v_0[2] ; bodyOfConstraint.v_0[1] ] = [ (-0.5318108111446446) * freeMotionScalarInit.v_rel_a_2 + 0.8191520442889918 * freeMotionScalarInit.v_rel_a_3 ; -0.0 ; 0.2370288965055821 * freeMotionScalarInit.v_rel_a_2 + (-0.09960050292505122) * freeMotionScalarInit.v_rel_a_3 ; 0.8130157214783864 * freeMotionScalarInit.v_rel_a_2 + 0.5648625214636235 * freeMotionScalarInit.v_rel_a_3 ] might be structurally or numerically singular for variable bodyOfConstraint.v_0[1] since U(4,4) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=1155) (initialization): time 0.03933/2.383, allocations: 13.13 MB / 0.752 GB, free: 54.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/2.383, allocations: 85.22 kB / 0.7521 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002613/2.383, allocations: 184.5 kB / 0.7523 GB, free: 54.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/2.395, allocations: 2.264 MB / 0.7545 GB, free: 53.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01383/2.409, allocations: 2.082 MB / 0.7565 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03292/2.442, allocations: 20.14 MB / 0.7762 GB, free: 40.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/2.453, allocations: 0.5031 MB / 0.7767 GB, free: 39.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002112/2.455, allocations: 0.5114 MB / 0.7772 GB, free: 39.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 60 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],jointPrismatic_y.boxColor[3],jointPrismatic_y.boxColor[2],jointPrismatic_y.boxColor[1],jointPrismatic_x.boxColor[3],jointPrismatic_x.boxColor[2],jointPrismatic_x.boxColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1072): * Single equations (assignments): 1061 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,75.0%) 5,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 6,(4,100.0%) 9,(4,100.0%) 9} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003154/2.458, allocations: 0.7875 MB / 0.7779 GB, free: 38.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/2.46, allocations: 0.5283 MB / 0.7784 GB, free: 38.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02306/2.483, allocations: 7.093 MB / 0.7854 GB, free: 32.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.784e-05/2.483, allocations: 40 kB / 0.7854 GB, free: 32.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-05/2.483, allocations: 15.17 kB / 0.7854 GB, free: 32.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.866e-05/2.483, allocations: 13.55 kB / 0.7854 GB, free: 32.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04641/2.529, allocations: 15.31 MB / 0.8004 GB, free: 19.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.231e-05/2.53, allocations: 0 / 0.8004 GB, free: 19.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005907/2.535, allocations: 0.5216 MB / 0.8009 GB, free: 19.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01176/2.547, allocations: 2.069 MB / 0.8029 GB, free: 18.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007615/2.548, allocations: 55.23 kB / 0.803 GB, free: 17.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03626/2.584, allocations: 22.53 MB / 0.825 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/2.584, allocations: 7.891 kB / 0.825 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3722/2.957, allocations: 11.15 MB / 0.8359 GB, free: 75.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005503/2.962, allocations: 1.013 MB / 0.8369 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/2.965, allocations: 53.86 kB / 0.8369 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00758/2.972, allocations: 194.7 kB / 0.8371 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001728/2.974, allocations: 186.7 kB / 0.8373 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000669/2.975, allocations: 78.09 kB / 0.8374 GB, free: 75.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0118/2.987, allocations: 3.564 MB / 0.8408 GB, free: 75.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.293e-06/2.987, allocations: 0 / 0.8408 GB, free: 75.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01225/2.999, allocations: 1.74 MB / 0.8425 GB, free: 75.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (bodyOfJoint.v_0[2],bodyOfJoint.v_0[3],bodyOfJoint.body.frame_a.r_0[2],bodyOfJoint.body.frame_a.r_0[3],bodyOfConstraint.v_0[2],bodyOfConstraint.v_0[3],bodyOfConstraint.body.frame_a.r_0[2],bodyOfConstraint.body.frame_a.r_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 201 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 6,(1,100.0%) 3,(4,75.0%) 5,(2,100.0%) 1,(4,100.0%) 9,(4,100.0%) 9,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.03091/3.03, allocations: 11.88 MB / 0.8541 GB, free: 73.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02137/3.051, allocations: 8.802 MB / 0.8627 GB, free: 72.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/3.051, allocations: 0 / 0.8627 GB, free: 72.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01021/3.062, allocations: 4.022 MB / 0.8667 GB, free: 71.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006641/3.068, allocations: 0.7345 MB / 0.8674 GB, free: 71.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05682/3.125, allocations: 16.45 MB / 0.8834 GB, free: 69.15 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01265/3.138, allocations: 5.281 MB / 0.8886 GB, free: 68.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008172/3.146, allocations: 3.357 MB / 0.8919 GB, free: 65.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.393e-06/3.146, allocations: 0 / 0.8919 GB, free: 65.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.939/10.09, allocations: 366 MB / 1.249 GB, free: 71.68 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat