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.902/1.902, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.145e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.09937, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4716/0.571, allocations: 106.2 MB / 406.1 MB, free: 10.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5714, allocations: 85.7 kB / 406.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8536/1.425, allocations: 136 MB / 0.5296 GB, free: 63.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.425, allocations: 0 / 0.5296 GB, free: 63.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006155/1.426, allocations: 154.2 kB / 0.5297 GB, free: 63.29 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.03922/1.465, allocations: 7.249 MB / 0.5368 GB, free: 60.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/1.465, allocations: 15.5 kB / 0.5368 GB, free: 60.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006177/1.471, allocations: 1.289 MB / 0.5381 GB, free: 60.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02327/1.495, allocations: 2.888 MB / 0.5409 GB, free: 60.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/1.523, allocations: 7.641 MB / 0.5483 GB, free: 59.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007724/1.524, allocations: 0.565 MB / 0.5489 GB, free: 59.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00424/1.528, allocations: 0.7543 MB / 0.5496 GB, free: 59.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05956/1.588, allocations: 18.16 MB / 0.5674 GB, free: 55.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004573/1.588, allocations: 78.53 kB / 0.5674 GB, free: 55.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003534/1.592, allocations: 359.5 kB / 0.5678 GB, free: 55.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003826/1.596, allocations: 1.603 MB / 0.5694 GB, free: 55.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04918/1.645, allocations: 14.84 MB / 0.5838 GB, free: 55.55 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.1293/1.774, allocations: 75.44 MB / 0.6575 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03781/1.812, allocations: 7.578 MB / 0.6649 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00693/1.819, allocations: 3.225 MB / 0.6681 GB, free: 5.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.36/2.179, allocations: 14.06 MB / 0.6818 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.874e-05/2.179, allocations: 61.12 kB / 0.6819 GB, free: 74.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=251): time 7.184e-06/2.179, allocations: 0 / 0.6819 GB, free: 74.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=297): time 0.1437/2.323, allocations: 29.79 MB / 0.7109 GB, free: 69.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.079e-05/2.323, allocations: 162.3 kB / 0.7111 GB, free: 69.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.336, allocations: 5.132 MB / 0.7161 GB, free: 69.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007867/2.337, allocations: 68.14 kB / 0.7162 GB, free: 69.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004272/2.341, allocations: 4.834 MB / 0.7209 GB, free: 66.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001924/2.343, allocations: 1.134 MB / 0.722 GB, free: 66.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/2.344, allocations: 176.6 kB / 0.7222 GB, free: 66.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006433/2.345, allocations: 0.6852 MB / 0.7228 GB, free: 65.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008342/2.353, allocations: 3.284 MB / 0.726 GB, free: 65.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01238/2.366, allocations: 8.529 MB / 0.7344 GB, free: 59.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/2.378, allocations: 5.223 MB / 0.7395 GB, free: 58.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002223/2.378, allocations: 53.66 kB / 0.7395 GB, free: 58.3 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.0425/2.421, allocations: 13.63 MB / 0.7528 GB, free: 53.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001551/2.421, allocations: 84.56 kB / 0.7529 GB, free: 53.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000287/2.421, allocations: 185.6 kB / 0.7531 GB, free: 53.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/2.433, allocations: 2.267 MB / 0.7553 GB, free: 53.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01386/2.447, allocations: 2.09 MB / 0.7574 GB, free: 53.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03435/2.482, allocations: 20.16 MB / 0.777 GB, free: 39.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/2.493, allocations: 0.4977 MB / 0.7775 GB, free: 39.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002083/2.495, allocations: 0.5173 MB / 0.778 GB, free: 39.04 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.002395/2.497, allocations: 0.7965 MB / 0.7788 GB, free: 38.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/2.499, allocations: 0.5283 MB / 0.7793 GB, free: 37.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02262/2.521, allocations: 7.067 MB / 0.7862 GB, free: 31.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.754e-05/2.522, allocations: 44.69 kB / 0.7863 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.024e-05/2.522, allocations: 15.95 kB / 0.7863 GB, free: 31.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.506e-05/2.522, allocations: 10.73 kB / 0.7863 GB, free: 31.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04565/2.567, allocations: 15.3 MB / 0.8012 GB, free: 19.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.991e-05/2.568, allocations: 3.625 kB / 0.8012 GB, free: 19.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005806/2.573, allocations: 0.5172 MB / 0.8017 GB, free: 18.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01163/2.585, allocations: 2.069 MB / 0.8038 GB, free: 17.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007539/2.586, allocations: 63.27 kB / 0.8038 GB, free: 17.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03472/2.621, allocations: 22.5 MB / 0.8258 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/2.621, allocations: 0 / 0.8258 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3534/2.974, allocations: 11.47 MB / 0.837 GB, free: 76.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004369/2.978, allocations: 1.018 MB / 0.838 GB, free: 76.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002043/2.981, allocations: 51.78 kB / 0.838 GB, free: 76.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005955/2.987, allocations: 193.2 kB / 0.8382 GB, free: 76.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001464/2.988, allocations: 184.1 kB / 0.8384 GB, free: 76.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003924/2.989, allocations: 82.3 kB / 0.8385 GB, free: 76.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01031/2.999, allocations: 3.563 MB / 0.842 GB, free: 76.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.513e-06/2.999, allocations: 0 / 0.842 GB, free: 76.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01176/3.011, allocations: 1.746 MB / 0.8437 GB, free: 76.25 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.03109/3.042, allocations: 11.88 MB / 0.8553 GB, free: 74.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02227/3.064, allocations: 9.112 MB / 0.8642 GB, free: 73.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/3.064, allocations: 1.906 kB / 0.8642 GB, free: 73.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01032/3.075, allocations: 4.111 MB / 0.8682 GB, free: 72.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006266/3.081, allocations: 0.7289 MB / 0.8689 GB, free: 72.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05428/3.135, allocations: 16.46 MB / 0.885 GB, free: 69.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01218/3.147, allocations: 5.274 MB / 0.8901 GB, free: 68.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008285/3.156, allocations: 3.359 MB / 0.8934 GB, free: 65.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.422e-06/3.156, allocations: 1 kB / 0.8934 GB, free: 65.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.709/9.864, allocations: 367.4 MB / 1.252 GB, free: 69.92 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