Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.548e-05/4.553e-05, allocations: 4 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1241, allocations: 50.41 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.537/0.6611, allocations: 114.6 MB / 457.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/0.6616, allocations: 88.89 kB / 457.8 MB, free: 11.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9535/1.615, allocations: 134.4 MB / 0.5784 GB, free: 97 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.615, allocations: 0 / 0.5784 GB, free: 97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005011/1.616, allocations: 155.7 kB / 0.5785 GB, free: 96.98 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03659/1.652, allocations: 7.136 MB / 0.5855 GB, free: 94.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/1.652, allocations: 7.031 kB / 0.5855 GB, free: 94.23 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008231/1.661, allocations: 1.27 MB / 0.5867 GB, free: 93.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03105/1.692, allocations: 2.835 MB / 0.5895 GB, free: 93.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03805/1.73, allocations: 7.273 MB / 0.5966 GB, free: 90.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001084/1.731, allocations: 0.5528 MB / 0.5971 GB, free: 90.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004864/1.736, allocations: 0.7353 MB / 0.5979 GB, free: 89.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06672/1.803, allocations: 17.76 MB / 0.6152 GB, free: 74.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005173/1.803, allocations: 83.23 kB / 0.6153 GB, free: 74.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003878/1.807, allocations: 356.1 kB / 0.6156 GB, free: 74.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003705/1.811, allocations: 1.558 MB / 0.6171 GB, free: 72.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04913/1.86, allocations: 14.25 MB / 0.631 GB, free: 58.46 MB / 442.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.5115/2.372, allocations: 74.02 MB / 0.7033 GB, free: 44.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04183/2.413, allocations: 7.613 MB / 0.7108 GB, free: 44.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00717/2.421, allocations: 3.171 MB / 0.7139 GB, free: 44.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03461/2.455, allocations: 14.37 MB / 0.7279 GB, free: 40.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/2.455, allocations: 57.31 kB / 0.728 GB, free: 40.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=244): time 6.913e-06/2.455, allocations: 0 / 0.728 GB, free: 40.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=290): time 0.1837/2.639, allocations: 29.11 MB / 0.7564 GB, free: 32.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/2.639, allocations: 164.7 kB / 0.7565 GB, free: 32.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02011/2.659, allocations: 4.997 MB / 0.7614 GB, free: 30.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/2.661, allocations: 67.05 kB / 0.7615 GB, free: 30.81 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00725/2.668, allocations: 4.884 MB / 0.7662 GB, free: 27.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002608/2.671, allocations: 1.109 MB / 0.7673 GB, free: 26.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001894/2.672, allocations: 170.5 kB / 0.7675 GB, free: 26.13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001195/2.674, allocations: 0.6726 MB / 0.7682 GB, free: 25.67 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01282/2.687, allocations: 3.178 MB / 0.7713 GB, free: 24.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01564/2.702, allocations: 8.229 MB / 0.7793 GB, free: 16.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/2.714, allocations: 5.068 MB / 0.7842 GB, free: 14.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002231/2.714, allocations: 51.06 kB / 0.7843 GB, free: 14.84 MB / 442.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=1125) (initialization): time 0.04103/2.755, allocations: 12.99 MB / 0.797 GB, free: 6.754 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/2.756, allocations: 86.53 kB / 0.7971 GB, free: 6.672 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003324/2.756, allocations: 180 kB / 0.7972 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01226/2.768, allocations: 2.259 MB / 0.7994 GB, free: 4.824 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01332/2.781, allocations: 2.021 MB / 0.8014 GB, free: 3.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03725/2.819, allocations: 20.13 MB / 0.8211 GB, free: 196 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01116/2.83, allocations: 0.5228 MB / 0.8216 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002195/2.832, allocations: 0.5001 MB / 0.8221 GB, free: 15.33 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 826 * Number of states: 0 () * Number of discrete variables: 67 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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 (1042): * Single equations (assignments): 1031 * 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.003824/2.836, allocations: 0.7704 MB / 0.8228 GB, free: 14.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001716/2.838, allocations: 0.5206 MB / 0.8233 GB, free: 14.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02414/2.862, allocations: 6.648 MB / 0.8298 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/2.862, allocations: 43.61 kB / 0.8299 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.297e-05/2.862, allocations: 12 kB / 0.8299 GB, free: 8.559 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.748e-05/2.862, allocations: 10.17 kB / 0.8299 GB, free: 8.559 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05117/2.914, allocations: 14.74 MB / 0.8443 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/2.914, allocations: 0 / 0.8443 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005831/2.919, allocations: 0.507 MB / 0.8448 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01222/2.932, allocations: 2.002 MB / 0.8467 GB, free: 8.668 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007364/2.933, allocations: 51.95 kB / 0.8468 GB, free: 8.617 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03801/2.971, allocations: 19.67 MB / 0.866 GB, free: 4.074 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/2.971, allocations: 0 / 0.866 GB, free: 4.074 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4136/3.384, allocations: 10.44 MB / 0.8762 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002158/3.386, allocations: 0.536 MB / 0.8767 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002563/3.389, allocations: 47.66 kB / 0.8767 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006259/3.395, allocations: 183 kB / 0.8769 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001607/3.397, allocations: 175.4 kB / 0.8771 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009971/3.398, allocations: 77.33 kB / 0.8772 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01196/3.41, allocations: 3.462 MB / 0.8805 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/3.41, allocations: 0 / 0.8805 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01346/3.424, allocations: 1.699 MB / 0.8822 GB, free: 134.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (jointPrismatic_x.s,jointPrismatic_x.v,jointPrismatic_y.s,jointPrismatic_y.v,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 (209): * Single equations (assignments): 198 * 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 {(2,100.0%) 6,(4,75.0%) 5,(2,100.0%) 1,(4,100.0%) 9,(4,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.03156/3.455, allocations: 11.36 MB / 0.8933 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0223/3.478, allocations: 8.562 MB / 0.9016 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/3.478, allocations: 0 / 0.9016 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01029/3.488, allocations: 3.711 MB / 0.9053 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007882/3.496, allocations: 0.7455 MB / 0.906 GB, free: 130.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05729/3.553, allocations: 15.12 MB / 0.9208 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01286/3.566, allocations: 5.164 MB / 0.9258 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01376/3.58, allocations: 2.668 MB / 0.9284 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008207/3.588, allocations: 3.236 MB / 0.9316 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.225e-06/3.588, allocations: 0 / 0.9316 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6635/4.252, allocations: 128.8 MB / 1.057 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000305/4.252, allocations: 211.3 kB / 1.058 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/12.29, allocations: 5.25 kB / 1.058 GB, free: 111.1 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat