Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.451/2.451, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004347/0.0004347, allocations: 16 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4133, allocations: 54.87 MB / 369.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2259/0.6393, allocations: 99.85 MB / 469.2 MB, free: 6.734 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/0.6396, allocations: 71.97 kB / 469.3 MB, free: 6.664 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8347/1.474, allocations: 116.7 MB / 0.5722 GB, free: 14.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.474, allocations: 0 / 0.5722 GB, free: 14.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002712/1.475, allocations: 88 kB / 0.5723 GB, free: 14.48 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: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01976/1.494, allocations: 4.689 MB / 0.5769 GB, free: 9.723 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/1.495, allocations: 12.03 kB / 0.5769 GB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005297/1.5, allocations: 0.9561 MB / 0.5778 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02853/1.528, allocations: 3.647 MB / 0.5814 GB, free: 5.082 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01869/1.547, allocations: 4.832 MB / 0.5861 GB, free: 200 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006717/1.548, allocations: 377.9 kB / 0.5865 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003682/1.552, allocations: 0.492 MB / 0.5869 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0427/1.594, allocations: 12.2 MB / 0.5989 GB, free: 2.594 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003629/1.595, allocations: 35.66 kB / 0.5989 GB, free: 2.559 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003042/1.598, allocations: 227.8 kB / 0.5991 GB, free: 2.336 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003904/1.602, allocations: 1.389 MB / 0.6005 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03694/1.639, allocations: 11.32 MB / 0.6115 GB, free: 5.605 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4566/2.095, allocations: 42.75 MB / 0.6533 GB, free: 84.27 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/2.11, allocations: 4.713 MB / 0.6579 GB, free: 83.07 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001529/2.112, allocations: 1.321 MB / 0.6592 GB, free: 81.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/2.112, allocations: 60.94 kB / 0.6592 GB, free: 81.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=250): time 6.862e-06/2.112, allocations: 0 / 0.6592 GB, free: 81.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=268): time 0.07449/2.186, allocations: 19.81 MB / 0.6786 GB, free: 79.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/2.186, allocations: 103.5 kB / 0.6787 GB, free: 79.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00644/2.193, allocations: 2.882 MB / 0.6815 GB, free: 78.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005987/2.193, allocations: 62.75 kB / 0.6815 GB, free: 78.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002693/2.196, allocations: 3.238 MB / 0.6847 GB, free: 77.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001562/2.198, allocations: 0.9736 MB / 0.6857 GB, free: 76.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007262/2.199, allocations: 120.8 kB / 0.6858 GB, free: 76.51 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004651/2.199, allocations: 0.5733 MB / 0.6863 GB, free: 76.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005969/2.205, allocations: 2.453 MB / 0.6887 GB, free: 76.17 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008543/2.214, allocations: 5.805 MB / 0.6944 GB, free: 71.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008362/2.222, allocations: 3.77 MB / 0.6981 GB, free: 71.83 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/2.222, allocations: 32.59 kB / 0.6981 GB, free: 71.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02514/2.247, allocations: 8.967 MB / 0.7069 GB, free: 70.76 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/2.248, allocations: 61.06 kB / 0.7069 GB, free: 70.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/2.248, allocations: 122 kB / 0.707 GB, free: 70.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005355/2.253, allocations: 1.07 MB / 0.7081 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008511/2.262, allocations: 1.376 MB / 0.7094 GB, free: 70.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/2.273, allocations: 5.231 MB / 0.7145 GB, free: 67.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006253/2.279, allocations: 326 kB / 0.7149 GB, free: 67.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/2.281, allocations: 354.7 kB / 0.7152 GB, free: 67.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007015/2.288, allocations: 2.477 MB / 0.7176 GB, free: 66.64 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008299/2.289, allocations: 318.9 kB / 0.7179 GB, free: 66.46 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01653/2.305, allocations: 5.347 MB / 0.7231 GB, free: 64.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/2.305, allocations: 49.17 kB / 0.7232 GB, free: 64.63 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/2.305, allocations: 3.781 kB / 0.7232 GB, free: 64.63 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.684e-05/2.306, allocations: 14.92 kB / 0.7232 GB, free: 64.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04457/2.35, allocations: 13.32 MB / 0.7362 GB, free: 56.49 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.205e-05/2.35, allocations: 12 kB / 0.7362 GB, free: 56.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004569/2.355, allocations: 425.8 kB / 0.7366 GB, free: 56.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006422/2.361, allocations: 0.8895 MB / 0.7375 GB, free: 55.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007257/2.362, allocations: 63.56 kB / 0.7375 GB, free: 55.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/2.375, allocations: 4.563 MB / 0.742 GB, free: 51.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.049e-05/2.375, allocations: 19.89 kB / 0.742 GB, free: 51.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.026/2.401, allocations: 9.078 MB / 0.7509 GB, free: 43.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002501/2.404, allocations: 0.7321 MB / 0.7516 GB, free: 42.37 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008808/2.405, allocations: 53.84 kB / 0.7517 GB, free: 42.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002609/2.407, allocations: 144.6 kB / 0.7518 GB, free: 42.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005625/2.408, allocations: 165.7 kB / 0.752 GB, free: 42.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000256/2.408, allocations: 84.53 kB / 0.752 GB, free: 42.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004982/2.413, allocations: 1.975 MB / 0.754 GB, free: 40.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.413, allocations: 0 / 0.754 GB, free: 40.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007538/2.421, allocations: 1.114 MB / 0.755 GB, free: 39.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (209): * Single equations (assignments): 202 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02026/2.441, allocations: 12.6 MB / 0.7674 GB, free: 27.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01289/2.454, allocations: 6.003 MB / 0.7732 GB, free: 22.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.695e-05/2.454, allocations: 7.938 kB / 0.7732 GB, free: 22.24 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004853/2.459, allocations: 2.243 MB / 0.7754 GB, free: 20.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/2.462, allocations: 390.3 kB / 0.7758 GB, free: 19.92 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4702/2.932, allocations: 117.4 MB / 0.8905 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009118/2.941, allocations: 3.931 MB / 0.8943 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005888/2.947, allocations: 2.278 MB / 0.8965 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of SimCode: time 9.12e-07/2.947, allocations: 2.812 kB / 0.8965 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.331/7.279, allocations: 111.4 MB / 1.005 GB, free: 36.96 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat