Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.972/1.972, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005086/0.0005087, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.127, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.5901, allocations: 106.3 MB / 414.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5905, allocations: 103.5 kB / 414.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9096/1.5, allocations: 136 MB / 0.538 GB, free: 67.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/1.5, allocations: 0 / 0.538 GB, free: 67.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005545/1.501, allocations: 153.9 kB / 0.5382 GB, free: 67.25 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.04064/1.541, allocations: 7.676 MB / 0.5457 GB, free: 64.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/1.542, allocations: 7.812 kB / 0.5457 GB, free: 64.37 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006518/1.548, allocations: 1.294 MB / 0.5469 GB, free: 64.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02292/1.571, allocations: 2.881 MB / 0.5497 GB, free: 63.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02696/1.598, allocations: 7.674 MB / 0.5572 GB, free: 62.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007762/1.599, allocations: 0.5653 MB / 0.5578 GB, free: 62.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004239/1.603, allocations: 0.7539 MB / 0.5585 GB, free: 62.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06083/1.664, allocations: 18.3 MB / 0.5764 GB, free: 59.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005733/1.665, allocations: 85.33 kB / 0.5765 GB, free: 59.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004178/1.669, allocations: 356 kB / 0.5768 GB, free: 59.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003946/1.673, allocations: 1.608 MB / 0.5784 GB, free: 59.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04976/1.723, allocations: 15.05 MB / 0.5931 GB, free: 57.95 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.1232/1.846, allocations: 75.43 MB / 0.6668 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05278/1.899, allocations: 7.661 MB / 0.6742 GB, free: 8.164 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4076/2.306, allocations: 14.11 MB / 0.688 GB, free: 76.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/2.306, allocations: 58.89 kB / 0.6881 GB, free: 76.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=251): time 6.993e-06/2.306, allocations: 2.156 kB / 0.6881 GB, free: 76.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=297): time 0.1502/2.457, allocations: 32.91 MB / 0.7202 GB, free: 71.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/2.457, allocations: 164.7 kB / 0.7204 GB, free: 71.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01313/2.47, allocations: 5.193 MB / 0.7254 GB, free: 70.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000839/2.471, allocations: 72.08 kB / 0.7255 GB, free: 70.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004662/2.476, allocations: 4.824 MB / 0.7302 GB, free: 68.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002163/2.478, allocations: 1.138 MB / 0.7313 GB, free: 67.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/2.479, allocations: 178.1 kB / 0.7315 GB, free: 67.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009193/2.48, allocations: 0.6797 MB / 0.7322 GB, free: 67.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009192/2.489, allocations: 3.36 MB / 0.7354 GB, free: 67.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01442/2.504, allocations: 8.606 MB / 0.7439 GB, free: 60.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01248/2.517, allocations: 5.255 MB / 0.749 GB, free: 58.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002211/2.517, allocations: 54.41 kB / 0.749 GB, free: 58.93 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.04219/2.559, allocations: 13.79 MB / 0.7625 GB, free: 54.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/2.559, allocations: 86.53 kB / 0.7626 GB, free: 54.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003059/2.56, allocations: 185.6 kB / 0.7628 GB, free: 54.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0122/2.572, allocations: 2.273 MB / 0.765 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01335/2.585, allocations: 2.093 MB / 0.767 GB, free: 53.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03481/2.62, allocations: 20.8 MB / 0.7873 GB, free: 39.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0108/2.631, allocations: 0.5001 MB / 0.7878 GB, free: 39.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002157/2.633, allocations: 0.5203 MB / 0.7883 GB, free: 39.43 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 () * Number of clocked 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.01018/2.643, allocations: 3.375 MB / 0.7916 GB, free: 37.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/2.645, allocations: 0.5283 MB / 0.7921 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0236/2.668, allocations: 7.152 MB / 0.7991 GB, free: 30.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.076e-05/2.669, allocations: 40.86 kB / 0.7992 GB, free: 30.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.604e-05/2.669, allocations: 10.7 kB / 0.7992 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-05/2.669, allocations: 16.38 kB / 0.7992 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04478/2.713, allocations: 15.38 MB / 0.8142 GB, free: 17.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.792e-05/2.714, allocations: 4 kB / 0.8142 GB, free: 17.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005726/2.719, allocations: 0.5158 MB / 0.8147 GB, free: 17.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01169/2.731, allocations: 2.079 MB / 0.8168 GB, free: 16.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007571/2.732, allocations: 59.42 kB / 0.8168 GB, free: 16.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3534/3.085, allocations: 23.21 MB / 0.8395 GB, free: 78.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/3.085, allocations: 3.5 kB / 0.8395 GB, free: 78.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03531/3.121, allocations: 11.09 MB / 0.8503 GB, free: 77.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004001/3.125, allocations: 1.015 MB / 0.8513 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002164/3.127, allocations: 54.17 kB / 0.8513 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005777/3.133, allocations: 191.2 kB / 0.8515 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/3.134, allocations: 192.3 kB / 0.8517 GB, free: 77.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000662/3.135, allocations: 79.97 kB / 0.8518 GB, free: 77.24 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01045/3.145, allocations: 3.619 MB / 0.8553 GB, free: 77.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.01e-07/3.145, allocations: 0 / 0.8553 GB, free: 77.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02071/3.166, allocations: 1.739 MB / 0.857 GB, free: 77.03 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 () * Number of clocked 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.03381/3.2, allocations: 11.99 MB / 0.8687 GB, free: 75.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02287/3.223, allocations: 9.25 MB / 0.8778 GB, free: 74.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/3.223, allocations: 3.938 kB / 0.8778 GB, free: 74.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01053/3.234, allocations: 4.183 MB / 0.8819 GB, free: 73.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006431/3.24, allocations: 0.7288 MB / 0.8826 GB, free: 73.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5384/3.778, allocations: 189.6 MB / 1.068 GB, free: 99.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/3.792, allocations: 5.287 MB / 1.073 GB, free: 98.42 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00839/3.8, allocations: 3.361 MB / 1.076 GB, free: 98.41 MB / 0.4948 GB Notification: Performance of SimCode: time 1.653e-06/3.8, allocations: 0 / 1.076 GB, free: 98.41 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.97/10.77, allocations: 367 MB / 1.435 GB, free: 103.7 MB / 0.4948 GB 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