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.754/1.754, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.102e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2746, allocations: 38.77 MB / 263.9 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.182/0.4567, allocations: 100.5 MB / 364.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.4571, allocations: 79.95 kB / 364.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9307/1.388, allocations: 136.1 MB / 0.4888 GB, free: 5.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.316e-06/1.388, allocations: 4 kB / 0.4888 GB, free: 5.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007879/1.389, allocations: 152 kB / 0.4889 GB, free: 5.664 MB / 346.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.6143/2.003, allocations: 7.244 MB / 0.496 GB, free: 35.69 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/2.003, allocations: 13.91 kB / 0.496 GB, free: 35.69 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006416/2.01, allocations: 1.289 MB / 0.4973 GB, free: 35.59 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0226/2.032, allocations: 2.873 MB / 0.5001 GB, free: 35.11 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02744/2.06, allocations: 7.654 MB / 0.5076 GB, free: 34.7 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007681/2.06, allocations: 0.5665 MB / 0.5081 GB, free: 34.69 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003897/2.064, allocations: 0.7474 MB / 0.5088 GB, free: 34.68 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05993/2.124, allocations: 18.08 MB / 0.5265 GB, free: 31.2 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005346/2.125, allocations: 84.47 kB / 0.5266 GB, free: 31.19 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003685/2.129, allocations: 353.5 kB / 0.5269 GB, free: 31.19 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004067/2.133, allocations: 1.602 MB / 0.5285 GB, free: 31.18 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05023/2.183, allocations: 14.58 MB / 0.5427 GB, free: 30.96 MB / 346.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.1367/2.32, allocations: 75.45 MB / 0.6164 GB, free: 6.227 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04325/2.363, allocations: 7.554 MB / 0.6238 GB, free: 100 kB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00933/2.373, allocations: 3.267 MB / 0.627 GB, free: 13.2 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04174/2.414, allocations: 14.05 MB / 0.6407 GB, free: 0.8945 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.458e-05/2.415, allocations: 68.45 kB / 0.6407 GB, free: 0.8203 MB / 394.8 MB Notification: Performance of pre-optimization done (n=251): time 7.364e-06/2.415, allocations: 0 / 0.6407 GB, free: 0.8203 MB / 394.8 MB Notification: Performance of matching and sorting (n=297): time 0.579/2.994, allocations: 30.4 MB / 0.6704 GB, free: 78.57 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/2.994, allocations: 157.1 kB / 0.6706 GB, free: 78.41 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01297/3.007, allocations: 5.138 MB / 0.6756 GB, free: 77.9 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008035/3.008, allocations: 70.94 kB / 0.6757 GB, free: 77.87 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004181/3.012, allocations: 4.832 MB / 0.6804 GB, free: 75.32 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001888/3.014, allocations: 1.134 MB / 0.6815 GB, free: 74.68 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/3.015, allocations: 181.6 kB / 0.6817 GB, free: 74.68 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0008249/3.016, allocations: 0.6896 MB / 0.6823 GB, free: 74.34 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008549/3.024, allocations: 3.275 MB / 0.6855 GB, free: 74.32 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0118/3.036, allocations: 8.474 MB / 0.6938 GB, free: 67.58 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/3.048, allocations: 5.22 MB / 0.6989 GB, free: 67.54 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002281/3.048, allocations: 52.72 kB / 0.699 GB, free: 67.54 MB / 394.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=1155) (initialization): time 0.04048/3.089, allocations: 13.12 MB / 0.7118 GB, free: 64.52 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/3.089, allocations: 90.61 kB / 0.7119 GB, free: 64.52 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002663/3.089, allocations: 184 kB / 0.712 GB, free: 64.52 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01196/3.101, allocations: 2.263 MB / 0.7143 GB, free: 64.05 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01397/3.115, allocations: 2.087 MB / 0.7163 GB, free: 63.8 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03287/3.148, allocations: 20.14 MB / 0.736 GB, free: 50.26 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01076/3.159, allocations: 0.4999 MB / 0.7364 GB, free: 49.9 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002106/3.161, allocations: 0.5181 MB / 0.737 GB, free: 49.39 MB / 394.8 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.00327/3.165, allocations: 0.7911 MB / 0.7377 GB, free: 48.61 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/3.166, allocations: 0.5323 MB / 0.7382 GB, free: 48.07 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02355/3.19, allocations: 7.079 MB / 0.7452 GB, free: 42.2 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-05/3.19, allocations: 39.38 kB / 0.7452 GB, free: 42.17 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-05/3.19, allocations: 12 kB / 0.7452 GB, free: 42.16 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.583e-05/3.19, allocations: 11.53 kB / 0.7452 GB, free: 42.16 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0465/3.236, allocations: 15.32 MB / 0.7602 GB, free: 29.62 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-05/3.237, allocations: 4 kB / 0.7602 GB, free: 29.62 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005935/3.243, allocations: 0.511 MB / 0.7607 GB, free: 29.23 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01185/3.254, allocations: 2.073 MB / 0.7627 GB, free: 27.75 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007822/3.255, allocations: 59.75 kB / 0.7628 GB, free: 27.7 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3944/3.65, allocations: 22.5 MB / 0.7847 GB, free: 65.4 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/3.65, allocations: 0 / 0.7847 GB, free: 65.4 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03899/3.689, allocations: 10.97 MB / 0.7955 GB, free: 64.31 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003765/3.693, allocations: 1.006 MB / 0.7964 GB, free: 64.22 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/3.695, allocations: 53.42 kB / 0.7965 GB, free: 64.22 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005678/3.7, allocations: 192.9 kB / 0.7967 GB, free: 64.22 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001253/3.702, allocations: 183.2 kB / 0.7968 GB, free: 64.22 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004512/3.702, allocations: 78.61 kB / 0.7969 GB, free: 64.22 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.009618/3.712, allocations: 3.565 MB / 0.8004 GB, free: 63.97 MB / 394.8 MB Notification: Performance of sort global known variables: time 7.62e-07/3.712, allocations: 0 / 0.8004 GB, free: 63.97 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01195/3.724, allocations: 1.738 MB / 0.8021 GB, free: 63.97 MB / 394.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 (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.03101/3.755, allocations: 11.89 MB / 0.8137 GB, free: 62.23 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02185/3.777, allocations: 8.793 MB / 0.8223 GB, free: 61.43 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/3.777, allocations: 0 / 0.8223 GB, free: 61.43 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01045/3.787, allocations: 4.033 MB / 0.8262 GB, free: 60.46 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006665/3.794, allocations: 0.7267 MB / 0.8269 GB, free: 60.43 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05725/3.851, allocations: 16.44 MB / 0.843 GB, free: 55.75 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01343/3.865, allocations: 5.284 MB / 0.8482 GB, free: 54 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008258/3.873, allocations: 3.358 MB / 0.8514 GB, free: 51.27 MB / 394.8 MB Notification: Performance of SimCode: time 1.753e-06/3.873, allocations: 0 / 0.8514 GB, free: 51.27 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.157/11.03, allocations: 366 MB / 1.209 GB, free: 32.18 MB / 442.8 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