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.982/1.982, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.631e-05/2.641e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3128, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.4977, allocations: 105.6 MB / 399.7 MB, free: 8.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003735/0.4982, allocations: 87.94 kB / 399.8 MB, free: 8.195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7689/1.267, allocations: 132.7 MB / 0.5201 GB, free: 18.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.267, allocations: 0 / 0.5201 GB, free: 18.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004757/1.268, allocations: 144 kB / 0.5202 GB, free: 18.19 MB / 362.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.03533/1.303, allocations: 7.25 MB / 0.5273 GB, free: 10.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/1.303, allocations: 12.03 kB / 0.5273 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02225/1.325, allocations: 2.876 MB / 0.5301 GB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02659/1.352, allocations: 7.638 MB / 0.5376 GB, free: 244 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005198/1.353, allocations: 244.2 kB / 0.5378 GB, free: 16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004112/1.357, allocations: 463.8 kB / 0.5382 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03037/1.387, allocations: 10.64 MB / 0.5486 GB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5979/1.985, allocations: 15.3 MB / 0.5636 GB, free: 43.32 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004481/1.986, allocations: 79.12 kB / 0.5636 GB, free: 43.32 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002524/1.988, allocations: 42.19 kB / 0.5637 GB, free: 43.32 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003661/1.992, allocations: 1.6 MB / 0.5652 GB, free: 43.31 MB / 378.8 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.1227/2.115, allocations: 74.11 MB / 0.6376 GB, free: 16.85 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007486/2.122, allocations: 4.101 MB / 0.6416 GB, free: 14.75 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00491/2.127, allocations: 2.592 MB / 0.6441 GB, free: 13.64 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00162/2.129, allocations: 0.9041 MB / 0.645 GB, free: 12.85 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/2.129, allocations: 62.03 kB / 0.6451 GB, free: 12.79 MB / 394.8 MB Notification: Performance of pre-optimization done (n=257): time 6.553e-06/2.129, allocations: 0 / 0.6451 GB, free: 12.79 MB / 394.8 MB Notification: Performance of matching and sorting (n=303): time 0.1105/2.239, allocations: 29.78 MB / 0.6742 GB, free: 1.324 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/2.239, allocations: 159.4 kB / 0.6743 GB, free: 1.164 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01344/2.253, allocations: 4.69 MB / 0.6789 GB, free: 14.58 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007802/2.254, allocations: 25.7 kB / 0.6789 GB, free: 14.55 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005137/2.259, allocations: 4.931 MB / 0.6837 GB, free: 10.05 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/2.261, allocations: 1.116 MB / 0.6848 GB, free: 9.055 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009115/2.262, allocations: 6.25 kB / 0.6848 GB, free: 9.051 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0006908/2.263, allocations: 0.6947 MB / 0.6855 GB, free: 8.453 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007835/2.271, allocations: 3.176 MB / 0.6886 GB, free: 5.578 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/2.284, allocations: 8.554 MB / 0.697 GB, free: 10.88 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/2.297, allocations: 5.137 MB / 0.702 GB, free: 6.457 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001654/2.297, allocations: 56 kB / 0.702 GB, free: 6.402 MB / 426.8 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=1191) (initialization): time 0.3394/2.636, allocations: 12.96 MB / 0.7147 GB, free: 82.51 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002088/2.637, allocations: 87.25 kB / 0.7148 GB, free: 82.51 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004137/2.637, allocations: 199.2 kB / 0.715 GB, free: 82.51 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01276/2.65, allocations: 2.238 MB / 0.7172 GB, free: 82.45 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01404/2.664, allocations: 2.147 MB / 0.7193 GB, free: 82.45 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0309/2.695, allocations: 19.19 MB / 0.738 GB, free: 74.09 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01069/2.706, allocations: 346.1 kB / 0.7383 GB, free: 74.09 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002177/2.708, allocations: 0.5294 MB / 0.7388 GB, free: 74.09 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * 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 (1108): * Single equations (assignments): 1097 * 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.003035/2.711, allocations: 0.5918 MB / 0.7394 GB, free: 73.97 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02154/2.732, allocations: 6.908 MB / 0.7462 GB, free: 73.4 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00175/2.734, allocations: 0.4914 MB / 0.7466 GB, free: 73.4 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0221/2.756, allocations: 6.82 MB / 0.7533 GB, free: 72.78 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/2.757, allocations: 44.56 kB / 0.7533 GB, free: 72.78 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-05/2.757, allocations: 16.67 kB / 0.7534 GB, free: 72.77 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.296e-05/2.757, allocations: 11.62 kB / 0.7534 GB, free: 72.77 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04293/2.8, allocations: 13.86 MB / 0.7669 GB, free: 70.42 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/2.8, allocations: 6.781 kB / 0.7669 GB, free: 70.42 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005823/2.806, allocations: 0.523 MB / 0.7674 GB, free: 70.41 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01171/2.817, allocations: 2.047 MB / 0.7694 GB, free: 69.93 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008606/2.818, allocations: 17.78 kB / 0.7694 GB, free: 69.93 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03259/2.851, allocations: 21.4 MB / 0.7903 GB, free: 54.92 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/2.851, allocations: 0 / 0.7903 GB, free: 54.92 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0277/2.879, allocations: 10.81 MB / 0.8009 GB, free: 50.29 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003589/2.882, allocations: 0.9739 MB / 0.8019 GB, free: 49.72 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001654/2.884, allocations: 10.66 kB / 0.8019 GB, free: 49.72 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004889/2.889, allocations: 150.9 kB / 0.802 GB, free: 49.72 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00116/2.89, allocations: 182.2 kB / 0.8022 GB, free: 49.69 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003487/2.89, allocations: 86.3 kB / 0.8023 GB, free: 49.67 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.007253/2.898, allocations: 2.999 MB / 0.8052 GB, free: 48.59 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.052e-06/2.898, allocations: 0 / 0.8052 GB, free: 48.59 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01141/2.909, allocations: 1.537 MB / 0.8067 GB, free: 48.19 MB / 426.8 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 (220): * Single equations (assignments): 207 * 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.02748/2.937, allocations: 11.68 MB / 0.8181 GB, free: 37.95 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01949/2.956, allocations: 8.738 MB / 0.8266 GB, free: 30.3 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/2.956, allocations: 0 / 0.8266 GB, free: 30.3 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00963/2.966, allocations: 4.003 MB / 0.8305 GB, free: 26.59 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006723/2.973, allocations: 0.5916 MB / 0.8311 GB, free: 26.11 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09481/3.068, allocations: 16.12 MB / 0.8469 GB, free: 12.39 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01264/3.08, allocations: 5.277 MB / 0.852 GB, free: 8.504 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008027/3.088, allocations: 3.333 MB / 0.8553 GB, free: 5.406 MB / 426.8 MB Notification: Performance of SimCode: time 1.883e-06/3.088, allocations: 3.938 kB / 0.8553 GB, free: 5.402 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.87/9.959, allocations: 364.1 MB / 1.211 GB, free: 103.3 MB / 458.8 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