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.72/1.72, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.944e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2649, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.4447, allocations: 100.5 MB / 364.4 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.4451, allocations: 87.95 kB / 364.4 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8039/1.249, allocations: 136.1 MB / 0.4888 GB, free: 5.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.249, allocations: 0 / 0.4888 GB, free: 5.793 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005647/1.25, allocations: 148 kB / 0.4889 GB, free: 5.648 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.5712/1.821, allocations: 7.244 MB / 0.496 GB, free: 35.83 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/1.821, allocations: 13.91 kB / 0.496 GB, free: 35.83 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006348/1.827, allocations: 1.291 MB / 0.4973 GB, free: 35.73 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02796/1.855, allocations: 2.875 MB / 0.5001 GB, free: 35.25 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02738/1.883, allocations: 7.64 MB / 0.5075 GB, free: 34.84 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007678/1.884, allocations: 0.5638 MB / 0.5081 GB, free: 34.83 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003966/1.887, allocations: 0.7522 MB / 0.5088 GB, free: 34.82 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05818/1.946, allocations: 18.16 MB / 0.5265 GB, free: 31.31 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005623/1.946, allocations: 77.72 kB / 0.5266 GB, free: 31.3 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003597/1.95, allocations: 358.9 kB / 0.527 GB, free: 31.3 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003772/1.954, allocations: 1.597 MB / 0.5285 GB, free: 31.29 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04833/2.002, allocations: 14.84 MB / 0.543 GB, free: 30.98 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.1562/2.158, allocations: 75.45 MB / 0.6167 GB, free: 6.031 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04182/2.2, allocations: 7.616 MB / 0.6241 GB, free: 0 / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008528/2.209, allocations: 3.264 MB / 0.6273 GB, free: 13.09 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04013/2.249, allocations: 14.06 MB / 0.641 GB, free: 0.7852 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.933e-05/2.249, allocations: 68.08 kB / 0.6411 GB, free: 0.7188 MB / 394.8 MB Notification: Performance of pre-optimization done (n=251): time 6.762e-06/2.249, allocations: 4 kB / 0.6411 GB, free: 0.7148 MB / 394.8 MB Notification: Performance of matching and sorting (n=297): time 0.4656/2.715, allocations: 30.45 MB / 0.6708 GB, free: 78.72 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/2.715, allocations: 160 kB / 0.671 GB, free: 78.56 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/2.728, allocations: 5.132 MB / 0.676 GB, free: 78.05 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007897/2.729, allocations: 70.36 kB / 0.6761 GB, free: 78.02 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004293/2.733, allocations: 4.84 MB / 0.6808 GB, free: 75.48 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001889/2.735, allocations: 1.131 MB / 0.6819 GB, free: 74.83 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001293/2.737, allocations: 176.8 kB / 0.6821 GB, free: 74.83 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.000881/2.738, allocations: 0.6825 MB / 0.6827 GB, free: 74.5 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008787/2.746, allocations: 3.283 MB / 0.686 GB, free: 74.47 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01205/2.758, allocations: 8.53 MB / 0.6943 GB, free: 67.71 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/2.771, allocations: 5.229 MB / 0.6994 GB, free: 67.67 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000269/2.771, allocations: 52.12 kB / 0.6994 GB, free: 67.67 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.04186/2.813, allocations: 13.64 MB / 0.7128 GB, free: 64.17 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001501/2.813, allocations: 85.91 kB / 0.7128 GB, free: 64.17 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002703/2.814, allocations: 189 kB / 0.713 GB, free: 64.17 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01223/2.826, allocations: 2.264 MB / 0.7152 GB, free: 63.7 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01405/2.84, allocations: 2.084 MB / 0.7173 GB, free: 63.46 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03373/2.874, allocations: 20.15 MB / 0.7369 GB, free: 49.86 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/2.885, allocations: 0.4987 MB / 0.7374 GB, free: 49.43 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002297/2.887, allocations: 0.5163 MB / 0.7379 GB, free: 48.92 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.003826/2.891, allocations: 0.796 MB / 0.7387 GB, free: 48.12 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/2.893, allocations: 0.5245 MB / 0.7392 GB, free: 47.59 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02417/2.917, allocations: 7.079 MB / 0.7461 GB, free: 41.73 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.121e-05/2.917, allocations: 44.58 kB / 0.7462 GB, free: 41.69 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.24e-05/2.917, allocations: 12 kB / 0.7462 GB, free: 41.68 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-05/2.917, allocations: 12.94 kB / 0.7462 GB, free: 41.68 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04726/2.964, allocations: 15.31 MB / 0.7612 GB, free: 29.15 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-05/2.965, allocations: 4 kB / 0.7612 GB, free: 29.15 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006003/2.971, allocations: 0.5176 MB / 0.7617 GB, free: 28.76 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01192/2.983, allocations: 2.069 MB / 0.7637 GB, free: 27.29 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008335/2.984, allocations: 64.17 kB / 0.7637 GB, free: 27.23 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3237/3.307, allocations: 22.49 MB / 0.7857 GB, free: 65.48 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/3.307, allocations: 8.531 kB / 0.7857 GB, free: 65.48 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03103/3.338, allocations: 10.96 MB / 0.7964 GB, free: 64.4 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004301/3.343, allocations: 1.012 MB / 0.7974 GB, free: 64.3 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002023/3.345, allocations: 53.05 kB / 0.7975 GB, free: 64.3 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005755/3.351, allocations: 192.5 kB / 0.7976 GB, free: 64.3 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/3.352, allocations: 186.5 kB / 0.7978 GB, free: 64.3 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004791/3.353, allocations: 78.22 kB / 0.7979 GB, free: 64.3 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01002/3.363, allocations: 3.563 MB / 0.8014 GB, free: 64.06 MB / 394.8 MB Notification: Performance of sort global known variables: time 8.01e-07/3.363, allocations: 0 / 0.8014 GB, free: 64.06 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01234/3.375, allocations: 1.737 MB / 0.8031 GB, free: 64.06 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.03147/3.406, allocations: 11.88 MB / 0.8147 GB, free: 62.32 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02178/3.428, allocations: 9.117 MB / 0.8236 GB, free: 61.46 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/3.428, allocations: 0 / 0.8236 GB, free: 61.46 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01042/3.439, allocations: 4.109 MB / 0.8276 GB, free: 60.41 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006722/3.446, allocations: 0.7354 MB / 0.8283 GB, free: 60.38 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05912/3.505, allocations: 16.46 MB / 0.8444 GB, free: 55.34 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01362/3.518, allocations: 5.287 MB / 0.8495 GB, free: 53.6 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008726/3.527, allocations: 3.362 MB / 0.8528 GB, free: 50.86 MB / 394.8 MB Notification: Performance of SimCode: time 1.834e-06/3.527, allocations: 0 / 0.8528 GB, free: 50.86 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.219/10.75, allocations: 367.4 MB / 1.212 GB, free: 29.16 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