Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.452e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2683, allocations: 38.76 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.4423, allocations: 99.85 MB / 358.2 MB, free: 10.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003549/0.4427, allocations: 87.95 kB / 358.3 MB, free: 9.922 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7037/1.146, allocations: 132.7 MB / 491 MB, free: 1.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.147, allocations: 0 / 491 MB, free: 1.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005692/1.147, allocations: 148 kB / 491.1 MB, free: 1.23 MB / 330.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.3262/1.473, allocations: 7.244 MB / 498.4 MB, free: 30.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.473, allocations: 9.312 kB / 498.4 MB, free: 30.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02313/1.497, allocations: 2.877 MB / 0.4895 GB, free: 29.6 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02784/1.524, allocations: 7.643 MB / 0.497 GB, free: 28.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005135/1.525, allocations: 249.3 kB / 0.4972 GB, free: 28.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003809/1.529, allocations: 453.2 kB / 0.4976 GB, free: 28.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02673/1.556, allocations: 10.64 MB / 0.508 GB, free: 28.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.041/1.597, allocations: 15.3 MB / 0.523 GB, free: 25.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004213/1.597, allocations: 80.59 kB / 0.523 GB, free: 25.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002871/1.6, allocations: 40.03 kB / 0.5231 GB, free: 25.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003656/1.604, allocations: 1.6 MB / 0.5246 GB, free: 25.45 MB / 330.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.1452/1.749, allocations: 74.1 MB / 0.597 GB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00894/1.758, allocations: 4.093 MB / 0.601 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01509/1.773, allocations: 3.118 MB / 0.6041 GB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002024/1.775, allocations: 0.917 MB / 0.605 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.839e-05/1.775, allocations: 64.5 kB / 0.605 GB, free: 14.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=257): time 7.905e-06/1.775, allocations: 1.688 kB / 0.605 GB, free: 14.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=303): time 0.4273/2.203, allocations: 29.8 MB / 0.6341 GB, free: 70.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.199e-05/2.203, allocations: 162.4 kB / 0.6343 GB, free: 70.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01117/2.214, allocations: 4.496 MB / 0.6387 GB, free: 69.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008009/2.215, allocations: 29.91 kB / 0.6387 GB, free: 69.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004363/2.219, allocations: 4.931 MB / 0.6435 GB, free: 66.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001987/2.221, allocations: 1.122 MB / 0.6446 GB, free: 66.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/2.223, allocations: 3.844 kB / 0.6446 GB, free: 66.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007934/2.223, allocations: 0.7006 MB / 0.6453 GB, free: 65.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007806/2.231, allocations: 3.177 MB / 0.6484 GB, free: 65.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/2.243, allocations: 8.559 MB / 0.6567 GB, free: 58.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/2.254, allocations: 5.135 MB / 0.6618 GB, free: 58.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002319/2.254, allocations: 55.78 kB / 0.6618 GB, free: 58.88 MB / 378.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=1191) (initialization): time 0.03887/2.293, allocations: 12.67 MB / 0.6742 GB, free: 57.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001607/2.294, allocations: 88.69 kB / 0.6743 GB, free: 57.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002996/2.294, allocations: 193.6 kB / 0.6745 GB, free: 57.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0115/2.305, allocations: 2.238 MB / 0.6766 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01397/2.319, allocations: 2.156 MB / 0.6788 GB, free: 57.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03074/2.35, allocations: 19.17 MB / 0.6975 GB, free: 45.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01073/2.361, allocations: 341.6 kB / 0.6978 GB, free: 45.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002338/2.363, allocations: 0.5314 MB / 0.6983 GB, free: 45.86 MB / 378.7 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.003353/2.367, allocations: 0.5959 MB / 0.6989 GB, free: 45.38 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02165/2.388, allocations: 6.905 MB / 0.7056 GB, free: 42.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001966/2.39, allocations: 0.4897 MB / 0.7061 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/2.413, allocations: 6.824 MB / 0.7128 GB, free: 39.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001128/2.413, allocations: 38.38 kB / 0.7128 GB, free: 39.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.081e-05/2.413, allocations: 19.48 kB / 0.7128 GB, free: 39.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.435e-05/2.413, allocations: 17.66 kB / 0.7129 GB, free: 39.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03955/2.453, allocations: 13.86 MB / 0.7264 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.572e-05/2.453, allocations: 4 kB / 0.7264 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005662/2.459, allocations: 0.5274 MB / 0.7269 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01106/2.47, allocations: 2.044 MB / 0.7289 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007477/2.47, allocations: 15.7 kB / 0.7289 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03113/2.502, allocations: 21.4 MB / 0.7498 GB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/2.502, allocations: 3.938 kB / 0.7498 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3092/2.811, allocations: 10.8 MB / 0.7604 GB, free: 59.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003915/2.815, allocations: 0.9718 MB / 0.7613 GB, free: 59.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002192/2.817, allocations: 13.5 kB / 0.7613 GB, free: 59.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005442/2.822, allocations: 154.1 kB / 0.7615 GB, free: 59.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001363/2.824, allocations: 188.3 kB / 0.7617 GB, free: 59.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000505/2.824, allocations: 79.66 kB / 0.7617 GB, free: 59.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008069/2.833, allocations: 2.993 MB / 0.7647 GB, free: 59.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.152e-06/2.833, allocations: 3.844 kB / 0.7647 GB, free: 59.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01269/2.845, allocations: 1.535 MB / 0.7662 GB, free: 59.21 MB / 378.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 (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.0442/2.89, allocations: 11.68 MB / 0.7776 GB, free: 57.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.047/2.937, allocations: 8.733 MB / 0.7861 GB, free: 56.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/2.937, allocations: 2.5 kB / 0.7861 GB, free: 56.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009854/2.946, allocations: 4.017 MB / 0.79 GB, free: 55.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005982/2.953, allocations: 0.5986 MB / 0.7906 GB, free: 55.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05557/3.008, allocations: 16.1 MB / 0.8063 GB, free: 53.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01279/3.021, allocations: 5.285 MB / 0.8115 GB, free: 52.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008249/3.029, allocations: 3.336 MB / 0.8147 GB, free: 49.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.934e-06/3.029, allocations: 3.281 kB / 0.8148 GB, free: 49.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.916/9.945, allocations: 364.1 MB / 1.17 GB, free: 34.26 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat