Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.595/1.595, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004824, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08488/0.0854, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.4995, allocations: 100.6 MB / 372.7 MB, free: 5.211 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004302/0.5, allocations: 100.1 kB / 372.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7954/1.295, allocations: 136 MB / 0.4969 GB, free: 54.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.295, allocations: 0 / 0.4969 GB, free: 54.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000502/1.296, allocations: 152 kB / 0.497 GB, free: 54.61 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.03774/1.334, allocations: 7.679 MB / 0.5045 GB, free: 46.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/1.334, allocations: 8.031 kB / 0.5045 GB, free: 46.84 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006367/1.34, allocations: 1.289 MB / 0.5058 GB, free: 45.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02272/1.363, allocations: 2.88 MB / 0.5086 GB, free: 42.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02849/1.392, allocations: 7.676 MB / 0.5161 GB, free: 34.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009638/1.393, allocations: 0.5656 MB / 0.5167 GB, free: 34.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004965/1.398, allocations: 0.7536 MB / 0.5174 GB, free: 33.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06031/1.458, allocations: 18.32 MB / 0.5353 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005616/1.459, allocations: 79.25 kB / 0.5354 GB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00389/1.462, allocations: 351.8 kB / 0.5357 GB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003751/1.466, allocations: 1.602 MB / 0.5373 GB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3504/1.817, allocations: 15.05 MB / 0.552 GB, free: 48.71 MB / 346.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.1311/1.948, allocations: 75.43 MB / 0.6256 GB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03984/1.988, allocations: 7.647 MB / 0.6331 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03781/2.026, allocations: 14.05 MB / 0.6468 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.433e-05/2.026, allocations: 60.5 kB / 0.6469 GB, free: 12.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=251): time 6.753e-06/2.026, allocations: 0 / 0.6469 GB, free: 12.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=297): time 0.1677/2.193, allocations: 33.27 MB / 0.6794 GB, free: 7.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/2.194, allocations: 162.5 kB / 0.6795 GB, free: 7.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01448/2.208, allocations: 5.182 MB / 0.6846 GB, free: 2.496 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008283/2.209, allocations: 76.83 kB / 0.6846 GB, free: 2.418 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3043/2.513, allocations: 4.835 MB / 0.6894 GB, free: 83.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002189/2.516, allocations: 1.132 MB / 0.6905 GB, free: 82.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/2.517, allocations: 177.4 kB / 0.6906 GB, free: 82.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009626/2.518, allocations: 0.6832 MB / 0.6913 GB, free: 82.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009511/2.528, allocations: 3.362 MB / 0.6946 GB, free: 82.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/2.542, allocations: 8.601 MB / 0.703 GB, free: 75.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01413/2.556, allocations: 5.245 MB / 0.7081 GB, free: 75.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003922/2.557, allocations: 53.78 kB / 0.7082 GB, free: 75.46 MB / 378.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.04437/2.601, allocations: 13.8 MB / 0.7216 GB, free: 74.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00021/2.602, allocations: 90.2 kB / 0.7217 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003489/2.602, allocations: 183.5 kB / 0.7219 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01198/2.614, allocations: 2.267 MB / 0.7241 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01358/2.627, allocations: 2.093 MB / 0.7262 GB, free: 73.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0346/2.662, allocations: 20.81 MB / 0.7465 GB, free: 60.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01068/2.673, allocations: 0.5078 MB / 0.747 GB, free: 59.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002208/2.675, allocations: 0.5165 MB / 0.7475 GB, free: 59.9 MB / 378.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.01005/2.685, allocations: 3.368 MB / 0.7508 GB, free: 58.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001397/2.687, allocations: 0.5218 MB / 0.7513 GB, free: 58.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02439/2.711, allocations: 7.164 MB / 0.7583 GB, free: 55.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.923e-05/2.711, allocations: 48.72 kB / 0.7583 GB, free: 55.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.795e-05/2.711, allocations: 7.688 kB / 0.7583 GB, free: 55.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.443e-05/2.711, allocations: 16.31 kB / 0.7583 GB, free: 55.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04783/2.759, allocations: 15.37 MB / 0.7733 GB, free: 46.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.256e-05/2.759, allocations: 0 / 0.7733 GB, free: 46.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00575/2.765, allocations: 0.5231 MB / 0.7739 GB, free: 45.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0126/2.778, allocations: 2.084 MB / 0.7759 GB, free: 44.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008485/2.779, allocations: 60.33 kB / 0.776 GB, free: 44.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04958/2.828, allocations: 23.18 MB / 0.7986 GB, free: 22.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/2.828, allocations: 4.031 kB / 0.7986 GB, free: 22.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04295/2.871, allocations: 11.08 MB / 0.8094 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004961/2.876, allocations: 1.016 MB / 0.8104 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002785/2.879, allocations: 56.05 kB / 0.8105 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00543/2.885, allocations: 187.5 kB / 0.8106 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/2.886, allocations: 177.8 kB / 0.8108 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005857/2.887, allocations: 84.55 kB / 0.8109 GB, free: 11.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01009/2.897, allocations: 3.617 MB / 0.8144 GB, free: 8.297 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.897, allocations: 0 / 0.8144 GB, free: 8.297 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01281/2.91, allocations: 1.74 MB / 0.8161 GB, free: 6.574 MB / 378.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.3395/3.249, allocations: 12 MB / 0.8278 GB, free: 82.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0242/3.273, allocations: 9.248 MB / 0.8369 GB, free: 81.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/3.273, allocations: 5.344 kB / 0.8369 GB, free: 81.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.011/3.284, allocations: 4.174 MB / 0.8409 GB, free: 80.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006362/3.291, allocations: 0.7457 MB / 0.8417 GB, free: 80.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5049/3.796, allocations: 189.6 MB / 1.027 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01719/3.813, allocations: 5.281 MB / 1.032 GB, free: 99.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01152/3.825, allocations: 3.359 MB / 1.035 GB, free: 98.91 MB / 442.7 MB Notification: Performance of SimCode: time 3.487e-06/3.825, allocations: 0 / 1.035 GB, free: 98.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.782/10.61, allocations: 367 MB / 1.394 GB, free: 50.07 MB / 442.7 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