Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.185e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2617, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1816/0.4433, allocations: 100.5 MB / 364.4 MB, free: 5.016 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003386/0.4437, allocations: 91.83 kB / 364.5 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7979/1.242, allocations: 136 MB / 0.4888 GB, free: 5.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/1.242, allocations: 0 / 0.4888 GB, free: 5.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005354/1.242, allocations: 152 kB / 0.489 GB, free: 5.395 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.5293/1.772, allocations: 7.245 MB / 0.496 GB, free: 35.88 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.777e-05/1.772, allocations: 11.03 kB / 0.496 GB, free: 35.88 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007475/1.779, allocations: 1.293 MB / 0.4973 GB, free: 35.79 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02286/1.802, allocations: 2.873 MB / 0.5001 GB, free: 35.3 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0281/1.83, allocations: 7.645 MB / 0.5076 GB, free: 34.9 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007916/1.831, allocations: 0.5655 MB / 0.5081 GB, free: 34.88 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004017/1.835, allocations: 0.7502 MB / 0.5089 GB, free: 34.88 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05871/1.894, allocations: 18.08 MB / 0.5265 GB, free: 31.39 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005488/1.894, allocations: 78.94 kB / 0.5266 GB, free: 31.39 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003715/1.898, allocations: 355.1 kB / 0.5269 GB, free: 31.39 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003939/1.902, allocations: 1.601 MB / 0.5285 GB, free: 31.38 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04985/1.952, allocations: 14.58 MB / 0.5427 GB, free: 31.1 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.1737/2.126, allocations: 75.46 MB / 0.6164 GB, free: 6.156 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05085/2.177, allocations: 7.555 MB / 0.6238 GB, free: 24 kB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01312/2.19, allocations: 3.25 MB / 0.627 GB, free: 13.1 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05433/2.244, allocations: 14.05 MB / 0.6407 GB, free: 0.7578 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.257e-05/2.244, allocations: 64.5 kB / 0.6407 GB, free: 0.6875 MB / 394.8 MB Notification: Performance of pre-optimization done (n=251): time 6.643e-06/2.244, allocations: 4 kB / 0.6408 GB, free: 0.6836 MB / 394.8 MB Notification: Performance of matching and sorting (n=297): time 0.4457/2.69, allocations: 30.46 MB / 0.6705 GB, free: 78.75 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/2.69, allocations: 155.6 kB / 0.6706 GB, free: 78.6 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01342/2.704, allocations: 5.135 MB / 0.6757 GB, free: 78.09 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008249/2.705, allocations: 70.69 kB / 0.6757 GB, free: 78.05 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004655/2.709, allocations: 5.003 MB / 0.6806 GB, free: 75.54 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001936/2.711, allocations: 1.139 MB / 0.6817 GB, free: 74.89 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001138/2.712, allocations: 177.6 kB / 0.6819 GB, free: 74.89 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.000643/2.713, allocations: 0.6766 MB / 0.6826 GB, free: 74.57 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008334/2.721, allocations: 3.281 MB / 0.6858 GB, free: 74.55 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01225/2.734, allocations: 8.475 MB / 0.694 GB, free: 67.8 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/2.746, allocations: 5.223 MB / 0.6991 GB, free: 67.77 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003077/2.746, allocations: 52.88 kB / 0.6992 GB, free: 67.77 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.04224/2.789, allocations: 13.32 MB / 0.7122 GB, free: 64.45 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/2.789, allocations: 85.88 kB / 0.7123 GB, free: 64.45 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002883/2.789, allocations: 189.9 kB / 0.7125 GB, free: 64.44 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01208/2.801, allocations: 2.264 MB / 0.7147 GB, free: 63.97 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01363/2.815, allocations: 2.09 MB / 0.7167 GB, free: 63.72 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03511/2.85, allocations: 20.13 MB / 0.7364 GB, free: 50 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01563/2.866, allocations: 0.5031 MB / 0.7369 GB, free: 49.56 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001846/2.868, allocations: 0.5119 MB / 0.7374 GB, free: 49.05 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.00187/2.87, allocations: 0.7981 MB / 0.7381 GB, free: 48.26 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/2.871, allocations: 0.5245 MB / 0.7387 GB, free: 47.73 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02273/2.894, allocations: 7.088 MB / 0.7456 GB, free: 41.87 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.612e-05/2.894, allocations: 43.81 kB / 0.7456 GB, free: 41.83 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.421e-05/2.894, allocations: 12 kB / 0.7456 GB, free: 41.82 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.928e-05/2.894, allocations: 15.02 kB / 0.7456 GB, free: 41.81 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04217/2.936, allocations: 15.31 MB / 0.7606 GB, free: 29.28 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.068e-05/2.936, allocations: 0 / 0.7606 GB, free: 29.28 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005714/2.942, allocations: 0.5196 MB / 0.7611 GB, free: 28.89 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01169/2.954, allocations: 2.068 MB / 0.7631 GB, free: 27.42 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007933/2.955, allocations: 67.38 kB / 0.7632 GB, free: 27.36 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3124/3.267, allocations: 22.49 MB / 0.7852 GB, free: 65.45 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/3.267, allocations: 0 / 0.7852 GB, free: 65.45 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03015/3.297, allocations: 10.98 MB / 0.7959 GB, free: 64.36 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003933/3.301, allocations: 1.005 MB / 0.7969 GB, free: 64.27 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/3.303, allocations: 53.97 kB / 0.7969 GB, free: 64.27 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005751/3.309, allocations: 187.1 kB / 0.7971 GB, free: 64.27 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/3.31, allocations: 192 kB / 0.7973 GB, free: 64.27 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003992/3.311, allocations: 79.19 kB / 0.7973 GB, free: 64.27 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.009584/3.32, allocations: 3.561 MB / 0.8008 GB, free: 64.02 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.625e-06/3.32, allocations: 7.438 kB / 0.8008 GB, free: 64.02 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.0124/3.333, allocations: 1.742 MB / 0.8025 GB, free: 64.02 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.03318/3.366, allocations: 11.87 MB / 0.8141 GB, free: 62.29 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02268/3.389, allocations: 8.799 MB / 0.8227 GB, free: 61.48 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/3.389, allocations: 1.562 kB / 0.8227 GB, free: 61.48 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01068/3.4, allocations: 4.032 MB / 0.8267 GB, free: 60.51 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006736/3.406, allocations: 0.7286 MB / 0.8274 GB, free: 60.48 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05542/3.462, allocations: 15.63 MB / 0.8426 GB, free: 56.17 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01306/3.475, allocations: 5.287 MB / 0.8478 GB, free: 54.42 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.0147/3.49, allocations: 2.738 MB / 0.8505 GB, free: 54.36 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007848/3.498, allocations: 3.29 MB / 0.8537 GB, free: 51.62 MB / 394.8 MB Notification: Performance of SimCode: time 1.753e-06/3.498, allocations: 0 / 0.8537 GB, free: 51.62 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5737/4.071, allocations: 131.9 MB / 0.9825 GB, free: 59.58 MB / 394.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002716/4.072, allocations: 197.9 kB / 0.9827 GB, free: 59.36 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/11.67, allocations: 0 / 0.9827 GB, free: 59.36 MB / 394.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat